/* Self-hosted so no visitor data reaches a third party and no CSP entry is needed. */
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* Brightleaf Cleaning demo: shared stylesheet.
   Palette: white base with ice-blue tint sections, slate ink text,
   vivid blue primary reserved for calls to action, deep navy dark bands. */

:root {
  --ink: #0f172a;
  --ink-soft: #364151;
  --blue: #0067ff;
  --blue-deep: #005ee9;
  --cta: #0067ff;
  --cta-deep: #0b0b30;
  --bg: #ffffff;
  --bg-cool: #e7f6ff;
  --line: #d1dae5;
  --accent: #d6336c;
  --accent-light: #ffb3d1;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --wrap: 1120px;
  --font-head: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }
a { color: var(--blue-deep); }
img { max-width: 100%; height: auto; display: block; }

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

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 .6em;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

/* Pink accent words. Em in a heading or lede is a highlight, not stress
   emphasis: rose on light sections, light pink on the navy bands. */
h1 em, h2 em, .lede em { font-style: italic; color: var(--accent); margin-right: .06em; }
.hero-full em, .cta-banner em { color: var(--accent-light); }

/* Buttons. The vivid blue --cta is the CTA colour; --cta-deep (navy) on hover. */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--blue-deep);
  color: var(--blue-deep);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--blue-deep); color: #fff; }

.btn-cta {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}
.btn-cta:hover { background: var(--cta-deep); border-color: var(--cta-deep); color: #fff; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--cta-deep); outline-offset: 2px; }
.cta-banner :focus-visible, .site-footer :focus-visible, .hero-full :focus-visible { outline-color: #fff; }

/* Form fields and the quote-form status line.
   The .ok and .err classes are set by quote-form.js. */
label { font-weight: 500; display: inline-block; margin-bottom: 4px; }
input, select, textarea { font: inherit; color: inherit; background: #fff; }
#cf-status { font-weight: 500; min-height: 1.5em; margin: 0; }
#cf-status.ok { color: #17693f; }
#cf-status.err { color: #b3261e; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--blue-deep); }

/* Footer */
.site-footer { background: #0b0b30; color: #c9d4e2; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 32px; padding-top: 20px; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  body { font-size: 16px; }
}

/* Full-bleed photo hero with navy overlay for legible white text. */
.hero-full {
  position: relative;
  background: linear-gradient(rgba(11, 11, 48, .66), rgba(15, 23, 42, .5)),
              url("/images/hero.jpg") center / cover no-repeat;
  color: #fff;
  padding: 120px 0 110px;
}
.hero-full .eyebrow { color: #a9ccff; }
.hero-full h1 { color: #fff; max-width: 18ch; }
.hero-full .lede { color: #e6edf5; }

.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Benefits band */
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-5 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-5 .card { padding: 22px; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg-cool); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.icon-badge svg { width: 24px; height: 24px; }

/* Homepage FAQ: native details/summary accordions, no JS. */
.faq-list { max-width: 780px; margin-top: 24px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; font-family: var(--font-head); font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; line-height: 1;
  color: var(--blue-deep); flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); }

/* Framed photo (crew photo on the About page) */
.photo-frame { margin: 32px 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-frame img { width: 100%; height: auto; display: block; }
.photo-frame figcaption { font-size: .85rem; color: var(--ink-soft); padding: 10px 14px; background: #fff; border-top: 1px solid var(--line); }

/* Pre-form CTA banner */
.cta-banner { background: #0b0b30; color: #fff; text-align: center; padding: 64px 0; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #c9d4e2; max-width: 54ch; margin-left: auto; margin-right: auto; }

/* Narrow header, no-JS fallback: brand keeps its own row and the nav wraps
   below it. When nav.js runs it adds .nav-ready and the hamburger takes over. */
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 6px; }
  .site-nav ul { gap: 10px 16px; }
}

/* Hamburger toggle. Hidden until nav.js marks the header .nav-ready, so the
   menu is never trapped behind a dead button. */
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; margin: 5px 0;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
@media (max-width: 720px) {
  .site-header.nav-ready .wrap { flex-wrap: nowrap; }
  .site-header.nav-ready .nav-toggle { display: block; }
  .site-header.nav-ready .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 8px 20px 18px;
  }
  .site-header.nav-ready.open .site-nav { display: block; }
  .site-header.nav-ready .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-header.nav-ready .site-nav a { display: block; padding: 12px 4px; font-size: 1.05rem; }
  .site-header.nav-ready .site-nav a.btn { margin-top: 10px; text-align: center; }
  .site-header.nav-ready.open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .site-header.nav-ready.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-ready.open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* Signature reveal. The .reveal class is added by reveal.js only, so if JS
   never runs nothing is ever hidden. reveal.js also bails out entirely for
   prefers-reduced-motion users. Grids get a feather-duster sweep (.duster)
   that the boxes trail behind, left to right. */
.reveal { opacity: 0; transform: translateY(22px) scale(.97); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

.dust-host { position: relative; }
.duster {
  position: absolute; top: -52px; left: -130px;
  width: 112px; height: 112px; z-index: 4;
  pointer-events: none; opacity: 0;
  filter: drop-shadow(0 8px 16px rgba(11, 11, 48, .3));
}
.duster svg { width: 100%; height: 100%; }
.duster.go { animation-name: duster-sweep; animation-timing-function: ease-in-out; animation-fill-mode: forwards; }
@keyframes duster-sweep {
  0%   { left: -130px; opacity: 0; transform: rotate(-16deg); }
  8%   { opacity: 1; }
  25%  { transform: rotate(12deg) translateY(12px); }
  50%  { transform: rotate(-12deg) translateY(-8px); }
  75%  { transform: rotate(10deg) translateY(10px); }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; transform: rotate(-8deg); }
}
@media (max-width: 640px) {
  .duster { width: 80px; height: 80px; top: -36px; }
}
