/* chulavistaappliance.com - design pass 2026-11-09.
   Layout/readability fixes only: no copy, palette or component changes. Loaded after the Next.js stylesheet. */

/* 1. Text below 12px (stat labels, eyebrows, card notes, footer legal line, CTA ticks, footer badges) -> 12px. */
.text-\[10px\],
.text-\[10\.5px\],
.text-\[11px\] { font-size: 12px; }

/* 2. Home service cards: fixed 176px height clipped the longer titles/notes once text is readable; let them grow. */
#services article.h-\[176px\] { height: auto; min-height: 176px; }
#services article .min-h-\[30px\] { min-height: 32px; }

/* 3. Tap targets on phones/tablets (>=44px tall where the layout allows); the text keeps its position. */
@media (max-width: 1023.98px) {
  /* "View Service" links in the home service cards */
  #services article > a.mt-auto { min-height: 44px; margin-bottom: -8px; }
  /* "About us ->", "See pricing ->", "Get directions ->" text links */
  a.mt-3.inline-flex.underline { min-height: 44px; margin-top: 0; }
  /* footer phone link and legal links */
  footer a[href^="tel:"] { min-height: 44px; }
  footer .border-t a[href="/privacy-policy"],
  footer .border-t a[href="/terms-of-service"] { display: inline-flex; align-items: center; min-height: 44px; }
}
/* breadcrumb links (all widths; negative margins keep the layout) */
nav[aria-label="Breadcrumb"] a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -13px; }
/* Touch laptops / tablets in landscape (>=1024): nothing under 24px, layout unchanged. */
@media (min-width: 1024px) {
  footer a[href^="tel:"] { min-height: 28px; }
  #services article > a.mt-auto { min-height: 32px; margin-bottom: -7px; }
  a.mt-3.inline-flex.underline { min-height: 32px; margin-top: 6px; }
  header nav.lg\:flex > a { padding-block: 6px; }
  footer .border-t a[href="/privacy-policy"],
  footer .border-t a[href="/terms-of-service"] { display: inline-flex; align-items: center; min-height: 32px; }
}

/* 4. Mobile menu: the open dropdown had no edge against the page under it, and the toggle gave no open state. */
header details[open] > summary { background-color: rgb(244 248 255); border-color: rgb(0 95 214); }
header details > div.absolute { box-shadow: 0 18px 30px rgba(6, 43, 99, 0.16); max-height: calc(100vh - 72px); overflow-y: auto; }

/* 5. Home stats strip (under the hero): first item lost its left padding on phones, items were ragged on tablets
      and squashed into 3-4 line columns at 1024-1279. */
