/* APL Appliance Repair: single stylesheet, no framework. */

:root {
  --red: #c8102e;
  --red-dark: #9b0d23;
  --red-tint: #fbeef0;
  --dark: #1c1b1b;
  --dark-2: #2f2e2e;
  --ink: #2b2a2a;
  --muted: #5f5b5b;
  --line: #e7e3e3;
  --soft: #f6f4f4;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 27, 27, .06), 0 10px 28px rgba(28, 27, 27, .10);
  --font-head: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, 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-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--dark); margin: 0 0 .5em; }
h1, h2 { text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 820px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 56px; height: 56px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 6px; border: 2px solid transparent;
  font-family: var(--font-head); font-size: 1rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-secondary { background: var(--dark); color: var(--white); }
.btn-secondary:hover { background: var(--dark-2); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn-sm { padding: .55em 1em; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }

/* ---------- header ---------- */
.topbar { background: #111; color: #d9d5d5; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { color: var(--red); }
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 639px) { .topbar a { display: none; } .btn-row .btn { flex: 1 1 auto; } }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }

.logo { display: inline-flex; flex: none; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-text { display: flex; flex-direction: column; font-family: var(--font-head); line-height: 1; }
.logo-text strong { color: var(--red); font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; }
.logo-text span { color: var(--dark); font-size: .72rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; margin-top: 3px; }
.logo-light .logo-text span { color: #d9d5d5; }

.main-nav {
  display: flex; gap: 2px; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -8px;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 6px 10px; color: var(--dark); text-decoration: none; white-space: nowrap;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.header-call { display: none; }

@media (min-width: 1020px) {
  .header-row { flex-wrap: nowrap; }
  .main-nav { order: 0; width: auto; margin: 0 0 0 auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 1200px) { .header-call { display: inline-flex; } }

/* ---------- hero (homepage, photo background) ---------- */
.hero { position: relative; background: var(--dark); color: #ece8e8; padding: 56px 0 64px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(17,17,17,.92) 0%, rgba(17,17,17,.8) 45%, rgba(17,17,17,.45) 100%);
}
.hero-content { position: relative; max-width: 640px; }
@media (min-width: 900px) { .hero { padding: 112px 0 120px; } }
.hero h1 { color: var(--white); }
.hero .lede { color: #e2dddd; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 600; color: var(--red); margin-bottom: .8em; }
.hero .eyebrow { color: #ff9aa6; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .icon { color: #ff9aa6; }


/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--soft); padding: 26px 0 34px; border-bottom: 4px solid var(--red); }
.page-hero-row { display: flex; gap: 18px; align-items: flex-start; }
.page-hero-row .icon-xl { color: var(--red); margin-top: 6px; display: none; }
@media (min-width: 640px) { .page-hero-row .icon-xl { display: block; } }
.page-hero-center { text-align: center; padding: 64px 0; border-bottom: 0; }
.page-hero-center .icon-xl { margin: 0 auto 16px; color: var(--red); }
.page-hero-center .lede { margin-left: auto; margin-right: auto; }
.page-hero-center .btn-row { justify-content: center; }

.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; }
.breadcrumbs a { color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.section-alt { background: var(--soft); }
.section-dark { background: var(--dark); color: #d9d5d5; }
.section-dark h2 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 30px; }
.section-head h2::after, .split h2::after, .cta-band h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--red); margin-top: 12px; }
.section-head p { color: var(--muted); }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (min-width: 900px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.service-card { display: flex; flex-direction: column; }
.service-card .icon { color: var(--red); margin-bottom: 12px; }
.service-card h3 { text-transform: uppercase; letter-spacing: .04em; }
.service-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-meta { font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; color: var(--red); font-size: .95rem; text-transform: uppercase; }

/* Homepage grouped cards: the title link covers the card; "Also" links sit above it. */
div.service-card { position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
div.service-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { color: var(--dark); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:hover { color: var(--red); }
.card-also { position: relative; z-index: 1; margin: 6px 0 0; font-size: .9rem; color: var(--muted); flex: 0; }
.section-link { margin: 24px 0 0; font-weight: 700; }

.brand-strip { background: #111; color: #d9d5d5; padding: 18px 0; border-top: 3px solid var(--red); }
.brand-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.brand-strip p { margin: 0; font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #ff9aa6; }
.brand-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.brand-strip li { font-family: var(--font-head); font-size: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--white); }

.brand-band { background: var(--dark); color: #d9d5d5; padding: 40px 0; }
.brand-band .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.brand-band h2 { color: var(--white); margin-bottom: .3em; }
.brand-band p { margin: 0; }
.brand-band .btn-row { margin: 0; }

.brand-links { display: grid; gap: 16px; }
.brand-links .card { background: var(--dark-2); border-color: rgba(255,255,255,.12); color: #d9d5d5; }
.brand-links .card h3 { color: var(--white); text-transform: uppercase; letter-spacing: .04em; }
.brand-links .card p { margin: 0; }
.brand-links a.card:hover { border-color: var(--red); color: #d9d5d5; }

.feature-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (min-width: 800px) { .feature-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.feature-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
@media (min-width: 1000px) { .feature-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.page-body { padding-top: 40px; padding-bottom: 32px; }
@media (min-width: 700px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.brand-card { scroll-margin-top: 110px; }
.brand-card h3 { text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4em; }
.brand-card h3 a { color: var(--dark); text-decoration: none; }
.brand-card h3 a:hover { color: var(--red); }
.brand-card p { margin: 0; font-size: .92rem; line-height: 1.7; color: var(--muted); }
.brand-card p a { color: var(--muted); }
.brand-card p a:hover { color: var(--red); }
.brand-card-featured { border-top: 4px solid var(--red); }
.brand-card-featured .card-also { margin-top: 10px; }
.brand-card-featured .card-also a { color: var(--red); font-weight: 700; text-decoration: none; }
.brand-card:target { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
.brand-strip a { color: var(--white); text-decoration: none; }
.brand-strip a:hover { color: #ff9aa6; }
.feature .icon { color: var(--red); margin-bottom: 10px; }
.feature h3 { text-transform: uppercase; letter-spacing: .04em; }
.feature p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: var(--white); font-family: var(--font-head); font-weight: 700; margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 800px) { .steps-stacked { grid-template-columns: 1fr; gap: 14px; } }
.steps-stacked li { display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; padding: 18px 20px; }
.steps-stacked li::before { grid-row: span 2; margin: 0; }
.steps-stacked h3 { margin-bottom: .2em; }

/* ---------- photos ---------- */
.photo { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 16 / 9; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { margin: 0; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .photo-tall { aspect-ratio: auto; height: 100%; min-height: 420px; } }
.split-media { align-items: stretch; }

.chips { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; font-weight: 700; color: var(--dark); }
.chips-lg li { display: inline-flex; align-items: center; gap: 6px; }
.chips-lg .icon { color: var(--red); }

.reviews-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; color: var(--dark); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* ---------- service page content ---------- */
.with-aside { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 56px; }
@media (min-width: 960px) { .with-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } }
.content > section, .content.narrow > section { margin-bottom: 44px; }
.content.narrow { padding-top: 40px; padding-bottom: 32px; }

.problems { display: grid; gap: 12px; margin: 0; }
@media (min-width: 700px) { .problems { grid-template-columns: 1fr 1fr; } }
.problems div { background: var(--soft); border-left: 3px solid var(--red); border-radius: 6px; padding: 16px 18px; }
.problems dt { font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.problems dd { margin: 0; color: var(--muted); font-size: .95rem; }

.checklist { padding-left: 1.3em; }
.checklist li { margin-bottom: .5em; }
.checklist li::marker { color: var(--red); font-weight: 700; }
.checklist-icons { list-style: none; padding: 0; }
.checklist-icons li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.checklist-icons .icon { color: var(--red); margin-top: 4px; }

.callout { display: flex; gap: 14px; align-items: flex-start; background: #fff6e5; border: 1px solid #f2d397; border-radius: 8px; padding: 16px 18px; }
.callout .icon { color: #a35f00; }
.callout p { margin: 0; }

.aside .book-card { position: sticky; top: 100px; }
.book-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 12px; box-shadow: var(--shadow); padding: 24px; display: grid; gap: 12px; }
.book-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.book-card .price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: .02em; }
.mini-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: .92rem; font-weight: 700; }
.mini-list li { display: flex; align-items: center; gap: 8px; }
.mini-list .icon { color: var(--red); }

.code-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .code-grid { grid-template-columns: 1fr 1fr; } }
table.codes { width: 100%; border-collapse: collapse; font-size: .95rem; border: 1px solid var(--line); }
.codes caption { text-align: left; font-family: var(--font-head); font-weight: 600; color: var(--dark); padding-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.codes th, .codes td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.codes thead th { background: var(--dark); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.codes tbody tr:nth-child(even) td { background: var(--soft); }
.codes tbody tr:last-child td { border-bottom: 0; }
.codes code { font-weight: 700; color: var(--red-dark); white-space: nowrap; }

.link-list { columns: 2 200px; padding-left: 1.2em; }
.link-list li { margin-bottom: 6px; break-inside: avoid; }
.link-list li::marker { color: var(--red); }
.fine-print { font-size: .85rem; color: var(--muted); }

/* ---------- contact & form ---------- */
.contact-card h2 { font-size: 1.25rem; margin: 0; }
.contact-card h3 { margin: 8px 0 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-card p { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.contact-card p .icon { color: var(--red); margin-top: 4px; }
.contact-email { word-break: break-all; padding-left: 28px; }
.small-steps { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .95rem; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 700; color: var(--dark); font-size: .95rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  padding: 11px 12px; border: 1px solid #cfc9c9; border-radius: 6px; background: var(--white);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--red); outline: 3px solid rgba(200, 16, 46, .18); outline-offset: 0; }
.form input[type="file"] { padding: 8px; }
.form button { justify-self: start; }
.req { color: var(--red); }
.hp { position: absolute; left: -9999px; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--red); color: #ffe3e7; padding: 48px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--white); margin-bottom: .35em; }
.cta-band h2::after { background: var(--white); }
.cta-band p { margin: 0; }
.cta-band .btn-row { margin: 0; }
.cta-band .btn-primary { background: var(--white); color: var(--red); }
.cta-band .btn-primary:hover { background: #ffe3e7; color: var(--red-dark); }

.site-footer { background: #111; color: #b3adad; padding: 52px 0 24px; font-size: .95rem; }
.site-footer a { color: #ece8e8; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { color: var(--white); font-size: 1rem; letter-spacing: .12em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer address { font-style: normal; margin: 16px 0 12px; }
.footer-tag { margin-top: 14px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; font-size: .82rem; }
.footer-legal p { margin-bottom: .5em; }

/* Sticky call bar on phones */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(28,27,27,.08);
}
.mobile-bar .btn { padding: .75em .6em; font-size: .9rem; }
body { padding-bottom: 76px; }
@media (min-width: 1020px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

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