/* ============================================================
   FixRight Handyman — Growth Tier
   Warm Green / Amber — Friendly Neighbourhood Handyman
   ============================================================ */

:root {
  --primary:        #166534;
  --primary-dark:   #0f4a25;
  --primary-light:  #1a7a3c;
  --secondary:      #d97706;
  --secondary-dark: #b45309;
  --accent:         #f59e0b;
  --background:     #faf7f2;
  --surface:        #f0fdf4;
  --text:           #1c1917;
  --muted:          #78716c;
  --border:         #e7e5e4;
  --dark:           #0a2416;
  --font-sans:      'Inter', system-ui, sans-serif;
  --font-display:   'Poppins', system-ui, sans-serif;
  --radius:         1rem;
  --radius-sm:      0.5rem;
  --radius-pill:    2rem;
  --shadow:         0 4px 20px rgba(22,101,52,.08);
  --shadow-lg:      0 12px 40px rgba(22,101,52,.14);
}

*, *::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.75; }

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; }

.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;
}
.eyebrow--center { display: block; text-align: center; }
.eyebrow--light { color: var(--accent); }
.section__sub { text-align: center; color: var(--muted); margin-bottom: 3rem; font-size: 1.05rem; }
.section__sub--light { color: rgba(255,255,255,.65); }

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

/* ── Back to Top ── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px;
  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-lg);
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { transform: translateY(-4px); background: var(--primary-dark); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.85rem; border-radius: var(--radius-pill);
  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(22,101,52,.3); }
.btn--amber { background: var(--secondary); color: #fff; color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.btn--amber: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-dark { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--outline-dark:hover { background: var(--primary); color: #fff; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }
.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(250,247,242,.96));
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border);
  transition: box-shadow .3s;
}
[data-section="header"].scrolled { box-shadow: 0 4px 24px rgba(22,101,52,.1); }
[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(--primary); color: #fff;
  border-radius: var(--radius-pill); font-weight: 700; font-size: .85rem;
  text-decoration: none; transition: background .2s, transform .3s;
}
.nav__phone:hover { background: var(--primary-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; gap: 0;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--background); padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(22,101,52,.12);
  border-top: 2px solid var(--primary);
}
[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: linear-gradient(135deg, var(--dark) 0%, #143d22 100%);
  padding: 5rem 0 0; color: #fff; position: relative;
}
.hero__container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding-bottom: 4rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.4);
  color: var(--accent); padding: .4rem 1rem; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 1.25rem;
}
.hero__prefix { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: .4rem; }
.hero__title {
  font-family: var(--font-display); font-size: 3.25rem; font-weight: 800;
  line-height: 1.15; margin-bottom: 1rem; color: #fff;
}
.hero__title em { color: var(--accent); font-style: normal; }
.hero__subtitle { font-size: 1.1rem; color: rgba(255,255,255,.75); margin-bottom: .75rem; }
.hero__desc { color: rgba(255,255,255,.6); margin-bottom: 1.5rem; line-height: 1.85; }
.hero__rating { display: flex; align-items: center; gap: .6rem; margin-bottom: 2rem; }
.hero__stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; }
.hero__rating-text { font-size: .85rem; color: rgba(255,255,255,.6); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__img-frame {
  border-radius: var(--radius) var(--radius) 0 0;
  /* `clip`, not `hidden`: `overflow: hidden` makes this a SCROLL CONTAINER,
     which silently kills a descendant's `animation-timeline: view()` —
     `clip` clips identically without creating one. */
  overflow: clip; border: 4px solid rgba(245,158,11,.3);
}
.hero__image { width: 100%; height: 480px; object-fit: cover; display: block; }
.hero__float {
  position: absolute; bottom: 1.5rem; left: -1.5rem;
  background: var(--background, #fff); color: var(--text);
  padding: .9rem 1.15rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .75rem;
}
.hero__float-icon { font-size: 1.75rem; }
.hero__float strong { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.hero__float span { font-size: .8rem; color: var(--muted); }
.hero__wave { line-height: 0; margin-top: -2px; }
.hero__wave svg { width: 100%; height: 60px; display: block; }

/* ── 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); object-fit: cover; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.about__badge {
  position: absolute; bottom: -1rem; right: -1rem;
  background: var(--secondary); color: #fff; padding: 1.25rem 1.5rem;
  border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-lg);
  color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.about__badge strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.about__badge span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.about__content h2 { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; margin-bottom: 1.25rem; color: var(--dark); line-height: 1.2; }
.about__text { color: var(--muted); margin-bottom: 2rem; font-size: 1.05rem; line-height: 1.85; }
.about__features { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 2rem; }
.about__feature { font-size: .9rem; font-weight: 600; color: var(--primary); }

/* ── Services ── */
[data-section="services"] { background: var(--surface); padding: 6rem 0; }
[data-section="services"] :is(h1, h2) { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; margin-bottom: .5rem; color: var(--dark); text-align: center; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--background); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); transition: box-shadow .3s, transform .2s;
  cursor: default;
}
.service-card:hover { box-shadow: var(--shadow-lg); }
.service-card:nth-child(3n+1) { border-left: 4px solid var(--primary); }
.service-card:nth-child(3n+2) { border-left: 4px solid var(--secondary); }
.service-card:nth-child(3n+3) { border-left: 4px solid var(--accent); }
.service-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; color: var(--dark); }
.service-card__sub { font-size: .82rem; color: var(--secondary); 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: .82rem; padding: .2rem .7rem; border-radius: var(--radius-pill); margin-bottom: .75rem; border: 1px solid var(--border); }
.service-card__img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: .75rem; }
.service-card__link { color: var(--primary); font-weight: 600; font-size: .875rem; text-decoration: none; }
.service-card__link:hover { color: var(--secondary); }

