/* Cardiff Emergency Electricians: charcoal, red, warm paper (the logo is recoloured to match) */
:root {
  --ink: #0b1220;
  --ink-2: #131d30;
  --ink-3: #1d2a42;
  --accent: #e0352b;      /* red: buttons, icons on light */
  --accent-dk: #b8261e;
  --accent-hi: #ff3b2f;   /* bright red: accent text and icons on dark */
  --accent-soft: #fdecea;
  --paper: #f6f3ee;
  --stone: #ebe6dd;
  --line: #e2dcd1;
  --text: #182031;
  --muted: #5d6676;
  --white: #fff;
  --green: #22c55e;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11,18,32,.06), 0 12px 32px -12px rgba(11,18,32,.18);
  --display: "Sora", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.03em; margin: 0; color: var(--ink); }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1220px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
svg { fill: currentColor; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 2px solid transparent; transition: transform .2s, background .2s, box-shadow .2s, color .2s; white-space: nowrap; cursor: pointer; font-family: var(--body); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(224,53,43,.7); }
.btn-accent:hover { background: var(--accent-dk); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn-white { background: #fff; color: var(--accent-dk); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }

.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { text-align: left; margin: 0; }
.section-head p:last-child { color: var(--muted); font-size: 18px; margin-top: 16px; }
.on-dark h2 { color: #fff; }
.on-dark .kicker, .contact .kicker { color: var(--accent-hi); }
.on-dark p:last-child { color: #aab3c5; }

/* Top bar */
.topbar { background: #141518; color: #e4e6ea; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar-in { display: flex; align-items: center; min-height: 52px; }
.topbar-in > * { display: inline-flex; align-items: center; gap: 12px; padding: 0 40px; }
.topbar-in > :first-child { padding-left: 0; }
.topbar-in > * + * { border-left: 1px solid rgba(255,255,255,.14); }
.topbar svg { width: 18px; height: 18px; color: var(--accent-hi); }
.topbar-mail:hover { color: #fff; }
.live { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; }
.live i, .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; display: inline-block; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(36,37,41,.97); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.scrolled { border-color: rgba(255,255,255,.06); box-shadow: 0 6px 24px -18px rgba(11,18,32,.5); }
.header-in { display: flex; align-items: center; gap: 32px; min-height: 104px; }
.brand { display: flex; align-items: center; gap: 7px; }
.brand-logo { height: calc(74px * var(--logo-scale, 1)); width: auto; display: block; }
.footer .brand-logo { height: calc(96px * var(--logo-scale, 1)); }
.nav { display: flex; gap: 30px; margin-left: auto; font-weight: 600; font-size: 15.5px; }
.nav a { position: relative; padding: 6px 0; color: #fff; font-size: 17px; }
.nav a:hover { color: var(--accent-hi); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: var(--accent); border-radius: 12px; padding: 0 12px; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero: full-bleed darkened photo, wave base */
.hero { position: relative; background: #141518; color: #fff; overflow: hidden; min-height: min(760px, calc(100vh - 120px)); display: flex; align-items: center; padding: 150px 0 170px; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; filter: saturate(.85); }
/* Phones get their own hero photo (slot hero-mobile); until one is uploaded it shares the desktop photo */
.hero-photo-phone { display: none; }
@media (max-width: 760px) {
  .hero-photo-wide { display: none; }
  .hero-photo-phone { display: block; }
}
/* Overlay darkness: --shade (0 to 1) is set per page by the photo editor; .95 is the original look */
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,15,18,calc(var(--shade, .95) * 1)) 0%, rgba(14,15,18,calc(var(--shade, .95) * .947)) 45%, rgba(14,15,18,calc(var(--shade, .95) * .758)) 100%); }
.hero-in { position: relative; z-index: 1; }
.hero h1 { color: #fff; text-shadow: 0 0 2px rgba(255,255,255,.35), 0 0 22px rgba(255,255,255,.32), 0 0 48px rgba(255,255,255,.14); font-size: clamp(44px, 6vw, 84px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; max-width: 860px; }
.hero h1 em { font-style: normal; color: inherit; }
.lede { font-size: clamp(17px, 1.5vw, 21px); color: #e1e3e8; max-width: 640px; margin: 28px 0 38px; line-height: 1.7; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-sq { border-radius: 8px; padding: 22px 38px; font-size: 17px; letter-spacing: .02em; }
.btn-sq.btn-accent { box-shadow: 0 16px 34px -14px rgba(224,53,43,.85); }
.btn-white-solid { background: #fff; color: var(--ink); }
.btn-white-solid:hover { background: #f1f1f1; transform: translateY(-2px); }
.hero-ticks { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.hero-ticks li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; color: #fff; }
.hero-ticks li::before { content: ""; width: 16px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1.5 6.2 5.8 10.5 14.5 1.5' fill='none' stroke='%23ff3b2f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; flex: none; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 55; width: 64px; height: 64px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 34px; height: 34px; }

/* Strip */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in > div { display: flex; align-items: center; gap: 14px; padding: 26px 22px; font-weight: 600; font-size: 15.5px; color: var(--ink-3); }
.strip-in > div + div { border-left: 1px solid var(--line); }
.strip svg { width: 26px; height: 26px; color: var(--accent); flex: none; }

/* Intro */
.intro-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.intro-media { position: relative; }
.intro-media img { border-radius: 26px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.intro-badge { position: absolute; right: -24px; bottom: 36px; background: var(--accent); color: #fff; padding: 20px 24px; border-radius: 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 20px 40px -16px rgba(224,53,43,.7); }
.intro-badge b { font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; }
.intro-badge span { font-size: 13px; font-weight: 600; line-height: 1.3; opacity: .9; }
.intro-copy h2 { margin-bottom: 22px; }
.intro-copy > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 28px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink-3); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e0352b' d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 6.6-6.6 1.4 1.4-8 8Z'/%3E%3C/svg%3E") center / 15px no-repeat; }
.link-arrow { font-weight: 700; color: var(--accent); display: inline-flex; gap: 8px; }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* Services */
.services { background: var(--white); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { position: relative; padding: 32px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc h3 { margin: 18px 0 10px; }
.svc p { color: var(--muted); font-size: 15.5px; margin: 0; }
.svc-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--ink); color: #fff; }
.svc-ico svg { width: 26px; height: 26px; }
.svc:hover .svc-ico { background: var(--accent); }
.svc-num { position: absolute; top: 28px; right: 30px; font-family: var(--display); font-weight: 700; font-size: 14px; color: #b1a99b; }
.svc-feature { grid-column: span 2; grid-row: span 1; display: grid; grid-template-columns: 1fr 1.1fr; padding: 0; overflow: hidden; background: var(--ink); border-color: var(--ink); }
.svc-feature-media { position: relative; min-height: 300px; }
.svc-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-feature .svc-body { padding: 36px; position: relative; display: flex; flex-direction: column; justify-content: center; }
.svc-feature h3 { color: #fff; font-size: 26px; margin-top: 0; }
.svc-feature p { color: #b4bccb; }
.svc-feature .svc-num { color: var(--accent); }

/* Emergencies */
.emerg { background: var(--ink); position: relative; overflow: hidden; }
.emerg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 50% 0%, rgba(224,53,43,.18), transparent 70%); pointer-events: none; }
.emerg .wrap { position: relative; }
.em-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
.em { background: var(--ink-2); padding: 34px 32px; transition: background .3s; }
.em:hover { background: var(--ink-3); }
.em h3 { color: #fff; margin: 20px 0 10px; font-size: 20px; }
.em p { color: #9aa4b8; font-size: 15.5px; margin: 0; }
.em-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(224,53,43,.14); color: #ff6b57; }
.em-ico svg { width: 24px; height: 24px; }
.em { position: relative; }
.em-step { position: absolute; top: 34px; right: 32px; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hi); opacity: .85; }
.em-photo { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px; overflow: hidden; background: var(--accent); }
.em-photo-media { position: relative; min-height: 340px; }
.em-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.em-photo-copy { padding: clamp(32px, 5vw, 56px); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.em-photo-copy .kicker { color: #ffd7d2; }
.em-photo-copy h3 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; margin-bottom: 14px; }
.em-photo-copy p { color: #ffe3df; }
.em-photo-copy .btn-accent { background: var(--ink); box-shadow: none; }
.em-photo-copy .btn-accent:hover { background: #000; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; border-top: 2px dashed #d3cbbd; }
.steps li { position: relative; text-align: center; padding: 0 10px; }
.steps span { position: relative; display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--white); border: 2px solid var(--accent); color: var(--accent); font-family: var(--display); font-size: 22px; font-weight: 800; margin-bottom: 20px; box-shadow: 0 0 0 8px var(--paper); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--accent-dk), var(--accent) 55%, #f0533f); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 340px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M27.5 7 13 27h9.5L19 41l16-21.5h-9.8L27.5 7Z' fill='%23ffffff' fill-opacity='.09'/%3E%3C/svg%3E") center / contain no-repeat; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); }
.cta-band p { margin: 8px 0 0; color: #ffe1dc; font-size: 18px; }

/* Why */
.why-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; }
.why-copy > p { color: var(--muted); margin: 20px 0 36px; font-size: 18px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-list div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; border-top: 3px solid var(--accent); }
.why-list div:last-child { grid-column: span 2; }
.why-list b { display: block; font-family: var(--display); font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.why-list span { color: var(--muted); font-size: 15px; line-height: 1.55; display: block; }
.why-media { margin: 0; position: relative; }
.why-media img { border-radius: 26px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.why-media figcaption { position: absolute; left: 20px; right: 20px; bottom: 20px; background: rgba(11,18,32,.88); backdrop-filter: blur(8px); color: #c8cfdc; padding: 18px 20px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.why-media figcaption b { color: #fff; }

/* Areas */
.areas { background: var(--stone); }
.areas-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.areas-copy p:not(.kicker) { color: var(--muted); margin: 20px 0 28px; }
.area-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.area-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--white); border-radius: 12px; padding: 13px 16px; font-weight: 600; font-size: 15px; color: var(--ink-3); border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.area-list li:hover { border-color: var(--accent); transform: translateY(-2px); }
.area-list small { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* FAQ */
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-in .section-head { position: sticky; top: 120px; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; transition: box-shadow .3s; }
.faq-list details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 22px; font-weight: 500; color: var(--accent); transition: rotate .3s, background .3s; }
.faq-list details[open] summary::after { rotate: 45deg; background: var(--accent-soft); }
.faq-list details p { padding: 0 26px 22px; margin: 0; color: var(--muted); }

/* Contact */
.contact { background: var(--ink); color: #fff; }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact h2 { color: #fff; }
.contact-copy > p:not(.kicker) { color: #aab3c5; margin: 18px 0 30px; font-size: 18px; }
.contact-phone { display: inline-flex; flex-direction: column; padding: 22px 28px; border-radius: 20px; background: var(--accent); margin-bottom: 34px; transition: transform .2s; }
.contact-phone:hover { transform: translateY(-2px); }
.contact-phone small { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #ffd7d2; }
.contact-phone b { font-family: var(--display); font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.contact-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-meta li { display: flex; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); color: #c8cfdc; }
.contact-meta b { width: 90px; color: #fff; flex: none; }
.contact-form { background: var(--white); color: var(--text); border-radius: 24px; padding: clamp(26px, 4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.contact-form h3 { font-size: 26px; margin-bottom: 22px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 16px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 7px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; color: var(--text); background: var(--paper); transition: border-color .2s, background .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* Footer */
.footer { background: #070c16; color: #8e98ab; padding: 72px 0 0; font-size: 15px; }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand p { margin-top: 20px; max-width: 340px; }
.footer h4 { color: #fff; font-size: 15px; letter-spacing: .04em; margin-bottom: 18px; font-family: var(--body); font-weight: 700; }
.footer-in > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-phone { font-family: var(--display); font-size: 24px; font-weight: 800; color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; }

.mobile-call { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .intro-in, .why-in, .areas-in, .faq-in, .contact-in { gap: 48px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-feature { grid-column: span 2; }
  .area-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #242529; padding: 8px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; }
  .menu-open .nav { display: flex; }
  .menu-btn { display: flex; margin-left: auto; }
  .header-call { display: none; }
  .intro-in, .why-in, .areas-in, .faq-in, .contact-in { grid-template-columns: 1fr; }
  .header-in { min-height: 76px; }
  .header .brand-logo { height: calc(58px * var(--logo-scale, 1)); }
  .topbar-in > * { padding: 0 18px; font-size: 14px; }
  .topbar-mail { display: none !important; }
  .hero { padding: 120px 0 130px; min-height: 0; }
  .wa-float { bottom: 84px; right: 16px; width: 56px; height: 56px; }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .strip-in > div:nth-child(3) { border-left: 0; }
  .strip-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .intro-media { max-width: 460px; }
  .intro-badge { right: 16px; }
  .em-grid { grid-template-columns: 1fr 1fr; }
  .em-photo { grid-template-columns: 1fr; }
  .em-photo-media { min-height: 280px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .cta-in { flex-direction: column; align-items: flex-start; }
  .why-media { max-width: 460px; }
  .faq-in .section-head { position: static; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  body { padding-bottom: 68px; }
  .mobile-call { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 14px 30px -10px rgba(224,53,43,.8); }
  .mobile-call svg { width: 20px; height: 20px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero-ctas .btn { width: 100%; padding: 18px 24px; }
  .hero { padding: 90px 0 110px; }
  .hero-ticks { gap: 12px 22px; }
  .hero-ticks li { font-size: 15px; }
  .hero-wave { height: 50px; }
  .topbar-in > * + * { display: none; }
  .strip-in { grid-template-columns: 1fr; }
  .strip-in > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .strip-in > div { padding: 16px 4px; }
  .ticks { grid-template-columns: 1fr; }
  .svc-grid, .em-grid { grid-template-columns: 1fr; }
  .svc-feature { grid-column: auto; grid-template-columns: 1fr; }
  .svc-feature-media { min-height: 240px; }
  .steps { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .why-list div:last-child { grid-column: auto; }
  .area-list { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-meta li { flex-direction: column; gap: 2px; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .cta-band .btn { width: 100%; }
}

/* ===== Service pages (built by build.py) and links to them ===== */
.svc-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 15px; color: var(--accent); }
.svc-more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }  /* whole card is the link */
.svc-more span { transition: transform .2s; }
.svc:hover .svc-more span { transform: translateX(4px); }
.svc-feature .svc-more { color: var(--accent-hi); }

.hero--service h1 { font-size: clamp(36px, 4.6vw, 64px); max-width: 900px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 14px; font-weight: 600; color: #c9ccd3; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--accent-hi); }
.crumbs span[aria-hidden] { opacity: .45; }

.ticks-head { margin: 26px 0 -12px; font-weight: 700; color: var(--ink); }

.svc-plain h3 { margin-top: 0; padding-right: 36px; }
.svc-plain::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 20px; }

.svc-grid.svc-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc-grid-4 .svc { padding: 26px; display: flex; flex-direction: column; }
.svc-grid-4 .svc p { flex: 1; }
.svc-cta { background: var(--accent); border-color: var(--accent); color: #fff; justify-content: center; }
.svc-cta h3 { color: #fff; margin-top: 0; }
.svc-cta p { color: #ffe1dc; margin-bottom: 18px; }
.svc-cta .btn { white-space: normal; }

@media (max-width: 1080px) {
  .svc-grid.svc-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .svc-grid.svc-grid-4 { grid-template-columns: 1fr; }
}

/* ===== Areas dropdown (built by build.py from src/areas) ===== */
@media (min-width: 901px) { .header-in { position: relative; } }  /* the panel spans the header row; phones keep the full-width menu */
.nav-drop { display: flex; align-items: center; }
.nav .nav-drop-link { display: inline-flex; align-items: center; gap: 6px; }
.chev { width: 16px; height: 16px; transition: transform .2s; }
.chev path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mega {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  display: block; padding: 26px 34px 20px;
  background: #1b1c20; border: 1px solid rgba(255,255,255,.08); border-top: 0; border-radius: 0 0 18px 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.65);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility 0s linear .18s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -36px; height: 36px; }  /* keeps hover alive between link and panel */
.nav-drop:hover .mega, .nav-drop:focus-within .mega, .nav-drop.open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-drop:hover .chev, .nav-drop.open .chev { transform: rotate(180deg); }
.mega-cols { columns: 5; column-gap: 34px; max-height: calc(100vh - 230px); overflow-y: auto; }  /* columns balance the groups; scrolls on short screens */
.mega-group { break-inside: avoid; margin-bottom: 18px; }
.mega-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--display); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-hi); }
.mega-head small { font-size: 12px; color: #8e98ab; letter-spacing: .04em; }
.nav .mega a { display: block; padding: 3px 0; font-size: 15px; font-weight: 500; color: #d6d9df; border: 0; }
.nav .mega a::after { display: none; }
.nav .mega a:hover { color: #fff; transform: translateX(3px); }
.mega-foot { margin: 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #8e98ab; }

/* Area chips are links now */
.area-list li { padding: 0; }
.area-list li a { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 13px 16px; color: inherit; }
.area-list li a:hover { color: var(--accent); }

@media (max-width: 1180px) {
  .mega-cols { columns: 4; }
}
@media (max-width: 1040px) {
  .mega-cols { columns: 3; }
}
@media (max-width: 900px) {
  .menu-open .nav { max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav-drop { flex-direction: column; align-items: stretch; }
  .nav .nav-drop-link { justify-content: space-between; }
  .mega-cols { columns: 2; column-gap: 20px; max-height: none; overflow: visible; }
  .mega { position: static; display: none; padding: 14px 0 18px; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .mega::before { display: none; }
  .nav-drop.open .mega { display: block; }
  .nav .mega a { padding: 6px 0; font-size: 15px; }
  .mega-foot { display: none; }
}
@media (max-width: 340px) {
  .mega-cols { columns: 1; }
}

/* ===== 404 page (built by build.py) ===== */
.notfound { padding-top: clamp(64px, 8vw, 110px); }
.notfound h1 { font-size: clamp(32px, 4vw, 50px); font-weight: 800; }
.notfound-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
