/* =====================================================
   GEM STATE AUTOMATE — "SAWTOOTH" THEME
   Idaho's rugged peaks meet digital precision.
   Named for the Sawtooth Range.
   ===================================================== */

/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
  /* ── Color: Basalt & River ── */
  --basalt-950: #080d1a;
  --basalt-900: #0f1729;
  --basalt-800: #1a2542;
  --basalt-700: #263556;
  --basalt-600: #334b6e;
  --basalt-500: #475f87;

  --river-600: #1d4ed8;
  --river-500: #2563eb;
  --river-400: #3b82f6;
  --river-300: #60a5fa;

  --sandstone-700: #92400e;
  --sandstone-600: #b45309;
  --sandstone-500: #c2722a;
  --sandstone-400: #d4943c;
  --sandstone-300: #fbbf24;

  --alpine-50: #f8fafc;
  --alpine-100: #f1f5f9;
  --alpine-200: #e2e8f0;
  --alpine-300: #cbd5e1;

  --sage-500: #64748b;
  --sage-400: #94a3b8;
  --sage-300: #cbd5e1;

  --success: #16a34a;
  --error: #dc2626;

  /* ── Semantic mapping ── */
  --color-bg: var(--alpine-50);
  --color-bg-alt: var(--alpine-100);
  --color-surface: #ffffff;
  --color-text: var(--basalt-900);
  --color-text-secondary: var(--sage-500);
  --color-text-muted: var(--sage-400);
  --color-border: var(--alpine-200);
  --color-border-subtle: var(--alpine-100);

  --color-primary: var(--river-500);
  --color-primary-hover: var(--river-600);
  --color-accent: var(--sandstone-500);
  --color-accent-hover: var(--sandstone-600);
  --color-dark: var(--basalt-900);
  --color-darker: var(--basalt-950);

  /* ── Typography ── */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* ── Spacing ── */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* ── Radius ── */
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow-blue: 0 0 30px -5px rgba(37, 99, 235, 0.35);
  --shadow-glow-sand: 0 0 30px -5px rgba(194, 114, 42, 0.35);

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
  color: var(--color-text);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: var(--sp-4); }

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 700;
}

/* =====================================================
   UTILITIES
   ===================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   TOPOGRAPHIC TEXTURE (reusable SVG background)
   ===================================================== */
.topo-texture {
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23e2e8f0' stroke-width='0.8'%3E%3Cellipse cx='200' cy='200' rx='160' ry='80'/%3E%3Cellipse cx='200' cy='200' rx='130' ry='65'/%3E%3Cellipse cx='200' cy='200' rx='100' ry='50'/%3E%3Cellipse cx='200' cy='200' rx='70' ry='35'/%3E%3Cellipse cx='200' cy='200' rx='40' ry='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
}

.topo-texture-dark {
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a2542' stroke-width='0.8'%3E%3Cellipse cx='200' cy='200' rx='160' ry='80'/%3E%3Cellipse cx='200' cy='200' rx='130' ry='65'/%3E%3Cellipse cx='200' cy='200' rx='100' ry='50'/%3E%3Cellipse cx='200' cy='200' rx='70' ry='35'/%3E%3Cellipse cx='200' cy='200' rx='40' ry='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
}

/* Mountain ridge divider */
.ridge-divider {
  position: relative;
  height: 60px;
  overflow: hidden;
}
.ridge-divider::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--color-bg);
  clip-path: polygon(0 100%, 5% 40%, 12% 60%, 20% 20%, 28% 50%, 35% 10%, 42% 45%, 50% 0%, 58% 35%, 65% 15%, 72% 50%, 80% 25%, 88% 55%, 95% 30%, 100% 60%, 100% 100%);
}

/* =====================================================
   ICONS
   ===================================================== */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  flex-shrink: 0;
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4);
  background: var(--river-500);
  color: white;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary: River blue */
.btn-primary {
  background: var(--river-500);
  color: white;
  border-color: var(--river-500);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--river-600);
  border-color: var(--river-600);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

/* Secondary: Sandstone copper */
.btn-secondary {
  background: var(--sandstone-500);
  color: white;
  border-color: var(--sandstone-500);
  box-shadow: var(--shadow);
}
.btn-secondary:hover {
  background: var(--sandstone-600);
  border-color: var(--sandstone-600);
  box-shadow: var(--shadow-md), var(--shadow-glow-sand);
}

