/* ==========================================================================
   Crossy's Roof Restorations v2 - design system
   Brand: Crossy's blues + Agenda/Afacad type on a rounded, pill-nav layout
   ========================================================================== */

/* ------------------------------- tokens -------------------------------- */
:root {
  --c-primary: #0972b5;      /* main brand blue */
  --c-primary-dark: #075e96;
  --c-navy: #072867;         /* deep navy bands / headings */
  --c-navy-deep: #051b47;
  --c-ink: #18202e;          /* body text */
  --c-accent: #0bc1fb;       /* bright cyan accent / CTA */
  --c-accent-dark: #08a5d8;
  --c-mid: #5884d7;
  --c-pale: #edf6fc;         /* pale blue cards */
  --c-off: #fafafa;
  --c-white: #ffffff;
  --c-line: rgba(7, 40, 103, 0.12);

  --f-head: "Agenda", "Afacad", system-ui, sans-serif;
  --f-body: "Afacad", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-pill: 50px;
  --r-lg: 44px;
  --r-md: 24px;
  --r-sm: 12px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --wrap: 1200px;
  --shadow: 0 10px 30px rgba(7, 40, 103, 0.10);
  --shadow-lg: 0 20px 50px rgba(7, 40, 103, 0.18);
}

/* -------------------------------- fonts -------------------------------- */
@font-face {
  font-family: "Agenda";
  src: url("../fonts/agenda-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Agenda";
  src: url("../fonts/agenda-mediumcondensed.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Afacad";
  src: url("../fonts/afacad-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* -------------------------------- reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.12;
  color: var(--c-navy);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
svg { width: 1.2em; height: 1.2em; vertical-align: -0.22em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--c-navy); color: #fff; padding: 0.6rem 1.2rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* the signature yellow-rule equivalent: cyan accent rule */
.rule {
  width: 64px; height: 4px; border-radius: 2px;
  background: var(--c-accent);
  margin: 0 0 var(--space-3);
}
.rule-center { margin-inline: auto; }

/* ------------------------------- buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--f-head); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  padding: 0.85em 1.7em; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-accent { background: var(--c-accent); color: var(--c-navy); }
.btn-accent:hover { background: var(--c-navy); color: var(--c-white); }
.btn-primary { background: var(--c-primary); color: var(--c-white); }
.btn-primary:hover { background: var(--c-navy); color: var(--c-white); }
.btn-navy { background: var(--c-navy); color: var(--c-white); }
.btn-navy:hover { background: var(--c-accent); color: var(--c-navy); }
.btn-secondary {
  background: rgba(237, 246, 252, 0.88);
  color: var(--c-navy);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 34px rgba(5, 27, 71, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.96);
  color: var(--c-navy);
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-ghost { background: transparent; color: var(--c-white); border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: var(--c-white); color: var(--c-navy); }

/* ---------------------------- header strips ---------------------------- */
.notice-strip {
  background: var(--c-navy); color: var(--c-white);
  text-align: center; font-size: 0.95rem; padding: 0.45rem 1rem;
}
.notice-strip p { margin: 0; }
.notice-strip a { color: var(--c-accent); font-weight: 600; text-decoration: none; }
.notice-strip a:hover { text-decoration: underline; }

.info-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--wrap); margin-inline: auto;
  padding: 0.55rem clamp(1rem, 4vw, 2rem);
  font-size: 0.92rem; color: var(--c-navy);
}
.info-strip p { margin: 0; }
.info-strip a { color: inherit; text-decoration: none; }
.info-strip a:hover { text-decoration: underline; }
.info-badge { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; }
.g-badge {
  display: inline-grid; place-items: center; width: 1.5em; height: 1.5em;
  border-radius: 50%; background: var(--c-white); color: var(--c-primary);
  font-weight: 700; box-shadow: var(--shadow); font-family: var(--f-head);
}
.stars { color: #f5b301; display: inline-flex; gap: 1px; }
.stars svg { width: 0.95em; height: 0.95em; }

/* ------------------------------- nav pill ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: 2.05rem clamp(0.6rem, 2vw, 1.8rem) 0.6rem;
  transition: padding 0.2s;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  max-width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--c-pale);
  border-radius: var(--r-pill);
  padding: 0.48rem 0.72rem 0.48rem 1.44rem;
  box-shadow: var(--shadow-lg);
}
.nav-logo img { height: 53px; width: auto; }
.nav-menu {
  display: flex; align-items: center; gap: 0.24rem;
  list-style: none; margin: 0 0 0 auto; padding: 0;
}
.nav-menu > li > a,
.nav-menu > li > button {
  display: inline-flex; align-items: center; gap: 0.3em;
  font-family: var(--f-head); font-weight: 500; font-size: 1.08rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--c-navy); text-decoration: none;
  background: none; border: 0; cursor: pointer;
  padding: 0.84em 0.96em; border-radius: var(--r-pill);
}
.nav-menu > li > a:hover, .nav-menu > li > button:hover,
.has-mega > button[aria-expanded="true"],
.nav-menu > li > a[aria-current] { background: var(--c-white); color: var(--c-navy); }
.nav-menu svg { width: 0.85em; height: 0.85em; transition: rotate 0.2s; }
.has-mega { position: relative; }
.has-mega > button[aria-expanded="true"] svg { rotate: 180deg; }
.nav-phone a {
  border-color: rgba(7, 40, 103, 0.32);
  color: var(--c-navy);
  font-size: 1rem;
  padding: 0.72em 1.28em;
}
.nav-phone a:hover, .nav-phone a:focus-visible {
  background: var(--c-navy);
  border-color: var(--c-navy);
  color: var(--c-white);
}
.nav-cta a { font-size: 1rem; padding: 0.78em 1.4em; }

/* mega menu */
.mega {
  position: absolute; top: calc(100% + 0.9rem); left: 50%; translate: -50% 0;
  min-width: 560px; display: none;
  grid-template-columns: 1fr 1fr; gap: 0.4rem;
  list-style: none; margin: 0; padding: 0.9rem;
  background: var(--c-pale); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.has-mega > button[aria-expanded="true"] + .mega { display: grid; }
.mega::before {
  content: ""; position: absolute; top: -0.9rem; left: 0; right: 0; height: 1rem;
}
.mega a {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto;
  column-gap: 0.8rem; align-items: center;
  padding: 0.7rem 0.8rem; border-radius: var(--r-sm); text-decoration: none;
}
.mega a:hover, .mega a[aria-current] { background: var(--c-white); }
.mega img { grid-row: 1 / 3; width: 40px; height: 40px; object-fit: contain; }
.mm-title { font-family: var(--f-head); font-weight: 700; color: var(--c-navy); }
.mm-blurb { grid-column: 2; font-size: 0.85rem; color: var(--c-ink); opacity: 0.75; line-height: 1.3; }

/* hamburger */
.nav-toggle { display: none; }

/* --------------------------------- hero -------------------------------- */
.hero {
  position: relative;
  background: var(--hero-img) center / cover no-repeat;
  margin-top: calc(-1 * (68px + 2.85rem));   /* pull the hero under the lowered floating nav */
  padding: calc(96px + var(--space-6)) 0 calc(var(--space-6) + 70px);
  text-align: center; color: var(--c-white);
}
.hero-home-bright {
  background: var(--hero-img) center / cover no-repeat;
}
.hero h1,
.hero .hero-kicker,
.hero .hero-lead {
  text-shadow: 0 3px 20px rgba(5, 27, 71, 0.7), 0 1px 3px rgba(5, 27, 71, 0.85);
}
.hero-short { padding-bottom: var(--space-5); }
.hero h1 { color: var(--c-white); max-width: 20ch; margin-inline: auto; }
.hero .rule { margin-inline: auto; }
.hero-kicker {
  font-family: var(--f-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.95rem; color: var(--c-accent); margin-bottom: 0.8rem;
}
.hero-lead { max-width: 62ch; margin-inline: auto; font-size: 1.2rem; opacity: 0.95; }
.hero-roof-restorations .hero-lead {
  color: var(--c-ink);
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(255, 255, 255, 0.75);
}
.hero-ctas { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: var(--space-3); }

/* trust trio overlapping hero */
.trust-trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  margin-top: -70px; position: relative; z-index: 5;
  margin-bottom: var(--space-5);
}
.trust-card {
  background: linear-gradient(160deg, rgba(237, 246, 252, 0.88), rgba(237, 246, 252, 0.68));
  color: var(--c-ink); border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.48);
  padding: var(--space-4) var(--space-3);
  box-shadow: 0 22px 50px rgba(5, 27, 71, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}
.trust-card h3 { color: var(--c-navy); }
.trust-card .rule { width: 44px; }
.trust-card p { margin: 0; font-size: 1rem; opacity: 0.88; }
.tc-icon { color: var(--c-primary); }
.tc-icon svg { width: 2.4rem; height: 2.4rem; margin-bottom: var(--space-2); }

/* ------------------------------- sections ------------------------------ */
section { padding-block: var(--space-5); }
.hero, .trust-trio { padding-block: 0; }
.trust-trio { padding-top: 0; }
.hero { padding-top: calc(96px + var(--space-6)); padding-bottom: calc(var(--space-6) + 70px); }
.hero-short + * { margin-top: var(--space-5); }

/* split (image + body) */
.split-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.split.flip .split-grid figure { order: 2; }
.split-grid figure img { border-radius: var(--r-md); box-shadow: var(--shadow); object-fit: cover; height: 100%; }
.split-photo-fill .split-grid figure { align-self: stretch; }
.split-photo-fill .split-grid figure img { width: 100%; height: 100%; object-fit: cover; }
.split-photo-tall .split-grid { align-items: stretch; }
.split-photo-tall .split-grid figure { min-height: clamp(22rem, 34vw, 30rem); }
.split-photo-tall .split-grid figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.split-body > :last-child { margin-bottom: 0; }
.split-body ul { padding-left: 1.1em; }
.split-body li { margin-bottom: 0.35em; }

/* icon columns */
.icon-cols { background: var(--c-white); }
.icon-col img, .icon-col .ic-lg { margin-bottom: var(--space-2); }
.icon-col .ic-lg svg { width: 2.6rem; height: 2.6rem; color: var(--c-primary); }
.icon-col p { font-size: 1rem; margin: 0; }
.milestone-cols { overflow: hidden; }
.timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  margin-top: var(--space-4);
  padding-top: 3.1rem;
}
.timeline-grid::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 1.45rem;
  left: clamp(3rem, 9vw, 7rem);
  right: clamp(3rem, 9vw, 7rem);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(9, 114, 181, 0.16), rgba(11, 193, 251, 0.78), rgba(9, 114, 181, 0.16));
}
.timeline-card {
  position: relative;
  z-index: 1;
  min-height: 100%;
  border: 1px solid rgba(9, 114, 181, 0.18);
  border-radius: var(--r-md);
  background: var(--c-white);
  box-shadow: var(--shadow);
  padding: calc(var(--space-3) + 0.6rem) var(--space-3) var(--space-3);
}
.timeline-card::before {
  content: "";
  position: absolute;
  top: -1.65rem;
  left: 50%;
  width: 2px;
  height: 1.65rem;
  translate: -50% 0;
  background: rgba(9, 114, 181, 0.24);
}
.timeline-year {
  position: absolute;
  top: -1.65rem;
  left: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  min-height: 3rem;
  padding: 0.45rem 1rem;
  border: 4px solid var(--c-white);
  border-radius: var(--r-pill);
  background: var(--c-navy);
  color: var(--c-white);
  box-shadow: 0 14px 30px rgba(7, 40, 103, 0.18);
  font-family: var(--f-head);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.timeline-card h3 { margin-bottom: 0.45rem; }
.timeline-card p { font-size: 1rem; margin: 0; }
.marquee-pill {
  display: inline-flex; overflow: hidden; max-width: 240px;
  border: 2px solid var(--c-accent); border-radius: var(--r-pill);
  padding: 0.35em 1.2em; margin-bottom: var(--space-3);
  font-family: var(--f-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 0.85rem; color: var(--c-primary); white-space: nowrap;
}

/* card grids */
.card-grid { display: grid; gap: 1.2rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--c-white); border-radius: var(--r-md);
  padding: var(--space-3); box-shadow: var(--shadow);
}
.cg-card { display: block; text-decoration: none; color: var(--c-ink); transition: translate 0.2s, box-shadow 0.2s; }
.cg-card:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); color: var(--c-ink); }
.cg-card .rule { width: 40px; margin-bottom: var(--space-2); }
.cg-card img { margin-bottom: var(--space-2); }
.cg-body p { font-size: 1rem; margin-bottom: 0.5em; }
.cg-more { font-family: var(--f-head); font-weight: 700; color: var(--c-primary); font-size: 0.95rem; }

