/* ============================================
   EXPERT.NATURALWATERSCAPES.COM
   Global Stylesheet — Brand System
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=JetBrains+Mono:wght@400;500&family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --forest: #1c4220;
  --forest-light: #2a5e30;
  --forest-dark: #122b16;
  --navy: #141b45;
  --navy-light: #1e2a66;
  --earth: #8f5a2a;
  --earth-light: #a87040;
  --cream: #F2E5B3;
  --cream-light: #f8f2dc;
  --cream-dark: #e6d48f;
  --black: #000000;
  --white: #ffffff;

  /* Functional Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #767676;
  --text-inverse: #ffffff;
  --bg-page: #fafaf5;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f5f3eb;
  --bg-accent: var(--cream-light);
  --border-light: #e2ddd0;
  --border-medium: #c8c1ae;
  --link: var(--forest);
  --link-hover: var(--forest-light);
  --focus-ring: var(--earth);

  /* Risk / Status Colors (for TRI and tools) */
  --risk-low: #2a7d3f;
  --risk-moderate: #c49b1a;
  --risk-elevated: #d47520;
  --risk-high: #c43c2e;
  --risk-critical: #8b1a1a;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Open Sans', Tahoma, Geneva, Verdana, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Font Sizes — Fluid Scale */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  --text-lg: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --text-xl: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  --text-2xl: clamp(1.6rem, 1.3rem + 0.8vw, 2rem);
  --text-3xl: clamp(2rem, 1.6rem + 1.2vw, 2.8rem);
  --text-4xl: clamp(2.4rem, 1.8rem + 1.8vw, 3.6rem);
  --text-5xl: clamp(2.8rem, 2rem + 2.4vw, 4.5rem);

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --content-max: 1200px;
  --content-narrow: 800px;
  --content-wide: 1400px;
  --nav-height: 72px;
  --sidebar-width: 280px;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-xl));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--cream);
  color: var(--forest-dark);
}

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

h1 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: 700; }

p {
  margin-bottom: var(--space-md);
}

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

strong {
  font-weight: 600;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--wide {
  max-width: var(--content-wide);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background: var(--bg-surface-alt);
}

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

.section--navy {
  background: var(--navy);
  color: var(--text-inverse);
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--forest);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10000;
  transition: top var(--duration-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__img {
  height: 46px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo__subtitle {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: -2px;
  padding-left: 2px;
}

/* Desktop Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--forest);
  background: var(--bg-surface-alt);
}

.site-nav__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.site-nav__item:hover .site-nav__link svg {
  transform: rotate(180deg);
}

/* Dropdown Menus */
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 100;
}

.site-nav__item:hover .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.site-nav__dropdown-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}

.site-nav__dropdown-link:hover {
  background: var(--bg-surface-alt);
  color: var(--forest);
}

.site-nav__dropdown-link strong {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.site-nav__dropdown-link small {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Nav Search Toggle */
.nav-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
  margin-left: var(--space-sm);
}

.nav-search-toggle:hover {
  background: var(--bg-surface-alt);
  color: var(--forest);
  border-color: var(--border-medium);
}

.nav-search-toggle svg {
  width: 18px;
  height: 18px;
}

/* Shop CTA Button */
.nav-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) var(--space-lg);
  background: var(--forest);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  margin-left: var(--space-sm);
  white-space: nowrap;
}

