/* ---------- Reset & variables ---------- */
/* Palette sampled directly from logo.png: the mountain runs #011738 at its
   base through #013866 and #024877 to the #0b7fb7 rule bar, with #4ea2cb and
   #d8ebf4 in the marbling. Everything below is one of those values or a
   contrast-corrected step between two of them. */
:root {
  /* Deep navy: dark sections, footer, headings. */
  --color-ink: #011738;
  --color-ink-soft: #012a56;
  --color-navy: #0e3b74;

  /* Blues. --color-brand is text-safe (5.6:1 on white); --color-brand-bright
     is the literal logo rule blue but only clears 4.44:1 against white, so it
     is decorative only: rules, borders, bullets, gradient stops. */
  --color-brand: #0b6ea3;
  --color-brand-dark: #08557d;
  --color-brand-bright: #0b7fb7;

  /* Marbling cyans: highlights on dark ground. */
  --color-accent: #4ea2cb;
  --color-accent-strong: #7cd0f0;
  --color-brand-light: #7cd0f0;

  /* Surface ramp. The page itself is tinted, so white reads as a raised
     card surface rather than the default ground. */
  --color-page: #f2f8fc;
  --color-paper: #ffffff;
  --color-paper-soft: #ddecf7;
  --color-border: #c3dcec;

  --color-text: #10243c;
  --color-text-muted: #4a5f78;
  --color-text-on-dark: #c8dff0;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 10px 28px rgba(1, 23, 56, 0.14);
  --shadow-card: 0 2px 10px rgba(1, 23, 56, 0.07);
  /* Text-bearing fills. Stops deliberately end at --color-brand: white on the
     brighter #0b7fb7 is only 4.44:1, which fails AA for button-sized text, so
     that value stays out of any gradient that carries words. */
  --gradient-brand: linear-gradient(135deg, #012a56 0%, #0e3b74 45%, #0b6ea3 100%);
  /* Decorative rules only. No text ever sits on this. */
  --gradient-rule: linear-gradient(90deg, #011738 0%, #0e3b74 30%, #0b7fb7 70%, #7cd0f0 100%);
  --wrap-width: 1140px;
  /* Where the mobile nav panel starts. Must equal the real header height:
     logo (52/66) + 28px padding + 4px top rule + 1px bottom border. */
  --header-height: 85px;
}
@media (min-width: 900px) {
  :root { --header-height: 99px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-page);
  line-height: 1.55;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--color-ink); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--color-brand); text-decoration: none; }
a:hover { color: var(--color-brand-dark); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
}
.hero :focus-visible,
.section--dark :focus-visible,
.cta-banner :focus-visible,
.site-footer :focus-visible { outline-color: var(--color-accent-strong); }

ul { margin: 0; padding: 0; }
li { list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-brand);
  color: #fff;
  font-weight: 600;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--accent {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 110, 163, 0.32);
}
.btn--accent:hover {
  background: linear-gradient(135deg, #0b2f5e 0%, #08557d 55%, #0a6c9c 100%);
  color: #fff;
  text-decoration: none;
}
.btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--outline:hover {
  background: rgba(124, 208, 240, 0.16);
  border-color: var(--color-accent-strong);
  color: #fff;
  text-decoration: none;
}
.btn--dark {
  background: var(--color-ink);
  color: #fff;
}
.btn--dark:hover { background: var(--color-brand); color: #fff; text-decoration: none; }

/* ---------- Logo ---------- */
/* logo.png ships with a solid white background, so it only sits cleanly on
   --color-paper. The footer uses the text wordmark below instead. */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none !important;
}
.site-logo img {
  display: block;
  height: 52px;
  width: auto;
}
@media (min-width: 900px) {
  .site-logo img { height: 66px; }
}

/* ---------- Wordmark ---------- */
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none !important;
}
.wordmark__next {
  color: var(--color-ink);
  font-size: 1.05rem;
}
.wordmark__epoxy {
  color: var(--color-brand);
  font-size: 1.05rem;
}
.wordmark--footer .wordmark__next { color: #fff; }
.wordmark--footer .wordmark__epoxy { color: var(--color-accent-strong); }

/* ---------- Header / nav ---------- */
/* The top rule runs the logo's own ramp: deep mountain navy into the rule blue
   and out to the marbling cyan. */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  /* 4px gradient rule painted as a background layer rather than a border, so
     it cannot bleed onto the bottom edge the way border-image would. The
     padding replaces the old 4px border, keeping --header-height accurate. */
  padding-top: 4px;
  background:
    var(--gradient-rule) top left / 100% 4px no-repeat,
    var(--color-paper);
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--color-ink);
}

