/* ============================================================
   Guangzhou Xin Ke Network Technology Co., Ltd.
   Botanical Green Design System
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #F0FDF4;
  --color-surface: #FFFFFF;
  --color-alt: #DCFCE7;
  --color-text: #14532D;
  --color-text-secondary: #166534;
  --color-text-muted: #6B8B6B;
  --color-green: #16A34A;
  --color-green-light: #22C55E;
  --color-emerald: #059669;
  --color-earth: #78350F;
  --color-dark-bg: #14532D;
  --color-dark-text: #F0FDF4;
  --color-dark-secondary: #BBF7D0;
  --color-border: #BBF7D0;

  --font-heading: 'Cabin', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 1px 3px rgba(20, 83, 45, 0.06), 0 1px 2px rgba(20, 83, 45, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 83, 45, 0.08), 0 2px 4px rgba(20, 83, 45, 0.04);
  --shadow-lg: 0 10px 30px rgba(20, 83, 45, 0.10), 0 4px 8px rgba(20, 83, 45, 0.05);
  --shadow-green: 0 4px 14px rgba(22, 163, 74, 0.15);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  --container-max: 1200px;
  --header-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  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: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-green);
  background-color: var(--color-alt);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  background: var(--color-green);
  color: #fff;
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  top: 0;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-green);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-green);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.hamburger span:nth-child(2) {
  margin: 6px 0;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  padding: calc(var(--header-height) + 3rem) 0 5rem;
  background: var(--color-bg);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 3rem;
  min-height: 520px;
}

.hero-visual {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  flex: 0 0 60%;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.hero-content .hero-tagline {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-dark-text);
  border-color: var(--color-dark-secondary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-dark-secondary);
  color: var(--color-dark-bg);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-dark-text);
  border-color: var(--color-dark-text);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: var(--color-dark-text);
  color: var(--color-dark-bg);
}

/* Botanical SVG shape */
.botanical-shape {
  width: 100%;
  max-width: 340px;
  height: auto;
}

/* ============================================================
   2. SERVICES — Seedling Cards
   ============================================================ */
.services {
  background: var(--color-surface);
}

.services-grid {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-green);
  border-top: 4px solid var(--color-green);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  width: 100%;
  max-width: 340px;
}

.service-card:nth-child(1) {
  border-top-color: var(--color-green-light);
  min-height: 340px;
}

.service-card:nth-child(2) {
  border-top-color: var(--color-green);
  min-height: 380px;
}

.service-card:nth-child(3) {
  border-top-color: var(--color-emerald);
  min-height: 420px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(22, 163, 74, 0.2);
}

.service-card .leaf-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--color-green);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.service-card p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.growth-indicator {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
}

.growth-indicator .bar {
  width: 8px;
  border-radius: 4px;
  background: var(--color-green);
  transition: height var(--transition-slow);
}

.growth-indicator .bar:nth-child(1) { height: 40%; background: var(--color-green-light); }
.growth-indicator .bar:nth-child(2) { height: 60%; background: var(--color-green-light); }
.growth-indicator .bar:nth-child(3) { height: 80%; background: var(--color-green); }
.growth-indicator .bar:nth-child(4) { height: 100%; background: var(--color-emerald); }

/* ============================================================
   3. ABOUT
   ============================================================ */
.about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-quote {
  background: var(--color-alt);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  border-left: 4px solid var(--color-earth);
}

.about-quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-earth);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-quote cite {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
  font-style: normal;
}

.about-quote .leaf-decor {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 32px;
  height: 32px;
  color: var(--color-green);
}

