/* ===========================================
   DESIGN TOKENS
   =========================================== */
:root {
  /* Colors */
  --cream: #FAF7F2;
  --cream-warm: #F3EDE4;
  --sand: #E8DFD0;
  --sand-deep: #D4C4A0;
  --bark: #B8A07A;
  --moss: #8B9E6B;
  --sage: #7A9E5F;
  --sage-soft: #A3B88E;
  --forest: #3D6B35;
  --forest-deep: #2D5016;
  --teal: #5A9E9F;
  --teal-soft: #7BBCBD;
  --heartwood: #1E3A0F;
  --clay: #C49A6C;

  /* Text neutral darks, NOT green-tinted */
  --text-rich: #1B1F14;
  --text-body: #36382E;
  --text-muted: #52554A;
  --text-faint: #6E7166;
  --text-on-dark: #F5F2ED;
  --text-on-dark-soft: #DDD8CC;

  /* Backgrounds */
  --bg: #FDFCFA;
  --bg-warm: #FAF7F2;
  --bg-earth: #F3EDE4;
  --bg-dark: #1C2E14;
  --bg-dark-rich: #142409;

  /* Borders */
  --border-whisper: rgba(180, 170, 150, .20);
  --border-soft: rgba(180, 170, 150, .35);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 100px;

  /* Shadows */
  --glow-sm: 0 2px 8px rgba(45, 80, 22, .04), 0 1px 3px rgba(45, 80, 22, .03);
  --glow-md: 0 4px 20px rgba(45, 80, 22, .06), 0 2px 8px rgba(45, 80, 22, .04);
  --glow-lg: 0 8px 40px rgba(45, 80, 22, .08), 0 4px 16px rgba(45, 80, 22, .04);
  --shadow-soft: var(--glow-sm);

  /* Motion */
  --ease: cubic-bezier(.25, .46, .45, .94);
  --t-fast: .25s var(--ease);
  --t-med: .45s var(--ease);

  /* Layout */
  --max-w: 1180px;
  --max-w-narrow: 780px;
  --max-w-tight: 600px;

  /* Header height - used for scroll offsets */
  --header-h: 76px;
	
	/* Spacing */
	--section-y-lg: 8rem;
	--section-y-md: 6rem;
	--section-y-sm: 4.5rem;
	--section-heading-gap: 1.25rem;
	--section-desc-gap: 4rem;
	--content-gap: 2rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
  color-scheme: light;
}

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--teal); }

.nb-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

.nb-icon--spin {
  animation: nb-icon-spin 1s linear infinite;
}

.nb-icon--teal {
  color: var(--teal);
}

@keyframes nb-icon-spin {
  to { transform: rotate(360deg); }
}

/* Global keyboard focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible,
.nav-menu a:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

::selection { background: var(--sage-soft); color: var(--heartwood); }

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-rich);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.8rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.3rem; }

p { margin-bottom: 1.5rem; font-size: 1.05rem; }

.lead {
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-weight: 400;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.12vw, 1.24rem);
  font-weight: 700;
  letter-spacing: .2rem;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  opacity: .65;
}

.text-center .section-eyebrow { justify-content: center; }

.section-desc {
  max-width: 680px;
  margin: 1rem auto var(--section-desc-gap);
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.16rem);
  line-height: 1.8;
}

/* ===========================================
   LAYOUT
   =========================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow { max-width: var(--max-w-narrow); }
.container--tight { max-width: var(--max-w-tight); }
.text-center { text-align: center; }

.section {
  padding: var(--section-y-lg) 0;
  position: relative;
  background: var(--bg);
}

.section--warm  { background: var(--bg-warm); }
.section--earth { background: var(--bg-earth); }
.section--dark  { background: var(--bg-dark); color: var(--text-on-dark); }

.service-hero.section--warm > .container > .section-eyebrow {
  color: var(--forest);
}

.section--dark h2,
.section--dark h3,
.section--dark h4    { color: var(--cream); }
.section--dark p,
.section--dark .lead { color: var(--text-on-dark-soft); }
.section--dark .section-eyebrow        { color: var(--teal-soft); }
.section--dark .section-eyebrow::before { background: var(--teal-soft); }