/* Appliance Smart Pro - hand-written CSS, no framework, no build step.
   Deploy target is Hostinger shared PHP hosting, so everything ships as-is.

   Design tokens are defined once on :root (light) and swapped wholesale under
   prefers-color-scheme: dark. One accent colour for the entire page.
   Radius rule: surfaces 12px, controls 8px. Nothing else.
   Motion budget is deliberately low: hover/active/focus transitions only, no
   scroll animation. Someone whose fridge just died wants the phone number. */

/* ---------- font ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --paper:       #f6f7f8;
  --surface:     #ffffff;
  --surface-2:   #eef1f4;
  --ink:         #12171c;
  --muted:       #4a545f;
  --line:        #dfe3e8;
  --accent:      #b23c0a;
  --accent-text: #b23c0a;
  --on-accent:   #ffffff;
  --accent-tint: #fdf1ea;
  --shadow:      0 1px 2px rgba(18,23,28,.05), 0 8px 24px -12px rgba(18,23,28,.18);
  --r:   12px;
  --r-sm: 8px;
  --maxw: 1180px;
  --ease: cubic-bezier(.16,1,.3,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:       #0f1317;
    --surface:     #161b21;
    --surface-2:   #1d242c;
    --ink:         #e8ebee;
    --muted:       #9aa4af;
    --line:        #262d35;
    --accent:      #ff8a4c;
    --accent-text: #ff8a4c;
    --on-accent:   #12171c;
    --accent-tint: #1f1712;
    --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body, h1, h2, h3, p, ul, ol, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

body {
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 18px; } }

.ico { width: 1em; height: 1em; flex: none; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 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;
}

/* ---------- type scale ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.4rem); }
h3 { font-size: 1.06rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
p  { max-width: 62ch; }
.lead { font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem); color: var(--muted); }

.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px;
}

.section { padding-block: clamp(56px, 7vw, 96px); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { margin-top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              transform .08s var(--ease), box-shadow .18s var(--ease);
}
.btn .ico { font-size: 1.15em; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent); filter: brightness(.92); }
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); filter: none; }
}

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted); }

.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn, .chip, .card, a { transition: none !important; }
  .btn:active { transform: none; }
}

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);                 /* fallback: must stay opaque */
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports (background: color-mix(in srgb, red 50%, blue)) and (backdrop-filter: blur(1px)) {
  .header { background: color-mix(in srgb, var(--paper) 88%, transparent); }
}
@supports not (backdrop-filter: blur(1px)) { .header { background: var(--paper); } }

.header-in { display: flex; align-items: center; gap: 20px; height: 70px; }

.brand {
  display: flex; align-items: baseline; gap: 8px;
  font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; flex: none;
}
.brand b { color: var(--accent-text); font-weight: 700; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: color .15s var(--ease);
}
.nav a:hover { color: var(--ink); }
.header .btn { flex: none; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .header-in { height: 64px; }
  .nav {
    position: absolute; inset: 64px 0 auto; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 18px 18px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; font-size: 1.4rem;
    background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm);
    color: var(--ink); cursor: pointer;
  }
  .header-cta { margin-left: auto; order: 2; padding: 11px 14px; }
  .nav-toggle { order: 3; }
  .header-cta .num { display: none; }
  .header-cta .ico { font-size: 1.25rem; }
}

/* ---------- hero (asymmetric split) ---------- */
.hero { padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(44px, 6vw, 84px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero h1 { margin-bottom: 18px; text-wrap: balance; }
.hero .lead { margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media {
  position: relative; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); background: var(--surface-2);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
}

/* ---------- promise band ---------- */
.promise { border-block: 1px solid var(--line); background: var(--surface); }
.promise-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.promise-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 26px 28px;
  border-left: 1px solid var(--line);
}
.promise-item:first-child { border-left: 0; padding-left: 0; }
.promise-item .ico { font-size: 1.45rem; color: var(--accent-text); margin-top: 2px; }
.promise-item h3 { margin-bottom: 2px; }
.promise-item span { color: var(--muted); font-size: .92rem; }

@media (max-width: 800px) {
  .promise-grid { grid-template-columns: 1fr; }
  .promise-item { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .promise-item:first-child { border-top: 0; }
}

/* ---------- credentials bento ---------- */
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px;
}
.card .ico { font-size: 1.5rem; color: var(--accent-text); margin-bottom: 14px; }
.card h3 { margin-bottom: 7px; }
.card p { color: var(--muted); font-size: .95rem; }

/* the warranty promise is the one cell that carries colour */
.card-accent {
  grid-column: span 2;
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  display: flex; flex-direction: column; justify-content: center;
}
.card-accent .ico { color: var(--on-accent); }
.card-accent p { color: var(--on-accent); opacity: .88; font-size: 1.02rem; max-width: 46ch; }

@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .card-accent { grid-column: auto; }
}

/* ---------- services: grouped chips ---------- */
.group { border-top: 1px solid var(--line); padding-block: 26px; }
.group:first-of-type { border-top: 0; padding-top: 0; }
.group-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.group-head .ico { font-size: 1.35rem; color: var(--accent-text); }
.group-head h3 { font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  font-size: .95rem; font-weight: 500;
}
.chip .ico { font-size: 1.05rem; color: var(--accent-text); }

.fuel { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; align-items: center; }
.fuel span { color: var(--muted); font-size: .95rem; margin-right: 4px; }

/* ---------- process (sticky heading + sequence) ---------- */
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); }
.process-head { position: sticky; top: 104px; align-self: start; }
.steps { display: grid; gap: 0; }
.step { padding: 22px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step h3 { color: var(--accent-text); margin-bottom: 6px; font-size: 1.12rem; }
.step p { color: var(--muted); }

@media (max-width: 860px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-head { position: static; }
}

/* ---------- brand wall ---------- */
.brands {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.brands li {
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem; letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- service area split ---------- */
.area-grid {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.area-media { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.area-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.area-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.area-list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line); font-size: .95rem; font-weight: 500;
}
.area-list .ico { font-size: 1.02rem; color: var(--accent-text); }

@media (max-width: 860px) {
  .area-grid { grid-template-columns: 1fr; }
  .area-media img { aspect-ratio: 16 / 10; }
}

/* ---------- contact: single focal call band ---------- */
.contact { background: var(--accent-tint); border-top: 1px solid var(--line); }
.call-band {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: clamp(28px, 5vw, 52px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.call-band .lead { margin-bottom: 14px; }
.call-band .tel {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1;
  color: var(--ink); text-decoration: none;
  transition: color .15s var(--ease);
}
.call-band .tel .ico { color: var(--accent-text); font-size: .82em; }
.call-band .tel:hover { color: var(--accent-text); }
.call-band .hours { color: var(--muted); font-size: .98rem; margin-top: 16px; max-width: 58ch; }

/* ---------- footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 40px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--accent-text); }
.footer li { margin-bottom: 8px; color: var(--muted); font-size: .95rem; }
.footer .lead { font-size: .95rem; margin-top: 10px; }
.colophon {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--muted); font-size: .86rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
