/* =========================================================================
   SwiftFix Appliance Repair — single stylesheet
   Theme tokens live on :root. Change --brand to rebrand the whole site.
   ========================================================================= */

:root {
  --brand:        #0f6fd6;
  --brand-dark:   #0a55a6;
  --brand-tint:   #eaf3fd;
  --accent:       #f6a609;
  --wa:           #1fa855;

  --ink:          #12181f;
  --ink-2:        #45525f;
  --line:         #dfe5ec;
  --surface:      #ffffff;
  --surface-2:    #f5f8fb;
  --bg:           #ffffff;

  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(16,24,40,.05), 0 10px 28px -14px rgba(16,24,40,.22);
  --shadow-lg:    0 24px 60px -28px rgba(16,24,40,.4);
  --maxw:         1120px;
  --pad:          clamp(1rem, 4vw, 2rem);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand:      #4b9bf0;
    --brand-dark: #7bb8f7;
    --brand-tint: #14212f;
    --ink:        #e8eef5;
    --ink-2:      #a3b1c0;
    --line:       #26313d;
    --surface:    #131a22;
    --surface-2:  #0e141a;
    --bg:         #0b1015;
    --shadow:     0 1px 2px rgba(0,0,0,.4), 0 12px 30px -16px rgba(0,0,0,.7);
    --shadow-lg:  0 24px 60px -28px rgba(0,0,0,.8);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: clamp(2rem, 1.35rem + 3vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem); }
h3 { font-size: clamp(1.12rem, 1.02rem + .5vw, 1.35rem); }
p  { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
.muted { color: var(--ink-2); }
.plain { list-style: none; padding: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(var(--maxw), 100% - 2 * var(--pad)); margin-inline: auto; }
section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 750; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .5rem;
}
/* Tinted sections carry a very faint dot grid so flat areas aren't dead space. */
.tint {
  background-color: var(--surface-2);
  background-image: radial-gradient(currentColor .8px, transparent .8px);
  background-size: 22px 22px;
  background-position: 0 0;
  color: var(--ink);
}
.tint > * { position: relative; }
@supports (background-image: radial-gradient(#000 1px, transparent 1px)) {
  .tint { background-image: radial-gradient(color-mix(in srgb, var(--ink) 7%, transparent) .9px, transparent .9px); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .97rem; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17904a; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.03rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- header ---------- */
.skip {
  position: absolute; left: -9999px; top: .5rem; background: var(--brand); color: #fff;
  padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 100;
}
.skip:focus { left: 1rem; color: #fff; }

header[data-site-header] {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--brand); color: #fff; flex: none;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-size: 1.18rem; letter-spacing: -.02em; }
.logo-text em { font-style: normal; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); }

.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  position: relative; color: var(--ink); text-decoration: none; font-weight: 600;
  font-size: .95rem; padding: .48rem .8rem; border-radius: 999px; display: block;
  transition: background-color .15s ease, color .15s ease;
}
/* Underline slides out from the centre on hover. */
.nav ul a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: .26rem; height: 2px;
  background: var(--brand); border-radius: 2px; transition: left .18s ease, right .18s ease;
}
.nav ul a:hover { color: var(--brand); background: var(--brand-tint); }
.nav ul a:hover::after { left: .8rem; right: .8rem; }

/* Active page — filled pill, unmistakable at a glance. */
.nav ul a[aria-current="page"] {
  color: #fff; background: var(--brand); font-weight: 750;
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--brand) 65%, transparent);
}
.nav ul a[aria-current="page"]::after { display: none; }
.nav ul a[aria-current="page"]:hover { color: #fff; background: var(--brand-dark); }

.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); cursor: pointer; padding: 0; place-items: center; color: var(--ink);
}
.nav-toggle-bars { display: grid; gap: 5px; }
.nav-toggle-bars i { display: block; width: 19px; height: 2px; background: currentColor; border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; inset: 68px 0 auto; display: none; flex-direction: column;
    align-items: stretch; gap: 0; padding: .5rem var(--pad) 1.25rem;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a {
    display: block; padding: .8rem .8rem .8rem 1rem; border-bottom: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }
  .nav ul a::after { display: none; }
  /* Active row keeps the brand fill, plus a bar on the leading edge. */
  .nav ul a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--brand-dark);
    border-bottom-color: transparent;
  }
  .nav-cta { margin-top: 1rem; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.75rem); background:
  radial-gradient(70rem 34rem at 78% -12%, var(--brand-tint), transparent 62%); }

