/* ============================================================
   Chilliwack Marketing — Homepage Styles
   Aesthetic: "Sorbet & Ink"
   Warm peach-cream canvas · soft pastel surfaces · plum-charcoal ink
   CTA = cobalt, reserved STRICTLY for buttons + text links.
   Decorative emphasis = muted berry (never the CTA color).
   Depth = grain overlay + dot grids + soft gradient-mesh blobs
           + layered shadows.
   Type: Fraunces (display serif) + Hanken Grotesk (body)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Surface + ink */
  --canvas:       #FBF3EC;   /* warm peach-cream — primary background */
  --canvas-2:     #F6EADF;   /* deeper peach — alternate sections */
  --paper:        #FFFFFF;   /* cards */
  --ink:          #2B2733;   /* plum-charcoal — body text + dark sections */
  --ink-2:        #221E2B;   /* deepest, for footer */
  --ink-soft:     #6E6878;   /* secondary text */

  /* Pastel surface tints — decorative ONLY (patterns, swashes, card bars) */
  --peach:        #FAD9C6;
  --blush:        #F6D2DC;
  --sky:          #CCE0EC;
  --sage:         #D3E4CF;
  --lilac:        #E0D6EF;
  --berry-tint:   #F3D9E6;   /* soft pastel form of berry, for hover fills */

  /* Deeper pastel tones for text/accents on light surfaces */
  --berry:        #B5658F;   /* muted berry — decorative emphasis accent */
  --plum-soft:    #8A7C9E;

  /* CTA — reserved STRICTLY for buttons & text links */
  --cta:          #3B4DD9;
  --cta-hover:    #2C3BB0;

  /* Effects */
  --line:         rgba(43, 39, 51, 0.12);
  --line-soft:    rgba(43, 39, 51, 0.07);
  --shadow-sm:    0 2px 10px rgba(43, 39, 51, 0.06);
  --shadow-md:    0 22px 48px -22px rgba(43, 39, 51, 0.30);
  --shadow-lg:    0 48px 90px -34px rgba(43, 39, 51, 0.42);
  /* Soft top highlight that gives cards a tactile, lit edge */
  --edge:         inset 0 1px 0 rgba(255, 255, 255, 0.7);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;

  /* Layout */
  --max:          1180px;
  --gutter:       clamp(1.25rem, 4vw, 3rem);
  --radius:       18px;
  --radius-sm:    12px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Page-wide film grain — subtle tactile depth over everything.
   Fixed, non-interactive, blended so it never muddies text. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  font-optical-sizing: auto;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }

/* Eyebrow label — small uppercase tag used across sections */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--berry);   /* decorative accent, not CTA */
  margin-bottom: 1.1rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 10000;
}
.skip-link:focus { left: 0; }

/* ============================================================
   BUTTONS — CTA color lives here + on text links only
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
              box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.04rem; }

/* Primary CTA — cobalt, the single thing the eye is trained to find */
.btn-cta {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(59, 77, 217, 0.65), var(--edge);
}
.btn-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -14px rgba(59, 77, 217, 0.72);
}
.btn-cta:active { transform: translateY(0); }

/* Ghost button on light backgrounds — CTA-colored so it reads as an action */
.btn-ghost {
  background: transparent;
  color: var(--cta);
  border-color: var(--cta);
}
.btn-ghost:hover {
  background: var(--cta);
  color: #fff;
  transform: translateY(-2px);
}

