/* London Emergency Electricians
   Layout follows a clean trade-site pattern: photo hero with a blue band and grey panel,
   light grey cards with a photo or panel on one side, dash lists, two-tone buttons.
   Colours follow the logo: navy and Big Ben sky blue.
   Type: Plus Jakarta Sans for headings, buttons and labels; Figtree for reading text.
   The rate blues (pale, sky, royal) appear only where they encode a rate band. */
:root {
  --navy: #01328E;
  --navy-deep: #00256E;
  --sky: #76B4EC;
  --sky-light: #A9D0F4;
  --sky-pale: #E2EFFB;
  --royal: #2F6BE0;
  --night: #061A45;
  --grey: #EDF2F8;
  --grey-2: #E4EBF4;
  --card: #FFFFFF;
  --line: #D5DEEA;
  --text: #0B1B3D;
  --body: #2B3650;
  --muted: #5A6680;
  --focus: #2F6BE0;
  --error: #C62828;

  --day: #E4EFFB;
  --eve: #76B4EC;
  --night-band: #2F6BE0;

  --f-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --r: 10px;
  --wrap: 1240px;
  --sec: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 18px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h2 { font-size: clamp(25px, 2.5vw, 33px); }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.live-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--sky);
  box-shadow: 0 0 0 0 rgba(118, 180, 236, .7);
  animation: live 2.4s ease-out infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(118, 180, 236, .7); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(118, 180, 236, 0); }
}

/* Buttons: navy with sky text, echoing the logo's two blues */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 8px;
  font: 700 16px/1.1 var(--f-head);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.btn svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 18px; }
