/* ============================================================
   BlueStar Handyman — Growth Tier
   Professional Navy/Gold — Trust-First Home Service
   ============================================================ */

:root {
  --primary:        #1e3a8a;
  --primary-dark:   #152c6b;
  --primary-light:  #2d52b8;
  --secondary:      #f59e0b;
  --secondary-dark: #d97706;
  --accent:         #fbbf24;
  --background:     #ffffff;
  --surface:        #f0f4ff;
  --text:           #1a202c;
  --muted:          #64748b;
  --border:         #e2e8f0;
  --dark:           #0d1f4e;
  --font-sans:      'Inter', system-ui, sans-serif;
  --font-display:   'Montserrat', system-ui, sans-serif;
  --radius:         0.5rem;
  --radius-lg:      1rem;
  --shadow:         0 4px 24px rgba(30,58,138,.10);
  --shadow-lg:      0 12px 48px rgba(30,58,138,.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text); background: var(--background); line-height: 1.7; }

/* Anti-FOUC */
html.js-anim [data-gsap-target] { opacity: 0; }

img[src=""], img:not([src]) { display: none !important; }
[wire\:loading], [wire\:loading\.delay], [wire\:loading\.inline-block], [wire\:loading\.inline] { display: none; }

/* ── Utilities ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.skip-link { position: absolute; left: -9999px; top: auto; z-index: 9999; padding: .5rem 1rem; background: var(--primary); color: #fff; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: .75rem;
}
.section__eyebrow--light { color: var(--accent); }

/* ── Scroll Progress ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  z-index: 9999; transition: width .1s linear;
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px;
  border-radius: 50%; border: none; background: var(--primary); color: #fff;
  font-size: 1.1rem; cursor: pointer; opacity: 0; transition: opacity .3s, transform .3s;
  z-index: 999; box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { transform: translateY(-3px); background: var(--primary-dark); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .3s cubic-bezier(.23,1,.32,1), box-shadow .3s, background .2s, color .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); box-shadow: 0 8px 24px rgba(30,58,138,.35); }
.btn--gold { background: var(--secondary); color: var(--dark); color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.btn--gold:hover { background: var(--secondary-dark); }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--outline-white { background: transparent; border-color: #fff; color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--primary); }
.btn--outline-dark { background: transparent; border-color: var(--primary); color: var(--primary); font-weight: 600; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn--magnetic { transition: transform .3s cubic-bezier(.23,1,.32,1); }
.tilt-card { transform-style: preserve-3d; transition: transform .1s ease; will-change: transform; }

/* ── Header ── */
[data-section="header"] {
  position: sticky; top: 0; z-index: 100;
  background: var(--background, rgba(255,255,255,.97));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
[data-section="header"].scrolled { box-shadow: 0 2px 20px rgba(30,58,138,.12); }
[data-section="header"] nav {
  display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0;
}
[data-section="header"] nav:not(.nav__mobile) { display: flex; }
[data-section="header"] .logo img { height: 44px; width: auto; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; transition: color .2s; }
.nav__links a:hover { color: var(--primary); }
.nav__phone {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1.1rem; background: var(--secondary); color: var(--dark);
  border-radius: 2rem; font-weight: 700; font-size: .85rem; text-decoration: none;
  transition: background .2s, transform .3s;
  color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.nav__phone:hover { background: var(--secondary-dark); }
.nav__toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; margin-left: auto; }
[data-section="header"] .nav__mobile { display: none; }
[data-section="header"] .nav__mobile.open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--background); padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(30,58,138,.12);
  border-top: 2px solid var(--secondary);
}
[data-section="header"] .nav__mobile.open a { padding: .75rem 0; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--border); }