/* ── 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); text-align: center; }
.areas__chips { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.area-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.2rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: .875rem; font-weight: 600; color: var(--primary);
  transition: background .2s, border-color .2s, transform .2s;
  cursor: default;
}
.area-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

/* ── Emergency ── */
[data-section="emergency_contact"] {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  padding: 3.5rem 0;
}
.emergency__container { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.emergency__icon { font-size: 2.5rem; }
.emergency__text h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: .25rem; }
.emergency__text p { color: var(--muted); }
.emergency__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-left: auto; }

/* ── Before/After ── */
[data-section="before_after_gallery"] { background: var(--dark); padding: 6rem 0; }
[data-section="before_after_gallery"] h2 { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; color: #fff; margin-bottom: .5rem; text-align: center; }
.ba__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.ba__card { background: rgba(255,255,255,.06); border-radius: var(--radius); overflow: hidden; }
.ba__pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.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,.65); color: #fff;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .6rem; border-radius: .25rem;
}
.ba__label--after { background: var(--secondary); color: #fff; color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.ba__divider {
  width: 2px; background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
}
.ba__arrow { background: var(--secondary); color: #fff; padding: .3rem .2rem; font-size: .7rem; border-radius: .25rem; color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.ba__caption { padding: 1rem 1.25rem; color: rgba(255,255,255,.65); 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); text-align: center; }
.certs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.cert-card {
  background: var(--surface); border-radius: var(--radius); 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: 60px; height: 60px; object-fit: contain; margin: 0 auto 1rem; filter: grayscale(1); transition: filter .3s; }
.cert-card:hover .cert-card__logo { filter: grayscale(0); }
.cert-card h4 { font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: var(--primary); margin-bottom: .25rem; }
.cert-card__issuer { font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.cert-card__note { display: inline-block; background: #d1fae5; color: #065f46; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: var(--radius-pill); }

/* ── Quote ── */
[data-section="quote_request"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 6rem 0;
}
.quote__container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }
.quote__info { color: #fff; }
.quote__info h2 { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; }
.quote__info p { color: rgba(255,255,255,.75); margin-bottom: 2rem; line-height: 1.8; }
.quote__promises { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.quote__promises li { color: rgba(255,255,255,.8); font-weight: 600; font-size: .9rem; }
.quote-form { background: var(--background); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--background);
  color: var(--text); font-family: var(--font-sans); font-size: .95rem;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,101,52,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.quote-form .btn { margin-top: .5rem; }
.quote-form__success { margin-bottom: 1rem; font-weight: 600; color: var(--primary); }

/* ── Testimonials ── */
[data-section="testimonials"] { background: var(--surface); padding: 6rem 0; }
[data-section="testimonials"] h2 { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; margin-bottom: 3rem; color: var(--dark); text-align: center; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: var(--background); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); border-bottom: 4px solid var(--primary);
  transition: box-shadow .3s;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.testimonial-card__quote { font-size: 2.5rem; color: var(--primary); line-height: 1; display: block; margin-bottom: .5rem; opacity: .4; }
.testimonial-card__content { color: var(--text); line-height: 1.8; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-card__stars { color: var(--secondary); font-size: 1rem; letter-spacing: 2px; margin-bottom: 1rem; }
.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(--primary); }
.testimonial-card__author strong { display: block; font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: var(--dark); }
.testimonial-card__author span { font-size: .8rem; color: var(--muted); }

/* ── Hours ── */
[data-section="opening_hours"] { background: var(--background); padding: 5rem 0; }
.hours__container { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.hours__content h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: .75rem; }
.hours__content p { color: var(--muted); }
.hours__note-below { margin-top: .75rem; font-size: .9rem; color: var(--muted); }
.hours__cta { margin-top: 1.25rem; }
.hours__table-wrap { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }
.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: .8rem 0; font-weight: 700; color: var(--primary); width: 40%; }
.hours__time { padding: .8rem 0; color: var(--text); }
.hours__note { padding: .8rem 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.5fr; gap: 5rem; align-items: start; }
.contact__info h2 { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.contact__info > p { color: rgba(255,255,255,.65); margin-bottom: 2rem; }
.contact__details { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contact__details li { display: flex; align-items: center; gap: .85rem; color: rgba(255,255,255,.75); }
.contact__icon { font-size: 1.1rem; }
.contact__details a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.contact__details a:hover { color: var(--accent); }

/* ── FAQs ── */
[data-section="faqs"] { background: var(--surface); 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: .75rem; }
.faq-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--background); }
.faq-item__trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1.1rem 1.5rem;
  background: transparent; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-sans); font-size: .95rem; font-weight: 600; color: var(--text);
  transition: color .2s;
}
.faq-item__trigger:hover { color: var(--primary); }
.faq-item__trigger[aria-expanded="true"] { 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.5rem 1.25rem; color: var(--muted); line-height: 1.8; border-top: 1px solid var(--border); }

/* ── Footer ── */
[data-section="footer"] { background: var(--dark); 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,.5); 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(--accent); margin-bottom: 1.25rem; }
.footer__links a, .footer__social a { display: block; color: rgba(255,255,255,.5); text-decoration: none; font-size: .9rem; margin-top: .6rem; transition: color .2s; }
.footer__links a:hover, .footer__social a:hover { color: var(--accent); }
.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,.3); }

