/* Speed Appliance Repair — Quincy MA — Coastal Harbor */
:root {
  --ink: #0C4A6E; /* harbor */
  --ink-soft: #075985;
  --amber: #14B8A6; /* seafoam */
  --amber-d: #0D9488;
  --amber-h: #2DD4BF;
  --cream: #FEF3C7; /* sand */
  --cream-2: #FDE68A;
  --muted: #57534E;
  --white: #ffffff;
  --line: #FCD34D;
  --accent: var(--amber);
  --accent-d: var(--amber-d);
  --deep: var(--ink);
  --shadow: 0 12px 32px rgba(12, 74, 110, 0.12);
  --shadow-accent: 0 10px 28px rgba(20, 184, 166, 0.28);
  --header-h: 4.25rem;
  --radius: 0.75rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}
section[id], .section[id], #services, #areas, #faq, #call, #about, #process, #guide, #contact {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-d); }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 1000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { width: min(1140px, calc(100% - 2rem)); margin-inline: auto; }
.wrap-narrow { width: min(820px, calc(100% - 2rem)); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.85rem 1.5rem; border-radius: 10px;
  font-weight: 800; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; white-space: nowrap; cursor: pointer;
  letter-spacing: 0.01em; transition: background 0.15s ease, transform 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn-orange { background: var(--amber); color: #042F2E; box-shadow: 0 6px 18px rgba(20, 184, 166, 0.4); }
.btn-orange:hover { background: var(--amber-d); color: #fff; }
.btn-teal { background: var(--ink); color: #fff; }
.btn-teal:hover { background: var(--ink-soft); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn .phone-ic { width: 18px; height: 18px; flex-shrink: 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 74, 110, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--amber);
  min-height: var(--header-h);
}
.header-inner {
  width: min(1140px, calc(100% - 1.25rem)); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem; min-height: var(--header-h);
}
.wordmark {
  flex-shrink: 0; display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: #fff; line-height: 1.05;
  padding: 0.35rem 0; margin-left: 0.25rem;
}
.wm-mark {
  width: 2.35rem; height: 2.35rem; border-radius: 999px;
  background: linear-gradient(145deg, var(--amber), var(--amber-d));
  color: #042F2E; display: grid; place-items: center;
  font-weight: 900; font-size: 1.05rem; letter-spacing: -0.04em; flex-shrink: 0;
}
.wm-text { display: flex; flex-direction: column; }
.wordmark .wm-top { font-weight: 900; letter-spacing: -0.03em; font-size: 1.08rem; }
.wordmark .wm-mid {
  font-size: 0.68rem; letter-spacing: 0.06em; font-weight: 700;
  color: var(--amber-h); margin: 0.1rem 0 0; text-transform: uppercase;
}
@media (min-width: 900px) { :root { --header-h: 4.75rem; } }
.nav-desktop { display: none; margin-left: auto; align-items: center; gap: 1.35rem; }
.nav-desktop a { color: rgba(255,255,255,0.88); text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.nav-desktop a:hover { color: var(--amber); }
.header-cta { display: none; margin-left: 0.5rem; flex-shrink: 0; }

.nav-mobile { margin-left: auto; position: relative; }
.nav-mobile > summary {
  list-style: none; width: 44px; height: 44px; display: grid; place-items: center;
  cursor: pointer; border-radius: 8px;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary:focus-visible { outline: 3px solid var(--amber); }
.burger { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.burger i { display: block; height: 2.5px; background: #fff; border-radius: 2px; }
.mobile-panel {
  position: absolute; right: 0; top: calc(100% + 0.4rem);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); min-width: 220px; padding: 0.6rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.mobile-panel a {
  color: var(--ink); text-decoration: none; font-weight: 700; min-height: 44px;
  display: flex; align-items: center; padding: 0 0.75rem; border-radius: 8px;
}
.mobile-panel a:hover { background: var(--cream-2); }
.mobile-panel .btn { white-space: normal; text-align: center; margin-top: 0.35rem; }
@media (min-width: 880px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-mobile { display: none; }
}

/* Hero — LEFT copy / RIGHT tall photo card */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(135deg, rgba(12, 74, 110, 0.94) 0%, rgba(7, 89, 133, 0.88) 48%, rgba(19, 78, 74, 0.55) 100%),
    url("photo-kitchen.webp") center / cover no-repeat;
  overflow: hidden; min-height: min(82vh, 680px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.5rem 0 2rem;
}
.hero-grid {
  display: grid; gap: 1.75rem; align-items: center;
  width: min(1140px, calc(100% - 2rem)); margin-inline: auto;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; }
}
.hero-copy { max-width: 36rem; }
.hero-photo-card {
  display: none; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.45); border: 3px solid rgba(20, 184, 166, 0.55);
  aspect-ratio: 3 / 4; max-height: 520px;
}
.hero-photo-card img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .hero-photo-card { display: block; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(20, 184, 166, 0.18); border: 1px solid rgba(20, 184, 166, 0.45);
  border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.78rem;
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 1rem; color: var(--amber-h);
}
.hero h1 {
  font-family: var(--display); font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 900; line-height: 1.05; margin: 0 0 0.9rem;
  letter-spacing: -0.035em; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.trust {
  font-size: clamp(1.02rem, 2.4vw, 1.18rem); margin: 0 0 1.25rem;
  max-width: 34rem; color: rgba(255, 255, 255, 0.92); font-weight: 500;
}
.trust-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.trust-chips span {
  background: rgba(250, 247, 242, 0.12); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; font-size: 0.82rem; font-weight: 700; padding: 0.45rem 0.8rem;
  border-radius: 8px; backdrop-filter: blur(4px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; }
.hero-actions .btn-orange { font-size: 1.1rem; min-height: 56px; padding: 0.95rem 1.75rem; }
.hero-slash { display: none; }

.split { display: grid; gap: 0.85rem 2.5rem; padding: 2.8rem 0; }
.split h2 {
  margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 900; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance;
}
.split .split-body p { margin: 0 0 0.9rem; color: var(--muted); }
.split .split-body p:last-of-type { margin-bottom: 0; }
@media (min-width: 800px) {
  .split { grid-template-columns: minmax(14rem, 0.36fr) 1fr; align-items: start; padding: 3.4rem 0; }
}

.section { padding: 2.8rem 0 3.2rem; }
.section h2 {
  margin: 0 0 0.5rem; font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem); font-weight: 900;
  color: var(--ink); letter-spacing: -0.03em;
}
.lede { color: var(--muted); margin: 0 0 1.5rem; max-width: 42rem; }

.landmarks { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; }
.landmarks span {
  background: var(--white); color: var(--ink-soft); border: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 700; padding: 0.4rem 0.75rem; border-radius: 8px;
  min-height: 36px; display: inline-flex; align-items: center;
}

.photo-band { position: relative; background: var(--ink); color: #fff; }
.photo-band-inner {
  display: grid; gap: 1.5rem; padding: 2.6rem 0 2.2rem; align-items: center;
}
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.photo-stack img {
  width: 100%; height: 140px; object-fit: cover; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.photo-stack img:first-child { grid-column: 1 / -1; height: 180px; }
.photo-band h2 {
  color: #fff; margin: 0 0 0.75rem; font-family: var(--display);
  font-weight: 900; letter-spacing: -0.03em; font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.photo-band p { color: rgba(255, 255, 255, 0.92); margin: 0 0 1rem; }
@media (min-width: 800px) {
  .photo-band-inner { grid-template-columns: minmax(240px, 0.45fr) 1fr; gap: 2.5rem; padding: 3.2rem 0 2.8rem; }
  .photo-stack img { height: 110px; }
  .photo-stack img:first-child { height: 160px; }
}

/* 2-col asymmetric service cards */
.cards {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: 1.35fr 1fr; }
  .card:nth-child(3), .card:nth-child(6) { grid-column: 1 / -1; }
  .card:nth-child(4n+1) { background: linear-gradient(160deg, #fff 0%, #FFFBEB 100%); }
}
.card {
  border: 1px solid var(--line); border-radius: 14px; padding: 1.35rem 1.2rem 1.4rem;
  background: var(--white); border-left: 5px solid var(--amber);
  box-shadow: 0 4px 14px rgba(12, 74, 110, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); border-left-color: var(--ink); }
.card .svc-icon {
  width: 2.6rem; height: 2.6rem; border-radius: 10px;
  background: rgba(20, 184, 166, 0.15); color: var(--amber-d);
  display: grid; place-items: center; margin-bottom: 0.75rem;
}
.card .svc-icon svg { width: 1.35rem; height: 1.35rem; }
.card h3 {
  margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 800;
  color: var(--ink); letter-spacing: -0.02em;
}
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.process-band { background: var(--white); border-block: 1px solid var(--line); }
.timeline { display: grid; gap: 1rem; position: relative; }
@media (min-width: 800px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .timeline::before {
    content: ""; position: absolute; top: 1.55rem; left: 8%; right: 8%;
    height: 3px; background: linear-gradient(90deg, var(--amber), var(--ink)); z-index: 0;
  }
}
.t-step {
  position: relative; z-index: 1; background: var(--cream);
  border-radius: 14px; padding: 1.25rem 1.1rem 1.35rem; border: 1px solid var(--line);
}
@media (min-width: 800px) {
  .t-step { background: transparent; border: none; padding: 0 0.75rem; text-align: center; }
}
.t-num {
  width: 3.1rem; height: 3.1rem; border-radius: 50%; background: var(--amber);
  color: #042F2E; font-weight: 900; font-size: 1.15rem; display: grid; place-items: center;
  margin-bottom: 0.85rem; box-shadow: 0 6px 16px rgba(20, 184, 166, 0.4); position: relative; z-index: 1;
}
@media (min-width: 800px) { .t-num { margin-inline: auto; } }
.t-step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.t-step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pills span {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-weight: 700; padding: 0.55rem 0.95rem; border-radius: 8px;
  min-height: 44px; display: inline-flex; align-items: center; font-size: 0.92rem;
}
.pills span:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }

.faq-band { background: var(--cream-2); }
.faq-list { display: grid; gap: 0.6rem; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0;
  border-left: 4px solid var(--amber);
}
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; min-height: 56px;
  padding: 0.85rem 1rem 0.85rem 1.15rem; font-weight: 800; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; border-radius: 12px; }
.chev {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0; color: var(--amber-d);
  transition: transform 0.2s ease; background: var(--cream);
}
.faq-list details[open] .chev { transform: rotate(180deg); background: rgba(20, 184, 166, 0.18); }
.faq-list .faq-a { padding: 0 1.15rem 1.1rem; color: var(--muted); margin: 0; }

.article { padding: 2.8rem 0 3.2rem; background: var(--white); }
.article h2 {
  font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900; color: var(--ink); letter-spacing: -0.03em; margin: 0 0 1rem;
}
.article h3 { font-size: 1.2rem; font-weight: 800; color: var(--amber-d); margin: 1.6rem 0 0.5rem; letter-spacing: -0.02em; }
.article p { color: var(--muted); margin: 0 0 0.95rem; }
.article ol, .article ul { color: var(--muted); padding-left: 1.2rem; }
.article li { margin: 0.35rem 0; }
.article a { font-weight: 700; color: var(--amber-d); }

#contact { background: var(--cream); border-top: 1px solid var(--line); }

.final-cta {
  background: linear-gradient(120deg, var(--ink) 0%, #292524 55%, #134E4A 100%);
  color: #fff; text-align: center; padding: 3.2rem 0 3.4rem;
}
.final-cta h2 {
  margin: 0 0 0.5rem; font-family: var(--display); font-weight: 900;
  letter-spacing: -0.03em; font-size: clamp(1.5rem, 3.2vw, 2.15rem);
}
.final-cta p { margin: 0 0 1.35rem; color: rgba(255, 255, 255, 0.92); }

.site-footer {
  background: var(--ink); color: rgba(255, 255, 255, 0.86);
  padding: 2.6rem 0 6.5rem; font-size: 0.92rem; border-top: 4px solid var(--amber);
}
@media (min-width: 768px) { .site-footer { padding-bottom: 2.6rem; } }
.footer-grid { display: grid; gap: 1.2rem; }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.1fr 1.4fr 1fr; gap: 2rem; }
  .footer-grid .credits { grid-column: 1 / -1; }
}
.site-footer strong { color: #fff; font-size: 1.05rem; }
.site-footer a { color: var(--amber-h); font-weight: 700; }
.site-footer a:hover { color: #fff; }
.credits { margin-top: 0.5rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }
.nap { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.75rem; }
.footer-brand .wm-mark { width: 2rem; height: 2rem; font-size: 0.9rem; }

.float-call {
  display: none; position: fixed; left: 1.15rem; bottom: 1.15rem; z-index: 40;
  width: 58px; height: 58px; border-radius: 999px; background: var(--amber);
  color: #042F2E; box-shadow: 0 8px 24px rgba(20, 184, 166, 0.5);
  align-items: center; justify-content: center; text-decoration: none;
}
.float-call:hover { background: var(--amber-d); color: #fff; }
.float-call:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.float-call svg { width: 24px; height: 24px; }
@media (min-width: 768px) { .float-call { display: flex; } }

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--amber); border-top: none;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  display: flex; justify-content: center;
  box-shadow: 0 -6px 20px rgba(20, 184, 166, 0.4);
}
.callbar .btn { width: min(520px, 100%); background: #fff; color: #0C4A6E; border-color: #fff; }
.callbar .btn:hover { background: var(--ink-soft); }
@media (min-width: 768px) { .callbar { display: none; } }

.page-main { padding: 2.5rem 0 3.5rem; }
.page-main h1 {
  font-family: var(--display); font-size: 2rem; font-weight: 900;
  letter-spacing: -0.03em; color: var(--ink); margin: 0 0 1rem;
}
.page-main p { color: var(--muted); }


/* === Quincy Coastal Harbor layout overrides === */
.site-header {
  background: rgba(254, 243, 199, 0.96);
  border-bottom: 3px solid var(--ink);
}
.wordmark { color: var(--ink); }
.wordmark .wm-mid { color: var(--amber-d); }
.nav-desktop a { color: var(--ink); }
.nav-desktop a:hover { color: var(--amber-d); }
.burger i { background: var(--ink); }

/* Top trust banner strip above stacked hero */
.trust-banner {
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 0;
  text-align: center;
  letter-spacing: 0.02em;
}
.trust-banner .wrap {
  display: flex; flex-wrap: wrap; gap: 0.65rem 1.25rem; justify-content: center;
}
.trust-banner span { opacity: 0.95; }

.hero {
  background: var(--cream);
  color: var(--ink);
  min-height: 0;
  padding: 2rem 0 0;
  justify-content: flex-start;
}
.hero-grid {
  display: block;
  width: min(900px, calc(100% - 2rem));
  margin-inline: auto;
  text-align: center;
}
.hero-copy { max-width: none; margin-inline: auto; }
.hero-eyebrow {
  background: rgba(20, 184, 166, 0.15);
  border-color: rgba(20, 184, 166, 0.45);
  color: var(--amber-d);
}
.hero h1 {
  color: var(--ink);
  text-shadow: none;
  max-width: 22ch;
  margin-inline: auto;
}
.trust { color: var(--muted); margin-inline: auto; }
.trust-chips { justify-content: center; }
.trust-chips span {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.hero-actions { justify-content: center; margin-bottom: 1.5rem; }
.hero-photo-card {
  display: block !important;
  width: 100%;
  max-width: none;
  aspect-ratio: 21 / 9;
  max-height: 320px;
  border-radius: 24px 24px 0 0;
  border: none;
  box-shadow: none;
  margin-top: 0.5rem;
}
.hero-photo-card img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: none; }
  .hero-photo-card { display: block !important; aspect-ratio: 21 / 9; max-height: 340px; }
}

/* Soft rounded cards */
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card:nth-child(3), .card:nth-child(6) { grid-column: auto; }
}
@media (min-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.card {
  border-left: none;
  border-radius: 22px;
  border: 1px solid rgba(12, 74, 110, 0.12);
  background: #fff;
  box-shadow: 0 8px 24px rgba(12, 74, 110, 0.06);
}
.card:nth-child(4n+1) { background: #fff; }
.card:hover { border-left-color: transparent; box-shadow: 0 12px 28px rgba(20, 184, 166, 0.2); }
.card .svc-icon { border-radius: 999px; background: rgba(20, 184, 166, 0.15); color: var(--amber-d); }

/* Seafoam mobile call bar */
.callbar {
  background: var(--amber);
  box-shadow: 0 -6px 20px rgba(20, 184, 166, 0.4);
}
.final-cta {
  background: linear-gradient(120deg, #0C4A6E 0%, #075985 50%, #0D9488 100%);
}
.site-footer {
  background: #0C4A6E;
  border-top: 4px solid var(--amber);
}
.site-footer a { color: #5EEAD4; }
.photo-band { background: #0C4A6E; }
.split h2, .section h2, .article h2 { color: #0C4A6E; }
.article h3 { color: #0D9488; }
