/* =========================================================
   1st Choice Emergency Plumber Battersea
   Light, clean local-business theme
   ========================================================= */

:root {
  --navy: #2d4a52;
  --navy-soft: #4b6a73;
  --text: #2c3b40;
  --muted: #62767c;
  --white: #ffffff;
  --grey: #f6f9f9;
  --blue-pastel: #e7eff0;
  --aqua: #f0f5f6;
  --aqua-deep: #e8b5bf;
  --line: #d7e3e5;
  --cta: #b03357;
  --cta-dark: #8a2745;
  --radius: 6px;
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); }
a:hover { color: var(--navy); }

h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

.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: -999px; top: 8px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid #e07a93; outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  font: inherit; font-weight: 700; line-height: 1.2;
  padding: .8em 1.35em; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--call { background: var(--cta); color: #fff; }
.btn--call:hover { background: var(--cta-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--lg { font-size: 1.05rem; padding: .95em 1.6em; }

.eyebrow {
  margin: 0 0 .5em; font-size: .85rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #a22f50;
}

/* ---------- Top bar & header ---------- */
.topbar { background: var(--aqua); color: var(--navy); font-size: .92rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.topbar p { margin: 0; }
.topbar a { color: var(--navy); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.brand__sub { font-size: .8rem; color: var(--muted); letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  color: var(--navy); text-decoration: none; font-weight: 600; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: border-color .2s ease;
}
.site-nav li a:hover, .site-nav li a.is-active { border-bottom-color: var(--aqua-deep); }
.nav-call { padding: .6em 1.1em; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { left: 0; right: 0; top: -7px; }
.nav-toggle__bars::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--blue-pastel); isolation: isolate; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.80) 0%, rgba(255,255,255,.62) 42%, rgba(255,255,255,.06) 100%);
}
.hero__inner { padding-block: clamp(56px, 9vw, 110px); }
.hero__copy { max-width: 560px; }
.hero__lead { font-size: 1.15rem; color: var(--navy-soft); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* ---------- Trust strip ---------- */
.strip { background: var(--navy); color: #fff; }
.strip__inner { display: flex; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-block: 14px; }
.strip p { margin: 0; font-size: .98rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tint { background: var(--grey); }
.section__head { max-width: 640px; margin-bottom: 2rem; }
.section__head p:last-child { margin-bottom: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service { border-top: 3px solid var(--aqua-deep); overflow: hidden; }
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0 0 var(--radius) var(--radius); transition: transform .4s ease; }
.service:hover img { transform: scale(1.03); }
.service__body { padding: 16px 2px 0; }
.service__body p { margin: 0; color: var(--text); font-size: .98rem; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { overflow: hidden; border-radius: var(--radius); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.split__media:hover img { transform: scale(1.03); }
.actions { margin-top: 1.4em; }

/* Why choose us */
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why li { padding-left: 0; border-top: 3px solid var(--aqua-deep); padding-top: 18px; }
.why svg { margin-bottom: 10px; }
.why p { margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact h3 { margin-top: 0; }
.contact address { font-style: normal; margin-bottom: 1.2em; }
.textlink { font-weight: 600; }
.hours { border-collapse: collapse; width: 100%; max-width: 360px; font-size: .98rem; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; color: var(--navy); }
.hours td { text-align: right; }
.contact__info h3:not(:first-child) { margin-top: 1.8em; }

.form-wrap { width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.form-wrap iframe { display: block; width: 100%; max-width: 100%; height: 740px; border: 0; }

.map { margin-top: clamp(32px, 5vw, 56px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d9e6e8; font-size: .97rem; padding-top: 48px; }
.site-footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer__brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: .5em; }
.footer__title { color: #fff; font-size: 1rem; margin-bottom: .7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35em; }
.footer__legal {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.18); padding-block: 18px; font-size: .88rem;
}
.footer__legal p { margin: 0; }

/* ---------- Mobile quick-action bar ---------- */
.callbar { display: none; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-call { margin-top: 14px; }
  .split, .contact { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .hero::before { background: rgba(255,255,255,.74); }
  .topbar__inner { justify-content: center; text-align: center; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; padding-bottom: 72px; }
  .services { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .brand__sub { font-size: .72rem; }
  .brand__name { font-size: 1.15rem; }
  .form-wrap iframe { height: 780px; }
  .map iframe { height: 300px; }
  .strip__inner { flex-direction: column; gap: 4px; }

  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
  }
  .callbar .btn { padding: .8em .6em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Page-specific additions */
.trust { margin-top: 0; }
.svc-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.svc-group { border-top: 3px solid var(--aqua-deep); padding-top: 16px; }
.svc-group h3 { margin-bottom: .5em; }
.ticks { list-style: none; margin: 0; padding: 0; font-size: .98rem; }
.ticks li { position: relative; padding: 4px 0 4px 22px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .85em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--aqua-deep); border: 2px solid var(--navy-soft); box-sizing: content-box; margin-top: -6px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lead { font-size: 1.12rem; color: var(--navy-soft); }
@media (max-width: 960px) { .svc-groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-groups { grid-template-columns: 1fr; } }

/* Dorchester additions */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: clamp(32px, 5vw, 52px); }
.photo-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.chips { list-style: none; margin: 0 0 clamp(32px, 5vw, 52px); padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--aqua); color: var(--navy); font-weight: 600; font-size: .95rem; padding: 7px 14px; border-radius: 999px; }
.svc-group p { margin: 0; font-size: .98rem; }
@media (max-width: 600px) { .photo-row { grid-template-columns: 1fr; } }

/* Palette accents (Coolors: dfbbb1, f56476, e43f6f, be3e82, 5e4352) */
:root { --coral: #e07a93; --raspberry: #cf5f7b; --orchid: #a22f50; }
.site-nav li a:hover, .site-nav li a.is-active { border-bottom-color: var(--coral); }
.strip { border-bottom: 4px solid var(--coral); }
.ticks li::before { border-color: var(--raspberry); }
.svc-group, .service, .why li { border-top-color: var(--aqua-deep); }
.btn--ghost { border-color: var(--navy); }
.chips li { background: var(--blue-pastel); }

/* Illustrations */
.split__media--illus { background: var(--aqua); display: grid; place-items: center; padding: clamp(20px, 4vw, 40px); }
.split__media--illus img { width: 100%; max-width: 420px; aspect-ratio: 1 / 1; object-fit: contain; }
.section__head--illus { max-width: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.section__head--illus > div { max-width: 640px; }
.section__head--illus p:last-child { margin-bottom: 0; }
.illus { width: 170px; height: auto; flex: none; }
@media (max-width: 600px) { .illus { width: 96px; } }

.hero__copy h1, .hero__copy .hero__lead, .hero__copy .eyebrow { text-shadow: 0 0 16px rgba(255,255,255,.75); }

/* Service cards */
.svc-cards { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 22px; margin-top: 8px; }
.svc-card { margin: 0; }
.svc-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--aqua); }
.svc-card h3 { margin: .8em 0 0; font-size: 1.1rem; }
.svc-cards--3 { --cols: 3; }
@media (max-width: 960px) { .svc-cards, .svc-cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .svc-cards, .svc-cards--3 { grid-template-columns: 1fr; } }
.lead-block p { max-width: 62ch; }

.hero__copy h1, .hero__copy .hero__lead, .hero__copy .eyebrow { text-shadow: 0 0 16px rgba(255,255,255,.75); }

.svc-card p { margin: .35em 0 0; font-size: .98rem; color: var(--muted); }

#air-conditioning .split { margin-bottom: clamp(36px, 5vw, 56px); }

/* Air conditioning info + brand carousel */
.ac-info { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); margin-top: clamp(36px, 5vw, 56px); }
.ac-info h3 { margin-bottom: .7em; }
.ac-info .chips { margin-bottom: 0; }
.brands { margin-top: clamp(36px, 5vw, 56px); }
.brand-carousel { overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-track { display: flex; gap: 18px; width: max-content; margin: 0; padding: 0; list-style: none; animation: brand-scroll 28s linear infinite; }
.brand-carousel:hover .brand-track, .brand-carousel:focus-within .brand-track { animation-play-state: paused; }
.brand-tile { flex: none; min-width: 190px; text-align: center; padding: 16px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--grey); color: var(--navy); font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; }
@keyframes brand-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .brand-track [aria-hidden="true"] { display: none; }
  .brand-carousel { mask-image: none; -webkit-mask-image: none; }
}
@media (max-width: 760px) { .ac-info { grid-template-columns: 1fr; } .brand-tile { min-width: 150px; font-size: 1.15rem; } }

/* brand logo tiles */
.brand-tile { display:flex; align-items:center; justify-content:center; min-width:200px; height:84px; padding:14px 26px; background:#fff; }
.brand-tile img { height:100%; width:auto; max-width:150px; object-fit:contain; display:block; }

/* five main service categories */
.svc-cards--5 { grid-template-columns: repeat(6, 1fr); }
.svc-cards--5 .svc-card { grid-column: span 2; }
.svc-cards--5 .svc-card:nth-child(4) { grid-column: 2 / span 2; }
.svc-cards--5 .svc-card:nth-child(5) { grid-column: 4 / span 2; }
.svc-card .textlink { display:inline-block; margin-top:.5em; font-weight:700; }
@media (max-width: 960px) { .svc-cards--5 { grid-template-columns: repeat(2, 1fr); } .svc-cards--5 .svc-card, .svc-cards--5 .svc-card:nth-child(4), .svc-cards--5 .svc-card:nth-child(5) { grid-column: auto; } }
@media (max-width: 520px) { .svc-cards--5 { grid-template-columns: 1fr; } }

/* services intro: heading left, copy right on desktop */
@media (min-width: 900px) {
  #services .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 6vw, 88px); align-items: start; }
  #services .section__head { margin-bottom: 0; max-width: none; }
  #services .lead-block { margin: 0; }
  #services .lead-block p:first-child { margin-top: 0; }
  #services .lead-block p { max-width: none; }
  #services .svc-cards { grid-column: 1 / -1; margin-top: clamp(32px, 4vw, 52px); }
  #services .chips { margin-top: clamp(28px, 4vw, 44px); }
}

/* FAQ */
.faq__list { max-width: 820px; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq__item summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; flex: none; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 0 0 16px; color: var(--muted); }
/* FAQ centred */
.faq .section__head { margin-inline: auto; text-align: center; max-width: 820px; }
.faq__list { margin-inline: auto; }
