/* Tide Rise Marketing: site styles
   Brand guide v1.3: Bricolage Grotesque (headings), Figtree (body).
   Navy #2A5C8A, Teal #4ECDC4, Coral #FF6B6B. Coral buttons use dark text. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #2A5C8A;
  --teal: #4ECDC4;
  --coral: #FF6B6B;
  --deep: #0A2342;
  --mid: #173A56;
  --dark: #163F5F;
  --pale-teal: #BFEFEA;
  --tint: #EEF5F8;
  --border: #D4E2EA;
  --bg: #F6F9FB;
  --ink: #14212B;
  --muted: #3F4E5A;
  --on-dark: #F2F7FA;
  --on-dark-2: #D2E1EC;
  --soft-coral: #FFF0F0;
  --radius: 16px;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(18px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--mid); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--deep); color: var(--on-dark); padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); }
.brand img { height: 30px; width: auto; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 4px; order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .98rem;
  padding: 8px 14px; border-radius: 999px;
}
.site-nav a:hover { background: var(--tint); color: var(--deep); }
.site-nav a[aria-current="page"] { background: var(--tint); color: var(--navy); }
@media (min-width: 860px) {
  .site-nav { order: 0; width: auto; overflow: visible; padding: 0; margin-left: auto; margin-right: 12px; }
  .header-row { flex-wrap: nowrap; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: #ff8282; color: var(--ink); }
.btn-outline { border-color: var(--on-dark-2); color: var(--on-dark); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--tint); color: var(--navy); }
.btn-small { padding: 10px 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #163F5F 0%, var(--deep) 60%); color: var(--on-dark); position: relative; padding-top: clamp(48px, 9vw, 96px); }
.hero .wrap { padding-bottom: clamp(72px, 10vw, 120px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--on-dark-2); max-width: 56ch; }
.hero .note { color: var(--on-dark-2); font-size: .95rem; margin-top: 18px; }
.hero mark, .band mark { background: none; color: var(--teal); padding: 0; }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin: 0 0 10px; }
.hero .eyebrow { color: var(--pale-teal); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 7vw, 90px); width: 100%; }
.page-hero { padding-top: clamp(36px, 7vw, 72px); }
.page-hero .wrap { padding-bottom: clamp(64px, 9vw, 100px); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 6.5vw, 3.8rem); }

/* Sections */
.section { padding-block: clamp(44px, 7vw, 80px); }
.section.tint { background: var(--tint); }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.section-head p { max-width: 52ch; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.dark { background: var(--deep); color: var(--on-dark); border-color: var(--deep); }
.card.dark h3 { color: #fff; }
.card.dark p, .card.dark li { color: var(--on-dark-2); }
.tag { display: inline-block; background: var(--tint); color: var(--navy); font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.card.dark .tag { background: var(--mid); color: var(--pale-teal); }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal);
  -webkit-mask: none; mask: none;
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: calc(.42em + 3px); width: 5px; height: 8px;
  border: solid var(--deep); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 20px 20px 72px; margin: 0;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center;
}
.steps h3 { margin-bottom: .2em; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }

/* Callout */
.callout { background: var(--soft-coral); border-left: 5px solid var(--coral); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; }
.callout p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--deep); color: var(--on-dark); text-align: center; padding-block: clamp(48px, 8vw, 84px); }
.cta-band h2 { color: #fff; margin-inline: auto; max-width: 16ch; }
.cta-band p { color: var(--on-dark-2); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* Prose pages */
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose ul { max-width: 66ch; }
.prose table { border-collapse: collapse; width: 100%; font-size: .98rem; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { font-family: var(--font-display); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; margin: 8px 0 18px; }
.summary-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px; }
.summary-box h2 { margin-top: 0; font-size: 1.3rem; }
.summary-box ul { margin-bottom: 0; }
.updated { color: var(--muted); font-size: .95rem; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 32px; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-dark-2); padding-block: 44px 28px; font-size: .98rem; }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer h2 { font-size: 1rem; color: #fff; letter-spacing: .02em; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.site-footer .brand img { filter: none; }
.legal { border-top: 1px solid var(--mid); margin-top: 28px; padding-top: 18px; font-size: .88rem; color: var(--on-dark-2); }
.legal p { margin: 0 0 .4em; }

/* Services page extras */
.card.small { padding: 18px 20px; }
.card.small h3 { font-size: 1.05rem; margin-bottom: .25em; }
.card.small p { color: var(--muted); font-size: .98rem; }
.pain { padding-left: 1.1em; }
.pain li::marker { color: var(--coral); }
.verdict { font-family: var(--font-display); font-weight: 700; color: var(--navy); margin-top: 14px; }
.card.dark .verdict { color: var(--pale-teal); }
.faq { display: grid; gap: 10px; margin-bottom: 32px; max-width: 760px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--navy); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* Four-up card grid (Home) */
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }

/* ---- Layout refresh: text-led, no imagery ---- */
.cta-band .micro { font-size: .92rem; margin: 18px auto 0; color: var(--on-dark-2); }

/* At-a-glance strip */
.proof { background: var(--bg); border-bottom: 1px solid var(--border); }
.proof ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.proof li { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.proof li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: none; }

/* Colour-block outcome cards (type only) */
.blocks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.block { display: flex; flex-direction: column; border-radius: 20px; padding: 28px; text-decoration: none; min-height: 320px; transition: transform .15s ease; }
.block:hover { transform: translateY(-3px); }
.block h3 { font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin-bottom: .5em; }
.block p { margin-bottom: auto; padding-bottom: 20px; }
.block .tag { align-self: flex-start; background: rgba(10,35,66,.12); color: inherit; }
.block .more { font-family: var(--font-display); font-weight: 700; border-bottom: 2px solid currentColor; align-self: flex-start; padding-bottom: 2px; }
.block.teal { background: var(--teal); color: var(--deep); }
.block.teal:hover { color: var(--deep); }
.block.coral { background: var(--coral); color: var(--ink); }
.block.coral:hover { color: var(--ink); }
.block.navy { background: var(--navy); color: #fff; }
.block.navy:hover { color: #fff; }
.block.navy .tag { background: rgba(255,255,255,.18); }

/* Dark statement band */
.band { background: var(--deep); color: var(--on-dark); padding-block: clamp(56px, 9vw, 110px); }
.band h2 { color: #fff; }
.band .eyebrow { color: var(--pale-teal); }
.band .section-head p { color: var(--on-dark-2); }
.band .section-head { max-width: 46rem; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.pillars li { border-top: 2px solid var(--teal); padding: 18px 0 28px; margin: 0; }
.pillars .num { font-family: var(--font-display); font-weight: 600; color: var(--teal); font-size: .95rem; letter-spacing: .08em; }
.pillars h3 { color: #fff; font-size: 1.35rem; margin: 6px 0 .4em; }
.pillars p { color: var(--on-dark-2); margin: 0; }

/* Ruled index lists (Services) */
.index { border-top: 2px solid var(--ink); }
.index .row { display: grid; gap: 4px 32px; padding: 20px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.index .row h3 { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.index .row p { margin: 0; color: var(--muted); }
@media (min-width: 820px) { .index .row { grid-template-columns: 5fr 7fr; } }

/* Steps: four across on desktop */
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .steps li { padding: 78px 20px 22px; }
  .steps li::before { width: 46px; height: 46px; font-size: 1.2rem; top: 20px; left: 20px; }
}