/* --- Photo hero (home page): full-bleed image behind a dark gradient. --- */
.hero-photo {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem);
  background: #0b1219;
}
/* NB: the <img> lives inside a <picture>, so this must not be a child selector. */
.hero-photo .hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
/* Two overlays: a strong left-to-right wash for text legibility, plus a
   brand-tinted vertical fade so the photo reads as part of the design. */
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6,11,16,.97) 0%, rgba(6,11,16,.93) 42%, rgba(6,11,16,.74) 70%, rgba(6,11,16,.55) 100%),
    linear-gradient(to top, rgba(15,111,214,.3), transparent 55%);
}
/* Force light-on-dark inside the photo hero, in BOTH colour schemes. */
.hero-photo,
.hero-photo h1,
.hero-photo h2 { color: #fff; }
/* Doubled class raises specificity above the plain `.hero p.lead` rule below. */
.hero-photo.hero-photo p.lead,
.hero-photo.hero-photo .muted { color: rgba(255,255,255,.93); }
.hero-photo .eyebrow { color: #9fd0ff; }
.hero-photo .badge {
  background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.24); color: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
}
.hero-photo .badge b { color: #fff; }
.hero-photo .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-photo .btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
/* The pricing card stays a light surface so it pops off the dark photo. */
.hero-photo .hero-card {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-color: rgba(255,255,255,.14);
  color: var(--ink);
}
.hero-photo .hero-card h2 { color: var(--ink); }
.hero-photo .hero-card .muted { color: var(--ink-2); }

/* --- Page banner (inner pages): shorter photo band. --- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4rem); background: #0b1219;
}
.page-hero .hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8,14,20,.92) 0%, rgba(8,14,20,.8) 55%, rgba(8,14,20,.5) 100%);
}
.page-hero, .page-hero h1 { color: #fff; }
.page-hero.page-hero p.lead, .page-hero.page-hero .muted { color: rgba(255,255,255,.93); }
.page-hero .eyebrow { color: #9fd0ff; }
.page-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.page-hero .btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero p.lead { font-size: clamp(1.06rem, 1rem + .4vw, 1.24rem); color: var(--ink-2); max-width: 54ch; }
.hero .btn-row { margin-top: 1.5rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.15rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700;
  padding: .35rem .75rem; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink-2);
}
.badge b { color: var(--brand); }

.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.25rem, 3vw, 1.9rem); box-shadow: var(--shadow-lg);
}
.hero-card h2 { font-size: 1.25rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 1.2rem; }
.stat {
  background: var(--surface-2); border-radius: var(--radius-sm); padding: .85rem .95rem;
  border: 1px solid var(--line);
}
.stat b { display: block; font-size: 1.5rem; color: var(--brand); line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--ink-2); }

/* ---------- trust strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--surface-2); padding-block: 1.1rem; }
.strip ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: .6rem 1.75rem; justify-content: center; font-size: .9rem; font-weight: 650; color: var(--ink-2);
}
.strip li { display: flex; align-items: center; gap: .45rem; }
.strip svg { color: var(--brand); flex: none; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
/* Pin to 3 columns on desktop so a six-card grid reads 3+3, not 4+2. */
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease;
}
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-3px); border-color: var(--brand); color: inherit; }
.card-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand); margin-bottom: .9rem;
}
.card-link { font-weight: 700; font-size: .92rem; color: var(--brand); }