/* Outline */
.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* Large */
.btn-lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--river-300);
  transform: translateY(-4px);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navigation {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
}

/* Top Bar */
.top-bar {
  background: var(--basalt-900);
  color: var(--alpine-200);
  padding: var(--sp-2) 0;
  font-size: var(--text-sm);
}

.navigation .top-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.navigation .top-bar .contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: nowrap;
}

.navigation .top-bar .contact-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  line-height: 1;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity var(--duration-fast);
}

.navigation .top-bar .contact-item:hover {
  opacity: 1;
}

.navigation .top-bar .contact-item + .contact-item {
  position: relative;
  padding-left: var(--sp-8);
}

.navigation .top-bar .contact-item + .contact-item::before {
  content: '';
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  width: 3px;
  height: 3px;
  background: var(--sandstone-400);
  border-radius: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .navigation .top-bar .contact-info {
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-4);
  }
  .navigation .top-bar .contact-item + .contact-item::before { display: none; }
  .navigation .top-bar .contact-item + .contact-item { padding-left: 0; }
}

/* Main Nav */
.main-nav {
  padding: var(--sp-4) 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.logo img {
  height: auto;
  width: auto;
  max-height: 44px;
  max-width: 220px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo img {
    max-height: 48px;
    max-width: 260px;
  }
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: var(--sp-1);
}

@media (min-width: 900px) {
  .desktop-nav { display: flex; }
}

.nav-link {
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  transition: all var(--duration-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--sp-3);
  right: var(--sp-3);
  height: 2px;
  background: var(--river-500);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.nav-link:hover,
.nav-link.active {
  color: var(--river-500);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 280px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) var(--ease-out);
  z-index: 50;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}

.dropdown-item:hover {
  background: var(--alpine-100);
  color: var(--river-500);
}

.item-title {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.item-desc {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--alpine-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text);
  transition: all var(--duration-fast);
}

.mobile-menu-btn:hover {
  background: var(--basalt-900);
  color: white;
  border-color: var(--basalt-900);
}

@media (min-width: 900px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  margin-top: var(--sp-4);
  padding: var(--sp-6);
  border-top: 1px solid var(--color-border);
  flex-direction: column;
  gap: var(--sp-2);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-lg);
}

.mobile-nav.active,
.mobile-nav.open { display: flex; }

.mobile-nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: var(--sp-3);
  border-radius: var(--radius);
  transition: all var(--duration-fast);
}

.mobile-nav-link:hover {
  background: var(--alpine-100);
  color: var(--river-500);
}

.mobile-nav-link.sub {
  padding-left: var(--sp-6);
  font-weight: 400;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.mobile-services-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--river-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--sp-4) var(--sp-3) var(--sp-1);
}

.mobile-cta {
  margin-top: var(--sp-4);
  width: 100%;
  text-align: center;
}

/* =====================================================
   HERO SECTION — Mountain Panorama
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--basalt-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8, 13, 26, 0.95) 0%,
    rgba(15, 23, 41, 0.88) 35%,
    rgba(26, 37, 66, 0.75) 100%
  );
}

/* Diagonal mountain accent */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--color-bg);
  clip-path: polygon(0 100%, 0 40%, 8% 65%, 15% 30%, 22% 55%, 30% 15%, 38% 50%, 45% 5%, 52% 40%, 60% 20%, 68% 55%, 75% 25%, 82% 60%, 90% 35%, 100% 70%, 100% 100%);
  z-index: 5;
}

/* Subtle topo lines in hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='600' height='600' viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23263556' stroke-width='0.5' opacity='0.3'%3E%3Cellipse cx='300' cy='300' rx='250' ry='120'/%3E%3Cellipse cx='300' cy='300' rx='200' ry='95'/%3E%3Cellipse cx='300' cy='300' rx='150' ry='70'/%3E%3Cellipse cx='300' cy='300' rx='100' ry='48'/%3E%3Cellipse cx='300' cy='300' rx='55' ry='26'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 600px;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: var(--sp-20);
  padding-bottom: calc(var(--sp-20) + 80px);
}

.hero-inner {
  max-width: 780px;
}

/* Hero Title */
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 400;
  color: white;
  margin-bottom: var(--sp-6);
  line-height: 1.08;
}

@media (min-width: 768px) {
  .hero-title { font-size: var(--text-6xl); }
}