/* dark rounded band */
.dark-band, .cta-band {
  --band-img: none;
  max-width: calc(var(--wrap) + 4rem); margin-inline: auto;
  border-radius: var(--r-lg);
  background:
    linear-gradient(rgba(5, 27, 71, 0.85), rgba(5, 27, 71, 0.88)),
    var(--band-img) center / cover no-repeat, var(--c-navy);
  color: var(--c-white);
  padding: var(--space-5) 0; margin-block: var(--space-4);
}
.dark-band h2, .cta-band h2 { color: var(--c-white); text-align: center; }
.band-intro { text-align: center; max-width: 68ch; margin: 0 auto var(--space-4); opacity: 0.92; }
.dark-band .card h3 { color: var(--c-primary); }
.dark-band .cg-card { height: 100%; }

/* primary blue band with steps */
.process-band {
  max-width: calc(var(--wrap) + 4rem); margin-inline: auto;
  border-radius: var(--r-lg); background: var(--c-primary); color: var(--c-white);
  padding: var(--space-5) 0; margin-block: var(--space-4);
}
.process-band h2 { color: var(--c-white); text-align: center; }
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
  counter-reset: step;
}
.steps-grid li { position: relative; }
.step-num {
  display: block; font-family: var(--f-head); font-weight: 700;
  font-size: 3.2rem; line-height: 1; color: var(--c-accent); margin-bottom: 0.3em;
}
.steps-grid h3 { color: var(--c-white); font-size: 1.2rem; }
.steps-grid p { font-size: 0.98rem; margin: 0; opacity: 0.92; }

