/* California Appliance Repair Co. — v1 stylesheet
   Palette: navy #142B3C, blue #1E465B, teal #16A6A6, light #F5F7F8,
   white #FFFFFF, body #344451, muted #71808D. Mobile-first. */
:root {
  --navy: #142B3C;
  --blue: #1E465B;
  --teal: #16A6A6;
  --teal-dark: #0F8A8A;
  --light: #F5F7F8;
  --white: #FFFFFF;
  --body: #344451;
  --muted: #71808D;
  --border: #DCE3E8;
  --shadow: 0 2px 12px rgba(20, 43, 60, 0.10);
  --radius: 12px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: 2.35rem; }
h2 { font-size: 1.65rem; margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
main { max-width: var(--max); margin: 0 auto; padding: 0 20px 60px; }
section { margin-bottom: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 14px; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(22, 166, 166, 0.18); border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: 0.2px; }
.brand-sub { font-size: 0.72rem; letter-spacing: 3px; color: var(--teal); font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { margin: 0; position: relative; }
.nav-link {
  display: block; padding: 10px 8px; color: #E8EEF2; text-decoration: none;
  font-size: 0.93rem; font-weight: 600; background: none; border: none;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.nav-link:hover, .nav-link:focus-visible { color: #fff; }
.drop-btn .caret { font-size: 0.7em; margin-left: 2px; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border-radius: 0 0 10px 10px; box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 8px 0; z-index: 120;
}
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: 9px 16px; color: var(--body); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.dropdown a:hover { background: var(--light); color: var(--navy); }
.dropdown .drop-foot a { color: var(--teal-dark); font-weight: 700; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; }
.has-drop.open .dropdown { display: block; }
.has-drop.open .drop-btn { color: #fff; }
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta .btn { padding: 10px 15px; font-size: 0.93rem; }
.call-btn {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px; padding: 6px 12px; white-space: nowrap; flex-shrink: 0;
}
.call-btn:hover { border-color: #fff; }
.call-icon { font-size: 1.25rem; color: var(--teal); }
.call-text { display: flex; flex-direction: column; line-height: 1.15; }
.call-label { font-size: 0.62rem; letter-spacing: 1.5px; text-transform: uppercase; color: #B9CBD6; }
.call-number { font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 9px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; text-align: center; white-space: nowrap;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  padding: 52px 0 40px;
}
.hero-inner { padding-top: 34px; }
.eyebrow {
  color: var(--teal-dark); font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; font-size: 0.78rem; margin-bottom: 14px;
}
.hero h1 { font-size: 2.7rem; margin-bottom: 18px; }
.hero-copy { font-size: 1.12rem; color: var(--body); margin-bottom: 26px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image img { border-radius: 16px; box-shadow: 0 10px 34px rgba(20, 43, 60, 0.18); width: 100%; }
.page-hero { padding: 40px 0 8px; }
.page-hero h1 { font-size: 2.2rem; }
.page-hero p { font-size: 1.1rem; max-width: 760px; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { padding: 16px 0 0; font-size: 0.88rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal-dark); }

/* ---------- sections / cards ---------- */
.section { padding: 34px 0 10px; }
.section.light { background: var(--light); margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; border-radius: 16px; }
.section-intro { max-width: 760px; font-size: 1.06rem; }
.trust-bar { margin: 6px 0 10px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 20px 18px;
}
.trust-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.trust-card p { margin: 0; font-size: 0.92rem; color: #C9D6DE; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.card a { text-decoration: none; color: inherit; display: block; height: 100%; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card-body p { font-size: 0.94rem; color: var(--body); margin-bottom: 10px; }
.card-link { color: var(--teal-dark); font-weight: 700; font-size: 0.94rem; }
.problem-list { columns: 2; column-gap: 32px; list-style: none; padding: 0; }
.problem-list li { margin-bottom: 10px; break-inside: avoid; }
.problem-list a { text-decoration: none; font-weight: 600; }
.problem-list a::before { content: "\2713  "; color: var(--teal); font-weight: 800; }
.process-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: steps; }
.process-list li { background: var(--light); border-radius: var(--radius); padding: 22px 18px; margin: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--teal);
  color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 12px;
}
.process-list h3 { font-size: 1.05rem; }
.process-list p { font-size: 0.94rem; margin: 0; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.why-card h3 { font-size: 1.08rem; }
.why-card p { margin: 0; font-size: 0.96rem; }
.brand-strip { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.brand-strip li {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 18px;
  font-weight: 700; color: var(--navy); background: #fff; margin: 0;
}
.brand-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.brand-tile {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 14px;
  text-align: center; font-weight: 800; color: var(--navy); font-size: 1.05rem;
  background: #fff; box-shadow: var(--shadow); margin: 0;
}

/* ---------- content sections ---------- */
.content-section { max-width: 820px; }
.content-section ul, .content-section ol { margin-bottom: 1.1em; }
.service-links { columns: 2; list-style: none; padding: 0; }
.service-links li { margin-bottom: 8px; }
.service-links a { font-weight: 600; text-decoration: none; }
.zip-list {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px;
}
.zip-list li {
  background: var(--light); border: 1px solid var(--border); border-radius: 7px;
  padding: 6px 12px; font-weight: 700; color: var(--navy); font-size: 0.92rem; margin: 0;
}
.sitemap-list { columns: 2; list-style: none; padding: 0; }
.sitemap-list li { margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq-section { max-width: 820px; }
.faq-list details, .content-section details {
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px;
  background: #fff; overflow: hidden;
}
.faq-list summary, .content-section summary {
  padding: 15px 18px; cursor: pointer; font-weight: 700; color: var(--navy);
  list-style: none;
}
.faq-list summary::-webkit-details-marker, .content-section summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .content-section summary::after { content: "+"; float: right; color: var(--teal); font-size: 1.2rem; line-height: 1; }
.faq-list details[open ] summary::after, .content-section details[open] summary::after { content: "\2212"; }
.faq-list details p, .content-section details p { padding: 0 18px 16px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy); color: #fff; border-radius: 16px;
  padding: 40px 34px; text-align: center; margin: 44px 0 10px;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #C9D6DE; max-width: 640px; margin: 0 auto 22px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- blog ---------- */
.blog-article { max-width: 820px; }
.article-meta { color: var(--muted); font-size: 0.9rem; }
.answer-lede {
  font-size: 1.14rem; background: var(--light); border-left: 4px solid var(--teal);
  padding: 18px 20px; border-radius: 0 10px 10px 0; margin: 20px 0;
}
.article-image { border-radius: 14px; margin: 10px 0 26px; width: 100%; }

/* ---------- form ---------- */
.form-notice {
  background: #FFF7E6; border: 1px solid #F0C96A; border-radius: 10px;
  padding: 16px 20px; margin: 18px 0 26px; max-width: 820px;
}
.contact-form { max-width: 820px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 16px; font-size: 0.95rem; }
.contact-form label.full { display: block; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 9px; font: inherit; font-size: 1rem;
  color: var(--body); background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--teal); border-color: var(--teal);
}
.contact-form input.invalid, .contact-form select.invalid, .contact-form textarea.invalid { border-color: #C0392B; }
label.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--body); }
label.consent input { width: auto; margin-top: 4px; }
.form-error { color: #C0392B; font-weight: 700; }
.form-blocked { background: #FDECEA; border: 1px solid #E8AFAF; border-radius: 9px; padding: 14px 16px; font-weight: 600; }
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #C9D6DE; margin-top: 20px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 44px 20px 30px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 30px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #C9D6DE; text-decoration: none; font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }
.footer-disclosure, .footer-trademark {
  font-size: 0.86rem; line-height: 1.6; border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px; margin-bottom: 12px;
}
.footer-copy { font-size: 0.86rem; margin: 0; }
.footer-copy a { color: #fff; }
.mobile-call-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    padding: 10px 20px 22px; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-link { padding: 13px 4px; }
  .dropdown { position: static; box-shadow: none; background: rgba(255, 255, 255, 0.06); border-radius: 8px; margin: 0 0 8px; }
  .dropdown a { color: #E8EEF2; }
  .dropdown a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
  .header-cta { flex-direction: column; align-items: stretch; margin-top: 14px; }
  .header-cta .btn { text-align: center; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; }
  .hero h1 { font-size: 2rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .mobile-call-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: var(--navy); border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .mobile-call-bar a {
    flex: 1; text-align: center; color: #fff; text-decoration: none;
    font-weight: 700; padding: 13px 6px; font-size: 0.95rem;
  }
  .mobile-call-bar a + a { background: var(--teal); }
  body { padding-bottom: 48px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .card-grid, .why-grid, .trust-grid, .process-list, .brand-grid { grid-template-columns: 1fr; }
  .problem-list, .service-links, .sitemap-list { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; }
  .section.light { margin-left: -20px; margin-right: -20px; }
}
