:root {
  --navy-950: #031C35;
  --navy-900: #062B4F;
  --navy-800: #0C3D68;
  --orange-500: #FF6313;
  --orange-600: #E95719;
  --orange-300: #FFAD87;
  --orange-100: #FFF0E9;
  --blue-100: #EEF5FA;
  --blue-50: #F6F9FC;
  --ink: #10263B;
  --copy: #526577;
  --muted: #8A99A6;
  --line: #DCE6EE;
  --line-dark: #33475B;
  --copy-dark: #B4BFCA;
  --paper: #FFFFFF;
  --focus: #1B76D1;
  --success: #0F7654;
  --success-soft: #E8F6EF;
  --warning: #A64319;
  --radius-button: 8px;
  --radius-field: 7px;
  --radius-card: 16px;
  --radius-content: 14px;
}

body {
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
}

/* Shared official-site header structure */
.official-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 75px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.official-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(3, 28, 53, 0.08);
}

.official-header .header-shell {
  width: min(1290px, calc(100% - 32px));
  min-height: 75px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 205px 250px minmax(360px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.official-header .brand {
  width: 195px;
  display: block;
}

.official-header .brand img {
  width: 100%;
  height: auto;
}

.official-header .header-contact {
  display: grid;
  gap: 1px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.official-header .header-contact a {
  color: var(--navy-950);
  text-decoration: none;
}

.official-header .primary-nav {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 27px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.official-header .primary-nav > a,
.official-header .nav-dropdown-toggle {
  padding: 12px 0;
  color: var(--navy-950);
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.official-header .primary-nav > a:hover,
.official-header .nav-dropdown-toggle:hover,
.official-header .nav-active {
  color: var(--orange-600);
}

.official-header .nav-dropdown {
  position: relative;
}

.official-header .nav-dropdown-toggle span {
  display: inline-block;
  margin-left: 3px;
  transition: transform 160ms ease;
}

.official-header .nav-dropdown.is-open .nav-dropdown-toggle span {
  transform: rotate(180deg);
}

.official-header .dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: -18px;
  width: 286px;
  display: none;
  padding: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  box-shadow: 0 18px 45px rgba(3, 28, 53, 0.15);
}

.official-header .dropdown-menu-right {
  right: -18px;
  left: auto;
  width: 225px;
}

.official-header .nav-dropdown.is-open .dropdown-menu {
  display: grid;
}

.official-header .dropdown-menu a {
  padding: 10px 11px;
  color: var(--ink);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.official-header .dropdown-menu a:hover,
.official-header .dropdown-menu .dropdown-active {
  color: var(--navy-950);
  background: var(--orange-100);
}

.official-header .header-quote {
  min-height: 40px;
  padding-inline: 18px;
  color: var(--paper);
  background: var(--orange-500);
  border-color: var(--orange-500);
  border-radius: var(--radius-button);
  font-size: 14px;
}

.official-header .header-quote:hover {
  color: var(--paper);
  background: var(--orange-600);
  border-color: var(--orange-600);
}

.official-header .mobile-nav-quote,
.official-header .menu-toggle {
  display: none;
}

/* Shared cookie and optional-media controls */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: min(680px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 24px;
  color: var(--paper);
  background: var(--navy-950);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-content);
  box-shadow: 0 20px 55px rgba(3, 28, 53, 0.28);
}

.cookie-banner strong {
  display: block;
  margin-bottom: 7px;
  font-size: 20px;
}

.cookie-banner p {
  margin: 0 0 8px;
  color: var(--copy-dark);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-banner a {
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.cookie-banner-actions {
  display: grid;
  gap: 9px;
  min-width: 210px;
}

.cookie-banner .button {
  justify-content: center;
  min-height: 44px;
  font-size: 14px;
}

.cookie-reject {
  color: var(--paper);
  background: transparent;
  border-color: var(--copy-dark);
}

.cookie-reject:hover {
  color: var(--navy-950);
  background: var(--paper);
  border-color: var(--paper);
}

.youtube-consent-placeholder {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--paper);
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  text-align: center;
}

.youtube-consent-placeholder strong {
  font-size: 20px;
}

.youtube-consent-placeholder p {
  max-width: 420px;
  margin: 8px 0 18px;
  color: var(--copy-dark);
}

@media (max-width: 760px) {
  .cookie-banner {
    right: 12px;
    bottom: 76px;
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .cookie-banner-actions {
    min-width: 0;
  }

  .youtube-consent-placeholder {
    min-height: 220px;
    padding: 22px;
  }
}

/* Exact cross-page colour rules */
.button-primary {
  color: var(--paper);
  background: var(--orange-500);
  border-color: var(--orange-500);
}

.button-primary:hover {
  color: var(--paper);
  background: var(--orange-600);
  border-color: var(--orange-600);
}

.button-ghost {
  color: var(--paper);
  background: transparent;
  border-color: var(--copy-dark);
}

.button-ghost:hover {
  color: var(--paper);
  background: var(--navy-800);
  border-color: var(--paper);
}

.button-light {
  color: var(--navy-900);
  background: var(--paper);
  border-color: var(--paper);
}

.eyebrow { color: var(--orange-600); }
.eyebrow-light { color: var(--orange-300); }

.home-hero h1,
.hero h1,
.sectors-section h2,
.comparison-section h2,
.final-cta h2,
.site-footer h2,
.site-footer h3 {
  color: var(--paper);
}

.home-hero .hero-lead,
.home-hero .hero-points,
.hero .hero-lead,
.hero .hero-points,
.sectors-section .sector-lead,
.sectors-section .sector-content > p:not(.eyebrow),
.comparison-section .comparison-copy > p:not(.eyebrow),
.final-cta p:not(.eyebrow),
.site-footer p,
.site-footer a,
.site-footer span {
  color: var(--copy-dark);
}

.hero .hero-lead { font-size: 18px; }

.home-hero .hero-points li,
.hero .hero-points li,
.sector-chips span,
.sector-intro > p:not(.eyebrow),
.sector-item p,
.estimate-panel small,
.heading-row-light p:last-child,
.project figcaption span,
.proof-media blockquote span,
.final-phone,
.final-cta p:last-child,
.footer-brand p,
.footer-grid a,
.footer-legal {
  color: var(--copy-dark);
}

.home-hero .hero-points li span,
.hero .hero-points li span { color: var(--orange-300); }

.sector-chips span,
.comparison-note,
.site-footer .footer-legal,
.site-footer .footer-bottom {
  border-color: var(--line-dark);
}

.hero-image,
.quote-card,
.calculator-card,
.sector-list,
.sector-item,
.sector-item:nth-child(even),
.final-cta::after {
  border-color: var(--line-dark);
}

.service-index,
.directory-number,
.service-standard,
.guide-meta,
.testimonial-meta {
  color: var(--muted);
}

input,
select,
textarea {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

input::placeholder,
textarea::placeholder { color: var(--muted); }

input:focus,
select:focus,
textarea:focus { border-color: var(--focus); }

@media (max-width: 1080px) {
  .official-header .header-shell {
    grid-template-columns: 185px 205px minmax(320px, 1fr) auto;
    gap: 16px;
  }

  .official-header .brand { width: 175px; }
  .official-header .primary-nav { gap: 18px; }
}

@media (max-width: 900px) {
  body { font-size: 16px; line-height: 1.6; }
  .home-hero h1 { font-size: 43px; }
  .hero h1 { font-size: 38px; }
  .page-service h2 { font-size: 30px; }
  .page-home h2 { font-size: 32px; }
  h3 { font-size: 20px; }
  .home-hero .hero-lead,
  .hero .hero-lead { font-size: 17px; line-height: 1.6; }

  .official-header {
    min-height: 68px;
  }

  .official-header .header-shell {
    width: min(100% - 28px, 760px);
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }

  .official-header .brand { width: 160px; }

  .official-header .header-contact,
  .official-header .header-quote { display: none; }

  .official-header .menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 0;
    color: var(--navy-950);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-button);
  }

  .official-header .menu-toggle span:not(.sr-only) {
    width: 20px;
    height: 2px;
    display: block;
    background: currentColor;
  }

  .official-header .primary-nav {
    position: fixed;
    inset: 68px 0 auto;
    max-height: calc(100vh - 68px);
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    padding: 14px 20px 24px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(3, 28, 53, 0.14);
  }

  .official-header .primary-nav.is-open { display: grid; }

  .official-header .primary-nav > a,
  .official-header .nav-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    text-align: left;
  }

  .official-header .dropdown-menu,
  .official-header .dropdown-menu-right {
    position: static;
    width: 100%;
    padding: 6px 0 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  .official-header .dropdown-menu a { font-size: 15px; }

  .official-header .mobile-nav-quote {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 0 20px;
    color: var(--paper);
    background: var(--orange-500);
    border: 1px solid var(--orange-500);
    border-radius: var(--radius-button);
    font-size: 16px;
  }
}

/* Shared mobile reading scale. Keep labels compact, but never use small
   display text for information a customer needs to understand. */
@media (max-width: 760px) {
  .page-home h1,
  .home-hero h1 {
    font-size: 40px !important;
    line-height: 1.1 !important;
  }

  .page-service h1,
  .page-service [class*="hero"] h1 {
    font-size: 34px !important;
    line-height: 1.12 !important;
  }

  .page-home h2,
  .page-service h2 {
    font-size: 28px !important;
    line-height: 1.12 !important;
  }

  main p:not(.eyebrow):not(.service-standard):not(.comparison-note),
  main li,
  main summary {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  main article p,
  main [class*="card"] p,
  main [class*="step"] p,
  main [class*="proof"] p,
  main [class*="fact"] p,
  main [class*="note"] p,
  main .small-print {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .hero-points li,
  .directory-item div > span,
  .hero-certificate div span,
  .treatment-facts span,
  .sector-tags span,
  .stain-points span,
  .site-footer p,
  .site-footer a {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .eyebrow,
  .service-index,
  .service-standard,
  [class*="kicker"],
  [class*="number"],
  [class*="label"] {
    font-size: 13px !important;
  }

  main figcaption,
  main small,
  .comparison-note,
  .site-footer .footer-legal,
  .site-footer .footer-legal span {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .comparison-card > span,
  .choice-pill {
    font-size: 12px !important;
  }

  .button,
  button,
  input,
  select,
  textarea {
    font-size: 16px;
  }
}
