/* ==========================================================================
   Home appliance repair site — mobile-first stylesheet
   Colours chosen for WCAG AA contrast on white.
   ========================================================================== */
:root {
  --navy: #0b1f3a;
  --navy-2: #13294d;
  --blue: #1557d0;
  --blue-dark: #0f44a8;
  --blue-soft: #e8f0fd;
  --ink: #14223a;
  --muted: #4a5a73;
  --line: #dbe3ef;
  --alt: #f3f6fb;
  --white: #ffffff;
  --wa: #0e7a3e;
  --wa-dark: #0a6332;
  --success-bg: #e7f6ee; --success: #0c5c30;
  --error-bg: #fdecec;   --error: #a3121b;
  --warn-bg: #fff4d6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11,31,58,.06), 0 8px 24px rgba(11,31,58,.08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--white);
  padding-bottom: 76px; /* room for mobile CTA bar */
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.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; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }
main:focus { outline: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* ---------- Setup bar (pre-launch only) ---------- */
.setup-bar { background: var(--warn-bg); color: #5a3d00; border-bottom: 1px solid #f0d58a; padding: 8px var(--gutter); font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn-lg { min-height: 52px; padding: 12px 24px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); color: var(--navy); }
.btn[disabled] { opacity: .65; cursor: progress; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.15; overflow-wrap: anywhere; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px var(--gutter) 20px; max-height: calc(100vh - 68px); overflow-y: auto;
}
.no-js .site-nav { display: block; position: static; box-shadow: none; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li > a, .sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 12px 4px; min-height: 48px; color: var(--navy); font: inherit; font-weight: 600; text-decoration: none;
  background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left;
}
.nav-list a[aria-current="page"], .sub-toggle.is-current { color: var(--blue); }
.caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 8px; }
.sub-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg); margin-top: 4px; }
.sub-menu { list-style: none; margin: 0; padding: 4px 0 8px 12px; display: none; }
.sub-toggle[aria-expanded="true"] + .sub-menu, .no-js .sub-menu { display: block; }
.sub-menu a { display: block; padding: 10px 4px; color: var(--ink); text-decoration: none; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { color: var(--blue); }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.header-actions .btn { flex: 1 1 140px; }
.hide-md { display: none; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: flex; align-items: center; gap: 20px; position: static; padding: 0; box-shadow: none; border: 0; max-height: none; overflow: visible; }
  .nav-list { display: flex; gap: 4px; }
  .nav-list > li { position: relative; }
  .nav-list > li > a, .sub-toggle { border: 0; padding: 8px 10px; min-height: 44px; border-radius: 8px; width: auto; white-space: nowrap; }
  .header-actions .btn { white-space: nowrap; }
  .nav-list > li > a:hover, .sub-toggle:hover { background: var(--alt); }
  .sub-menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  }
  .no-js .sub-menu { display: none; }
  .no-js .has-sub:hover .sub-menu, .no-js .has-sub:focus-within .sub-menu { display: block; }
  .sub-menu a { padding: 10px 12px; border-radius: 8px; }
  .sub-menu a:hover { background: var(--alt); }
  .header-actions { margin: 0; flex-wrap: nowrap; }
  .header-actions .btn { flex: none; }
}
@media (min-width: 1200px) { .hide-md { display: inline; } }