/* faq */
.faq-band.tone-blue {
  max-width: calc(var(--wrap) + 4rem); margin-inline: auto;
  border-radius: var(--r-lg); background: var(--c-primary); color: var(--c-white);
  padding: var(--space-5) 0; margin-block: var(--space-4);
}
.faq-band.tone-blue h2 { color: var(--c-white); text-align: center; }
.faq-band.tone-light h2 { text-align: center; }
.faq-list { max-width: 860px; margin-inline: auto; }
.faq-list details { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.faq-band.tone-light .faq-list details { border-color: var(--c-line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--f-head); font-weight: 500; font-size: 1.15rem;
  padding: 1.1rem 0.2rem; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 1.6em; height: 1.6em; border-radius: 50%;
  background: var(--c-accent); color: var(--c-navy);
  font-weight: 700; transition: rotate 0.2s;
}
details[open] .faq-plus { rotate: 45deg; }
.faq-a { padding: 0 2.6rem 1.2rem 0.2rem; }
.faq-a p { margin: 0; opacity: 0.95; }

/* reviews */
.reviews-band { background: var(--c-off); }
.reviews-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1.5rem;
  margin-bottom: var(--space-4); flex-wrap: wrap;
}
.reviews-head p { max-width: 60ch; margin: 0; }
.verified-reviews-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}
.review-rating-card {
  background: linear-gradient(155deg, var(--c-navy), var(--c-navy-deep));
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.review-rating-card .review-score {
  font-family: var(--f-head);
  font-size: clamp(3rem, 6vw, 4.1rem);
  font-weight: 700;
  line-height: 0.9;
}
.review-rating-card .stars { color: var(--c-accent); margin: 0.75rem 0 0.25rem; }
.review-rating-card p { color: rgba(255, 255, 255, 0.86); font-size: 0.98rem; margin: 0; }
.review-rating-card a {
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--f-head);
  font-weight: 700;
  margin-top: 1.15rem;
  text-decoration: none;
}
.review-rating-card a:hover { color: var(--c-white); }
.review-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.review-card p { flex: 1; font-size: 1rem; line-height: 1.52; margin: 0; }
.review-card .stars { color: var(--c-primary); margin-bottom: 0.85rem; }
.review-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  color: rgba(24, 32, 46, 0.75);
  font-size: 0.9rem;
}
.review-meta b {
  color: var(--c-navy);
  font-family: var(--f-head);
  font-weight: 700;
}
.review-author {
  width: 100%;
  color: var(--c-navy);
  font-family: var(--f-head);
  font-weight: 700;
}
.google-review-mark { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
blockquote.review-card { margin: 0; }

/* cta band */
.cta-band { text-align: center; }
.cta-band p { max-width: 60ch; margin: 0 auto var(--space-3); opacity: 0.95; }

/* prose */
.prose-band.tone-pale { background: var(--c-pale); }
.prose-band.center { text-align: center; }
.prose-band.center .rule { margin-inline: auto; }
.prose-wrap { max-width: 900px; }
.prose-wrap .lead { font-size: 1.25rem; }

/* tables */
.table-scroll { overflow-x: auto; }
.cost-table {
  width: 100%; border-collapse: collapse; font-size: 1rem;
  border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow);
  background: var(--c-white);
}
.cost-table th, .cost-table td { text-align: left; padding: 0.75rem 1rem; }
.cost-table thead th {
  background: var(--c-primary); color: var(--c-white);
  font-family: var(--f-head); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9rem;
}
.cost-table tbody tr:nth-child(even) { background: var(--c-pale); }
.cost-table tbody th { font-weight: 600; }
.cost-note { font-size: 0.92rem; opacity: 0.75; margin-top: 0.8rem; }