@media (min-width: 1024px) {
  .hero-title { font-size: var(--text-7xl); }
}

.title-accent {
  display: block;
  color: var(--sandstone-400);
}

.title-sub {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-top: var(--sp-4);
  color: var(--sage-400);
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .title-sub { font-size: var(--text-2xl); }
}

@media (min-width: 1024px) {
  .title-sub { font-size: var(--text-3xl); }
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--sage-300);
  margin-bottom: var(--sp-10);
  max-width: 580px;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: var(--text-xl); }
}

/* Hero Badge */
.hero-badge {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--river-300);
  margin-bottom: var(--sp-6);
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
}

.hero-cta-primary {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.hero-ctas .btn-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}
.hero-ctas .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

/* Hero Trust Indicators */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-6);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--sage-400);
  font-size: var(--text-sm);
  font-weight: 500;
}

.hero-trust-item .icon {
  width: 1rem;
  height: 1rem;
  color: var(--sandstone-400);
}

/* =====================================================
   VALUE PROPS SECTION
   ===================================================== */
.value-props {
  padding: var(--sp-20) 0;
  background: var(--color-bg);
}

.value-props-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 640px) {
  .value-props-grid { grid-template-columns: repeat(3, 1fr); }
}

.value-prop-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
}

.value-prop-icon {
  width: 64px;
  height: 64px;
  background: rgba(194, 114, 42, 0.08);
  border: 1px solid rgba(194, 114, 42, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
  color: var(--sandstone-500);
  transition: all var(--duration-normal) var(--ease-out);
}

.value-prop-card:hover .value-prop-icon {
  background: var(--sandstone-500);
  color: white;
  border-color: var(--sandstone-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-sand);
}

.value-prop-icon svg {
  width: 28px;
  height: 28px;
}

.value-prop-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
  color: var(--color-text);
}

.value-prop-desc {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin: 0;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}

.section-header .badge {
  margin-bottom: var(--sp-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  margin-bottom: var(--sp-4);
  line-height: 1.15;
}

@media (min-width: 768px) {
  .section-title { font-size: var(--text-4xl); }
}

@media (min-width: 1024px) {
  .section-title { font-size: var(--text-5xl); }
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.services {
  padding: var(--sp-24) 0;
  background: var(--color-bg);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-16);
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
  }
}

/* Service Card */
.service-card {
  position: relative;
  padding: var(--sp-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Top accent line */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--river-500), var(--sandstone-500));
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--river-300);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card.popular {
  border-color: var(--river-400);
}
.service-card.popular::before {
  opacity: 1;
}

.service-badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  background: var(--sandstone-500);
  color: white;
  padding: 2px var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--alpine-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
  color: var(--river-500);
  transition: all var(--duration-normal);
}

.service-card:hover .service-icon {
  background: var(--river-500);
  color: white;
  border-color: var(--river-500);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
  color: var(--color-text);
}

.service-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-6);
  line-height: 1.65;
  font-size: var(--text-sm);
}

.service-features {
  list-style: none;
  margin-bottom: var(--sp-8);
  flex-grow: 1;
}

.service-card > .btn {
  margin-top: auto;
  align-self: flex-start;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.service-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' stroke='%232563eb' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M5 13l4 4L19 7'/%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Services CTA */
.services-cta {
  text-align: center;
  padding: var(--sp-12);
  background: var(--basalt-900);
  border-radius: var(--radius-2xl);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Topo texture inside CTA */
.services-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a2542' stroke-width='0.6'%3E%3Cellipse cx='300' cy='100' rx='180' ry='90'/%3E%3Cellipse cx='300' cy='100' rx='140' ry='70'/%3E%3Cellipse cx='300' cy='100' rx='100' ry='50'/%3E%3Cellipse cx='300' cy='100' rx='60' ry='30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .cta-title { font-size: var(--text-3xl); }
}

.cta-subtitle {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-8);
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

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

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials {
  padding: var(--sp-24) 0;
  background: var(--color-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-16);
}

@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  padding: var(--sp-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.rating {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-4);
}

.star {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--sandstone-400);
  fill: var(--sandstone-400);
}

.testimonial-quote {
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-6);
  line-height: 1.75;
  position: relative;
  padding-left: var(--sp-5);
  flex-grow: 1;
}