/* ── Hero ── */
[data-section="hero"] {
  background: var(--dark); color: #fff;
  padding: 5rem 0; min-height: 90vh; display: flex; align-items: center;
}
.hero__container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(245,158,11,.15); border: 1px solid var(--secondary);
  color: var(--secondary); padding: .4rem 1rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 1.25rem;
}
.hero__prefix { color: rgba(255,255,255,.6); font-size: .9rem; font-weight: 500; margin-bottom: .5rem; }
.hero__title {
  font-family: var(--font-display); font-size: 3.25rem; font-weight: 800;
  line-height: 1.1; margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 60%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__subtitle { font-size: 1.15rem; color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.hero__content-text { color: rgba(255,255,255,.6); margin-bottom: 1.5rem; line-height: 1.8; }
.hero__trust { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.trust-badge {
  padding: .3rem .75rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 2rem; font-size: .8rem; color: rgba(255,255,255,.85); font-weight: 600;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__media { position: relative; }
/* `clip`, not `hidden`: a `overflow: hidden` ancestor is a SCROLL CONTAINER,
   and one between the viewport and a `view()`-timeline element kills the
   timeline outright — the hero parallax below would never run. `clip` clips
   identically without creating a scroll container. */
.hero__img-wrap { position: relative; border-radius: var(--radius-lg); overflow: clip; }
.hero__image { width: 100%; height: 500px; object-fit: cover; display: block; }
.hero__float-card {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  background: var(--background, #fff); color: var(--text);
  padding: 1rem 1.25rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .75rem;
}
.hero__float-icon { font-size: 1.5rem; }
.hero__float-card strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.hero__float-card p { font-size: .8rem; color: var(--muted); margin: 0; }
.hero__rating { display: flex; align-items: center; gap: .75rem; margin-top: 2.5rem; color: rgba(255,255,255,.7); font-size: .9rem; }
.hero__stars { color: var(--secondary); font-size: 1.1rem; letter-spacing: 2px; }

/* ── About ── */
[data-section="about"] { background: var(--background); padding: 6rem 0; }
.about__container { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about__media { position: relative; }
.about__image { width: 100%; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 4/5; }
.about__years-badge {
  position: absolute; bottom: -1rem; right: -1rem;
  background: var(--primary); color: #fff;
  padding: 1.25rem 1.5rem; border-radius: var(--radius-lg);
  text-align: center; box-shadow: var(--shadow-lg);
}
.about__years-badge strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--secondary); }
.about__years-badge span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.about__content h2 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; margin-bottom: 1.25rem; color: var(--dark); }
.about__text { color: var(--muted); margin-bottom: 2rem; font-size: 1.05rem; line-height: 1.85; }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.about__stat { text-align: center; padding: 1.25rem; background: var(--surface); border-radius: var(--radius); border-top: 3px solid var(--secondary); }
.stat__number { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.stat__label { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ── Services ── */
[data-section="services"] { background: var(--surface); padding: 6rem 0; }
[data-section="services"] h2 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; margin-bottom: 3rem; color: var(--dark); }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.service-card {
  background: var(--background); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
  cursor: default;
}
.service-card:hover { border-top-color: var(--secondary); box-shadow: var(--shadow-lg); }
.service-card:nth-child(3n+1) { border-top-color: var(--primary); }
.service-card:nth-child(3n+2) { border-top-color: var(--secondary); }
.service-card:nth-child(3n+3) { border-top-color: var(--accent); }
.service-card__icon {
  width: 56px; height: 56px; background: var(--surface); border-radius: .75rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
  color: var(--primary);
}
.service-card__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; color: var(--dark); }
.service-card__subtitle { font-size: .85rem; color: var(--secondary-dark); font-weight: 600; margin-bottom: .75rem; }
.service-card__desc { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.7; }
.service-card__price { display: inline-block; background: var(--surface); color: var(--primary); font-weight: 700; font-size: .85rem; padding: .25rem .75rem; border-radius: 2rem; margin-bottom: 1rem; }
.service-card__img { width: 100%; height: 160px; object-fit: cover; border-radius: .5rem; margin-bottom: 1rem; }
.service-card__link { color: var(--primary); font-weight: 600; font-size: .9rem; text-decoration: none; }
.service-card__link:hover { color: var(--secondary-dark); }

/* ── Service Areas ── */
[data-section="service_areas"] { background: var(--background); padding: 5rem 0; }
[data-section="service_areas"] h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 2rem; color: var(--dark); }
.areas__grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.area-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1.1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 2rem;
  font-size: .875rem; font-weight: 600; color: var(--primary);
  transition: background .2s, border-color .2s;
}
.area-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.area-chip svg { fill: var(--secondary); flex-shrink: 0; }

/* ── Emergency Contact ── */
[data-section="emergency_contact"] {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  padding: 3.5rem 0;
}
.emergency__container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.emergency__text h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: #fff; margin-bottom: .25rem; }
.emergency__text p { color: rgba(255,255,255,.75); }
.emergency__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Before/After ── */
[data-section="before_after_gallery"] { background: var(--dark); padding: 6rem 0; }
[data-section="before_after_gallery"] .section__eyebrow { color: var(--accent); }
[data-section="before_after_gallery"] h2 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 3rem; }
.ba__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.ba__card { background: rgba(255,255,255,.05); border-radius: var(--radius-lg); overflow: hidden; }
.ba__pair { display: grid; grid-template-columns: 1fr 4px 1fr; }
.ba__side { position: relative; }
.ba__side img { width: 100%; height: 220px; object-fit: cover; display: block; }
.ba__label {
  position: absolute; top: .75rem; left: .75rem;
  background: rgba(0,0,0,.7); color: #fff;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .2rem .6rem; border-radius: .25rem;
}
.ba__label--after { background: var(--secondary); color: var(--dark); color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.ba__divider { background: var(--secondary); }
.ba__caption { padding: 1rem 1.25rem; color: rgba(255,255,255,.7); font-size: .875rem; }

/* ── Certifications ── */
[data-section="certifications"] { background: var(--background); padding: 5rem 0; }
[data-section="certifications"] h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 3rem; color: var(--dark); }
.certs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.cert-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 1.75rem 1.25rem;
  text-align: center; border: 1px solid var(--border);
  transition: box-shadow .3s, transform .3s;
}
.cert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cert-card__logo { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 1rem; filter: grayscale(1); transition: filter .3s; }
.cert-card:hover .cert-card__logo { filter: grayscale(0); }
.cert-card__name { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: .25rem; }
.cert-card__issuer { font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.cert-card__note { font-size: .75rem; color: var(--secondary-dark); font-weight: 600; }

/* ── Quote Request ── */
[data-section="quote_request"] {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  padding: 6rem 0;
}
.quote__container { max-width: 780px; margin: 0 auto; }
.quote__header { text-align: center; margin-bottom: 3rem; }
.quote__header h2 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.quote__header p { color: rgba(255,255,255,.7); }
.quote-form { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 2.5rem; }
.quote-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.75rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.85); }
.form-group input, .form-group select, .form-group textarea {
  padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); background: rgba(255,255,255,.08);
  color: #fff; font-family: var(--font-sans); font-size: .95rem;
  transition: border-color .2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--secondary);
}
.form-group select option { background: var(--dark); color: #fff; }
.form-group textarea { resize: vertical; min-height: 100px; }
.quote-form .btn { width: 100%; justify-content: center; }
/* The contact column renders the bundled theme_contact_form() view, which spaces its fields with Bootstrap's mt-3. */
.contact__form form > * + *, .contact__form form .row > * + * { margin-top: 1rem; }

/* ── Testimonials ── */
[data-section="testimonials"] { background: var(--primary); padding: 6rem 0; }
[data-section="testimonials"] h2 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 3rem; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 1.75rem;
}
.testimonial-card__stars { color: var(--secondary); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testimonial-card__content { color: rgba(255,255,255,.8); font-style: italic; line-height: 1.8; margin-bottom: 1.5rem; }
.testimonial-card__author { display: flex; align-items: center; gap: .75rem; }
.testimonial-card__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--secondary); }
.testimonial-card__author strong { display: block; font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: #fff; }
.testimonial-card__author span { font-size: .8rem; color: rgba(255,255,255,.55); }

/* ── Opening Hours ── */
[data-section="opening_hours"] { background: var(--surface); padding: 5rem 0; }
[data-section="opening_hours"] h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 2rem; color: var(--dark); }
.hours__table-wrap { max-width: 520px; }
.hours__table { width: 100%; border-collapse: collapse; }
.hours__table tr { border-bottom: 1px solid var(--border); }
.hours__table tr:last-child { border-bottom: none; }
.hours__day { padding: .85rem 0; font-weight: 700; color: var(--primary); width: 40%; }
.hours__time { padding: .85rem 0; color: var(--text); }
.hours__note { padding: .85rem 0; font-size: .8rem; color: var(--muted); }

