/* =====================================================================
 * HOMEPAGE ONLY — hero dark overlay (Nov 19, 2026). Linked only from src/pages/home.tsx.
 * Recreates the Collision Repair hero look on the homepage: on that page the skyline photo fades out toward the
 * left into black, so the headline and buttons sit on a dark area. Here the photo covers the whole hero on desktop,
 * so the same effect is a black gradient over the (unchanged) photo: darkest on the left behind the text,
 * clearing toward the right so the skyline, palms and car stay visible.
 * Desktop (≥1024px): left-to-right gradient behind the text. Tablets (640–1023px): the text sits above the photo,
 * whose top reaches up behind the description and buttons, so the same gradient runs top-to-bottom there.
 * Phones: unchanged; the text already sits on black above the photo, exactly like the Collision Repair page.
 * Text that now sits on the dark area switches to the same colors the Collision Repair hero uses.
 * This file is loaded in <head> before the main stylesheet, so each selector starts with "html" to take priority.
 * ===================================================================== */
@media (min-width: 1024px) {
  html .hero-la::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.9) 28%, rgba(0,0,0,.76) 44%, rgba(0,0,0,.48) 58%, rgba(0,0,0,.16) 72%, rgba(0,0,0,0) 84%),
      linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.42) 10%, rgba(0,0,0,0) 21%);
  }
  /* hero text: same colors as the Collision Repair hero (white heading, light gray text) */
  html .hero-la__eyebrow { color: #ffffff; }
  html .h-hero { color: #ffffff; }
  html .hero-la__lead { color: #e6e6e6; }
  /* "Our Services" outline button: its see-through fill now sits on the dark area, so its text is white */
  html .hero-btn--outline { color: #ffffff; }
  /* homepage header over the darkened photo: logo and menu text white, as in the header of every other page */
  html .site-header--overlay .wordmark { color: #ffffff; }
  html .site-header--overlay .wordmark__sub { color: #e6e6e6; }
  html .site-header--overlay nav a:not(#services-menu *), html .site-header--overlay nav button:not(#services-menu *) { color: #ffffff; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  html .hero-la::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.92) 40%, rgba(0,0,0,.6) 56%, rgba(0,0,0,.18) 72%, rgba(0,0,0,0) 86%);
  }
}

/* ---------------------------------------------------------------------
 * Nov 21, 2026 — homepage final refinements
 * --------------------------------------------------------------------- */
/* Desktop hero overlay: the dark band at the top (behind the header) reaches a little lower than the Nov 19 version, so the
   upper sky deepens like dusk (as in the approved preview); the left-to-right gradient behind the headline is unchanged. */
@media (min-width: 1024px) {
  html .hero-la::after {
    background:
      linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.9) 28%, rgba(0,0,0,.76) 44%, rgba(0,0,0,.48) 58%, rgba(0,0,0,.16) 72%, rgba(0,0,0,0) 84%),
      linear-gradient(180deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.66) 14%, rgba(0,0,0,.58) 23%, rgba(0,0,0,.3) 31%, rgba(0,0,0,.08) 38%, rgba(0,0,0,0) 44%);
  }
}

/* Headline "Professional Auto Body Repair": two lines everywhere ("PROFESSIONAL" / "AUTO BODY REPAIR"), larger than before.
   Phones: sized from the screen width so "AUTO BODY REPAIR" fills the line without wrapping (≈ 9.6 × font size wide). */
html .h-hero .hl { display: block; }
html .h-hero { font-size: clamp(1.8rem, 9.2vw, 2.85rem); }
@media (min-width: 640px) { html .h-hero { font-size: clamp(2.85rem, 6.9vw, 3.8rem); } }
@media (min-width: 1024px) { html .h-hero { font-size: clamp(3.15rem, 4.65vw, 4.7rem); } }

/* ---------------------------------------------------------------------
 * Nov 21, 2026 — homepage header: ONE contact block in place of the header "Get a Free Estimate" button
 * (the hero keeps the estimate button as the one primary call to action; the phone and email appear only here).
 * Two lines at every size: phone above email, small gold icons, white text one step quieter than the menu.
 * Tablets and desktops: in the header bar, at the right. Phones: the email cannot fit beside the logo and the menu button,
 * so the block sits right under them, still inside the header at the top right; the hero text starts below it.
 * Small laptops (1024–1199px): the menu items keep to one line with slightly tighter spacing so the block fits.
 * --------------------------------------------------------------------- */
html .home-hdr-contact { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
html .home-hdr-contact__item { display: inline-flex; align-items: center; gap: .55rem; min-height: 24px; border-radius: 4px; color: #ffffff; }
html .home-hdr-contact__icon { width: 15px; height: 15px; flex: none; color: #c98a3c; }
html .home-hdr-contact__value { font-size: .84rem; font-weight: 600; letter-spacing: .015em; line-height: 1.3; color: rgba(255,255,255,.92); white-space: nowrap; }
html .home-hdr-contact__item:hover .home-hdr-contact__value { color: #ffffff; text-decoration: underline; text-decoration-color: rgba(201,138,60,.8); text-underline-offset: .22em; }
html .home-hdr-contact__item:focus-visible { outline: 2px solid #ecc995; outline-offset: 3px; }
@media (max-width: 639px) {
  html .home-hdr-contact { position: absolute; top: 72px; right: max(1rem, 5vw); gap: .15rem; }
  /* hidden while the phone menu is open, so it never sits on top of the menu */
  html .site-header--overlay:has([data-mobile-toggle][aria-expanded="true"]) .home-hdr-contact { visibility: hidden; }
  html .hero-la__inner { padding-top: calc(6.2rem + 3.6rem); }
}
@media (min-width: 640px) {
  html .home-hdr-contact { margin-left: auto; margin-right: .25rem; }
  html .home-hdr-contact__value { font-size: .9rem; }
  html .home-hdr-contact__icon { width: 16px; height: 16px; }
}
@media (min-width: 1024px) {
  html .home-hdr-contact { margin-left: 0; margin-right: 0; gap: clamp(.25rem, .45vw, .45rem); }
  html .home-hdr-contact__value { font-size: clamp(.84rem, .98vw, .98rem); }
  html .home-hdr-contact__icon { width: clamp(15px, 1.1vw, 17px); height: clamp(15px, 1.1vw, 17px); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  html .site-header--overlay nav > ul > li > a, html .site-header--overlay nav > ul > li > button { padding-left: .42rem; padding-right: .42rem; white-space: nowrap; }
  html .home-hdr-contact__value { font-size: .78rem; }
}

/* ---------------------------------------------------------------------
 * Nov 21, 2026 — homepage Insurance Claims section (rewritten and restyled). Homepage-only classes (.home-ins*).
 * Two columns from 1024px (text left, three-step panel right), stacked on smaller screens. Subtle gold accents:
 * eyebrow label with a short rule, gold step numbers, a gold top edge on the step panel.
 * --------------------------------------------------------------------- */
html .home-ins__grid { display: grid; gap: 2.75rem; }
html .home-ins__eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #c98a3c; }
html .home-ins__eyebrow::before { content: ""; width: 28px; height: 1px; background: #c98a3c; }
html .home-ins__heading { max-width: 19ch; }
html .home-ins__lead { margin-top: 1.25rem; max-width: 34rem; color: #d9d9d9; line-height: 1.65; }
html .home-ins__btn { margin-top: 2rem; }
html .home-ins__steps { list-style: none; margin: 0; padding: .25rem 1.4rem; background: #0b0b0c; border: 1px solid rgba(255,255,255,.14); border-top: 2px solid #c98a3c; border-radius: 8px; }
html .home-ins__step { display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; padding: 1.35rem 0; }
html .home-ins__step + .home-ins__step { border-top: 1px solid rgba(255,255,255,.1); }
html .home-ins__num { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.35; letter-spacing: .02em; color: #c98a3c; }
html .home-ins__title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.35; color: #ffffff; }
html .home-ins__text { margin-top: .35rem; font-size: .98rem; line-height: 1.6; color: #b8b8b8; }
@media (min-width: 640px) {
  html .home-ins__steps { padding: .5rem 2rem; }
  html .home-ins__step { grid-template-columns: 3.2rem 1fr; padding: 1.6rem 0; }
}
@media (min-width: 1024px) {
  html .home-ins__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(3rem, 5vw, 5rem); align-items: center; }
  html .home-ins__num { font-size: 1.35rem; }
  html .home-ins__title { font-size: 1.15rem; }
}

/* ---------------------------------------------------------------------
 * Nov 21, 2026 — homepage final call to action: SOLID BLACK (#000000) edge to edge instead of the shared charcoal
 * "sunset" gradient (other pages keep theirs: this file is loaded on the homepage only). White headline and text,
 * subtle gold accents (thin gold top edge, short gold rule above the headline, gold primary button). Footer unchanged.
 * --------------------------------------------------------------------- */
html .cta-sunset { background: #000000; border-top: 1px solid rgba(201,138,60,.38); }
html .cta-sunset h2 { max-width: 24ch; color: #ffffff; }
html .cta-sunset h2::before { content: ""; display: block; width: 44px; height: 2px; margin-bottom: 1.4rem; background: #c98a3c; border-radius: 1px; }
html .cta-sunset p { color: #e6e6e6; }

/* ---------------------------------------------------------------------
 * Nov 21, 2026 — "What We Repair" service cards: one photo per service at the top of each card (inside the card's padding),
 * 16:10, subtle rounded corners and a faint border so the photos sit cleanly on the black cards. Icon, title, text and
 * button unchanged below. Homepage-only class (.home-svc__media).
 * --------------------------------------------------------------------- */
html .home-svc__media { display: block; margin-bottom: 1.5rem; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: #111214; }
html .home-svc__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