/* challenges */
.sticky-intro { align-self: start; position: sticky; top: 110px; }
.challenge-stack { display: grid; gap: 1.2rem; }
.challenge-stack .challenge-card:nth-child(even) { translate: clamp(0px, 3vw, 2.5rem) 0; }
.challenge-card { background: var(--c-pale); box-shadow: none; }
.challenge-card h3 { color: var(--c-primary); }
.challenge-card p:last-child { margin: 0; }

/* gallery */
.gallery-band h2 { text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-grid img { border-radius: var(--r-md); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.work-carousel { margin-top: var(--space-3); }
.work-carousel-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.work-carousel-count {
  margin: 0;
  color: rgba(24, 32, 46, 0.64);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work-carousel-count b { color: var(--c-navy); }
.work-carousel-nav {
  display: flex;
  gap: 0.65rem;
  margin-left: auto;
}
.work-carousel-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-primary);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(7, 40, 103, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.work-carousel-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.work-carousel-btn:hover,
.work-carousel-btn:focus-visible {
  background: var(--c-primary);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(7, 40, 103, 0.16);
}
.work-carousel-btn:disabled {
  opacity: 0.34;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}
.work-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
}
.work-carousel-viewport::-webkit-scrollbar { display: none; }
.work-carousel-viewport:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 4px;
}
.work-carousel-viewport.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.work-carousel-track {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0.05rem 0.3rem;
}
.work-slide {
  flex: 0 0 calc(33.333% - 0.667rem);
  scroll-snap-align: start;
}
.work-slide figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  background: var(--c-pale);
  box-shadow: var(--shadow);
}
.work-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.work-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1rem 0.9rem;
  color: var(--c-white);
  font-size: 0.92rem;
  line-height: 1.25;
  background: linear-gradient(180deg, rgba(5, 27, 71, 0), rgba(5, 27, 71, 0.86));
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.work-slide figure:hover img { transform: scale(1.045); }
.work-slide figure:hover figcaption,
.work-slide figure:focus-within figcaption {
  opacity: 1;
  transform: none;
}
.work-carousel-progress {
  height: 4px;
  margin-top: 1.25rem;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: rgba(7, 40, 103, 0.1);
}
.work-carousel-progress span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transition: width 0.18s ease;
}