/* Ghost button on dark backgrounds */
.btn-ghost-light {
  background: transparent;
  color: var(--canvas);
  border-color: rgba(251, 243, 236, 0.35);
}
.btn-ghost-light:hover { border-color: var(--canvas); transform: translateY(-2px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 243, 236, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  color: var(--ink);
  background: var(--peach);
  border-radius: 10px;
  box-shadow: var(--edge);
}
.brand-mark svg { width: 22px; }
.brand-text-accent { color: var(--berry); }  /* decorative, not CTA */

/* Nav links + CTA grouped together, pushed to the right */
.nav-area {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav a {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.18s ease;
}
/* Nav links ARE links, so the cobalt underline is a valid CTA-color use */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { margin-left: 0.25rem; }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;   /* centers the three bars vertically */
  gap: 5px;
  width: 44px; height: 44px;
  margin-left: auto;
  background: var(--peach);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============================================================
   HERO
   Depth: layered pastel gradient-mesh blobs + dot grid + grain
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
  /* Soft pastel "mesh" — multiple blurred color fields for depth */
  background:
    radial-gradient(45% 50% at 88% 8%,  rgba(246, 210, 220, 0.75), transparent 70%),
    radial-gradient(40% 45% at 12% 18%, rgba(204, 224, 236, 0.70), transparent 70%),
    radial-gradient(55% 60% at 70% 100%, rgba(211, 228, 207, 0.55), transparent 70%),
    radial-gradient(40% 50% at 30% 90%, rgba(224, 214, 239, 0.55), transparent 70%),
    var(--canvas);
}

/* Dot-grid pattern overlay — adds engineered texture/depth */
.hero-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(43, 39, 51, 0.10) 1.3px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 100% at 60% 0%, #000 25%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 60% 0%, #000 25%, transparent 78%);
  opacity: 0.6;
  animation: dotBreath 7s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 16ch;
}
/* Emphasis word: ink italic with a hand-drawn pastel swash underneath.
   No CTA color — the swash is a decorative blush highlight. */
.title-accent {
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
}
.title-accent::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: 0.04em;
  height: 0.42em;
  background: var(--blush);
  border-radius: 4px;
  z-index: -1;
  transform: rotate(-0.6deg);
}

.hero-lead {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Hero proof card — floats above the mesh with layered shadow */
.hero-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  box-shadow: var(--shadow-lg), var(--edge);
}
/* Subtle pastel corner glow tucked behind the card for depth */
.hero-card::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(250, 217, 198, 0.9), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}
.hero-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line-soft);
}
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--berry);   /* decorative, not CTA */
  box-shadow: 0 0 0 0 rgba(181, 101, 143, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(181, 101, 143, 0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(181, 101, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(181, 101, 143, 0); }
}

/* Slow "breathing" of the background dot grids — gives the
   patterns a living sense of depth. Layers run at different
   speeds/offsets so they never pulse in lockstep. */
@keyframes dotBreath {
  0%, 100% { opacity: 0.30; }
  50%      { opacity: 0.68; }
}

.hero-stats {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.hero-stats li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 560;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
  min-width: 3.6em;
}
.stat-plus { color: var(--berry); }   /* decorative, not CTA */
.stat-label {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.hero-card-foot {
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============================================================
   TRUST BAND — prominent credibility section
   Dark ground (contrast against the light hero) + a lead-in
   trust line + four icon pillars in pastel chips.
   ============================================================ */
.trust-strip {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--canvas);
  padding-block: clamp(2.6rem, 5vw, 3.75rem);
}
.trust-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(251, 243, 236, 0.10) 1px, transparent 1.2px);
  background-size: 22px 22px;
  opacity: 0.5;
  animation: dotBreath 9s ease-in-out infinite 0.4s;
}
.trust-strip > .container { position: relative; }

/* Credibility lead-in line */
.trust-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  letter-spacing: -0.01em;
  color: var(--canvas);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.trust-lead-mark {
  color: var(--peach);          /* warm pastel stars — decorative, not CTA */
  letter-spacing: 0.12em;
  font-size: 0.95em;
}

/* Pillars */
.trust-band {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-pillar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.4rem clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid rgba(251, 243, 236, 0.14);
}
.trust-pillar:first-child { border-left: none; }

.trust-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  color: var(--ink);
  box-shadow: var(--edge);
}
/* A different pastel chip per pillar for warmth + variety */
.trust-pillar:nth-child(1) .trust-icon { background: var(--peach); }
.trust-pillar:nth-child(2) .trust-icon { background: var(--sky); }
.trust-pillar:nth-child(3) .trust-icon { background: var(--sage); }
.trust-pillar:nth-child(4) .trust-icon { background: var(--blush); }
.trust-icon svg { width: 24px; height: 24px; }