@media (max-width: 1023.98px) {
  .first\:pl-0.last\:pr-0:first-child { padding-left: 0.75rem; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .first\:pl-0.last\:pr-0 { justify-content: flex-start; width: 100%; max-width: 250px; margin-inline: auto; }
}
/* at 12px the 5-column strip (1280-1919) wraps its notes; balance the lines so no lone "PM" / "fixes" is left behind */
.lg\:grid-cols-5.lg\:divide-x :is(h3, p) { text-wrap: balance; }
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .lg\:grid-cols-5.lg\:divide-x { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  /* left-aligned in their columns (centred items left the second row ragged against the first) */
  .lg\:grid-cols-5.lg\:divide-x > * { border-left-width: 0 !important; border-right-width: 0 !important; justify-content: flex-start; padding-left: 0; padding-right: 12px; }
}

/* 6. Home hero, sidebar layout (>=1024px): the absolutely placed technician photo sat under the headline,
      subheadline and paragraph (white/light-blue text across his face and arms).
      1024-1439: use the site's own compact block (trust list + photo) that phones/tablets already show.
      >=1440: move the photo into the gap next to the booking card and keep the text column clear of it. */
@media (min-width: 1024px) and (max-width: 1439.98px) {
  .hero-gradient > .site-shell > .pointer-events-none.absolute { display: none; }
  .hero-gradient > .site-shell > div:first-child > .mt-6.grid.lg\:hidden { display: grid; max-width: 560px; }
  .hero-gradient > .site-shell > div:first-child > .mt-6.hidden.lg\:grid { display: none; }
}
@media (min-width: 1440px) {
  .hero-gradient > .site-shell > .pointer-events-none.absolute {
    left: auto; right: 288px; width: 288px; height: 440px; transform: none;
  }
  .hero-gradient > .site-shell > div:first-child > :not(h1) { max-width: 492px; }
}
@media (min-width: 1440px) and (max-width: 1535.98px) {
  .hero-gradient > .site-shell > div:first-child > .mt-6.hidden.lg\:grid { column-gap: 12px; }
}
@media (min-width: 1536px) {
  .hero-gradient > .site-shell > .pointer-events-none.absolute { right: 318px; }
  .hero-gradient > .site-shell > div:first-child > :not(h1) { max-width: calc(100% - 162px); }
}
/* 6b. The photo's bottom fade is a full-width dark band (#0a3f86) on a brighter hero: its square left/right ends showed
       as a visible box beside the technician. Fade the band's ends out. */
.hero-gradient > .site-shell > .pointer-events-none.absolute > .bg-gradient-to-t {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}

/* 7. Home "How It Works": the three step cards had different heights and tops on desktop. */
@media (min-width: 1024px) {
  .max-w-\[1010px\].lg\:flex-row,
  .max-w-\[1010px\].lg\:flex-row > .contents { align-items: stretch; }
  .max-w-\[1010px\].lg\:flex-row > .contents > svg { align-self: center; }
}

/* 8. Home CTA band ("Need Fast Appliance Service?"): content touched the band's top/bottom edge and the band sat
      on the footer with a 4px gap. */
.cta-shine > .relative.z-10.grid { padding-top: 18px; padding-bottom: 18px; }
section.py-1:has(> .site-shell > .cta-shine) { padding-top: 12px; padding-bottom: 40px; }
@media (max-width: 419.98px) {
  /* narrow phones: the no-wrap "100% Satisfaction Guaranteed" tick ran into the band's right edge */
  .cta-shine > .relative.z-10.grid { padding-left: 16px; padding-right: 16px; }
  .cta-shine .flex-wrap > span.whitespace-nowrap { white-space: normal; }
}
/* 8b. Its fixed 390px | 1fr | 220px grid is wider than the band below 1440px (sidebar layout): the call button was
       cut off at 1024 and the skyline photo cropped at the band edge at 1280-1439. Drop the decorative photo there
       (as on tablets/phones) and stack text and buttons below 1280. */
@media (min-width: 1024px) and (max-width: 1439.98px) {
  .cta-shine > .relative.z-10.grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
  .cta-shine > .relative.z-10.grid > :nth-child(3) { display: none; }
}
/* 8c. >=1440: the skyline photo is a fixed 92px strip pinned to the top of the (now taller) band; centre it. */
@media (min-width: 1440px) {
  .cta-shine > .relative.z-10.grid > :nth-child(3) { align-self: center; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .cta-shine > .relative.z-10.grid { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .cta-shine > .relative.z-10.grid > :nth-child(2) { justify-content: flex-start; padding-left: 70px; }
}

/* 9. Inner pages whose booking card column was moved to the left (lg:order-1): the card took the wide column and
      the article was squeezed into 340px with a long empty area beside it. Swap the column widths to match. */
@media (min-width: 1024px) {
  .lg\:grid-cols-\[minmax\(0\,1fr\)_340px\]:has(> .lg\:order-2:first-child) { grid-template-columns: 340px minmax(0, 1fr); }
}

/* 10. Footer on tablets: one narrow column with ~70% of the width empty -> two columns. */
@media (min-width: 640px) and (max-width: 1023.98px) {
  footer .grid.lg\:grid-cols-\[1\.35fr_0\.9fr_0\.9fr_1\.05fr_1\.35fr\] { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 24px; }
  footer .grid.lg\:grid-cols-\[1\.35fr_0\.9fr_0\.9fr_1\.05fr_1\.35fr\] > :first-child { grid-column: 1 / -1; }
}

/* 10b. Fact pills ("Service call: $89", "Service visits: ...", "Pricing: ..."): on phones the label broke into two lines
        ("SERVICE / VISITS:") with a wide gap before a ragged two-line value. Keep the label on one line; the value wraps. */
.flex-wrap > span.inline-flex.rounded-full:has(> span.font-black.uppercase) { text-wrap: balance; }
.flex-wrap > span.inline-flex.rounded-full > span.font-black.uppercase { white-space: nowrap; flex-shrink: 0; }

/* 11. Home sidebar on short desktop screens: keep the call button reachable. */
@media (min-width: 1024px) {
  aside.lg\:h-screen { overflow-y: auto; }
}

/* 12. 404 page: it was the bare framework default (system font, black on white, black in dark mode, no way back).
       Site colours/font, the logo, the call button and the main nav links (markup appended after the framework's
       nodes in 404.html / _not-found.html, moved to the top with flex order). */
body:has(.next-error-h1) {
  display: flex; flex-direction: column; min-height: 100vh;
  background: #F7FAFF !important; color: #0a2b5f !important;
  font-family: var(--font-sans), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body:has(.next-error-h1) > div[style] {
  height: auto !important; flex: 0 0 auto; padding: 96px 16px 24px;
  font-family: var(--font-sans), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
body:has(.next-error-h1) .next-error-h1 {
  color: #062b63; font-size: 44px !important; font-weight: 900 !important; border-right-color: #DDE6F3 !important;
}
body:has(.next-error-h1) .next-error-h1 + div h2 { color: #4D5968; font-size: 17px !important; font-weight: 700 !important; }
.cv404-head {
  order: -1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 72px; padding: 8px max(16px, calc((100% - 1220px) / 2));
  background: #fff; border-bottom: 1px solid #E7EDF5;
}
.cv404-logo { display: inline-flex; flex-shrink: 0; }
.cv404-logo img { display: block; width: 160px; height: auto; }
.cv404-call {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border-radius: 7px; background: rgb(11 112 240); color: #fff; font-size: 14px; font-weight: 900;
  white-space: nowrap; text-decoration: none; box-shadow: 0 10px 22px rgba(0, 95, 214, 0.2);
}
.cv404-links { flex: 1 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 10px; padding: 4px 16px 96px; }
.cv404-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #DDE6F3;
  border-radius: 999px; background: #fff; color: #062b63; font-size: 14px; font-weight: 800; text-decoration: none;
}
.cv404-links a:hover, .cv404-call:hover { filter: brightness(0.97); }
@media (min-width: 768px) { .cv404-logo img { width: 198px; } }
@media (max-width: 479.98px) {
  body:has(.next-error-h1) .next-error-h1 { display: block !important; margin: 0 0 4px !important; padding: 0 !important; border-right: 0 !important; line-height: 1.1 !important; }
  body:has(.next-error-h1) .next-error-h1 + div h2 { line-height: 1.4 !important; }
}
@media (max-width: 379.98px) {
  .cv404-logo img { width: 124px; }
  .cv404-call { padding: 0 12px; font-size: 13px; }
}