/* ---------------------------- contact band ----------------------------- */
.contact-band {
  background:
    linear-gradient(rgba(5, 27, 71, 0.92), rgba(5, 27, 71, 0.94)),
    url("../img/footer-section-bg.webp") center / cover no-repeat, var(--c-navy);
  padding-block: var(--space-5);
}
.contact-band-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; align-items: stretch; }
.contact-page-enquiry .contact-band-grid { grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 1fr); align-items: start; }
.contact-band .card { border-radius: var(--r-md); }
.contact-rows { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: 1rem; }
.contact-rows li { display: flex; gap: 0.9rem; align-items: start; }
.contact-rows .ic {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--c-primary); color: var(--c-white);
}
.contact-rows strong { display: block; font-family: var(--f-head); color: var(--c-navy); }
.contact-rows a { text-decoration: none; }
.map-embed iframe { width: 100%; height: 220px; border: 0; border-radius: var(--r-sm); }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.2rem; margin-bottom: 0.9rem; }
.contact-form-card label {
  display: block; font-family: var(--f-head); font-weight: 500;
  font-size: 0.92rem; color: var(--c-primary); letter-spacing: 0.03em;
}
.contact-form-card input, .contact-form-card select, .contact-form-card textarea {
  width: 100%; margin-top: 0.3rem; padding: 0.65rem 0.9rem;
  font: inherit; color: var(--c-ink);
  border: 1px solid rgba(9, 114, 181, 0.35); border-radius: var(--r-sm);
  background: var(--c-white);
}
.contact-form-card input:focus, .contact-form-card select:focus, .contact-form-card textarea:focus {
  outline: 2px solid var(--c-accent); outline-offset: 1px; border-color: transparent;
}
.contact-form-card textarea { resize: vertical; }
.contact-form-card .btn { margin-top: 1rem; }
.form-note { font-size: 0.9rem; opacity: 0.7; margin: 0.8rem 0 0; }
.hp { position: absolute; left: -9999px; }