/* ── About/services/contact page headers ── */
.page-hero { background: var(--dark); padding: 8rem 0 5rem; color: #fff; }
.page-hero h1 { font-family: var(--font-display); font-size: 2.75rem; font-weight: 800; color: #fff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__container { gap: 2.5rem; }
  .hero__title { font-size: 2.5rem; }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .quote__container { grid-template-columns: 1fr; }
  .hours__container { grid-template-columns: 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"] { padding: 4rem 0 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; }
  .form-row { grid-template-columns: 1fr; }
  .emergency__container { flex-direction: column; text-align: center; }
  .emergency__actions { margin-left: 0; justify-content: center; }
  .about__features { grid-template-columns: 1fr; }
}

/* ── 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-fixright-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wb-fixright-slide-in {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes wb-fixright-parallax {
  from { translate: 0 -5%; }
  to   { translate: 0 5%; }
}

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

  .hero__badge    { animation-delay: 0s; }
  .hero__prefix   { animation-delay: .08s; }
  .hero__title    { animation-delay: .16s; }
  .hero__subtitle { animation-delay: .26s; }
  .hero__rating   { animation-delay: .34s; }
  .hero__actions  { animation-delay: .4s; }
  .hero__media    { animation-delay: .05s; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal-grid > * {
      animation: wb-fixright-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-fixright-parallax linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

@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"]) .eyebrow--light { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where([data-section="before_after_gallery"]) .eyebrow--light { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where([data-section="footer"]) .footer__links h3 { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where([data-section="footer"]) .footer__social h3 { color: oklch(from var(--accent) 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: #aa4c00; /* was #d97706 */
}
.footer__bottom { color: oklch(from rgba(255, 255, 255, 0.3) calc(l + 0.07) c h / calc(min(1, alpha + 0.21))); }

/* 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 {
  --muted: #726b66; /* was #78716c */
}
