/* ============================================================
   LTC Group India — Design Tokens & Custom Styles
   Style: Organic Biophilic | Palette derived from the official
   LTC leaf logo: lime-green leaf + dark charcoal-green wordmark
   ============================================================ */

:root {
  --color-primary: #4C7A1A;
  --color-primary-dark: #263C30;
  --color-secondary: #99D31E;
  --color-accent: #A16207;
  --color-background: #F6FAEC;
  --color-foreground: #263C30;
  --color-muted: #EAF2E0;
  --color-border: #DCEFAF;
  --color-tomato: #DC2626;
  --color-pomegranate: #9F1239;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --radius-organic: 1.25rem;
  --shadow-natural: 0 10px 30px -12px rgba(38, 60, 48, 0.25);
  --shadow-lift: 0 22px 45px -15px rgba(38, 60, 48, 0.35);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: #1F2937;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
}

::selection {
  background-color: var(--color-primary);
  color: #fff;
}

/* ---------- Navigation: floating glass pill ---------- */
.site-nav-glass {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(20px) saturate(110%);
  -webkit-backdrop-filter: blur(20px) saturate(110%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px -10px rgba(38, 60, 48, 0.25);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
#site-nav.nav-scrolled .site-nav-glass {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px -8px rgba(38, 60, 48, 0.28);
  border-color: rgba(255, 255, 255, 0.7);
}
#mobile-menu.site-nav-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(105%);
  -webkit-backdrop-filter: blur(24px) saturate(105%);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-out;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-link[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

/* Businesses dropdown (desktop) */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease-out, transform 0.22s ease-out, visibility 0.22s;
}
.group\/nav:hover .nav-dropdown,
.group\/nav:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile menu */
#mobile-menu {
  transition: max-height 0.35s ease-out, opacity 0.3s ease-out;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.menu-open {
  max-height: 34rem;
  opacity: 1;
}

/* ---------- Organic shapes & dividers ---------- */
.blob {
  position: absolute;
  border-radius: 42% 58% 63% 37% / 46% 43% 57% 54%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.wave-divider {
  display: block;
  width: 100%;
  height: 70px;
  margin-bottom: -1px;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.img-organic {
  border-radius: 1.5rem 3.5rem 1.5rem 3.5rem;
  box-shadow: var(--shadow-natural);
}

/* ---------- Cards ---------- */
.vertical-card {
  border-radius: var(--radius-organic);
  box-shadow: var(--shadow-natural);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  will-change: transform;
}
.vertical-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lift);
}
.vertical-card:active {
  transform: translateY(-3px) scale(0.99);
}
.vertical-card .card-img {
  transition: transform 0.5s ease;
}
.vertical-card:hover .card-img {
  transform: scale(1.06);
}
.vertical-card:hover .card-arrow {
  transform: translateX(6px);
}
.card-arrow {
  transition: transform 0.25s ease-out;
}

/* ---------- Bento grid (Impact section) ---------- */
.bento-tile {
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-natural);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.bento-tile:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-lift);
}

/* ---------- Reusable glass panel ---------- */
.glass-panel {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 24px -8px rgba(38, 60, 48, 0.35);
  color: var(--color-primary-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px) scale(1.05);
}
.back-to-top:active {
  transform: scale(0.94);
}

/* ---------- Timeline ---------- */
.timeline-rail {
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px;
  background-color: var(--color-border);
}
@media (min-width: 768px) {
  .timeline-rail { left: 50%; transform: translateX(-50%); }
}
.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--color-secondary), var(--color-primary));
}
.timeline-dot {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 9999px;
  background-color: #fff;
  border: 3px solid var(--color-secondary);
  box-shadow: 0 0 0 5px rgba(153, 211, 30, 0.2);
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-outline {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(76, 122, 26, 0.5);
}
.btn-primary:active,
.btn-outline:active {
  transform: scale(0.97);
}

/* ---------- Scroll reveal (initial states set by JS; CSS fallback keeps content visible without JS) ---------- */
.reveal, .reveal-stagger > * { opacity: 1; }

/* ---------- Stat counters ---------- */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ---------- Lite YouTube embed ---------- */
.lite-yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-organic);
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-natural);
}
.lite-yt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(38, 60, 48, 0.25);
  transition: background 0.25s ease;
}
.lite-yt:hover::before {
  background: rgba(38, 60, 48, 0.1);
}
.lite-yt .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 50px;
  background-color: rgba(220, 38, 38, 0.9);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.lite-yt:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #DC2626;
}
.lite-yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Page hero (vertical pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(38, 60, 48, 0.55), rgba(38, 60, 48, 0.75));
  z-index: -1;
}

/* ---------- Eyebrow grow-line (agriculture "growth" motif) ---------- */
.eyebrow { position: relative; display: inline-block; }
.grow-line {
  display: block;
  height: 3px;
  width: 3.5rem;
  margin-top: 0.6rem;
  border-radius: 3px;
  background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Floating leaf particles (decorative, agriculture theme) ---------- */
.leaf-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.leaf-particle {
  position: absolute;
  opacity: 0;
  animation: leaf-float linear infinite;
  will-change: transform, opacity;
}
.leaf-particle svg { display: block; width: 100%; height: 100%; }
@keyframes leaf-float {
  0%   { transform: translate3d(0, 12vh, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.55; }
  50%  { transform: translate3d(2vw, -6vh, 0) rotate(160deg); opacity: 0.55; }
  92%  { opacity: 0.3; }
  100% { transform: translate3d(-3vw, -22vh, 0) rotate(320deg); opacity: 0; }
}

/* ---------- Logo hover sway ---------- */
.logo-mark { transition: transform 0.35s ease; transform-origin: 70% 70%; }
a:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

/* ---------- Card leaf badge (agriculture accent on hover) ---------- */
.card-leaf-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -4px rgba(38, 60, 48, 0.4);
  opacity: 0;
  transform: translateY(-8px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.vertical-card:hover .card-leaf-badge {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Utility ---------- */
.text-balance { text-wrap: balance; }

a, button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