/* -------------------------------- footer ------------------------------- */
.site-footer { padding: var(--space-4) clamp(0.5rem, 2vw, 1.5rem) 0; background: var(--c-navy-deep); }
.footer-main {
  background: var(--c-pale); color: var(--c-ink);
  border-radius: var(--r-lg);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  padding: var(--space-5) clamp(1.5rem, 4vw, 3.5rem);
  translate: 0 2.5rem; margin-top: -2.5rem; position: relative; z-index: 2;
}
.f-brand img { width: min(11rem, 72vw); }
.f-brand p { font-size: 0.95rem; opacity: 0.92; }
.f-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-block: var(--space-2); }
.f-buttons .btn { font-size: 0.85rem; padding: 0.6em 1.2em; }
.f-social { display: flex; gap: 0.8rem; margin-top: var(--space-2); }
.f-social a { color: var(--c-navy); }
.f-social svg { width: 1.5rem; height: 1.5rem; }
.f-col h3 {
  color: var(--c-primary); font-size: 1rem; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 500;
}
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin-bottom: 0.45em; }
.f-col a { color: var(--c-navy); text-decoration: none; font-size: 1rem; opacity: 0.92; }
.f-col a:hover, .f-col a[aria-current] { color: var(--c-primary); opacity: 1; }
.zdl-footer-credit {
  display: flex;
  justify-content: center;
  padding: 0.15rem 1rem var(--space-4);
}
.zdl-footer-credit a {
  display: inline-flex;
  align-items: center;
  opacity: 0.78;
  transition: opacity 0.16s ease;
}
.zdl-footer-credit a:hover,
.zdl-footer-credit a:focus-visible { opacity: 1; }
.zdl-footer-credit img {
  display: block;
  width: auto;
  height: 1.88rem;
  max-width: min(18rem, 78vw);
}
.footer-copy {
  background: var(--c-navy-deep); color: rgba(255, 255, 255, 0.75);
  text-align: center; font-size: 0.88rem;
  padding: calc(2.5rem + var(--space-3)) 1rem 0.95rem;
}
.footer-copy p { margin: 0; }