.trust-text { display: flex; flex-direction: column; gap: 0.12rem; }
.trust-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--canvas);
}
.trust-note {
  font-size: 0.85rem;
  color: rgba(251, 243, 236, 0.66);
  line-height: 1.3;
}

/* Pillars reflow: 2-up, then 1-up */
@media (max-width: 860px) {
  .trust-band { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .trust-pillar:nth-child(odd) { border-left: none; }
}
@media (max-width: 520px) {
  .trust-band { grid-template-columns: 1fr; gap: 1.25rem; }
  .trust-pillar { border-left: none; }
}

/* ============================================================
   SECTION HEADINGS (shared)
   ============================================================ */
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-title {
  font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3rem);
  margin-bottom: 1.1rem;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ============================================================
   SERVICES — "What we do"
   Editorial split: sticky intro on the left, an interactive
   service index on the right. Each row is a pastel "hotspot"
   that washes in its own tint on hover/focus.
   ============================================================ */
.services {
  position: relative;
  overflow: hidden;
  background: var(--canvas-2);
}
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(43, 39, 51, 0.06) 1.2px, transparent 1.3px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 65%);
          mask-image: linear-gradient(180deg, #000, transparent 65%);
  animation: dotBreath 8s ease-in-out infinite 0.5s;
}

.services-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
/* Intro stays in view while the list scrolls past it */
.services-intro {
  position: sticky;
  top: 110px;
}
.services-intro .section-title { margin-bottom: 1.1rem; }
.services-intro .section-sub { margin-bottom: 1.8rem; }

/* The index */
.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.service-row { border-bottom: 1px solid var(--line); }
.service-row a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: clamp(1.3rem, 2.6vw, 1.75rem) clamp(1rem, 2vw, 1.4rem);
  border-radius: 14px;
  transition: background-color 0.3s ease, transform 0.25s ease, padding 0.25s ease;
}
/* The hotspot: row fills with its pastel tint and nudges inward */
.service-row a:hover,
.service-row a:focus-visible {
  background: var(--tint);
  transform: translateX(6px);
  outline: none;
}

.service-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--plum-soft);            /* decorative, not CTA */
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}
.service-row a:hover .service-num,
.service-row a:focus-visible .service-num { color: var(--ink); }

.service-body { display: flex; flex-direction: column; gap: 0.3rem; }
.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.1;
  color: var(--ink);
}
.service-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
  margin-top: 0.2rem;
}

.service-arrow {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 1.15rem;
  color: var(--cta);                  /* it links — CTA color allowed */
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.service-row a:hover .service-arrow,
.service-row a:focus-visible .service-arrow {
  transform: translateX(4px);
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}

/* ============================================================
   APPROACH / WHY US
   Depth: soft sky-tinted ground + mesh blobs + dark process card
   ============================================================ */
.approach {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(204, 224, 236, 0.55), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(246, 210, 220, 0.45), transparent 70%),
    var(--canvas);
}
.approach-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.approach-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
  max-width: 50ch;
}

.approach-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.6rem;
}
.approach-list li {
  padding-left: 1.4rem;
  border-left: 2px solid var(--berry);   /* decorative, not CTA */
}
.approach-list h3 {
  font-size: 1.22rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.approach-list p { color: var(--ink-soft); font-size: 1rem; }

/* Process card — dark, with faint pattern for depth */
.approach-process {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-md);
}
.approach-process::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(251, 243, 236, 0.08) 1px, transparent 1.2px);
  background-size: 22px 22px;
  opacity: 0.5;
  animation: dotBreath 10s ease-in-out infinite 1s;
}
.process-eyebrow {
  position: relative;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 1.6rem;
}
.process-steps {
  position: relative;
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.7rem;
}
.process-steps li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.process-step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--canvas);
  border: 1.5px solid rgba(251, 243, 236, 0.3);
}
.process-steps h3 {
  font-size: 1.12rem;
  color: var(--canvas);
  margin-bottom: 0.3rem;
}
.process-steps p {
  font-size: 0.96rem;
  color: rgba(251, 243, 236, 0.78);
}