.testimonial-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--river-500), var(--sandstone-500));
  border-radius: 2px;
}

.testimonial-result {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(22, 163, 74, 0.08);
  color: var(--success);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius);
  margin-bottom: var(--sp-4);
  border: 1px solid rgba(22, 163, 74, 0.15);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--river-500), var(--sandstone-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: var(--text-base);
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  color: var(--color-text);
  font-size: var(--text-sm);
}

.author-business {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  padding: var(--sp-12);
  background: var(--basalt-900);
  border-radius: var(--radius-2xl);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .stats-section { grid-template-columns: repeat(4, 1fr); }
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-2);
}

@media (min-width: 768px) {
  .stat-number { font-size: var(--text-4xl); }
}

.stat-label {
  color: var(--sage-400);
  font-size: var(--text-sm);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact {
  padding: var(--sp-24) 0;
  background: var(--alpine-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }
}

.contact .contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.contact-header {
  margin-bottom: var(--sp-6);
}

.contact-header .badge {
  margin-bottom: var(--sp-4);
}

.contact-header .section-title {
  text-align: left;
  margin-bottom: var(--sp-4);
}

.contact-header .section-subtitle {
  text-align: left;
  margin: 0;
  max-width: none;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.detail-icon {
  width: 52px;
  height: 52px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--river-500);
  flex-shrink: 0;
  transition: all var(--duration-normal);
}

.contact-detail:hover .detail-icon {
  background: var(--river-500);
  color: white;
  border-color: var(--river-500);
}

.detail-icon svg {
  width: 22px;
  height: 22px;
}

.detail-content h3 {
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 2px;
  font-size: var(--text-base);
}

.detail-content p {
  color: var(--color-text);
  margin-bottom: 2px;
  font-weight: 500;
}

.detail-content span {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Trust Card */
.trust-card {
  padding: var(--sp-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.trust-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.trust-header .icon {
  color: var(--river-500);
  width: 22px;
  height: 22px;
}

.trust-header h3 {
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0;
  font-size: var(--text-base);
}

.trust-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.7;
}

/* Contact Form Container */
.contact-form-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form-header {
  padding: var(--sp-8);
  background: var(--basalt-900);
  color: white;
}

.form-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-2);
  color: white;
}

.form-header p {
  color: var(--sage-400);
  margin: 0;
  font-size: var(--text-sm);
}

.contact-form {
  padding: var(--sp-8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

.form-row .form-group { margin-bottom: 0; }

.form-row + .form-row,
.form-row + .form-group,
.form-group + .form-row { margin-top: var(--sp-5); }

.form-group { margin-bottom: var(--sp-5); }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--color-text);
  font-size: var(--text-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: all var(--duration-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--river-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group { margin-bottom: var(--sp-6); }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--river-500);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-text { color: var(--color-text-secondary); }

.submit-btn {
  width: 100%;
  position: relative;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading { display: none; }

.submit-btn.loading .btn-text { opacity: 0; }

.submit-btn.loading .btn-loading {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Success Message */
.success-message {
  text-align: center;
  padding: var(--sp-12);
}

.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(22, 163, 74, 0.1);
  border: 2px solid rgba(22, 163, 74, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
  color: var(--success);
}

.success-icon svg {
  width: 36px;
  height: 36px;
}

.success-message h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-4);
  color: var(--color-text);
}

.success-message p {
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-8);
  line-height: 1.7;
}

/* Field error */
.field-error {
  color: var(--error);
  font-size: var(--text-xs);
  margin-top: var(--sp-1);
  font-weight: 500;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--basalt-950);
  color: var(--alpine-200);
  position: relative;
  margin-top: 60px;
}

/* Mountain ridge top edge */
.footer::before {
  content: '';
  position: absolute;
  top: -59px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--basalt-950);
  clip-path: polygon(0 100%, 5% 40%, 12% 60%, 20% 20%, 28% 50%, 35% 10%, 42% 45%, 50% 0%, 58% 35%, 65% 15%, 72% 50%, 80% 25%, 88% 55%, 95% 30%, 100% 60%, 100% 100%);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  padding: var(--sp-16) 0;
}