.btn-primary { background: var(--navy); color: var(--sky-light); }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-outline { background: #fff; border-color: #C3CFDF; color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }
.btn-pale { background: #BFDCF7; color: var(--navy); }
.btn-pale:hover { background: var(--sky-light); }
.btn-sky { background: var(--sky); color: var(--night); }
.btn-sky:hover { background: var(--sky-light); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.topbar {
  margin: 0; padding: 9px 16px; background: var(--navy); color: var(--sky-light);
  text-align: center; font: 500 16px/1.4 var(--f-body);
}
.topbar a { color: var(--sky-light); font-weight: 700; text-underline-offset: 3px; }
.topbar a:hover { color: #fff; }
.nav-row { display: flex; align-items: center; gap: 36px; min-height: 92px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
/* --logo-scale is set by the photo editor's logo + and - buttons */
.brand-logo { height: calc(58px * var(--logo-scale, 1)); width: auto; max-width: 340px; object-fit: contain; object-position: left center; }
.logo-host { position: relative; display: block; }
/* Animated logo: the lettering and the rings are separate layers cut from the uploaded logo.
   site.js switches them on only while the header shows that same logo. */
.logo-layers { display: none; position: absolute; inset: 0; pointer-events: none; }
.logo-host.is-animated > .brand-logo { visibility: hidden; }
.logo-host.is-animated > .logo-layers { display: block; }
.logo-layers img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: left center; }
/* Every 8 seconds the rings rise into view: a soft-edged mask uncovers them from the bottom up
   while they drift up into place, they hold, then fade out before the next rise.
   The mask is twice and a half the logo's height, opaque at its foot and clear at its head:
   sliding it from 0% to 100% moves the visible part up from the bottom edge. */
.logo-rings {
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 60%);
          mask-image: linear-gradient(to top, #000 40%, transparent 60%);
  -webkit-mask-size: 100% 250%; mask-size: 100% 250%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 100%; mask-position: 0 100%;
  animation: logo-rise 8s infinite; animation-delay: -4.4s;
}
@keyframes logo-rise {
  0% { -webkit-mask-position: 0 0%; mask-position: 0 0%; transform: translateY(12%); opacity: 1;
       animation-timing-function: cubic-bezier(.4, .05, .25, 1); }
  38%, 86% { -webkit-mask-position: 0 100%; mask-position: 0 100%; transform: translateY(0); opacity: 1; }
  94% { -webkit-mask-position: 0 100%; mask-position: 0 100%; transform: translateY(0); opacity: 0; }
  100% { -webkit-mask-position: 0 0%; mask-position: 0 0%; transform: translateY(12%); opacity: 0; }
}
.main-nav { display: flex; align-items: center; }
.main-nav > a, .nav-drop-btn {
  position: relative; padding: 6px 15px; text-decoration: none;
  font: 600 17px var(--f-body); color: var(--navy);
}
.main-nav > :is(a, .nav-drop) + :is(a, .nav-drop)::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1.5px; height: 18px;
  background: var(--navy); transform: translateY(-50%);
}
.main-nav > a:first-child { padding-left: 0; }
.main-nav > a:hover, .nav-drop-btn:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--sky); }

/* Services dropdown: every service and emergency page */
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; }
.nav-drop-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-drop.is-open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-menu {
  display: none; position: absolute; top: calc(100% + 16px); left: 0; z-index: 60;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 32px; width: 620px; padding: 22px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 26px 50px -22px rgba(6, 26, 69, .4);
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; } /* keeps hover alive across the gap */
.nav-drop.is-open .nav-menu { display: grid; }
@media (hover: hover) and (min-width: 1021px) {
  .nav-drop:hover .nav-menu { display: grid; }
  .nav-drop:hover .nav-drop-btn svg { transform: rotate(180deg); }
}
.nav-menu-col { display: flex; flex-direction: column; }
.nav-menu-title { margin: 0 0 8px; font: 700 12px var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav-menu a { display: block; margin: 0 -12px; padding: 8px 12px; border-radius: 8px; text-decoration: none; font: 600 16px/1.35 var(--f-body); color: var(--navy); }
.nav-menu a small { display: block; margin-top: 2px; font: 400 14px/1.35 var(--f-body); color: var(--muted); }
.nav-menu a:hover, .nav-menu a:focus-visible, .nav-menu a[aria-current="page"] { background: var(--grey); }
.nav-menu .nav-menu-all { margin-top: 6px; font-size: 15px; color: var(--royal); }
.nav-menu.nav-menu-sm { grid-template-columns: minmax(0, 1fr); width: 300px; }
.area-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 22px 0 0; color: var(--muted); font-size: 16px; }
.area-links a { padding: 7px 14px; border-radius: 999px; background: var(--sky-pale); color: var(--navy); font-weight: 600; text-decoration: none; }
.area-links a:hover, .area-links a[aria-current="page"] { background: var(--navy); color: #fff; }
.main-nav .nav-extra { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-call { min-height: 54px; padding: 0 22px; font-size: 17px; }
.nav-call .nc-short { display: none; }
.nav-cb { min-height: 54px; padding: 0 20px; }
.burger { display: none; }

/* Hero: photo, blue band, grey panel */
.hero { padding-bottom: 8px; }
/* The photo and the band share one grid cell, so the band always sits on the photo's bottom edge */
.hero-media { display: grid; }
.hero-media > * { grid-area: 1 / 1; }
.hero-photo { height: clamp(280px, 32vw, 460px); overflow: hidden; background: var(--night); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
/* Desktop and phone each have their own hero image; the phone one shares the desktop photo until it gets its own */
.hero-img { height: 100%; }
.hero-img-mobile { display: none; }
.hero-band {
  align-self: end; position: relative; z-index: 1;
  background: var(--navy); border-radius: 12px 12px 0 0; padding: 30px 32px; text-align: center;
}
.hero-card { position: relative; }
.hero-band h1 { margin: 0; color: #fff; font-size: clamp(23px, 2.5vw, 34px); font-weight: 800; }
.hero-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background: var(--grey-2); padding: 40px 64px 44px;
}
.ticks { display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 44px; font-size: 20px; line-height: 1.4; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='m9 15.5 4 4 8-8.5' fill='none' stroke='%2376B4EC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px no-repeat;
}
.hero-act { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-act-title { font: 800 25px/1.2 var(--f-head); color: var(--navy); margin-bottom: 8px; }
.hero-live { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--body); margin-bottom: 18px; }
.hero-or { font: 600 18px var(--f-body); color: var(--navy); margin: 22px 0 12px; }

/* Intro */
.intro { padding: 56px 0 0; }
.intro p { font-size: 19px; color: var(--body); max-width: 78em; }

/* Sections */
.sec { padding: var(--sec) 0 0; }
.sec:last-of-type { padding-bottom: var(--sec); }
.sec-grey { background: var(--grey); padding: var(--sec) 0; margin-top: var(--sec); }
.sec > .wrap > p { color: var(--body); }
.sec-lede { max-width: 52em; margin-bottom: 28px; }

/* Dash lists */
.dash { display: grid; gap: 8px; margin: 0 0 1.1em; }
.dash li { position: relative; padding-left: 24px; color: var(--body); }
.dash li::before { content: ""; position: absolute; left: 2px; top: calc(.8em - 1px); width: 10px; height: 2px; background: var(--muted); }
.dash b { color: var(--text); font-weight: 600; }

/* Emergency cards */
.em-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.em-card { position: relative; display: flex; flex-direction: column; background: var(--grey); border-radius: var(--r); padding: 24px 24px 22px; transition: background-color .2s; }
.em-card h3 a { color: inherit; text-decoration: none; }
.em-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.em-card h3 a:focus-visible { outline: none; }
.em-card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.em-card:has(h3 a):hover { background: #E2EAF5; }
.em-card:has(h3 a):hover h3 a { text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.em-more { display: flex; align-items: center; gap: 6px; margin: auto 0 0; padding-top: 14px; font: 700 14px var(--f-head); color: var(--navy); }
.em-more::after { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='%2301328E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
.em-card:hover .em-more::after { transform: translateX(3px); }
.em-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; margin-bottom: 16px; }
.em-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.em-card h3 { margin-bottom: 10px; min-height: 2.6em; }
.em-card .do { font: 700 12px var(--f-head); letter-spacing: .04em; text-transform: uppercase; color: var(--royal); margin-bottom: 6px; }
.em-card p:not(.do):not(.em-more) { font-size: 16px; line-height: 1.55; color: var(--body); margin: 0; }

/* Grey split cards: text one side, photo or panel the other */
.split-card {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  background: var(--grey); border-radius: var(--r); overflow: hidden;
}
.split-text { padding: 38px 44px; }
.split-text > :last-child { margin-bottom: 0; }
.split-text > p { color: var(--body); }
.split-text .note { font-size: 16px; color: var(--muted); }
/* The photo fills the card beside the text without making the card taller */
.split-media { position: relative; min-height: 280px; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* A photo with a separate phone version: each version is its own editor host filling the frame */
.split-media .media-img { position: absolute; inset: 0; }
.img-mobile { display: none; }
.split-text .btn { margin-top: 6px; }

.card-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.split-card-sm { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split-card-rate { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.split-card-sm .split-text { padding: 34px 34px; }
.split-card-sm h3 { font-size: 22px; margin-bottom: 14px; }

/* Prices */
.rate-list li.is-now::after, .rate-now li.is-now::after {
  content: "Now"; display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 5px;
  font: 700 11px/1.5 var(--f-head); letter-spacing: .04em; text-transform: uppercase;
  background: var(--navy); color: var(--sky-light); vertical-align: 2px;
}
.rate-now li { padding-left: 24px; }
.rate-now li::before { display: none; }
.rate-now .sw { position: absolute; left: 0; top: .42em; }
.rate-now li.is-now { color: var(--text); font-weight: 600; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.sw-day { background: var(--day); box-shadow: 0 0 0 1px rgba(1, 50, 142, .25) inset; }
.sw-eve { background: var(--eve); }
.sw-night { background: var(--night-band); }

/* Rate dial */
.dial-panel { background: radial-gradient(120% 90% at 50% 0%, #0E3A8C 0%, var(--night) 70%); display: grid; place-items: center; padding: 20px 14px; }
.dial { position: relative; width: min(100%, 290px); aspect-ratio: 1; }
.dial-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dial-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 18; }
.dial-ticks line { stroke: rgba(255, 255, 255, .24); stroke-width: 1.5; stroke-linecap: round; }
.dial-ticks line.major { stroke: rgba(255, 255, 255, .55); stroke-width: 2; }
.dial-ticks text { fill: #A9BCD9; font: 700 13px var(--f-head); }
.arc { fill: none; stroke-width: 18; stroke-linecap: butt; opacity: .32; transition: opacity .4s, stroke-dashoffset 1.3s cubic-bezier(.65, 0, .25, 1); }
.arc-day { stroke: var(--day); }
.arc-eve { stroke: var(--eve); }
.arc-night { stroke: var(--night-band); }
.arc.is-now { opacity: 1; }
.arc-day.is-now { filter: drop-shadow(0 0 7px rgba(228, 239, 251, .55)); }
.arc-eve.is-now { filter: drop-shadow(0 0 8px rgba(118, 180, 236, .7)); }
.arc-night.is-now { filter: drop-shadow(0 0 8px rgba(47, 107, 224, .8)); }
.dial-marker { opacity: 0; transition: opacity .5s .9s; }
.dial-marker.on { opacity: 1; }
.dial-marker[hidden] { display: none; }
.dm-ring { fill: var(--night); stroke: #fff; stroke-width: 3; }
.dm-dot { fill: #fff; }
.dial-centre {
  position: absolute; inset: 0; padding: 0 22%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none; color: #E6EEFA;
}
.dc-band { font: 700 10px var(--f-head); letter-spacing: .04em; text-transform: uppercase; color: #A9BCD9; }
.dc-time { font: 700 36px/1.1 var(--f-head); color: #fff; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.dc-time .colon { animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.dc-rate { font-size: 13px; }
.dc-rate b { font: 800 20px var(--f-head); color: #fff; }
.dc-unit { font-size: 12px; color: #A9BCD9; }

/* No hidden extras */
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--sky-pale); border-radius: var(--r); padding: 32px 0; }
.extras-col { padding: 0 34px; }
.extras-col + .extras-col { border-left: 1.5px solid rgba(1, 50, 142, .35); }
.extras h3 { font-size: 21px; margin-bottom: 16px; }
.icon-list { display: grid; gap: 10px; }
.icon-list li { position: relative; padding-left: 32px; color: var(--text); }
.icon-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff center / 22px no-repeat; }
.il-tick li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6.5 11.3 3 3 6-6.3' fill='none' stroke='%2301328E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.il-plus li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 6.5v9M6.5 11h9' fill='none' stroke='%2301328E' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.il-alert li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 6.5v6' fill='none' stroke='%2301328E' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='11' cy='15.6' r='1.3' fill='%2301328E'/%3E%3C/svg%3E"); }
.il-cross li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m7.5 7.5 7 7M14.5 7.5l-7 7' fill='none' stroke='%2301328E' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Peace of mind */
.pom-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.pom-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--sky-pale); margin-bottom: 16px; }
.pom-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pom-grid h3 { font-size: 20px; margin-bottom: 8px; }
.pom-grid p { font-size: 16.5px; color: var(--body); margin: 0; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; position: relative; background: var(--grey); border-radius: var(--r); padding: 34px 34px 32px; }
.steps::before { content: ""; position: absolute; left: 56px; right: 56px; top: 56px; height: 2px; background: #C6D6EA; }
.steps li { position: relative; }
.step-n {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--sky-light); font: 800 17px var(--f-head); margin-bottom: 18px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { font-size: 16px; color: var(--body); margin: 0; }

/* Safety */
.numbers { display: grid; gap: 10px; margin: 6px 0 22px; }
.numbers li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 8px; background: #fff; }
.numbers b { font: 800 19px var(--f-head); color: var(--navy); white-space: nowrap; }
.numbers span { font-size: 16px; color: var(--body); }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 24px; padding: 24px 32px; border-radius: var(--r); background: var(--navy);
}
.cta-band p { margin: 0; color: #fff; font: 800 24px/1.25 var(--f-head); }

/* Areas */
.areas-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; margin-bottom: 28px; }
.areas-head > p { color: var(--body); margin: 0; }
.pc-check { background: var(--sky-pale); border-radius: var(--r); padding: 22px 24px; }
.pc-check label { display: block; font: 700 17px var(--f-head); color: var(--navy); margin-bottom: 10px; }
.pc-row { display: flex; gap: 10px; }
.pc-row input {
  flex: 1; min-width: 0; width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid #BCCDE4; border-radius: 8px;
  font: 600 17px var(--f-body); text-transform: uppercase; color: var(--text); background: #fff;
}
.pc-row input::placeholder { text-transform: none; font-weight: 400; color: #7B87A0; }
.pc-row input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(47, 107, 224, .3); }
.pc-row .btn { min-height: 52px; }
.pc-result { margin: 12px 0 0; font-size: 16px; min-height: 1.5em; color: var(--body); }
.pc-result b { color: var(--navy); }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.area { background: var(--grey); border-radius: var(--r); padding: 24px; box-shadow: 0 0 0 0 transparent; transition: box-shadow .25s; }
.area h3 { font-size: 21px; margin-bottom: 12px; }
.area p:last-child { margin: 0; font-size: 16px; color: var(--body); }
.codes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.codes span { font: 700 13px var(--f-head); padding: 4px 9px; border-radius: 6px; background: #fff; color: var(--navy); }
.area.is-match { box-shadow: 0 0 0 2px var(--navy); }
.area.is-match .codes span.hit { background: var(--navy); color: var(--sky-light); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font: 700 18px/1.4 var(--f-head); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sky-pale)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 9v12M9 15h12' fill='none' stroke='%2301328E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 30px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--royal); }
.faq details p { color: var(--body); margin: -4px 0 20px; max-width: 46em; }

/* Callback */
.cb-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.cb-copy > p { color: var(--body); }
.cb-phone { display: inline-block; font: 800 clamp(28px, 3vw, 40px)/1.1 var(--f-head); color: var(--navy); text-decoration: none; margin: 4px 0 20px; }
.cb-phone:hover { color: var(--royal); }
.cb-mail { font-size: 16px; }
.cb-mail a { color: var(--navy); font-weight: 600; word-break: break-word; }
.cb-form { background: #fff; border-radius: var(--r); padding: 32px; }
.cb-form-title { font: 800 24px var(--f-head); color: var(--navy); margin-bottom: 4px; }
.cb-form-sub { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.field label { font: 600 16px var(--f-body); color: var(--text); }
.field small { font-weight: 400; font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #BCCDE4; border-radius: 8px;
  font: 400 17px var(--f-body); color: var(--text); background: #fff;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(47, 107, 224, .3); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.cb-status { margin: 14px 0 0; font-size: 16px; min-height: 1.4em; }
.cb-status.ok { color: var(--navy); }
.cb-status.err { color: var(--error); }

/* Footer */
.site-footer { background: var(--navy); color: #C9DAF1; padding: 64px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 36px; padding-bottom: 44px; }
.foot-brand .brand { margin-bottom: 18px; }
.foot-brand .brand-logo { height: calc(60px * var(--logo-scale, 1)); max-width: 100%; }
.foot-brand p { font-size: 16px; max-width: 30em; }
.foot-phone { font: 800 22px var(--f-head); color: #fff; text-decoration: none; }
.foot-phone:hover { color: var(--sky); }
.foot-title { margin: 0 0 14px; font: 800 18px/1.2 var(--f-head); letter-spacing: -0.01em; color: var(--sky); }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: inherit; }
.foot-links a:hover { color: #fff; }
.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.sitemap-cols h2 { font-size: 22px; }
.sitemap-cols ul { display: grid; gap: 10px; }
.sitemap-cols a { color: var(--navy); font-weight: 600; }
.site-footer ul { display: grid; gap: 9px; }
.site-footer ul a { text-decoration: none; font-size: 16px; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 15px; }
.foot-base p { margin: 0; }

/* Service cards (home "Our services" and the service pages) */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.svc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-card { position: relative; display: flex; flex-direction: column; background: var(--grey); border-radius: var(--r); overflow: hidden; transition: background-color .2s; }
.svc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
/* Absolutely placed so the photo's own shape never stretches the frame */
.svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-media .media-img { position: absolute; inset: 0; }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 22px; }
.svc-body h3 { font-size: 22px; margin-bottom: 8px; }
.svc-body h3 a { color: inherit; text-decoration: none; }
.svc-body h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.svc-body h3 a:focus-visible { outline: none; }
.svc-card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.svc-body p:not(.em-more) { font-size: 16.5px; color: var(--body); margin: 0; }
.svc-card:hover { background: #E2EAF5; }
.svc-card:hover h3 a { text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.svc-card:hover .em-more::after { transform: translateX(3px); }

.svc-more { margin: 30px 0 0; text-align: left; }

/* Big photo under the service cards (hidden on phones) */
.big-photo { position: relative; margin-top: 28px; aspect-ratio: 21 / 9; border-radius: var(--r); overflow: hidden; background: var(--night); }
.big-photo .media-img { position: absolute; inset: 0; }
.big-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Emergency guide pages (built by build.py) */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--navy); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9AA6BC; }
.now-panel { background: var(--navy); border-radius: var(--r); padding: 34px 38px; color: #fff; }
.now-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; counter-reset: now; }
.now-list li { position: relative; padding-left: 52px; font-size: 17px; line-height: 1.55; counter-increment: now; }
.now-list li::before {
  content: counter(now); position: absolute; left: 0; top: -3px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--night);
  font: 800 16px var(--f-head);
}
.now-call { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.now-call p { margin: 0; font: 700 19px/1.35 var(--f-head); color: #fff; }
.extras-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Responsive */
@media (max-width: 1180px) {
  .nav-cb { display: none; }
  .em-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .steps.steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .card-pair { grid-template-columns: minmax(0, 1fr); }
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .svc-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .svc-media { aspect-ratio: auto; min-height: 200px; }
}

@media (max-width: 1020px) {
  :root { --sec: 60px; }
  .nav-row { min-height: 76px; gap: 14px; }
  .brand-logo { height: calc(50px * var(--logo-scale, 1)); max-width: 300px; }
  .burger {
    display: grid; place-content: center; gap: 5px; width: 50px; height: 50px; border-radius: 8px;
    border: 1.5px solid #C3CFDF; background: #fff; cursor: pointer; padding: 0;
  }
  .burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; padding: 6px 24px 18px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(6, 26, 69, .4);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .main-nav { max-height: calc(100dvh - 110px); overflow-y: auto; }
  .main-nav > a, .main-nav > a:first-child, .nav-drop-btn { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
  .main-nav > :is(a, .nav-drop) + :is(a, .nav-drop)::before { display: none; }
  .nav-drop-btn { width: 100%; justify-content: space-between; text-align: left; }
  .nav-drop-btn svg { width: 18px; height: 18px; }
  .nav-menu { position: static; width: auto; padding: 6px 0 12px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nav-drop.is-open .nav-menu { display: block; }
  .nav-menu::before { display: none; }
  .nav-menu-col + .nav-menu-col { margin-top: 12px; }
  .nav-menu a { margin: 0; padding: 9px 0; font-size: 17px; }
  .nav-menu a small { display: none; }
  .main-nav .nav-extra { display: block; }
  .nav-drawer-call { color: var(--royal) !important; font-weight: 700 !important; border-bottom: 0 !important; }

  .hero-panel { grid-template-columns: minmax(0, 1fr); padding: 30px 28px 34px; gap: 30px; }
  .split-card, .split-card-sm { grid-template-columns: minmax(0, 1fr); }
  .split-media { min-height: 0; }
  .split-media img { position: static; height: auto; aspect-ratio: 16 / 9; }
  .split-media .media-img { position: relative; inset: auto; }
  .dial-panel { padding: 26px 18px; }
  .areas-head, .faq-wrap, .cb-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .extras { grid-template-columns: minmax(0, 1fr); padding: 8px 0; }
  .extras-col { padding: 24px 28px; }
  .extras-col + .extras-col { border-left: 0; border-top: 1.5px solid rgba(1, 50, 142, .25); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --sec: 52px; }
  .wrap { width: calc(100% - 32px); }
  body { font-size: 17px; }
  .topbar { font-size: 14px; padding: 8px 12px; }
  .nav-row { min-height: 68px; }
  .brand-logo { height: calc(42px * var(--logo-scale, 1)); max-width: calc(100vw - 196px); }
  .nav-call { min-height: 46px; padding: 0 16px; font-size: 16px; }
  .nav-call .nc-long { display: none; }
  .nav-call .nc-short { display: inline; }
  .burger { width: 46px; height: 46px; }
  .main-nav { padding-inline: 16px; }

  .hero-photo { height: 230px; }
  .hero-photo { grid-area: 1 / 1; }
  .hero-band { grid-area: 2 / 1; padding: 20px 16px; }
  /* Phones: band and grey panel run the full width of the screen */
  .hero .hero-band, .hero .hero-card { width: 100%; }
  .hero .hero-band { border-radius: 0; }
  .hero-panel { padding: 26px 16px 30px; }
  .ticks li { font-size: 17px; padding-left: 40px; }
  .ticks li::before { width: 28px; height: 28px; background-size: 28px; top: -2px; }
  .hero-act .btn { width: 100%; }
  .hero-act-title { font-size: 21px; }
  .intro { padding-top: 40px; }
  .intro p { font-size: 17px; }

  .em-grid, .pom-grid, .area-grid { grid-template-columns: minmax(0, 1fr); }
  .em-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
  .em-icon { width: 44px; height: 44px; margin: 0; grid-row: span 3; }
  .em-card h3 { min-height: 0; margin: 8px 0 8px; }
  .em-more { grid-column: 2; padding-top: 10px; }
  .svc-body .em-more { grid-column: auto; }
  .svc-card { display: flex; }
  .svc-media { aspect-ratio: 16 / 9; min-height: 0; }
  .svc-body { padding: 20px 20px 18px; }
  .hero-img-desktop { display: none; }
  .hero-img-mobile { display: block; }
  .img-desktop { display: none; }
  .img-mobile { display: block; }
  .big-photo { display: none; }
  .svc-more { margin-top: 22px; }
  .svc-more .btn { width: 100%; }
  .now-panel { padding: 24px 18px; }
  .now-list { grid-template-columns: minmax(0, 1fr); }
  .now-call { flex-direction: column; align-items: stretch; }
  .now-call .btn { width: 100%; }
  .pom-grid { gap: 26px; }
  .split-text, .split-card-sm .split-text { padding: 26px 20px; }
  .split-text .btn { width: 100%; }
  .steps, .steps.steps-4 { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 26px 20px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding-bottom: 24px; }
  .steps li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: #C6D6EA; }
  .steps li:last-child::before { display: none; }
  .steps li:last-child { padding-bottom: 0; }
  .step-n { grid-row: span 2; margin: 0; }
  .numbers li { grid-template-columns: 1fr; gap: 2px; }
  .cta-band { padding: 22px 20px; }
  .cta-band p { font-size: 20px; }
  .cta-band .btn { width: 100%; }
  .extras-col { padding: 22px 20px; }
  .pc-check { padding: 18px; }
  .cb-form { padding: 24px 18px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 380px) {
  .brand-logo { height: calc(36px * var(--logo-scale, 1)); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-rings { animation: none; }
  html { scroll-behavior: auto; }
  .live-dot, .dc-time .colon { animation: none; }
  .arc, .dial-marker, .main-nav, .burger span, .btn { transition: none; }
}