/* ============================================================
   PROOF / TESTIMONIAL
   Depth: pastel quote card sitting on canvas
   ============================================================ */
.proof {
  position: relative;
  overflow: hidden;
  /* Distinct lilac→blush band so it reads as its own section,
     separate from the canvas-toned approach band above it. */
  background:
    radial-gradient(60% 80% at 15% 20%, rgba(224, 214, 239, 0.85), transparent 70%),
    radial-gradient(60% 80% at 85% 80%, rgba(246, 210, 220, 0.80), transparent 70%),
    var(--lilac);
}
/* Soft diagonal-line texture, different from the dot grids elsewhere */
.proof::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg, transparent 0 13px, rgba(43, 39, 51, 0.03) 13px 14px);
  opacity: 0.8;
}
.testimonial {
  position: relative;
  margin: 0 auto;
  max-width: min(880px, 100%);
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.75rem, 5vw, 4.5rem) clamp(1.75rem, 6vw, 5rem);
  box-shadow: var(--shadow-lg), var(--edge);
}
/* Oversized decorative quote mark in pastel */
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.15em; left: 0.2em;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: var(--peach);
  z-index: 0;
}
.testimonial blockquote {
  position: relative;
  margin: 0 0 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.05rem + 1.7vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.testimonial-name { font-weight: 600; color: var(--ink); }
.testimonial-role { font-size: 0.92rem; color: var(--plum-soft); }

/* ============================================================
   FINAL CTA BAND — dark, with mesh + pattern depth
   ============================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(181, 101, 143, 0.45), transparent 65%),
    radial-gradient(50% 80% at 10% 100%, rgba(59, 77, 217, 0.30), transparent 65%),
    var(--ink);
  color: var(--canvas);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.cta-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(251, 243, 236, 0.10) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(100% 120% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(100% 120% at 50% 0%, #000, transparent 75%);
  opacity: 0.6;
  animation: dotBreath 8.5s ease-in-out infinite 0.2s;
}
.cta-inner {
  position: relative;
  text-align: center;
  max-width: min(820px, 100%);
  margin-inline: auto;
}
.cta-sub { margin-inline: auto; max-width: 60ch; }
.cta-title {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem);
  margin-bottom: 1.1rem;
}
.cta-sub {
  font-size: 1.12rem;
  color: rgba(251, 243, 236, 0.85);
  margin-bottom: 2rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.cta-note {
  font-size: 0.92rem;
  color: rgba(251, 243, 236, 0.7);
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  color: rgba(251, 243, 236, 0.78);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(251, 243, 236, 0.06) 1px, transparent 1.2px);
  background-size: 26px 26px;
  opacity: 0.5;
  animation: dotBreath 11s ease-in-out infinite 0.7s;
}
.footer-inner, .footer-bottom { position: relative; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.brand-footer { color: var(--canvas); }
.brand-footer .brand-mark { background: rgba(251, 243, 236, 0.12); color: var(--canvas); box-shadow: none; }
.footer-tag {
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 34ch;
  color: rgba(251, 243, 236, 0.6);
}
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 0.4rem;
}
.footer-col a {
  font-size: 0.96rem;
  color: rgba(251, 243, 236, 0.78);
  transition: color 0.18s ease;
}
.footer-col a:hover { color: var(--cta); }   /* link = CTA color, allowed */
.footer-cta-col p {
  font-size: 0.95rem;
  color: rgba(251, 243, 236, 0.6);
  margin-bottom: 0.4rem;
}
.footer-cta-col .btn { align-self: flex-start; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(251, 243, 236, 0.12);
  font-size: 0.86rem;
  color: rgba(251, 243, 236, 0.5);
}

/* ============================================================
   FAQ — accordion (native <details>) on canvas
   ============================================================ */
.faq {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(45% 55% at 90% 12%, rgba(204, 224, 236, 0.45), transparent 70%),
    radial-gradient(45% 55% at 8% 90%, rgba(211, 228, 207, 0.45), transparent 70%),
    var(--canvas);
}
.faq-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
}
.faq-head .section-sub { margin-inline: auto; }

