/*
Theme Name: Atree Ayurveda Custom Theme
Theme URI: https://atreeayurveda.in/
Author: Antigravity Pair
Author URI: https://atreeayurveda.in/
Description: A premium, ultra-fast custom theme for Atree Ayurveda, translating the clinical philosophy of Root Cause Healing into a clean, modern aesthetic with smooth animations.
Version: 1.1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atree-ayurveda
*/

/* ==========================================================================
   0. Self-hosted Fonts (latin subset, variable WOFF2)
   ========================================================================== */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-var.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic-var.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var.woff2") format("woff2");
}

/* ==========================================================================
   1. Brand Variables & Core Tokens
   ========================================================================== */
:root {
  /* Colors */
  --color-forest: #071f17;
  --color-forest-rgb: 7, 31, 23;
  --color-forest-soft: #0d2f24;
  --color-forest-soft-rgb: 13, 47, 36;
  --color-gold: #d8aa34;
  --color-gold-rgb: 216, 170, 52;
  /* Darker gold for small text on light backgrounds — #d8aa34 is only 1.9:1
     on ivory; this hits 4.6:1 (WCAG AA). Keep bright gold on dark sections. */
  --color-gold-deep: #8a6610;
  --color-sage: #a9bda1;
  --color-sage-rgb: 169, 189, 161;
  --color-ivory: #f4efe1;
  --color-ivory-rgb: 244, 239, 225;
  --color-muted: #c8d2bf;
  --color-muted-rgb: 200, 210, 191;
  
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Fonts */
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-out;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --header-height-shrunk: 64px;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-forest-soft);
  background-color: var(--color-ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
}

/* ==========================================================================
   3. Typography & Headings
   ========================================================================== */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-forest);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
  position: relative;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-sm);
  color: rgba(var(--color-forest-soft-rgb), 0.85);
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold-deep);
  margin-bottom: 1rem;
  display: block;
}

.section-dark .eyebrow {
  color: var(--color-gold);
}

/* ==========================================================================
   4. Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-forest);
  border-color: var(--color-gold);
  box-shadow: 0 10px 30px rgba(var(--color-gold-rgb), 0.15);
}

.btn-primary:hover {
  background-color: var(--color-forest);
  color: var(--color-gold);
  border-color: var(--color-forest);
  box-shadow: 0 15px 35px rgba(var(--color-forest-rgb), 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-forest);
  border-color: var(--color-forest);
}

.btn-secondary:hover {
  background-color: var(--color-forest);
  color: var(--color-ivory);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-outline-gold:hover {
  background-color: var(--color-gold);
  color: var(--color-forest);
  transform: translateY(-2px);
}

/* ==========================================================================
   5. Layout & Navigation Header
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 24px;
  background-color: var(--color-forest);
  color: var(--color-ivory);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(var(--color-ivory-rgb), 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--color-sage-rgb), 0.2);
  transition: var(--transition-smooth);
}

.site-header.shrunk {
  height: var(--header-height-shrunk);
  background-color: rgba(var(--color-forest-rgb), 0.95);
  border-bottom-color: rgba(var(--color-gold-rgb), 0.15);
}

.site-header.shrunk .nav-link {
  color: var(--color-ivory);
}

.site-header.shrunk .nav-link:hover {
  color: var(--color-gold);
}

.site-header.shrunk .logo-light {
  display: none !important;
}

.site-header.shrunk .logo-dark {
  display: block !important;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: var(--transition-smooth);
}

.site-header.shrunk .logo-img {
  height: 38px;
}

.logo-dark {
  display: none;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-forest-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  color: var(--color-gold);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-forest);
  margin-bottom: 5px;
  transition: var(--transition-smooth);
}

.site-header.shrunk .menu-toggle span {
  background-color: var(--color-ivory);
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--color-forest);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 100px 40px 40px;
  transition: var(--transition-smooth);
}

.mobile-nav-overlay.active {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-ivory);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-nav-link:hover {
  color: var(--color-gold);
}

.mobile-cta {
  margin-top: auto;
  width: 100%;
}

/* ==========================================================================
   6. Sections General
   ========================================================================== */
section {
  padding: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}

/* Keep anchored sections clear of the fixed header when navigated to */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-dark {
  background-color: var(--color-forest);
  color: var(--color-ivory);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--color-ivory);
}

.section-dark p {
  color: var(--color-muted);
}

.section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-title-wrapper h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--color-gold);
  margin: 1.2rem auto 0;
}

/* ==========================================================================
   7. Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: 
    radial-gradient(circle at 10% 20%, rgba(var(--color-gold-rgb), 0.08), transparent 45rem),
    radial-gradient(circle at 90% 80%, rgba(var(--color-sage-rgb), 0.15), transparent 45rem),
    var(--color-ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-lg);
}

.hero-content {
  text-align: left;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--color-forest);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-forest-soft);
  margin-bottom: 2rem;
}

.hero-copy {
  font-size: 1.05rem;
  color: rgba(var(--color-forest-soft-rgb), 0.8);
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-logo-large {
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 15px 35px rgba(var(--color-forest-rgb), 0.08));
  opacity: 0.95;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   8. Why Atree Section
   ========================================================================== */