.nav-shop-btn:hover {
  background: var(--forest-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-shop-btn svg {
  width: 14px;
  height: 14px;
}

/* Mobile 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__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

.hamburger__line + .hamburger__line {
  margin-top: 5px;
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  padding-top: var(--nav-height);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.is-open {
  display: block;
  animation: fadeIn var(--duration-normal) var(--ease-out);
}

.mobile-nav__inner {
  padding: var(--space-xl) var(--space-lg) var(--space-4xl);
}

.mobile-nav__section {
  margin-bottom: var(--space-xl);
}

.mobile-nav__section-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-sm);
}

.mobile-nav__link {
  display: block;
  padding: var(--space-sm) 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
}

.mobile-nav__link--active {
  color: var(--forest);
}

.mobile-nav__link--sub {
  font-size: var(--text-base);
  padding-left: var(--space-md);
  color: var(--text-secondary);
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.search-overlay.is-open {
  display: flex;
  animation: fadeIn var(--duration-fast) var(--ease-out);
}

.search-box {
  width: 90%;
  max-width: 640px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: slideUp var(--duration-normal) var(--ease-spring);
}

.search-box__input-wrap {
  display: flex;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.search-box__input-wrap svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box__input {
  flex: 1;
  border: none;
  outline: none;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-primary);
  background: transparent;
}

.search-box__input::placeholder {
  color: var(--text-muted);
}

.search-box__close {
  background: none;
  border: none;
  padding: var(--space-xs);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.search-box__close:hover {
  color: var(--text-primary);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: var(--space-sm);
}

.search-results:empty {
  display: none;
}

.search-result {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast);
}

.search-result:hover,
.search-result--focused {
  background: var(--bg-surface-alt);
}

.search-result__title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.search-result__breadcrumb {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.search-hint {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.search-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75em;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--forest);
}

.breadcrumbs__sep {
  margin: 0 var(--space-xs);
  opacity: 0.5;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  position: relative;
  padding: var(--space-5xl) 0 var(--space-4xl);
  margin-top: var(--nav-height);
  background: linear-gradient(160deg, var(--forest-dark) 0%, var(--forest) 40%, var(--navy) 100%);
  color: var(--text-inverse);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(242, 229, 179, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(143, 90, 42, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin-bottom: var(--space-lg);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--cream);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--white);
  max-width: 700px;
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: var(--text-xl);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
  line-height: 1.5;
}

/* Page Hero (smaller, for inner pages) */
.page-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  margin-top: var(--nav-height);
  background: linear-gradient(160deg, var(--forest-dark) 0%, var(--forest) 60%, var(--navy) 100%);
  color: var(--text-inverse);
}

.page-hero__content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-lg);
  max-width: 600px;
}

/* ============================================
   CONTENT CARDS
   ============================================ */
.card-grid {
  display: grid;
  gap: var(--space-xl);
}

.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.card__body {
  padding: var(--space-lg);
}

.card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--earth);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--forest);
  margin-top: var(--space-md);
}

.card__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast);
}

.card:hover .card__link svg {
  transform: translateX(3px);
}

/* Tool Card Variant */
.card--tool {
  border-left: 4px solid var(--earth);
}

.card--tool .card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--cream-light);
  border-radius: var(--radius-md);
  color: var(--earth);
  margin-bottom: var(--space-md);
}

.card--tool .card__icon svg {
  width: 24px;
  height: 24px;
}

/* Featured/Highlight Card */
.card--featured {
  border: 2px solid var(--forest);
  position: relative;
}

.card--featured::after {
  content: 'NEW';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--forest);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* ============================================
   PRODUCT CALLOUT (Shop Integration)
   ============================================ */
.product-callout {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-dark);
  margin: var(--space-xl) 0;
}

.product-callout__img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--white);
  padding: var(--space-sm);
}

.product-callout__info {
  flex: 1;
}

.product-callout__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--earth);
  margin-bottom: 2px;
}

.product-callout__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.product-callout__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 4px;
}

.product-callout__link {
  flex-shrink: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--forest);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--forest-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover {
  background: var(--forest);
  color: var(--white);
}

.btn--earth {
  background: var(--earth);
  color: var(--white);
}

.btn--earth:hover {
  background: var(--earth-light);
  color: var(--white);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn--sm {
  padding: 8px 18px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 16px 36px;
  font-size: var(--text-base);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   ARTICLE CONTENT STYLES
   ============================================ */
.article {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.article h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

.article h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.article h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article p {
  margin-bottom: var(--space-lg);
}

.article ul, .article ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.article li {
  margin-bottom: var(--space-sm);
}

.article blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  border-left: 4px solid var(--earth);
  background: var(--bg-surface-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article figure {
  margin: var(--space-2xl) 0;
}

.article figcaption {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-sm);
  text-align: center;
}

/* Quick Answer Box (AEO) */
.quick-answer {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.quick-answer__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--earth);
  margin-bottom: var(--space-sm);
}

.quick-answer p {
  font-size: var(--text-lg);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ============================================
   TOOL PAGES
   ============================================ */
.tool-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.tool-embed {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 500px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--forest-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: var(--cream);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer__brand {
  max-width: 320px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.footer__section-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  font-size: var(--text-sm);
  transition: color var(--duration-fast);
}

.footer__bottom {
  max-width: var(--content-wide);
  margin: var(--space-3xl) auto 0;
  padding: var(--space-lg) var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:hover {
  color: var(--cream);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .site-nav,
  .nav-shop-btn,
  .nav-search-toggle {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .page-hero {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }

  .product-callout {
    flex-direction: column;
    text-align: center;
  }

  .product-callout__link {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .card-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .site-footer,
  .search-overlay,
  .mobile-nav,
  .nav-shop-btn,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .hero, .page-hero {
    background: none !important;
    color: black;
    padding: 1cm 0;
  }

  .article {
    max-width: 100%;
  }
}