.primary-nav {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: var(--color-paper);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 24px 20px 40px;
  overflow-y: auto;
}
.primary-nav.is-open { transform: translateX(0); }
.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
/* Scoped to the list, not `.primary-nav a`. The call button is a sibling of
   the <ul>, and a bare descendant selector here (0,1,1) would outrank .btn
   and .btn--accent (0,1,0), overriding the button's own color and padding. */
.primary-nav ul a {
  display: block;
  padding: 14px 6px;
  color: var(--color-ink);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.primary-nav ul a:hover { color: var(--color-brand); text-decoration: none; }
.nav-cta {
  display: block;
  text-align: center;
  white-space: nowrap;
}

/* Seven nav items plus the call button need more room than 900px allows,
   so the mobile panel stays in play a bit longer than other breakpoints. */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    inset: auto;
    transform: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 22px;
    width: auto;
    overflow: visible;
  }
  .primary-nav ul {
    flex-direction: row;
    gap: 18px;
    margin-bottom: 0;
  }
  .primary-nav > ul > li > a { white-space: nowrap; }
  .primary-nav ul a {
    padding: 6px 2px;
    border-bottom: none;
  }
  .nav-cta {
    display: inline-block;
    padding: 0.72em 1.5em;
    font-size: 0.95rem;
  }
}

/* ---------- Hero ---------- */
/* Layered to echo the logo art: a cyan highlight bleeding off the top right
   and a mid-blue lift from the lower left, over the deepest mountain navy. */
.hero {
  background:
    radial-gradient(80ch 55ch at 88% -15%, rgba(124, 208, 240, 0.30), transparent 72%),
    radial-gradient(70ch 50ch at 5% 115%, rgba(11, 127, 183, 0.38), transparent 70%),
    linear-gradient(160deg, var(--color-ink-soft) 0%, var(--color-ink) 60%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  color: var(--color-accent-strong);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
/* Sized so "Concrete Coatings That Outlast" clears the text column on one
   line, putting the headline on two lines instead of leaving "Pitch" stranded
   on a third. The vw term keeps that holding down to the 900px breakpoint,
   where the column is narrower but the type scales with it. */
.hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 3vw, 2.3rem);
}
.hero p.lede {
  color: var(--color-text-on-dark);
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}
.hero__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--color-text-on-dark);
  font-size: 0.92rem;
}
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent-strong);
  flex-shrink: 0;
}

