/* ==========================================================================
   ASAP Appliance Repair — site stylesheet
   Mobile-first. No framework dependencies.
   ========================================================================== */

:root {
  --navy: #0d2b45;
  --navy-deep: #081d30;
  --navy-soft: #16405f;
  --amber: #ffc107;
  --amber-dark: #d99e00;
  --ink: #16202b;
  --body: #46525f;
  --muted: #6b7683;
  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(13, 43, 69, .06), 0 4px 14px rgba(13, 43, 69, .07);
  --shadow-lg: 0 8px 30px rgba(13, 43, 69, .14);
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  /* room for the sticky mobile call bar */
  padding-bottom: 76px;
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.22;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.75rem, 5.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-soft); }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

strong { color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 52px 0; }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }
.lede { font-size: 1.08rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--amber); color: var(--navy); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 24px; min-height: 50px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: var(--navy-deep); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--amber-dark); color: var(--navy-deep); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 66px; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 38px; height: 49px; object-fit: contain; flex: none; }
.brand__name {
  color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.15;
  letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__sub { display: block; color: var(--amber); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.header-call { display: none; }
.header-call .btn { padding: 11px 18px; min-height: 46px; }

/* ---------- Nav ---------- */
.site-nav { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.08); }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center;
  /* Mobile: one swipeable row keeps the header short. */
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; white-space: nowrap;
  padding: 13px 10px 13px 0; margin-right: 0;
  color: #cfe0ee; text-decoration: none; font-size: .93rem; font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--amber); }
.site-nav .nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #dbe7f1; padding: 44px 0 48px;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lede { color: #c6d7e6; max-width: 46ch; }
.hero__eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px;
  background: rgba(255,193,7,.16); border: 1px solid rgba(255,193,7,.4);
  border-radius: 999px; color: var(--amber);
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.hero__grid { display: grid; gap: 28px; }
.hero__art { display: none; }

/* ---------- Trust strip ---------- */
.trust { background: var(--amber); color: var(--navy-deep); }
.trust ul {
  list-style: none; margin: 0; padding: 14px 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center;
}
.trust li { font-weight: 700; font-size: .92rem; margin: 0; }

/* ---------- Cards / services ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c9d6e2; }
.card__icon { width: 72px; height: 72px; object-fit: contain; margin-bottom: 12px; }
.card h3 { margin-bottom: .3em; }
.card p { font-size: .95rem; margin-bottom: 0; }
.card__more { margin-top: 12px; font-weight: 700; color: var(--navy-soft); font-size: .92rem; }

/* ---------- Prose (service pages) ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--navy); color: #cfe0ee; padding: 34px 0; }
.page-head h1 { color: #fff; margin-bottom: .25em; }
.page-head p { color: #bcd0e2; max-width: 58ch; margin: 0; }

/* ---------- Panel / callout ---------- */
.panel {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--amber);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}

/* ---------- Split feature ---------- */
.split { display: grid; gap: 26px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }

/* ---------- Hours ---------- */
.hours { list-style: none; margin: 0; padding: 0; max-width: 380px; }
.hours li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); margin: 0;
}
.hours li:last-child { border-bottom: 0; }
.hours .day { font-weight: 700; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 28px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 16px; }
.contact-list .label {
  display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.contact-list .value { font-size: 1.1rem; font-weight: 700; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-list a.value:hover { text-decoration: underline; }

form { margin: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem;
  color: var(--ink); background: #fff;
  border: 1px solid #cbd5e0; border-radius: var(--radius);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 3px solid rgba(255,193,7,.35); border-color: var(--navy-soft);
}
.form-note { font-size: .84rem; color: var(--muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9fb4c6; padding: 38px 0 30px; font-size: .92rem; }
.site-footer a { color: #cfe0ee; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.site-footer h2 { color: #fff; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: .9em; }
.footer-grid { display: grid; gap: 26px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .84rem; color: #7d93a6;
}

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; gap: 10px; padding: 10px 14px;
  background: rgba(8,29,48,.97); backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,.12);
}
.call-bar .btn { flex: 1; padding: 13px 12px; min-height: 50px; font-size: .98rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; }
.small { font-size: .88rem; }
.nowrap { white-space: nowrap; }

.breadcrumb { font-size: .84rem; color: #a9c0d4; margin-bottom: 10px; }
.breadcrumb a { color: #cfe0ee; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.link-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.link-grid a {
  display: block; padding: 12px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
  color: var(--navy); font-size: .93rem; box-shadow: var(--shadow);
}
.link-grid a:hover { border-color: var(--navy); }

/* ---------- Tablet up ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .link-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Desktop up ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .section { padding: 68px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 60px 0 66px; }
  .hero__grid { grid-template-columns: 1.35fr .65fr; align-items: center; }
  .hero__art { display: block; text-align: center; }
  .hero__art img {
    width: 100%; max-width: 190px; margin: 0 auto;
    filter: drop-shadow(0 12px 26px rgba(0,0,0,.4));
  }
  .split { grid-template-columns: 1fr 1fr; gap: 44px; }
  .split--rev .split__body { order: 2; }
  .split--rev .split__art { order: 1; }
  .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 48px; }
  .brand img { width: 46px; height: 60px; }
  .brand__name { font-size: 1.12rem; }
  .header-call { display: block; }
  .call-bar { display: none; }
  .site-nav ul { flex-wrap: wrap; overflow-x: visible; }
  .site-nav a { padding: 13px 16px 13px 0; font-size: .95rem; }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-nav, .call-bar, .site-footer, .btn { display: none !important; }
  body { padding-bottom: 0; font-size: 12pt; }
}