.why-atree-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.why-atree-visual {
  position: relative;
  background-color: var(--color-forest-soft);
  border-radius: var(--radius-lg);
  padding: clamp(0.75rem, 2vw, var(--space-sm));
  border: 1px solid rgba(var(--color-gold-rgb), 0.1);
  box-shadow: 0 30px 60px rgba(var(--color-forest-rgb), 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.why-atree-image {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
  display: block;
}

.why-atree-content h3 {
  color: var(--color-forest);
  margin-bottom: 1.5rem;
}

.why-atree-content p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

/* Atree Framework Grid */
.framework-section {
  padding: var(--space-lg) 0;
  background-color: rgba(var(--color-sage-rgb), 0.08);
  border-top: 1px solid rgba(var(--color-sage-rgb), 0.2);
  border-bottom: 1px solid rgba(var(--color-sage-rgb), 0.2);
}

.framework-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.framework-card {
  background-color: var(--color-white);
  border: 1px solid rgba(var(--color-sage-rgb), 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
}

.framework-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  box-shadow: 0 10px 25px rgba(var(--color-forest-rgb), 0.05);
}

.framework-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(var(--color-gold-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-deep);
  font-weight: 700;
  flex-shrink: 0;
}

.framework-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-forest);
}

/* ==========================================================================
   9. Root Cause Health Assessment
   ========================================================================== */
.assessment-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.assessment-panel {
  background: var(--color-white);
  border: 1px solid rgba(var(--color-sage-rgb), 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.assessment-panel:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: 0 25px 50px rgba(var(--color-forest-rgb), 0.06);
}

.assessment-panel-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.assessment-panel-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(var(--color-gold-rgb), 0.1);
  color: var(--color-gold-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assessment-panel-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.assessment-panel ul {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 1.5rem;
}

.assessment-panel li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: rgba(var(--color-forest-soft-rgb), 0.8);
}

.assessment-panel li::before {
  content: "•";
  color: var(--color-gold);
  font-size: 1.5rem;
  position: absolute;
  left: 4px;
  top: -2px;
}

/* ==========================================================================
   10. Process Strip
   ========================================================================== */
.process-strip-section {
  padding: var(--space-md) 0;
  background: var(--color-forest);
  border-top: 1px solid rgba(var(--color-gold-rgb), 0.15);
  border-bottom: 1px solid rgba(var(--color-gold-rgb), 0.15);
}

.process-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.process-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.process-step-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-ivory);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.process-separator {
  color: var(--color-sage);
  opacity: 0.5;
  display: flex;
  align-items: center;
}

.process-separator svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ==========================================================================
   11. Healing Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--color-white);
  border: 1px solid rgba(var(--color-sage-rgb), 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  box-shadow: 0 30px 60px rgba(var(--color-forest-rgb), 0.08);
}

.service-card-icon {
  margin-bottom: 1.5rem;
  color: var(--color-gold-deep);
}

.service-card-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.service-card-title {
  color: var(--color-forest);
  margin-bottom: 1rem;
}

.service-card-desc {
  font-size: 0.95rem;
  color: rgba(var(--color-forest-soft-rgb), 0.8);
  line-height: 1.6;
}

/* ==========================================================================
   12. Meet the Team
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--color-white);
  border: 1px solid rgba(var(--color-sage-rgb), 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  box-shadow: 0 30px 60px rgba(var(--color-forest-rgb), 0.08);
}

.team-image-wrapper {
  aspect-ratio: 1 / 1;
  background-color: var(--color-forest-soft);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Monogram placeholder until clinic headshots arrive; a real <img> dropped
   into .team-image-wrapper inherits the same square crop with no CSS change */
.team-monogram {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 1px solid rgba(var(--color-gold-rgb), 0.5);
  background-color: rgba(var(--color-sage-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-sage);
}

.team-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card-name {
  color: var(--color-forest);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.team-card-role {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold-deep);
  margin-bottom: 0.75rem;
}

.team-card-quals {
  font-size: 0.85rem;
  color: rgba(var(--color-forest-soft-rgb), 0.6);
  margin-bottom: 1.25rem;
}

.team-card-btn {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-forest);
  background: none;
  border: none;
  border-bottom: 2px solid var(--color-gold);
  border-radius: 0;
  padding: 0 0 2px;
  cursor: pointer;
}

.team-card-btn:hover {
  color: var(--color-gold);
}

/* Team Modals */
.team-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(var(--color-forest-rgb), 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  padding: 20px;
}

.team-modal.active {
  opacity: 1;
  pointer-events: all;
}

.team-modal-content {
  background-color: var(--color-ivory);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 3rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(var(--color-gold-rgb), 0.15);
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-smooth);
}

.team-modal.active .team-modal-content {
  transform: scale(1) translateY(0);
}

.team-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-forest);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.team-modal-close:hover {
  color: var(--color-gold);
}

.team-modal-header {
  margin-bottom: 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(var(--color-sage-rgb), 0.3);
  padding-bottom: 1.5rem;
}