/* ------------------------------ responsive ----------------------------- */
@media (max-width: 1080px) {
  .nav-menu > li > a, .nav-menu > li > button { font-size: 0.85rem; padding: 0.6em 0.5em; }
  .nav-phone { display: none; }
}
@media (max-width: 920px) {
  .info-strip { justify-content: center; }
  .info-left, .info-right { display: none; }
  .site-header {
    padding: 0.55rem clamp(0.5rem, 2vw, 1.5rem) 0.75rem;
    background: var(--c-white);
  }
  .nav-pill {
    gap: 0.75rem;
    padding: 0.4rem 0.6rem 0.4rem 1.2rem;
  }
  .nav-logo img { height: 44px; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    margin-left: auto; background: none; border: 0; cursor: pointer; padding: 0.8rem;
  }
  .nav-toggle span:not(.sr-only) {
    width: 24px; height: 2.5px; border-radius: 2px; background: var(--c-navy); transition: 0.2s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { translate: 0 7.5px; rotate: 45deg; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { translate: 0 -7.5px; rotate: -45deg; }

  .nav-menu {
    display: none; position: absolute; left: 0.5rem; right: 0.5rem; top: calc(100% + 0.5rem);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-pale); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
    padding: 0.8rem; max-height: min(70vh, calc(100dvh - 180px)); overflow: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a, .nav-menu > li > button {
    width: 100%; justify-content: space-between; color: var(--c-navy);
    font-size: 1rem; padding: 0.9em 1em; border-radius: var(--r-sm);
  }
  .nav-menu > li > a:hover, .nav-menu > li > button:hover,
  .has-mega > button[aria-expanded="true"],
  .nav-menu > li > a[aria-current] {
    background: var(--c-white); color: var(--c-navy);
  }
  .mega {
    position: static; translate: none; min-width: 0; grid-template-columns: 1fr;
    box-shadow: none; padding: 0 0 0.5rem; background: none;
  }
  .nav-phone { display: block; margin-top: 0.9rem; }
  .nav-cta { margin-top: 0.6rem; }
  .nav-menu .nav-phone > a.btn,
  .nav-menu .nav-cta > a.btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    border-radius: var(--r-pill);
    padding: 0.9rem 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 24px rgba(5, 27, 71, 0.12);
  }
  .nav-menu .nav-phone > a.btn {
    background: var(--c-primary);
    color: var(--c-white);
    border-color: transparent;
  }
  .nav-menu .nav-cta > a.btn {
    background: var(--c-accent);
    color: var(--c-navy);
    border-color: transparent;
  }
  .nav-menu .nav-phone > a.btn:hover,
  .nav-menu .nav-phone > a.btn:focus-visible {
    background: var(--c-navy);
    color: var(--c-white);
  }
  .nav-menu .nav-cta > a.btn:hover,
  .nav-menu .nav-cta > a.btn:focus-visible {
    background: var(--c-navy);
    color: var(--c-white);
  }
  .site-header { position: sticky; left: auto; right: auto; }
  body { padding-top: 0; }

  .trust-trio { grid-template-columns: 1fr; margin-top: -50px; }
  .split-grid { grid-template-columns: 1fr; }
  .split.flip .split-grid figure { order: 0; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-band-grid,
  .contact-page-enquiry .contact-band-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .sticky-intro { position: static; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .verified-reviews-grid { grid-template-columns: 1fr; }
  .work-slide { flex-basis: calc(50% - 0.5rem); }
  .hero { margin-top: 0; padding-top: calc(var(--space-5) + 2rem); }
  .timeline-grid { grid-template-columns: 1fr; }
  .timeline-grid::before {
    left: 1.5rem;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, rgba(9, 114, 181, 0.16), rgba(11, 193, 251, 0.72), rgba(9, 114, 181, 0.16));
  }
  .timeline-card {
    min-height: 0;
    padding: var(--space-3) var(--space-3) var(--space-3) calc(var(--space-4) + 1rem);
  }
  .timeline-card::before {
    top: 2.15rem;
    left: 1.5rem;
    width: calc(var(--space-4) - 0.2rem);
    height: 2px;
    translate: 0 0;
  }
  .timeline-year {
    top: 2.15rem;
    left: 1.5rem;
    min-width: 5.15rem;
    min-height: 2.45rem;
    padding-inline: 0.7rem;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  .cols-2, .cols-3, .cols-4, .steps-grid, .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .zdl-footer-credit { padding-bottom: var(--space-3); }
  .zdl-footer-credit img { height: 1.72rem; }
  .timeline-grid { margin-top: var(--space-3); padding-top: 0; }
  .timeline-card { padding: 4.15rem 1.15rem 1.25rem; }
  .timeline-grid::before {
    display: none;
  }
  .timeline-card::before { display: none; }
  .timeline-year { top: 1.5rem; left: 50%; min-width: 5.7rem; }
  .work-carousel-head { align-items: flex-start; }
  .work-carousel-count { font-size: 0.78rem; }
  .work-carousel-nav { gap: 0.45rem; }
  .work-carousel-btn { width: 2.7rem; height: 2.7rem; }
  .work-slide { flex-basis: 82%; }
  .work-slide figcaption {
    opacity: 1;
    transform: none;
    font-size: 0.86rem;
  }
  .challenge-stack .challenge-card:nth-child(even) { translate: 0; }
  .reviews-head { align-items: start; flex-direction: column; }
  .review-rating-card,
  .review-card { padding: 1.25rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .notice-strip { font-size: 0.85rem; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