.faq-list {
  position: relative;
  max-width: min(820px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), var(--edge);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.faq-item[open] { box-shadow: var(--shadow-md), var(--edge); }

/* Question row (clickable) */
.faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.1rem, 2.5vw, 1.45rem) clamp(1.25rem, 3vw, 1.85rem);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 540;
  line-height: 1.25;
  color: var(--ink);
  transition: background-color 0.2s ease;
}
.faq-q::-webkit-details-marker { display: none; }   /* hide native triangle */
.faq-q:hover { background: rgba(43, 39, 51, 0.025); }
.faq-q:focus-visible { outline: 2px solid var(--cta); outline-offset: -3px; }

/* Plus → minus toggle icon (built from two bars) */
.faq-icon {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--canvas-2);
  color: var(--ink);
  transition: background-color 0.25s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 13px; height: 2px; }
.faq-icon::after  { width: 2px; height: 13px; transition: transform 0.3s ease, opacity 0.3s ease; }
.faq-item[open] .faq-icon { background: var(--berry-tint); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

/* Answer */
.faq-a {
  padding: 0 clamp(1.25rem, 3vw, 1.85rem) clamp(1.3rem, 2.5vw, 1.6rem);
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}
.faq-a a { color: var(--cta); font-weight: 600; }   /* internal links — CTA color allowed */
.faq-a a:hover { text-decoration: underline; }
.faq-item[open] .faq-a { animation: faqReveal 0.35s ease; }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SERVICE PAGE COMPONENTS (shared across /seo/, /ppc/, etc.)
   ============================================================ */

/* Active nav link — keeps its cobalt underline shown */
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Breadcrumb trail */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--ink-soft); transition: color 0.18s ease; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-hidden] { color: var(--plum-soft); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Hero checklist (reuses .hero-card) */
.check-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink);
}
/* Pastel check badge */
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.05em;
  width: 1.3rem; height: 1.3rem;
  border-radius: 50%;
  background: var(--sage);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 0.46rem; top: 0.2em;
  width: 0.32rem; height: 0.62rem;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Centered section heading helper */
.section-head-center {
  text-align: center;
  margin-inline: auto;
}

/* "What is …" definition block (answer-first, AEO) */
.definition-section {
  position: relative;
  overflow: hidden;
  background: var(--canvas-2);
}
.definition {
  display: grid;
  gap: 1.15rem;
}
.definition p { color: var(--ink-soft); font-size: 1.05rem; }
.definition strong { color: var(--ink); font-weight: 600; }
/* The lead sentence — the part an answer engine is most likely to quote */
.definition .lead-answer {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Feature grid — reusable deliverables/benefits cards */
.included-section { background: var(--canvas); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm), var(--edge);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--edge);
}
.feature-ico {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 0.3rem;
  border-radius: 13px;
  color: var(--ink);
  box-shadow: var(--edge);
}
.feature-ico svg { width: 24px; height: 24px; }
/* A different pastel chip per card */
.feature:nth-child(1) .feature-ico { background: var(--peach); }
.feature:nth-child(2) .feature-ico { background: var(--sky); }
.feature:nth-child(3) .feature-ico { background: var(--sage); }
.feature:nth-child(4) .feature-ico { background: var(--blush); }
.feature:nth-child(5) .feature-ico { background: var(--lilac); }
.feature:nth-child(6) .feature-ico { background: var(--peach); }
.feature h3 { font-size: 1.2rem; color: var(--ink); }
.feature p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; }