/* Licence credential, deliberately inside the hero so it lands above the fold. */
.hero__license {
  display: inline-block;
  margin: 22px 0 0;
  padding: 8px 14px;
  border: 1px solid rgba(124, 208, 240, 0.4);
  border-radius: 8px;
  background: rgba(11, 127, 183, 0.18);
  color: var(--color-text-on-dark);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.hero__license strong {
  color: var(--color-accent-strong);
  letter-spacing: 0.06em;
}

@media (min-width: 900px) {
  /* A touch more room for the text column, so the headline needs less of a
     size cut to make its two-line break. */
  .hero__inner { grid-template-columns: 1.25fr 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--muted { background: var(--color-paper-soft); }
.section--dark {
  background:
    radial-gradient(70ch 45ch at 80% 0%, rgba(11, 127, 183, 0.35), transparent 70%),
    var(--color-ink);
  color: #fff;
}
.section--dark h2 { color: #fff; }
.section__head { max-width: 62ch; margin-bottom: 36px; }
.section__head p { color: var(--color-text-muted); font-size: 1.05rem; }
.section--dark .section__head p { color: var(--color-text-on-dark); }
.section--dark a:not(.btn) { color: var(--color-brand-light); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card h2 { font-size: 1.3rem; margin-bottom: 0.4em; color: var(--color-navy); }
.card h3 { margin-bottom: 0.4em; color: var(--color-navy); }
.card--link {
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card--link:hover {
  border-color: var(--color-brand-bright);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.card__cta { margin-top: auto; font-weight: 600; color: var(--color-brand); }

/* Cards sit on white inside dark sections too, so keep them readable there. */
.section--dark .card { color: var(--color-text); }

.step-list {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
/* auto-fit rather than a fixed count: the process is five steps now, and this
   keeps the row balanced if one is ever added or removed. */
@media (min-width: 640px) {
  .step-list { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
.step {
  position: relative;
  padding-top: 8px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(11, 110, 163, 0.3);
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-paper);
  box-shadow: var(--shadow);
}
/* Source photos mix 4:3 landscape with 3:4 portrait. Without a fixed ratio a
   portrait shot renders nearly twice the height of its neighbours and the row
   goes ragged, so crop them all to a common frame. */
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-grid figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Single showcase photo, where the homepage once ran a three-shot day-by-day
   strip. Capped well short of the wrap on purpose: at the full 1100px a 4:3
   frame stands 825px tall and shoulders the CTA under it off the screen.
   The ratio is pinned for the same reason .gallery-grid pins one: swap a
   portrait photo in and the height would otherwise jump by a third. */
.showcase {
  max-width: 840px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-paper);
  box-shadow: var(--shadow);
}
.showcase img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.showcase figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.city-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}
@media (min-width: 640px) {
  .city-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .city-list { grid-template-columns: repeat(4, 1fr); }
}
.city-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.benefit-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--color-brand);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(60ch 40ch at 50% -30%, rgba(124, 208, 240, 0.28), transparent 70%),
    var(--gradient-brand);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.3em; }
/* The dark button needs to separate from the blue ground behind it. */
.cta-banner .btn--dark { background: var(--color-ink); }
.cta-banner .btn--dark:hover { background: #000; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-brand);
  outline: 2px solid var(--color-brand);
  outline-offset: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background:
    var(--gradient-rule) top left / 100% 4px no-repeat,
    radial-gradient(70ch 45ch at 15% 0%, rgba(11, 127, 183, 0.28), transparent 70%),
    var(--color-ink);
  color: var(--color-text-on-dark);
  padding: 60px 0 0;
}
.site-footer h2 {
  color: var(--color-accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.site-footer__inner {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding-bottom: 32px;
}
@media (min-width: 640px) {
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}
.site-footer a { color: var(--color-text-on-dark); }
.site-footer a:hover { color: var(--color-accent-strong); }
.footer-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border: 1px solid rgba(124, 208, 240, 0.45);
  border-radius: 999px;
  background: rgba(11, 127, 183, 0.18);
  color: var(--color-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-list li { margin-bottom: 10px; }
.social-links { display: flex; gap: 16px; margin-top: 16px; }
.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 0.85rem;
}
.site-footer__legal strong {
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose h3 { margin-top: 1.4em; }

/* ---------- Day-by-day install process ---------- */
.process-list {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .process-list { grid-template-columns: repeat(3, 1fr); }
}
.process-day {
  /* Gradient rule as a background layer, not a border-image, so it stays on
     the top edge only. Matches the header and footer treatment. */
  background:
    var(--gradient-rule) top left / 100% 4px no-repeat,
    var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.process-day__label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.process-day h3 {
  margin-bottom: 0.5em;
  font-size: 1.15rem;
  color: var(--color-navy);
}
.process-day p { margin-bottom: 0; }

.process-note {
  max-width: 68ch;
  margin: 26px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--color-brand-bright);
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ---------- Finish list (service pages) ---------- */
.finish-list {
  display: grid;
  gap: 18px;
}
.finish-list__item {
  border-left: 4px solid var(--color-brand-bright);
  padding-left: 16px;
}
.finish-list__item h3 { margin-bottom: 0.25em; color: var(--color-navy); }
.finish-list__item p { margin-bottom: 0; }

.card__note {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

/* ---------- FAQ ---------- */
/* Native <details> rather than a scripted accordion: keyboard and screen
   reader behaviour comes for free, and the answers are still reachable if
   main.js never loads. Items are independent, so several can sit open. */
.faq-list {
  display: grid;
  gap: 14px;
  /* Same reading measure as .prose. These are paragraphs, not cards. */
  max-width: 68ch;
}

.faq {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.faq[open] { border-color: var(--color-brand-bright); }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  /* Firefox draws the marker off list-style, Safari off the pseudo below. */
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--color-brand); }

/* Chevron drawn from borders so the markup carries no decorative element.
   flex-shrink keeps it square when a long question wraps beside it. */
.faq__q::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-right: 2px solid var(--color-brand);
  border-bottom: 2px solid var(--color-brand);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
/* Rotating to -135deg rather than 225deg so it unwinds back the way it came.
   The margin shifts with it: the glyph's visual centre moves as it turns. */
.faq[open] .faq__q::after {
  transform: rotate(-135deg);
  margin-top: 11px;
}

.faq__a { padding: 0 20px 20px; }
.faq__a p {
  margin: 0;
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .faq__q::after { transition: none; }
}

/* Phone links start as plain links and are rewritten by main.js. */
.contact-phone { font-weight: 600; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