@media (min-width: 640px) {
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-content { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer-logo { margin-bottom: var(--sp-4); }

.footer-logo img {
  height: auto;
  width: auto;
  max-height: 40px;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-description {
  color: var(--sage-400);
  line-height: 1.7;
  font-size: var(--text-sm);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--sage-400);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-contact .contact-item .icon {
  width: 16px;
  height: 16px;
  color: var(--sandstone-400);
}

.footer-contact a.contact-item:hover { color: white; }

.footer-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--sp-4);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links,
.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a {
  color: var(--sage-400);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all var(--duration-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--sandstone-400);
  transform: translateX(3px);
}

.footer-list li {
  color: var(--sage-400);
  font-size: var(--text-sm);
}

.footer-cta-text {
  color: var(--sage-400);
  margin-bottom: var(--sp-4);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.footer-cta-btn { margin-bottom: var(--sp-4); }

.footer-guarantee {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--sage-500);
}

.footer-guarantee .icon { color: var(--sandstone-400); }

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--sp-6) 0;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.copyright {
  font-size: var(--text-sm);
  color: var(--sage-500);
}

.footer-legal {
  display: flex;
  gap: var(--sp-6);
  font-size: var(--text-sm);
}

.footer-legal a {
  color: var(--sage-500);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-legal a:hover { color: var(--sandstone-400); }

/* =====================================================
   CONTENT PAGE STYLES
   ===================================================== */

/* Page Hero */
.page-hero {
  background: var(--basalt-900);
  padding: var(--sp-20) 0 var(--sp-16);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Topo texture */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='500' height='500' viewBox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a2542' stroke-width='0.5'%3E%3Cellipse cx='400' cy='150' rx='200' ry='100'/%3E%3Cellipse cx='400' cy='150' rx='160' ry='80'/%3E%3Cellipse cx='400' cy='150' rx='120' ry='60'/%3E%3Cellipse cx='400' cy='150' rx='80' ry='40'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 500px 500px;
  pointer-events: none;
}

.page-hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.page-hero .badge {
  margin-bottom: var(--sp-6);
  background: rgba(37, 99, 235, 0.2);
  color: var(--river-300);
}

.page-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  color: white;
}

@media (min-width: 768px) {
  .page-title { font-size: var(--text-5xl); }
}

.page-subtitle {
  font-size: var(--text-lg);
  opacity: 0.8;
  line-height: 1.75;
  margin: 0;
  color: var(--sage-300);
}

/* Content Layout */
.page-content {
  padding: var(--sp-16) 0;
  background-color: var(--color-bg);
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}

@media (min-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr 320px;
    gap: var(--sp-16);
  }
}

/* Prose Styles */
.prose {
  max-width: 100%;
  color: var(--color-text);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.prose > * + * { margin-top: 1.5em; }

.prose h1 {
  font-size: var(--text-4xl);
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 0.75em;
}

.prose h2 {
  font-size: var(--text-2xl);
  line-height: 1.2;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--alpine-200);
}

.prose h3 {
  font-size: var(--text-xl);
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.prose h4 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p { margin-bottom: 1.5em; }

.prose a {
  color: var(--river-500);
  text-decoration: underline;
  text-decoration-color: var(--river-300);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: all var(--duration-fast);
}

.prose a:hover {
  color: var(--river-600);
  text-decoration-color: var(--river-500);
}

.prose strong {
  font-weight: 700;
  color: var(--color-text);
}

.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.prose li {
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}

.prose li::marker {
  color: var(--river-500);
  font-weight: 700;
}

.prose blockquote {
  border-left: 3px solid var(--sandstone-500);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-8) 0;
  background: var(--alpine-100);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--sp-12) 0;
}

.prose code {
  font-family: var(--font-mono);
  background-color: var(--alpine-100);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

.prose pre {
  background-color: var(--basalt-900);
  color: var(--alpine-200);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--sp-6) 0;
  font-family: var(--font-mono);
}

.prose pre code {
  background: none;
  padding: 0;
  font-size: 0.9em;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  margin: var(--sp-8) 0;
  box-shadow: var(--shadow-lg);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-8) 0;
}

.prose th,
.prose td {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--color-border);
  text-align: left;
}

.prose th {
  background-color: var(--alpine-100);
  font-weight: 700;
}

.prose tr:nth-child(even) {
  background-color: var(--alpine-50);
}

/* FAQ Styling */
.prose h3:has(+ p) {
  color: var(--river-600);
}

/* Sidebar Styles */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

@media (min-width: 1024px) {
  .content-sidebar {
    position: sticky;
    top: calc(var(--sp-8) + 100px);
    align-self: start;
  }
}

