/* Tarheel Pure Water — original design system */
:root {
  --bg: #F6F2EA;
  --bg-2: #ECE6D8;
  --bg-3: #E2DAC7;
  --ink: #141612;
  --ink-2: #3B3D37;
  --ink-3: #6B6D66;
  --ink-4: #9A9B93;
  --rule: #D8D1BE;
  --paper: #FBF8F1;
  --blue: #1F4AA0;       /* deep water */
  --blue-2: #2E67D1;
  --blue-soft: #D7E1F5;
  --sage: #4E6B4A;
  --sage-soft: #DCE4D2;
  --amber: #B4722B;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,22,18,.06), 0 1px 1px rgba(20,22,18,.04);
  --shadow-md: 0 8px 24px -12px rgba(20,22,18,.18), 0 2px 6px rgba(20,22,18,.05);
  --shadow-lg: 0 30px 60px -30px rgba(20,22,18,.25), 0 4px 10px rgba(20,22,18,.04);
  --f-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --f-text: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-text);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Typography */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6vw, 84px); line-height: 0.98; font-variation-settings: "SOFT" 30, "opsz" 144; }
h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; font-variation-settings: "SOFT" 30, "opsz" 144; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
h4 { font-size: 18px; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

/* Layout */
.container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.container-wide { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }
section { padding: clamp(72px, 9vw, 140px) 0; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: #fff; box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-2);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* Helpers */
.kbd-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .1em;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Responsive layout helpers ───────────────────────────── */
.grid-hero    { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.grid-2col    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3col    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-sidebar { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
.grid-faq     { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; }
.grid-contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.grid-footer  { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.grid-logos   { display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px; align-items: center; }

.hero-section    { padding-top: 140px; padding-bottom: 80px; position: relative; overflow: hidden; }
.testimonials-pad { padding: 64px 72px; }
.sticky-sidebar  { position: sticky; }
.nav-hamburger   { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 8px; background: none; border: 0; cursor: pointer; color: var(--ink); }

.grid-cta  { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; position: relative; }
.grid-4col { display: grid; grid-template-columns: repeat(4, 1fr); }
.cols-1-2  { display: grid; grid-template-columns: 1fr 2fr; }

@media (max-width: 767px) {
  .container,
  .container-wide { width: calc(100% - 32px); }

  section { padding: 56px 0; }

  .grid-hero,
  .grid-2col,
  .grid-3col,
  .grid-sidebar,
  .grid-faq,
  .grid-contact,
  .grid-footer  { grid-template-columns: 1fr; gap: 24px; }

  .grid-logos   { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .hero-section     { padding-top: 96px; padding-bottom: 48px; }
  .testimonials-pad { padding: 36px 24px; }
  .sticky-sidebar   { position: static; top: auto; }

  .nav-desktop   { display: none !important; }
  .nav-cta       { display: none !important; }
  .nav-hamburger { display: flex !important; }

  .hero-annotation   { display: none; }
  .contact-image-wrap { display: none; }

  .grid-cta  { grid-template-columns: 1fr; gap: 28px; }
  .grid-4col { grid-template-columns: repeat(2, 1fr); }
  .cols-1-2  { grid-template-columns: 1fr; }

  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll > * { min-width: 560px; }
}