.about-text {
  columns: 2;
  column-gap: 2rem;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.about-text p {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.vine-divider {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 2rem auto 0;
  color: var(--color-green);
  opacity: 0.6;
}

/* ============================================================
   4. METRICS — Forest Rings
   ============================================================ */
.metrics {
  background: var(--color-surface);
}

.metrics-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.forest-ring {
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forest-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--color-surface);
  z-index: 1;
}

.forest-ring .ring-number {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
}

.forest-ring .ring-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* Ring sizes */
.ring-sm {
  width: 120px;
  height: 120px;
  background: conic-gradient(#22C55E 0deg 324deg, #DCFCE7 324deg 360deg);
}
.ring-sm .ring-number { font-size: 1.75rem; }

.ring-md {
  width: 150px;
  height: 150px;
  background: conic-gradient(#16A34A 0deg 342deg, #DCFCE7 342deg 360deg);
}
.ring-md .ring-number { font-size: 2.25rem; }

.ring-lg {
  width: 170px;
  height: 170px;
  background: conic-gradient(#059669 0deg 352deg, #DCFCE7 352deg 360deg);
}
.ring-lg .ring-number { font-size: 2.5rem; }

.ring-xl {
  width: 190px;
  height: 190px;
  background: conic-gradient(#14532D 0deg 356deg, #DCFCE7 356deg 360deg);
}
.ring-xl .ring-number { font-size: 2.75rem; color: #14532D; }

/* ============================================================
   5. PROCESS — Growing Path
   ============================================================ */
.process {
  background: var(--color-bg);
}

.process-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.process-path::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to top, var(--color-green-light), var(--color-emerald), var(--color-text));
  border-radius: 3px;
  transform: translateX(-50%);
}

.process-step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  position: relative;
  padding: 1.5rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-step:nth-child(1) { width: 65%; margin-right: auto; }
.process-step:nth-child(2) { width: 75%; margin-right: auto; }
.process-step:nth-child(3) { width: 85%; margin-right: auto; }
.process-step:nth-child(4) { width: 100%; }

/* Alternate sides */
.process-step:nth-child(odd) {
  flex-direction: row;
  margin-left: 0;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
  margin-left: auto;
  margin-right: 0;
}

.process-step .step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  z-index: 2;
  box-shadow: var(--shadow-green);
}

.process-step .step-content {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.process-step .step-content h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-bottom: 0.375rem;
  font-size: 1.0625rem;
}

.process-step .step-content p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================================
   6. EXPERTISE — Fern Tags
   ============================================================ */
.expertise {
  background: var(--color-surface);
}

.fern-cluster {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
  min-height: 280px;
}

/* Fern tags positioned in a radiating pattern via transform */
.fern-tag {
  display: inline-block;
  padding: 10px 22px;
  background: var(--color-alt);
  color: var(--color-text);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.fern-tag:hover,
.fern-tag:focus-visible {
  background: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
  transform: scale(1.08);
  box-shadow: var(--shadow-green);
}

/* Radiating positions — using nth-child transforms */
.fern-tag:nth-child(1)  { transform: translate(0, -60px); }
.fern-tag:nth-child(2)  { transform: translate(70px, -45px); }
.fern-tag:nth-child(3)  { transform: translate(115px, -15px); }
.fern-tag:nth-child(4)  { transform: translate(130px, 25px); }
.fern-tag:nth-child(5)  { transform: translate(115px, 65px); }
.fern-tag:nth-child(6)  { transform: translate(70px, 95px); }
.fern-tag:nth-child(7)  { transform: translate(0, 110px); }
.fern-tag:nth-child(8)  { transform: translate(-70px, 95px); }
.fern-tag:nth-child(9)  { transform: translate(-115px, 65px); }
.fern-tag:nth-child(10) { transform: translate(-130px, 25px); }
.fern-tag:nth-child(11) { transform: translate(-115px, -15px); }
.fern-tag:nth-child(12) { transform: translate(-70px, -45px); }

/* ============================================================
   7. CTA
   ============================================================ */
.cta {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background leaf pattern */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F0FDF4' opacity='0.05'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: var(--color-dark-text);
  margin-bottom: 1rem;
}

.cta p {
  color: var(--color-dark-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.site-footer {
  background: #0F3B20;
  color: var(--color-dark-secondary);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--color-dark-secondary);
  font-size: 0.9375rem;
  margin-top: 0.75rem;
}

.footer-brand .logo {
  color: var(--color-dark-text);
}

.footer-col h4 {
  color: var(--color-dark-text);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  color: var(--color-dark-secondary);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--color-green-light);
}

.footer-bottom {
  border-top: 1px solid rgba(187, 247, 208, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-dark-secondary);
}

/* ============================================================
   LEGAL PAGES (privacy.html / terms.html)
   ============================================================ */
.legal-page {
  padding: calc(var(--header-height) + 3rem) 0 5rem;
  background: var(--color-bg);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.legal-sidebar h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.legal-sidebar nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-sidebar nav a {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.legal-sidebar nav a:hover,
.legal-sidebar nav a:focus-visible,
.legal-sidebar nav a.active {
  color: var(--color-green);
  background: var(--color-alt);
  border-left-color: var(--color-green);
}

.legal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-alt);
}

.legal-content h2:first-of-type {
  margin-top: 1.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content strong {
  color: var(--color-text);
}

/* ============================================================
   SCROLL FADE-IN ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }

  .hero-visual {
    flex: none;
    max-width: 260px;
  }

  .hero-content {
    flex: none;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-text {
    columns: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
    order: -1;
  }

  .legal-sidebar nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.375rem;
  }

  .legal-sidebar nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 4px 8px;
  }

  .legal-sidebar nav a.active {
    border-left: none;
    border-bottom-color: var(--color-green);
  }

  /* Fern tags scale down */
  .fern-tag:nth-child(1)  { transform: translate(0, -35px); }
  .fern-tag:nth-child(2)  { transform: translate(45px, -25px); }
  .fern-tag:nth-child(3)  { transform: translate(70px, -5px); }
  .fern-tag:nth-child(4)  { transform: translate(80px, 20px); }
  .fern-tag:nth-child(5)  { transform: translate(70px, 45px); }
  .fern-tag:nth-child(6)  { transform: translate(45px, 60px); }
  .fern-tag:nth-child(7)  { transform: translate(0, 70px); }
  .fern-tag:nth-child(8)  { transform: translate(-45px, 60px); }
  .fern-tag:nth-child(9)  { transform: translate(-70px, 45px); }
  .fern-tag:nth-child(10) { transform: translate(-80px, 20px); }
  .fern-tag:nth-child(11) { transform: translate(-70px, -5px); }
  .fern-tag:nth-child(12) { transform: translate(-45px, -25px); }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .hamburger {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-surface);
    flex-direction: column;
    padding: calc(var(--header-height) + 1rem) 1.5rem 2rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
    overflow-y: auto;
  }

  .nav-list.active {
    right: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }

  .nav-list a::after {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .services-grid {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    max-width: 100%;
    min-height: auto !important;
  }

  .metrics-grid {
    gap: 1.5rem;
  }

  .process-path::before {
    left: 24px;
  }

  .process-step {
    flex-direction: row !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0;
    gap: 1rem;
  }

  .process-step:nth-child(even) {
    flex-direction: row !important;
  }

  .fern-cluster {
    gap: 0.5rem;
    min-height: auto;
    padding: 2rem 0;
  }

  /* Flatten fern tags for mobile */
  .fern-tag {
    transform: none !important;
    font-size: 0.8125rem;
    padding: 8px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .legal-content h1 {
    font-size: 1.5rem;
  }

  /* Mobile nav overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 83, 45, 0.3);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 2px;
  border-radius: 2px;
}

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

@media (prefers-color-scheme: dark) {
  /* Botanical Green stays light — this is optional override for system dark mode users */
  /* The design intentionally keeps its light, natural palette */
}
