/* ============================================================
   Cre8flow Drain Services — design tokens, reset, utilities
   Upgraded: Plus Jakarta Sans (display) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --c-brand:        #1D93C6;
  --c-brand-600:    #1985B4;
  --c-brand-700:    #15709A;
  --c-brand-50:     #EAF6FC;
  --c-brand-100:    #D2EBF6;
  --c-brand-ring:   rgba(29, 147, 198, 0.35);

  /* Neutrals (cool tinted to match brand) */
  --c-ink:          #0F1B26;
  --c-ink-2:        #2A3849;
  --c-ink-3:        #4A5868;
  --c-ink-4:        #6B7888;
  --c-line:         #E3EAF1;
  --c-line-2:       #ECF1F6;
  --c-surface:      #FFFFFF;
  --c-surface-2:    #F6F9FC;
  --c-surface-3:    #EAF2F8;     /* card panel + footer */
  --c-overlay:      rgba(8, 22, 38, 0.62);
  --c-overlay-2:    rgba(8, 22, 38, 0.42);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Modular fluid scale (clamp: min, fluid, max) */
  --fs-xs:   0.8125rem;                            /* 13px */
  --fs-sm:   0.875rem;                             /* 14px */
  --fs-base: 1rem;                                 /* 16px */
  --fs-md:   1.0625rem;                            /* 17px */
  --fs-lg:   1.125rem;                             /* 18px */
  --fs-xl:   clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);     /* 20-24 */
  --fs-2xl:  clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);    /* 24-30 */
  --fs-3xl:  clamp(1.875rem, 1.55rem + 1.2vw, 2.625rem); /* 30-42 */
  --fs-4xl:  clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem);    /* 36-60 hero */

  /* Spacing scale (4 / 8 base) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px;  --sp-8: 40px;
  --sp-9: 48px; --sp-10: 64px; --sp-11: 80px; --sp-12: 96px;

  /* Radii */
  --r-xs: 6px;  --r-sm: 10px;  --r-md: 14px;  --r-lg: 18px;
  --r-xl: 24px; --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(15, 27, 38, 0.06);
  --sh-2: 0 4px 14px rgba(15, 27, 38, 0.08);
  --sh-3: 0 16px 36px rgba(15, 27, 38, 0.10);
  --sh-brand: 0 12px 30px rgba(29, 147, 198, 0.28);

  /* Motion */
  --ease:        cubic-bezier(.2, .8, .2, 1);
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --t-1: 120ms;  --t-2: 180ms;  --t-3: 260ms;  --t-4: 380ms;

  /* Rail */
  --rail: 1180px;
  --rail-pad-x: clamp(20px, 4vw, 56px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}
img, picture, video, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
::selection { background: var(--c-brand); color: #fff; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: var(--c-ink);
  line-height: 1.15;
  letter-spacing: -0.018em;
}
h1 { font-size: var(--fs-4xl); letter-spacing: -0.028em; line-height: 1.05; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.022em; line-height: 1.12; }
h3 { font-size: var(--fs-xl);  letter-spacing: -0.014em; line-height: 1.25; }
h4 { font-size: var(--fs-lg);  font-weight: 600; line-height: 1.3; }

p  { margin: 0 0 1em; color: var(--c-ink-2); line-height: 1.7; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; color: inherit; }

/* Lead body (used inside section copy) */
.lead { font-size: var(--fs-lg); color: var(--c-ink-2); line-height: 1.7; }

/* Layout */
.container {
  max-width: var(--rail);
  margin: 0 auto;
  padding: 0 var(--rail-pad-x);
}
.container--wide { max-width: 1280px; }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--lt { background: var(--c-surface-3); }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--c-brand);
  border-radius: 2px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-bg: var(--c-brand);
  --btn-fg: #fff;
  --btn-bd: transparent;
  --btn-sh: 0 6px 18px rgba(29, 147, 198, 0.30);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  padding: 14px 26px;
  min-height: 48px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-sh);
  transition: transform var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease),
              background-color var(--t-2) var(--ease), color var(--t-2) var(--ease);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
}
.btn:hover  { --btn-bg: var(--c-brand-600); transform: translateY(-1px); --btn-sh: 0 10px 24px rgba(29, 147, 198, 0.38); }
.btn:active { transform: translateY(0); --btn-sh: 0 4px 12px rgba(29, 147, 198, 0.28); }
.btn:focus-visible { outline: 3px solid var(--c-brand-ring); outline-offset: 3px; }

.btn--lg { font-size: 1.0625rem; padding: 16px 30px; min-height: 54px; }
.btn--sm { font-size: 0.9375rem; padding: 10px 20px; min-height: 40px; }
.btn--block { display: flex; width: 100%; }

.btn--white { --btn-bg: #fff; --btn-fg: var(--c-brand); --btn-sh: 0 6px 18px rgba(0,0,0,0.10); }
.btn--white:hover { --btn-bg: #F4FAFD; --btn-fg: var(--c-brand-700); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,0.6);
  --btn-sh: none;
}
.btn--ghost:hover { --btn-bg: rgba(255,255,255,0.10); --btn-bd: #fff; }

.btn--arrow::after {
  content: '';
  width: 16px; height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'><path fill='black' d='M9.293.293a1 1 0 0 1 1.414 0l5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 1 1-1.414-1.414L12.586 7H1a1 1 0 1 1 0-2h11.586L9.293 1.707a1 1 0 0 1 0-1.414z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'><path fill='black' d='M9.293.293a1 1 0 0 1 1.414 0l5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 1 1-1.414-1.414L12.586 7H1a1 1 0 1 1 0-2h11.586L9.293 1.707a1 1 0 0 1 0-1.414z'/></svg>") center/contain no-repeat;
  transition: transform var(--t-2) var(--ease);
}
.btn--arrow:hover::after { transform: translateX(4px); }

/* Phone pill (compact CTA used in header, steps, CTA bar) */
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-brand);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  box-shadow: 0 6px 16px rgba(29, 147, 198, 0.30);
  transition: transform var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), background-color var(--t-2) var(--ease);
}
.phone-pill:hover { background: var(--c-brand-600); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(29, 147, 198, 0.40); }
.phone-pill:active { transform: translateY(0); }
.phone-pill:focus-visible { outline: 3px solid var(--c-brand-ring); outline-offset: 3px; }
.phone-pill__icon { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* Focus default */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--c-brand-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================================================
   Lists
   ============================================================ */
.check-list { display: grid; gap: 10px; margin: 22px 0; }
.check-list li {
  position: relative;
  padding: 4px 0 4px 36px;
  font-weight: 500;
  font-size: var(--fs-md);
  color: var(--c-ink-2);
  line-height: 1.45;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--c-brand-50);
  border: 1.5px solid var(--c-brand-100);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 6px; top: 9px;
  width: 12px; height: 8px;
  border-left: 2px solid var(--c-brand);
  border-bottom: 2px solid var(--c-brand);
  transform: rotate(-45deg);
}

.issue-list { display: grid; gap: 8px; margin: 16px 0; }
.issue-list li {
  position: relative;
  padding: 4px 0 4px 30px;
  color: rgba(255,255,255,0.92);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.5;
}
.issue-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(29, 147, 198, 0.20);
}
.issue-list li::after {
  content: '';
  position: absolute;
  left: 4px; top: 9px;
  width: 10px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ============================================================
   Scroll-reveal (subtle fade-up, JS-driven only)
   ============================================================ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  will-change: opacity, transform;
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* Visually hidden */
.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;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0; top: -40px;
  background: var(--c-ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 999;
  transition: top var(--t-2) var(--ease);
}
.skip-link:focus { top: 0; }