@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* Stat cards — big-number proof (About "by the numbers") */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.stat-card {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm), var(--edge);
}
.stat-card .stat-num {
  display: block;
  min-width: 0;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  color: var(--ink);
}
.stat-card .stat-label {
  display: block;
  margin-top: 0.6rem;
  font-size: 1rem;
}
@media (max-width: 680px) { .stat-grid { grid-template-columns: 1fr; max-width: 22rem; margin-inline: auto; } }

/* Compact hero (Contact page) — single column, less vertical weight */
.hero-compact { padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-compact .hero-title { max-width: 18ch; }
.hero-compact .hero-lead { max-width: 60ch; }

/* ============================================================
   CONTACT PAGE — form + details
   ============================================================ */
.contact-section { background: var(--canvas); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

/* Form */
.contact-form {
  display: grid;
  gap: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-md), var(--edge);
}
.contact-form-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.form-row { display: grid; gap: 1.15rem; }
.form-row-2 { grid-template-columns: 1fr 1fr; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--canvas);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--plum-soft); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(59, 77, 217, 0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { margin-top: 0.25rem; justify-self: start; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); }

/* Inline submission feedback (populated by script.js) */
.form-status {
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
}
.form-status.is-success {
  background: var(--sage);
  color: #2E4A2A;
}
.form-status.is-error {
  background: var(--blush);
  color: #8A2B3A;
}

/* Details aside */
.contact-aside { display: grid; gap: 1.1rem; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm), var(--edge);
}
.contact-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.85rem; }
.contact-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--ink);
  box-shadow: var(--edge);
}
.contact-ico svg { width: 22px; height: 22px; }
.contact-list li span:nth-child(2) { display: flex; flex-direction: column; }
.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum-soft);
}
.contact-list a { color: var(--cta); font-weight: 600; }   /* links — CTA color allowed */
.contact-list a:hover { text-decoration: underline; }
.contact-expect .check-list { margin-top: 0; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   SHOWCASE — editorial image + copy band
   Reusable across pages to add authentic team/office photography.
   The photo sits in a layered frame with a soft pastel offset
   block behind it for depth, matching the "Sorbet & Ink" look.
   ============================================================ */
.showcase { background: var(--canvas); }
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
/* Reverse variant places the image on the right (desktop) */
.showcase-reverse .showcase-media { order: 2; }

/* Image frame + decorative pastel offset for depth */
.showcase-media {
  position: relative;
  margin: 0;
}
.showcase-media::before {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 60%;
  height: 72%;
  background: var(--tint, var(--peach));
  border-radius: var(--radius);
  z-index: 0;
}
.showcase-reverse .showcase-media::before { right: auto; left: -16px; }

.showcase-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 6;          /* matches the source photos (~1.83:1) */
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg), var(--edge);
}

.showcase-copy .section-title { margin-bottom: 1.1rem; }
.showcase-copy p { color: var(--ink-soft); font-size: 1.08rem; }
.showcase-copy .btn { margin-top: 1.6rem; }

/* Stack on smaller screens; image always leads for visual rhythm */
@media (max-width: 940px) {
  .showcase-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .showcase-reverse .showcase-media { order: 0; }
  .showcase-media::before { width: 55%; height: 60%; }
}

/* ============================================================
   PAGE-LOAD REVEAL ANIMATION (staggered)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 80ms);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ---- Mobile navigation drawer (kicks in before the nav can squish) ---- */
@media (max-width: 940px) {
  .nav-area { display: none; }
  .nav-toggle { display: flex; }

  /* Open state: a full-width dropdown panel. Children flow in DOM
     order — links first, CTA last — so the button sits below them. */
  .site-header.nav-open .nav-area {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .site-header.nav-open .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .site-header.nav-open .main-nav a {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-header.nav-open .main-nav a::after { display: none; }
  .site-header.nav-open .header-cta {
    margin-top: 1.1rem;
    align-self: flex-start;
  }
}

/* ---- Layout reflows ---- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .services-inner { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .approach-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@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; }
}