.team-modal-name {
  font-size: 2.2rem;
  color: var(--color-forest);
}

.team-modal-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.team-modal-body {
  font-size: 1.05rem;
  line-height: 1.7;
}

.team-modal-body p {
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   13. Vision 2047
   ========================================================================== */
.vision-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  align-items: center;
}

.vision-illustration-wrapper {
  position: relative;
  background-color: rgba(var(--color-gold-rgb), 0.05);
  border: 1px solid rgba(var(--color-gold-rgb), 0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.vision-heading {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.vision-card {
  background-color: rgba(var(--color-white-rgb), 0.05);
  border: 1px solid rgba(var(--color-ivory-rgb), 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.vision-card:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   14. Knowledge Centre
   ========================================================================== */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.knowledge-card {
  background: var(--color-white);
  border: 1px solid rgba(var(--color-sage-rgb), 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.knowledge-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  box-shadow: 0 25px 50px rgba(var(--color-forest-rgb), 0.06);
}

.knowledge-card-content {
  padding: 2.5rem 2rem;
}

.knowledge-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-deep);
  margin-bottom: 0.75rem;
}

.knowledge-card-title {
  color: var(--color-forest);
  margin-bottom: 1rem;
}

.knowledge-card-link {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-forest-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.5rem;
  border-bottom: 1px solid rgba(var(--color-forest-soft-rgb), 0.3);
  padding-bottom: 2px;
}

.knowledge-card-link:hover {
  color: var(--color-gold-deep);
  border-color: var(--color-gold-deep);
}

.knowledge-card-link svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   15. Final Invitation
   ========================================================================== */
.invitation-section {
  text-align: center;
  padding: var(--space-xl) 0;
  background: 
    linear-gradient(135deg, var(--color-forest), var(--color-forest-soft));
  color: var(--color-ivory);
}

.invitation-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invitation-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--color-ivory);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.invitation-desc {
  font-size: 1.15rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */
.site-footer {
  background-color: #04120e;
  color: rgba(var(--color-ivory-rgb), 0.82);
  padding: 5rem 0 3rem;
  border-top: 1px solid rgba(var(--color-gold-rgb), 0.15);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
  margin-bottom: 4rem;
}

.footer-logo {
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.footer-brand-copy {
  max-width: 340px;
  margin-top: 1rem;
  color: rgba(var(--color-ivory-rgb), 0.86);
  font-size: 1rem;
  line-height: 1.75;
}

.footer-col-title {
  color: var(--color-ivory);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-link {
  color: rgba(var(--color-ivory-rgb), 0.88);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--color-gold);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(var(--color-ivory-rgb), 0.82);
}

.footer-contact-icon {
  color: var(--color-gold);
  flex-shrink: 0;
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  margin-top: 4px;
}

.footer-contact-label {
  color: var(--color-ivory);
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
}

.footer-phone-link {
  color: #f3c95b;
  font-weight: 800;
}

.footer-phone-link:hover {
  color: var(--color-ivory);
}

.footer-bottom {
  border-top: 1px solid rgba(var(--color-ivory-rgb), 0.18);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(var(--color-ivory-rgb), 0.7);
}

/* ==========================================================================
   17. Animations & Scroll Effects (Fallback Support)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Standard Scroll-driven animations where baseline supported */
@supports (animation-timeline: view()) {
  .scroll-fade {
    animation: fade-in linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
  
  @keyframes fade-in {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ==========================================================================
   17b. Inner Pages (page.php, 404.php)
   ========================================================================== */
.page-wrapper {
  padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-xl);
  min-height: 60vh;
}

.page-wrapper .entry-title {
  margin-bottom: var(--space-md);
}

.page-wrapper .entry-content {
  max-width: 760px;
}

.page-wrapper .entry-content h2,
.page-wrapper .entry-content h3 {
  margin-top: var(--space-md);
}

.page-wrapper .entry-content ul,
.page-wrapper .entry-content ol {
  margin: 0 0 var(--space-sm) 1.5rem;
}

.error-404 {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-404 .entry-content {
  max-width: 560px;
}

.error-404 .hero-actions {
  justify-content: center;
  margin-top: var(--space-md);
}

/* ==========================================================================
   18. Responsive Media Queries
   ========================================================================== */

/* The full nav (6 links + CTA) needs ~1100px to sit on one line; below that,
   switch to the drawer instead of letting links wrap to two rows. */
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }
  
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .why-atree-grid {
    grid-template-columns: 1fr;
  }
  
  .assessment-layout {
    grid-template-columns: 1fr;
  }
  
  .vision-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-logo-col {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .process-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-left: 20px;
  }
  
  .process-separator {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-logo-col {
    grid-column: span 1;
  }
  
  .assessment-panel {
    padding: 2rem;
  }
  
  .team-modal-content {
    padding: 2rem;
  }
}

/* ==========================================================================
   19. Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .scroll-fade {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .hero-logo-large {
    animation: none;
  }

  .site-header,
  .mobile-nav-overlay,
  .team-modal,
  .team-modal-content {
    transition: none;
  }
}