/* ── Contact ── */
[data-section="contact"] { background: var(--dark); padding: 6rem 0; }
.contact__container { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
[data-section="contact"] :is(h1, h2) { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 2rem; }
.contact__details { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.contact__details li { display: flex; align-items: center; gap: .85rem; color: rgba(255,255,255,.75); }
.contact__details svg { color: var(--secondary); flex-shrink: 0; }
.contact__details a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.contact__details a:hover { color: var(--secondary); }

/* ── FAQs ── */
[data-section="faqs"] { background: var(--background); padding: 5rem 0; }
.faqs__container { max-width: 720px; margin: 0 auto; }
[data-section="faqs"] h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 2.5rem; color: var(--dark); }
.faqs__list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item__trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1.1rem 1.25rem; background: var(--background);
  border: none; cursor: pointer; text-align: left; font-family: var(--font-sans);
  font-size: .95rem; font-weight: 600; color: var(--text);
  transition: background .2s;
}
.faq-item__trigger:hover { background: var(--surface); }
.faq-item__trigger[aria-expanded="true"] { background: var(--surface); color: var(--primary); }
.faq-item__chevron { flex-shrink: 0; transition: transform .3s; color: var(--secondary); }
.faq-item__trigger[aria-expanded="true"] .faq-item__chevron { transform: rotate(180deg); }
.faq-item__body { overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.faq-item__answer { padding: 1rem 1.25rem 1.25rem; color: var(--muted); line-height: 1.8; border-top: 1px solid var(--border); }

/* ── Footer ── */
[data-section="footer"] { background: #060f28; color: #fff; padding: 4rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brand img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer__brand p { color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.7; }
.footer__links h3, .footer__social h3 { font-family: var(--font-display); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--secondary); margin-bottom: 1.25rem; }
.footer__links a, .footer__social a { display: block; color: rgba(255,255,255,.55); text-decoration: none; font-size: .9rem; margin-top: .6rem; transition: color .2s; }
.footer__links a:hover, .footer__social a:hover { color: var(--secondary); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; text-align: center; font-size: .85rem; color: rgba(255,255,255,.35); }

/* ── Reveal Grid (GSAP target) ── */
.reveal-grid { }

/* ── About page tweaks ── */
.about--page { padding: 8rem 0 6rem; background: var(--dark); }
.about--page h1 { color: #fff; }
.about--page .about__text { color: rgba(255,255,255,.7); }
.about--page .section__eyebrow--light { color: var(--accent); }

/* ── Services page ── */
.services--page { padding: 8rem 0 6rem; }
.services--page h1 { font-family: var(--font-display); font-size: 2.75rem; font-weight: 800; margin-bottom: 3rem; color: var(--dark); }

/* ── Contact page ── */
.contact--page { padding: 8rem 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__container { gap: 2.5rem; }
  .hero__title { font-size: 2.5rem; }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .about__stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  [data-section="header"] nav:not(.nav__mobile) { display: flex; }
  .nav__links { display: none; }
  .nav__phone { display: none; }
  .nav__toggle { display: block; }
  .hero__container { grid-template-columns: 1fr; }
  .hero__media { display: none; }
  [data-section="hero"] { min-height: auto; padding: 4rem 0; }
  .hero__title { font-size: 2rem; }
  .about__container { grid-template-columns: 1fr; }
  .about__media { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .ba__grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; }
  .contact__container { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .quote-form__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr; }
  .emergency__container { flex-direction: column; text-align: center; }
  .emergency__actions { justify-content: center; }
}

/* ── Motion lanes (CSS-only; this theme loads no motion library) ──────────
   Three animations, each with its resting state visible at RULE level and
   the hidden from-state confined to the @keyframes, so a browser without
   scroll timelines — or one that never activates them — shows a complete,
   readable page rather than a blank one.

   1. Hero entrance. Above the fold, so it runs on a TIME timeline, not a
      scroll one: the element is already in view on load and a view()
      timeline would never advance for it.
   2. Grid reveals, on an `entry` view range with an nth-child cadence
      standing in for the old JS stagger.
   3. Hero parallax, on the `cover` range — the exact span the replaced
      ScrollTrigger used (`start: top bottom` to `end: bottom top`).
*/
@keyframes wb-bluestar-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wb-bluestar-slide-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes wb-bluestar-parallax {
  from { translate: 0 -5%; }
  to   { translate: 0 5%; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__badge,
  .hero__title,
  .hero__subtitle,
  .hero__trust,
  .hero__actions { animation: wb-bluestar-rise .7s ease both; }
  .hero__media   { animation: wb-bluestar-slide-in .9s ease both; }

  .hero__badge    { animation-delay: .10s; }
  .hero__title    { animation-delay: .20s; }
  .hero__subtitle { animation-delay: .32s; }
  .hero__trust    { animation-delay: .42s; }
  .hero__actions  { animation-delay: .50s; }
  .hero__media    { animation-delay: .25s; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal-grid > * {
      animation: wb-bluestar-rise .7s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    /* The old JS staggered by DOM order at 0.1s intervals; shifting the
       RANGE rather than adding a delay keeps each card tied to its own
       scroll position instead of to a clock that may already have run. */
    .reveal-grid > *:nth-child(2) { animation-range: entry 8% entry 53%; }
    .reveal-grid > *:nth-child(3) { animation-range: entry 16% entry 61%; }
    .reveal-grid > *:nth-child(4) { animation-range: entry 24% entry 69%; }
    .reveal-grid > *:nth-child(5) { animation-range: entry 32% entry 77%; }
    .reveal-grid > *:nth-child(n+6) { animation-range: entry 40% entry 85%; }

    .hero__image {
      animation: wb-bluestar-parallax linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}


/* __wobooks-defensive__ — appended by HtmlZipThemeConverterV2.
   Hide images whose src resolves to empty (e.g. data-src-field bindings
   for Items / categories the owner hasn't uploaded a photo for yet).
   Without this rule, the browser shows the alt-text fallback —
   that's the bug behind the literal word 'image' showing in avatar
   slots and About images on the production Braise theme. */
img[src=""], img:not([src]) { display: none !important; }

/* Palette roles (BrandColourRoles, 2026-10-06): brand-coloured text on a band this theme draws dark keeps a lightness floor; text on a brand fill follows the fill. */
:where([data-section="contact"]) .section__eyebrow--light { color: oklch(from var(--accent) max(l, 0.75) c h); }

/* Palette roles, item 53 (BrandColourRoles, 2026-10-06): text on a band filled with a palette brand colour follows the fill; brand-coloured text on a band this theme draws dark keeps a lightness floor. */
:where([data-section="hero"]) .hero__badge { color: oklch(from var(--secondary) max(l, 0.75) c h); }
:where([data-section="footer"]) .footer__links h3 { color: oklch(from var(--secondary) max(l, 0.75) c h); }
:where([data-section="footer"]) .footer__social h3 { color: oklch(from var(--secondary) max(l, 0.75) c h); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --secondary-dark: #b75800; /* was #d97706 */
  --secondary: #a15000; /* was #f59e0b */
}
.footer__bottom { color: oklch(from rgba(255, 255, 255, 0.35) calc(l + 0.04) c h / calc(min(1, alpha + 0.12))); }
