:root {
  --navy: #0f2744;
  --navy-light: #16335c;
  --teal: #0b8a7e;
  --teal-btn: #0a7a6f;
  --teal-soft: #e5f4f2;
  --ink: #16213a;
  --ink-soft: #5b6b84;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-soft-2: #eef2f7;
  --border: #e3e8ee;
  --danger: #c0392b;
  --radius: 14px;
  --radius-sm: 9px;
  --btn-radius: 999px;
  --card-border-width: 1px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);
  --max-width: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-btn); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 0 0 .4rem; text-align: center; }
.text-left { text-align: left; }
.hero-image-fit { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; max-height: 420px; }
.section-sub { text-align: center; color: var(--ink-soft); max-width: 640px; margin: 0 auto 2.2rem; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }
.icon-lg { width: 34px; height: 34px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { max-height: 44px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.15rem; color: var(--navy); letter-spacing: -0.01em; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
.main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { color: var(--teal-btn); }
.main-nav .has-dropdown { position: relative; }
.main-nav .caret { font-size: .7em; }
.main-nav .dropdown {
  display: none; position: absolute; top: 100%; left: -14px; margin-top: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 8px; min-width: 230px; flex-direction: column; gap: 2px; z-index: 60;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown.open .dropdown { display: flex; }
.main-nav .dropdown a { padding: 9px 12px; border-radius: 6px; display: block; }
.main-nav .dropdown a:hover { background: var(--bg-soft-2); text-decoration: none; }
.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 10px 20px; font-size: .88rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: var(--btn-radius); font-weight: 700; border: 0; cursor: pointer; text-decoration: none; text-align: center; font-size: .95rem; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-call { background: var(--navy); color: #fff; }
.btn-whatsapp { background: #1f9d55; color: #fff; }
.btn-book { background: var(--teal-btn); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--border); }

/* Hero */
.page-hero { background: linear-gradient(170deg, var(--bg-soft) 0%, #fff 55%); padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-grid.single-col { grid-template-columns: 1fr; }
.page-hero h1 { margin-bottom: .85rem; }
.page-hero .intro { color: var(--ink-soft); max-width: 560px; font-size: 1.08rem; margin: 0 0 1.4rem; }
.hero-kicker { color: var(--teal-btn); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-phone-line { margin: 14px 0 0; font-size: .88rem; color: var(--ink-soft); }
.hero-phone-line a { font-weight: 700; color: var(--navy); }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-image-wrap img, .hero-image-wrap picture img { border-radius: var(--radius); width: 100%; object-fit: cover; max-height: 420px; box-shadow: var(--shadow-lg); }
.img-placeholder { background: var(--bg-soft-2); border: 1px dashed var(--border); border-radius: var(--radius); height: 220px; }

/* Assurance panel: deliberate, designed right-column treatment for hero
   sections that have no uploaded photo yet, instead of leaving the column
   empty or collapsing to a single centered column. */
.assurance-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 26px; box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; }
.assurance-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--navy); font-size: .94rem; }
.assurance-row:last-child { border-bottom: 0; }
.assurance-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.assurance-icon .icon { width: 19px; height: 19px; color: var(--teal-btn); }

/* Trust strip */
.trust-strip { background: var(--navy); padding: 20px 0; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center; }
.trust-strip .trust-item { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: .9rem; }
.trust-strip .icon-wrap { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-strip .icon { color: var(--teal); width: 17px; height: 17px; }

/* Sections */
.content-section { padding: 56px 0; }
.content-section.alt { background: var(--bg-soft); }
.content-section:first-of-type { padding-top: 48px; }
.section-body { color: var(--ink-soft); }

/* Service cards. Flex (not grid) so an incomplete last row — e.g. 5 cards
   wrapping to 3+2 — centers instead of leaving an orphan card stuck to the
   left edge, which CSS grid's auto-fit cannot do on its own. */
.service-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.service-card { flex: 1 1 250px; max-width: 320px; background: #fff; border: var(--card-border-width) solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-media { width: 100%; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px; background: var(--teal-soft); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.service-card-media picture { display: block; width: 100%; height: 100%; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; }
.service-card-media .icon { width: 64px; height: 64px; color: var(--teal-btn); flex-shrink: 0; }
/* Icon-only cards (no uploaded photo yet) read as a deliberate circular
   badge rather than a rectangular box that looks like a broken image. */
.service-card-media.icon-only { aspect-ratio: auto; height: auto; background: none; padding: 10px 0 2px; }
.service-card-media.icon-only .icon-badge { width: 72px; height: 72px; border-radius: 50%; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; }
.service-card-media.icon-only .icon-badge .icon { width: 32px; height: 32px; color: var(--teal-btn); }
.service-card h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--navy); }
.service-card p { color: var(--ink-soft); font-size: .92rem; margin: 0 0 14px; flex: 1; }
.service-card .card-link { font-weight: 700; font-size: .88rem; color: var(--teal-btn); display: inline-flex; align-items: center; gap: 4px; }

/* Why choose us / benefits. Flex (not grid), same reasoning as .service-grid:
   centers an incomplete last row instead of leaving an orphan item at the
   left edge. */
.benefit-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.benefit-item { flex: 1 1 200px; max-width: 260px; text-align: center; padding: 10px; }
.benefit-icon-wrap { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.benefit-icon-wrap .icon { color: var(--teal-btn); width: 30px; height: 30px; }
.benefit-item h3 { font-size: 1rem; margin: 0 0 6px; }
.benefit-item p { color: var(--ink-soft); font-size: .88rem; margin: 0; }

/* How it works */
.steps-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.step-item { flex: 1 1 200px; max-width: 260px; position: relative; padding: 24px 20px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.step-number { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
.step-item h3 { font-size: .98rem; margin: 0 0 6px; }
.step-item p { color: var(--ink-soft); font-size: .88rem; margin: 0; }

/* Brand strip */
.brand-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.brand-badge { padding: 10px 20px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--btn-radius); font-weight: 700; color: var(--navy); font-size: .92rem; }
.brand-badge:hover { border-color: var(--teal); color: var(--teal-btn); text-decoration: none; }
.brand-note { text-align: center; color: var(--ink-soft); font-size: .82rem; margin-top: 16px; }

/* Location chips */
.location-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.location-chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; background: var(--bg-soft-2); border-radius: var(--btn-radius); font-weight: 600; font-size: .88rem; color: var(--navy); }
.location-chip .icon { width: 15px; height: 15px; color: var(--teal-btn); }

.symptom-list { padding-left: 1.2rem; color: var(--ink-soft); columns: 2; column-gap: 32px; }
.symptom-list.single-col { columns: 1; max-width: 560px; margin: 0 auto; }
.symptom-list li { margin-bottom: 8px; break-inside: avoid; }

/* FAQ */
.faqs details { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.faqs summary { font-weight: 700; cursor: pointer; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; font-size: 1.3rem; color: var(--teal-btn); margin-left: 12px; }
.faqs details[open] summary::after { content: "\2212"; }
.faqs p { color: var(--ink-soft); margin: 10px 0 0; }

.related-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.related-links a { background: var(--bg-soft-2); padding: 9px 16px; border-radius: var(--btn-radius); display: inline-block; font-weight: 600; font-size: .88rem; }
.related-links a:hover { background: var(--teal-soft); text-decoration: none; }

/* Final CTA band */
.final-cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; padding: 56px 0; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 24px; }
.final-cta .hero-ctas { justify-content: center; }

/* Form */
#leadForm { max-width: 560px; margin: 0 auto; background: #fff; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.consent-text { font-size: .8rem; color: var(--ink-soft); }
.form-result { margin-top: 12px; font-weight: 700; }
.form-result.success { color: #1f9d55; }
.form-result.error { color: var(--danger); }
.field-error { color: var(--danger); font-size: .8rem; margin-top: 4px; }
.btn-submit { width: 100%; }
#enquiry-form h2 { text-align: center; }

/* Footer */
.site-footer { background: var(--navy); color: #c7d2e3; padding: 44px 0 16px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer a { color: #c7d2e3; }
.site-footer a:hover { color: #fff; }
.site-footer strong { color: #fff; font-size: 1.15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 18px; font-size: .8rem; color: #93a3bd; }

/* Mobile sticky bar */
.mobile-sticky-bar { display: none; }
.whatsapp-fab { display: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto 24px; }
  .symptom-list { columns: 1; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0)); }
  .nav-toggle { display: block; }
  .main-nav { justify-content: flex-end; }
  .main-nav ul { display: none; flex-direction: column; align-items: stretch; background: #fff; position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1px solid var(--border); padding: 14px 24px; box-shadow: var(--shadow); gap: 4px; }
  .main-nav ul.open { display: flex; }
  .main-nav .dropdown-toggle { pointer-events: none; color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 8px; }
  .main-nav .dropdown { display: flex !important; position: static; box-shadow: none; border: 0; padding: 0 0 4px 10px; margin: 0; min-width: 0; }
  .header-cta { display: none; }
  .content-section { padding: 38px 0; }
  .page-hero { padding: 36px 0 28px; }

  /* 3 CTA buttons (Call / Book / WhatsApp) wrap awkwardly as 2+1 on narrow
     screens; lay them out as a 2-col grid with the 3rd spanning full width
     instead of leaving a half-width orphan button. */
  .hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-ctas .btn:nth-child(3) { grid-column: 1 / -1; }

  .service-card { padding: 20px 18px; max-width: none; }
  .service-card-media { aspect-ratio: 16/9; margin-bottom: 12px; }
  .service-card-media .icon { width: 48px; height: 48px; }
  .service-card-media.icon-only .icon-badge { width: 60px; height: 60px; }
  .service-card-media.icon-only .icon-badge .icon { width: 28px; height: 28px; }
  .mobile-sticky-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -2px 10px rgba(0,0,0,.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-sticky-bar a {
    flex: 1; text-align: center; padding: 10px 4px 8px; font-weight: 700; font-size: .72rem; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-height: 48px; justify-content: center;
  }
  .mobile-sticky-bar a .icon { width: 21px; height: 21px; }
  .mobile-sticky-bar a:last-child { color: var(--navy); }
  .mobile-sticky-bar a:active { background: var(--bg-soft); }

  .whatsapp-fab {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 16px; bottom: calc(64px + env(safe-area-inset-bottom, 0) + 14px);
    width: 50px; height: 50px; border-radius: 50%; background: #1f9d55; color: #fff;
    box-shadow: 0 6px 16px rgba(31,157,85,.4); z-index: 61;
  }
  .whatsapp-fab .icon { width: 24px; height: 24px; }
}

.preview-banner { background: #fffbe6; border-bottom: 2px solid #e2c200; padding: 8px 16px; font-size: .85rem; }
.error-page { padding: 80px 20px; text-align: center; }

/* First-visit booking popup + the Book Now booking-form modal. Native
   <dialog> gives ESC-to-close, focus trapping and a backdrop for free. */
.booking-popup, .booking-form-modal {
  border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-width: 420px; width: calc(100% - 40px); background: #fff; padding: 0;
  max-height: calc(100vh - 48px);
}
.booking-form-modal { max-width: 480px; padding: 28px 28px 26px; overflow-y: auto; }
.booking-popup::backdrop, .booking-form-modal::backdrop { background: rgba(15, 23, 42, .55); }
@media (prefers-reduced-motion: no-preference) {
  .booking-popup[open], .booking-form-modal[open] { animation: popup-in .22s ease-out; }
}
@keyframes popup-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Optional appliance-photo strip across the top of the popup, bleeding to
   the dialog's rounded corners — only present when popup_hero_media_id is set. */
.popup-media { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--teal-soft); border-radius: var(--radius) var(--radius) 0 0; }
.popup-media picture, .popup-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.popup-body { padding: 28px 28px 26px; max-height: calc(100vh - 48px); overflow-y: auto; position: relative; }
.booking-popup:not(.has-media) .popup-body { padding-top: 32px; }

.popup-heading, .booking-form-modal h2 { text-align: left; margin: 0 0 .5rem; padding-right: 28px; }
/* Per-brand heading treatment (system fonts only — weight/spacing carry the
   distinction since loading brand webfonts isn't worth the CSP/perf cost). */
.popup-weight-600 { font-weight: 600; }
.popup-weight-700 { font-weight: 700; }
.popup-weight-800 { font-weight: 800; }
.popup-weight-900 { font-weight: 900; }
.popup-tracking-tight { letter-spacing: -0.01em; }
.popup-tracking-normal { letter-spacing: normal; }
.popup-tracking-wide { letter-spacing: .04em; }

.booking-popup p, .booking-form-modal .modal-subtext { color: var(--ink-soft); font-size: .92rem; margin: 0 0 20px; }
.booking-form-modal .lead-form { max-width: none; margin: 0; }

.popup-close-form { position: absolute; top: 14px; right: 14px; margin: 0; z-index: 2; }
.popup-close {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--bg-soft-2);
  color: var(--ink-soft); font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.popup-close:hover { background: var(--bg-soft); color: var(--ink); }
.popup-actions { display: flex; flex-direction: column; gap: 10px; }
.popup-actions .btn { width: 100%; }
@media (max-width: 480px) {
  .popup-body { padding: 24px 22px 22px; }
  .booking-popup:not(.has-media) .popup-body { padding-top: 28px; }
  .booking-form-modal { padding: 24px 22px 22px; }
}