/* --- Photo cards: image bleeds to the card edges, content sits below. --- */
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo .card-media {
  position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2);
}
.card-photo .card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
a.card-photo:hover .card-media img { transform: scale(1.045); }
/* Icon floats over the bottom-left corner of the photo. */
.card-photo .card-icon {
  position: absolute; left: .85rem; bottom: -1.35rem; margin: 0; z-index: 2;
  background: var(--surface); color: var(--brand);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.card-photo .card-body { padding: 2.1rem 1.4rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card-photo .card-body p:last-child { margin-top: auto; padding-top: .6rem; margin-bottom: 0; }

/* --- Section figure: a standalone image beside body copy. --- */
.figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2);
}
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.figure figcaption { padding: .7rem 1rem; font-size: .85rem; color: var(--ink-2); }

/* Alternating image/text rows on the services page. */
.media-row { display: grid; gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center; }
@media (min-width: 860px) {
  .media-row { grid-template-columns: 1fr 1fr; }
  .media-row.reverse .figure { order: 2; }
}

.step { counter-increment: step; position: relative; padding-left: 3.4rem; }
.steps { counter-reset: step; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
}

.tick { list-style: none; padding: 0; }
.tick li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; }
.tick li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: .55rem; height: .95rem;
  border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-.35em);
}

/* ---------- brands strip ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem;
  font-size: .88rem; font-weight: 650; background: var(--surface); color: var(--ink-2);
}

/* ---------- testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: .9rem; }
.quote blockquote { margin: 0; font-size: 1.02rem; }
.quote figcaption { font-size: .88rem; color: var(--ink-2); }
.quote figcaption b { color: var(--ink); display: block; }
.stars { color: var(--accent); letter-spacing: .12em; font-size: .95rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
td.price { white-space: nowrap; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; max-width: 62rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--ink); padding: 1rem 3rem 1rem 1.1rem; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.35rem; color: var(--brand); line-height: 1;
}
.faq-item.is-open .faq-q::after { content: "–"; }
.faq-a { padding: 0 1.1rem; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.faq-item.is-open .faq-a { max-height: 34rem; padding: 0 1.1rem 1.1rem; }
/* No-JS fallback: show every answer. */
.no-js .faq-a { max-height: none; padding: 0 1.1rem 1.1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.75rem); text-align: center;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: .92; max-width: 52ch; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: #eef4fb; color: var(--brand-dark); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.cta-band .btn-row { justify-content: center; margin-top: 1.35rem; }

/* ---------- forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.9rem); box-shadow: var(--shadow);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .72rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); font: inherit;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-status {
  margin-top: .9rem; padding: .7rem .9rem; border-radius: var(--radius-sm);
  background: var(--brand-tint); color: var(--ink); font-size: .92rem;
}

/* ---------- areas ---------- */
.area-list { columns: 3 12rem; column-gap: 1.5rem; list-style: none; padding: 0; }
.area-list li { break-inside: avoid; padding: .35rem 0 .35rem 1.4rem; position: relative; }
.area-list li::before {
  content: ""; position: absolute; left: 0; top: .78em; width: .45rem; height: .45rem;
  border-radius: 50%; background: var(--brand);
}

/* ---------- footer ---------- */
footer[data-site-footer] { border-top: 1px solid var(--line); background: var(--surface-2); margin-top: 2rem; }
.foot-grid {
  display: grid; gap: 2rem; padding-block: clamp(2rem, 5vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.foot-grid h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.foot-grid ul li { margin-bottom: .45rem; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--brand); text-decoration: underline; }
.foot-brand { font-weight: 800; font-size: 1.1rem; margin-bottom: .4rem; }
.foot-social { display: flex; gap: 1rem; }
.foot-base {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  border-top: 1px solid var(--line); padding-block: 1.1rem; font-size: .86rem;
}
.foot-base p { margin: 0; }

/* ---------- sticky mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  body { padding-bottom: 4.75rem; }
  .area-list { columns: 2 9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