.breadcrumbs { padding-top: 14px; font-size: .9rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #9aa6b8; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--alt), #fff); padding: 32px 0 24px; }
.hero-grid, .page-hero-grid { display: grid; gap: 28px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 6px 12px;
  background: var(--blue-soft); color: var(--blue-dark); border-radius: 999px; font-size: .9rem; font-weight: 650;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.contact-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.contact-options .btn { flex: 1 1 200px; }
.hero-points { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--navy); font-weight: 600; font-size: .95rem; }
.hero-points li::before, .tick-list li::before {
  content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; flex: none;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
  border-radius: 50%;
}
.hero-visual img { margin: 0 auto; max-height: 440px; width: auto; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .page-hero-grid { grid-template-columns: 1.25fr .75fr; gap: 40px; }
  .contact-options .btn { flex: 0 1 auto; }
}

.page-hero { background: linear-gradient(180deg, var(--alt), #fff); padding: 28px 0 24px; }
.page-hero-plain { padding: 36px 0 12px; }
.page-hero-img { max-height: 300px; width: auto; margin: 0 auto; }

/* ---------- Notice / disclaimer ---------- */
.notice {
  display: flex; gap: 10px; align-items: flex-start; margin: 16px 0;
  padding: 14px 16px; background: var(--alt); border: 1px solid var(--line); border-left: 4px solid var(--navy);
  border-radius: var(--radius-sm); font-size: .95rem; color: var(--ink);
}
.notice .icon { margin-top: 3px; color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-alt { background: var(--alt); }
.section-title { text-align: center; }
.section-title-sm { font-size: 1.35rem; margin-top: 4px; }
.section-lead { text-align: center; color: var(--muted); max-width: 62ch; margin: 0 auto 28px; }
@media (min-width: 900px) { .section { padding: 64px 0; } }
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.service-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s;
}
.service-card:hover, .service-card:focus-within { box-shadow: var(--shadow); border-color: #b9c9e2; }
.service-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--blue-soft); }
.service-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.service-card-title { font-size: 1.15rem; margin-bottom: 8px; }
.service-card-title a { color: var(--navy); text-decoration: none; }
.service-card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.service-card-title a:focus-visible { outline: none; }
.service-card:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.service-card p { color: var(--muted); font-size: .97rem; }
.service-card-link { margin-top: auto; font-weight: 700; color: var(--blue); }

.tick-list { list-style: none; padding: 0; }
.tick-list li { display: flex; align-items: flex-start; margin-bottom: 10px; }
.tick-list li::before { margin-top: 4px; }
.tick-list-sm { font-size: .93rem; }
.tick-list-sm li { margin-bottom: 6px; }
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { padding: 6px 14px; background: var(--blue-soft); color: var(--navy); border-radius: 999px; font-size: .93rem; font-weight: 600; }
.problem-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.problem-list li { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 600; color: var(--navy); }
.info-list li { margin-bottom: 8px; }
.area-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.area-list li { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.link-list { padding-left: 1.2em; }
.link-list li { margin-bottom: 6px; }

.pricing-note { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--blue-soft); }
.pricing-note h2 { font-size: 1.2rem; }
.pricing-note p:last-child { margin-bottom: 0; }

.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.feature-icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--blue-soft); fill: var(--blue); margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; position: relative; padding: 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800;
}
.step p { margin: 0; color: var(--muted); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; }
.faq summary { padding: 14px 44px 14px 16px; cursor: pointer; font-weight: 650; color: var(--navy); list-style: none; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 16px 14px; margin: 0; color: var(--muted); }

/* Info card */
.info-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; align-self: start; }
.details-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 16px; }
.details-list dt { font-weight: 650; color: var(--navy); }
.details-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .details-list { grid-template-columns: 1fr; gap: 2px; } .details-list dd { margin-bottom: 10px; } }
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 40px; } }

/* Prose (policy pages) */
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose li { margin-bottom: 6px; }

/* CTA band */
.cta-band { background: var(--navy); color: #dbe5f5; padding: 40px 0; }
.cta-band h2 { color: #fff; }
.cta-inner { display: grid; gap: 20px; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-actions .btn { flex: 1 1 200px; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } .cta-actions .btn { flex: none; } }

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .form-card { padding: 32px; } }
.form-intro { color: var(--muted); }
.enquiry-form { display: grid; gap: 4px 20px; }
@media (min-width: 700px) { .enquiry-form { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; }
.field label { font-weight: 650; color: var(--navy); margin-bottom: 6px; }
.req { color: var(--error); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #9fb0c8; border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(21,87,208,.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-hint { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.field-error { min-height: 1.4em; margin: 4px 0 6px; font-size: .88rem; color: var(--error); font-weight: 600; }
.field-check { flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.field-check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--blue); }
.field-check label { flex: 1; font-weight: 400; color: var(--ink); font-size: .95rem; }
.field-check .field-error { flex-basis: 100%; }
.form-footer { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 700px) { .form-footer { flex-direction: row; align-items: center; } .form-footer .btn { flex: none; } }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin: 12px 0; font-weight: 600; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #a6dcbc; }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid #f2b8bb; }
.form-status:empty { display: none; }
.form-status:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d5e8; padding: 48px 0 16px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; display: inline-block; padding: 2px 0; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact li { margin-bottom: 10px; overflow-wrap: anywhere; }
.footer-contact .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #93a6c4; }
.footer-disclaimer { font-size: .88rem; color: #aebdd4; }
.footer-bottom { border-top: 1px solid var(--navy-2); margin-top: 32px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .85rem; color: #93a6c4; }
.footer-bottom p { margin: 0; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(11,31,58,.08);
}
.mobile-cta .btn { min-height: 52px; }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* ---------- Consent ---------- */
.consent { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: 84px; }
@media (min-width: 768px) { .consent { left: auto; right: 24px; bottom: 24px; max-width: 420px; } }
.consent-inner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; font-size: .93rem; }
.consent-title { font-size: 1.05rem; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; min-height: 44px; }

@media print {
  .site-header, .mobile-cta, .consent, .cta-band, .form-card { display: none !important; }
  body { padding: 0; }
}