.sidebar-cta {
  background: var(--basalt-900);
  color: white;
  padding: var(--sp-8);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

/* Topo texture */
.sidebar-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a2542' stroke-width='0.5'%3E%3Cellipse cx='250' cy='50' rx='120' ry='60'/%3E%3Cellipse cx='250' cy='50' rx='90' ry='45'/%3E%3Cellipse cx='250' cy='50' rx='60' ry='30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 300px 300px;
  pointer-events: none;
}

.sidebar-cta h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
  color: white;
  position: relative;
  z-index: 1;
}

.sidebar-cta p {
  margin-bottom: var(--sp-6);
  opacity: 0.8;
  font-size: var(--text-sm);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  background: white;
  color: var(--basalt-900);
  border-color: white;
  position: relative;
  z-index: 1;
}

.sidebar-cta .btn:hover {
  background: var(--alpine-100);
  box-shadow: var(--shadow-lg);
}

.sidebar-contact,
.sidebar-related {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--sp-6);
  border-radius: var(--radius-xl);
}

.sidebar-contact h4,
.sidebar-related h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.sidebar-contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.sidebar-contact-item:last-child { margin-bottom: 0; }

.sidebar-contact-item .icon {
  width: 18px;
  height: 18px;
  color: var(--river-500);
  flex-shrink: 0;
}

.related-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-links li { margin-bottom: var(--sp-1); }

.related-links a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  font-size: var(--text-sm);
  border: 1px solid transparent;
}

.related-links a:hover {
  background: var(--alpine-100);
  color: var(--river-500);
  border-color: var(--color-border);
}

/* Related Services Section */
.related-services {
  padding: var(--sp-16) 0;
  background: var(--alpine-100);
}

.related-services .section-header {
  margin-bottom: var(--sp-12);
}

/* Bottom CTA */
.page-bottom-cta {
  padding: var(--sp-20) 0;
  background: var(--basalt-900);
  position: relative;
  overflow: hidden;
}

.page-bottom-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='600' height='300' viewBox='0 0 600 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a2542' stroke-width='0.5'%3E%3Cellipse cx='300' cy='150' rx='250' ry='120'/%3E%3Cellipse cx='300' cy='150' rx='200' ry='95'/%3E%3Cellipse cx='300' cy='150' rx='150' ry='70'/%3E%3Cellipse cx='300' cy='150' rx='100' ry='48'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 300px;
  pointer-events: none;
}

.bottom-cta-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  color: white;
  position: relative;
  z-index: 1;
}

.bottom-cta-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-4);
  color: white;
}

@media (min-width: 768px) {
  .bottom-cta-content h2 { font-size: var(--text-4xl); }
}

.bottom-cta-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-8);
  opacity: 0.8;
  line-height: 1.75;
}

/* Table of Contents */
.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--sp-6);
  border-radius: var(--radius-xl);
  margin-bottom: var(--sp-8);
}

.toc h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li { margin-bottom: var(--sp-2); }

.toc a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration-fast);
  display: block;
  padding: var(--sp-1) 0;
}

.toc a:hover { color: var(--river-500); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.fade-in {
  animation: fadeIn 0.4s var(--ease-out) forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid var(--color-border);
  border-top-color: var(--river-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

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

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

*:focus-visible {
  outline: 2px solid var(--river-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--sp-3) var(--sp-6);
  z-index: 1000;
  transition: top var(--duration-fast);
}

.skip-link:focus { top: 0; }

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
  .navigation,
  .footer,
  .sidebar-cta,
  .sidebar-contact,
  .btn { display: none !important; }

  .hero {
    min-height: auto;
    padding: var(--sp-8) 0;
    background: none !important;
  }

  .hero-bg,
  .hero-overlay { display: none; }

  .hero-title,
  .hero-subtitle { color: var(--color-text) !important; }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}

/* =====================================================
   RESPONSIVE UTILITIES
   ===================================================== */
@media (max-width: 640px) {
  .container { padding: 0 var(--sp-4); }

  .hero-title { font-size: var(--text-3xl); }
  .hero-subtitle { font-size: var(--text-base); }
  .section-title { font-size: var(--text-2xl); }
  .section-subtitle { font-size: var(--text-base); }

  .contact .contact-info {
    margin-bottom: var(--sp-8);
  }
}
