/* =========================================================
   The British Plumber — site styles
   Colours and font are taken from the original WordPress site.
   ========================================================= */
:root {
  --navy-900: #010d1d;   /* headings, dark sections */
  --navy-850: #050e1b;   /* header */
  --navy-800: #07182b;
  --navy-700: #0e2138;
  --gold: #b7862a;       /* buttons, labels, accents */
  --gold-dark: #8a6420;
  --text: #5a6472;       /* body text */
  --muted: #a9b4c2;
  --line: #d9dee5;
  --bg-soft: #f4f5f7;
  --cream: #f7f3ea;
  --white: #ffffff;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  --shadow: 0 12px 40px rgba(1, 13, 29, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { color: var(--navy-900); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-900); color: rgba(255,255,255,.8); }
.section--dark h2, .section--dark h3 { color: #fff; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 200; background: #fff; padding: 8px 12px; }

.subtitle { display: block; color: var(--gold); font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section-head { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.lead-quote { border-left: 4px solid var(--gold); padding-left: 18px; color: var(--navy-900); font-size: 1.25rem; font-weight: 500; line-height: 1.5; margin: 0 0 24px; }

/* Buttons — square, uppercase, gold, like the original */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 15px 30px; border: 2px solid var(--gold); background: var(--gold); color: #fff;
  font: 600 .95rem var(--font); text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-more { display: inline-flex; gap: 6px; font-weight: 600; text-transform: uppercase; font-size: .9rem; letter-spacing: .04em; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-850); color: #fff; font-size: .95rem; }
.topbar .container { display: flex; align-items: stretch; justify-content: space-between; min-height: 42px; padding: 0; }
.topbar-msg { background: var(--gold); padding: 9px 60px 9px 20px; clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%); }
.topbar-right { display: flex; align-items: center; gap: 18px; padding: 0 20px; color: rgba(255,255,255,.85); }
.topbar-right a { color: #fff; }
@media (max-width: 640px) { .topbar-right { display: none; } .topbar-msg { width: 100%; clip-path: none; text-align: center; padding: 9px 16px; } }

/* ---------- Header ---------- */
.site-header { background: var(--navy-850); position: sticky; top: 0; z-index: 60; border-bottom: 1px solid rgba(255,255,255,.06); }
.header-main { display: flex; align-items: center; gap: 24px; padding: 14px 20px; }
.logo img { height: 96px; width: 96px; margin: -6px 0 -30px; position: relative; z-index: 2; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.header-contacts { margin-left: auto; display: flex; gap: 40px; }
.hc { display: flex; align-items: center; gap: 14px; color: #fff; }
.hc:hover { color: #fff; }
.hc svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.hc small { display: block; color: var(--gold); font-size: .85rem; line-height: 1.2; }
.hc strong { font-size: 1.12rem; font-weight: 600; }
.nav-row { display: flex; align-items: center; justify-content: space-between; }
.main-nav > ul { list-style: none; display: flex; }
.main-nav > ul > li { position: relative; }
.main-nav a, .main-nav button {
  display: flex; align-items: center; gap: 6px; padding: 14px 18px; color: #fff; background: none; border: 0;
  font: 600 1.02rem var(--font); cursor: pointer;
}
.main-nav a:hover, .main-nav button:hover, .main-nav [aria-current="page"] { color: var(--gold); }
.main-nav button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.dropdown {
  list-style: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
  box-shadow: var(--shadow); border-top: 3px solid var(--gold); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.dropdown a { color: var(--navy-900); padding: 10px 20px; font-weight: 500; }
.dropdown a:hover { color: var(--gold); background: var(--bg-soft); }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-accent { width: 230px; height: 46px; background: var(--gold); clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); margin-right: 120px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); background: transparent; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: #fff; margin: 0 auto; position: relative; transition: .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) { .nav-accent { display: none; } .header-contacts { gap: 24px; } }
@media (max-width: 900px) {
  .header-contacts { display: none; }
  .nav-toggle { display: block; }
  .logo img { height: 64px; width: 64px; margin: 0; }
  .nav-row { display: none; }
  .nav-open .nav-row { display: block; padding-bottom: 12px; }
  .main-nav > ul { flex-direction: column; }
  .main-nav a, .main-nav button { padding: 12px 4px; width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; display: none; padding: 0 0 6px 14px; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { color: rgba(255,255,255,.85); padding: 8px 4px; }
  .dropdown a:hover { background: transparent; }
}

/* ---------- Heroes ---------- */
.hero {
  position: relative; color: #fff; min-height: 620px; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(1,13,29,.96) 0%, rgba(1,13,29,.82) 42%, rgba(1,13,29,.15) 100%), var(--img) center / cover no-repeat;
}
.hero-content { max-width: 620px; padding: 80px 0; }
.hero .subtitle { color: #fff; font-size: .8rem; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.88); font-size: 1.12rem; margin-bottom: 30px; }
.page-hero {
  color: #fff; padding: 120px 0 110px;
  background: linear-gradient(rgba(1,13,29,.72), rgba(1,13,29,.72)), var(--img) center / cover no-repeat;
}
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero p { max-width: 720px; color: rgba(255,255,255,.9); font-size: 1.12rem; margin: 0; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center p { margin-left: auto; margin-right: auto; }

/* ---------- Layout bits ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--top { align-items: start; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.badge-card {
  position: absolute; right: -10px; bottom: -40px; background: #fff; box-shadow: var(--shadow);
  padding: 22px 26px; text-align: center; transform: rotate(-6deg); max-width: 220px;
}
.badge-card .subtitle { margin-bottom: 4px; font-size: .78rem; }
.badge-card strong { display: block; color: var(--navy-900); font-size: 1.2rem; line-height: 1.25; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .badge-card { right: 10px; } }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.tick-list { list-style: none; display: grid; gap: 10px; }
.tick-list--2 { grid-template-columns: 1fr 1fr; gap: 10px 26px; }
@media (max-width: 560px) { .tick-list--2 { grid-template-columns: 1fr; } }
.tick-list li { position: relative; padding-left: 30px; color: var(--navy-900); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* Stats */
.stats { background: var(--navy-900); }
.stats .grid { padding: 50px 0; }
.stat { text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: #fff; font-size: 3rem; font-weight: 700; line-height: 1.1; }
.stat span { color: var(--gold); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 1000px) { .stat { border: 0; } }

/* Service cards */
.service-card { background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.service-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.service-card p { flex: 1; }
.service-card .link-more { align-self: flex-start; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* Gradient call-to-action band */
.band {
  color: #fff; padding: 100px 0;
  background: linear-gradient(90deg, var(--navy-900) 0%, rgba(1,13,29,.92) 35%, rgba(1,13,29,.25) 100%), var(--img) center / cover no-repeat;
}
.band h2 { color: #fff; max-width: 560px; }
.band p { max-width: 560px; color: rgba(255,255,255,.85); margin-bottom: 28px; }
.band ol { max-width: 640px; padding-left: 0; list-style: none; display: grid; gap: 12px; margin: 0 0 28px; color: rgba(255,255,255,.88); }
.band ol strong { color: #fff; }

/* Feature cards */
.feature { background: #fff; padding: 34px 26px; text-align: center; box-shadow: 0 6px 24px rgba(1,13,29,.06); border: 1px solid transparent; transition: border-color .2s; }
.feature:hover { border-color: var(--gold); }
.feature svg { width: 40px; height: 40px; stroke: var(--navy-900); fill: none; stroke-width: 1.6; margin: 0 auto 16px; display: block; }
.feature h3 { font-size: 1.15rem; }
.feature p { margin: 0; font-size: .97rem; }
.why-head { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; margin-bottom: 46px; }
.why-head p { margin: 0; }
@media (max-width: 900px) { .why-head { grid-template-columns: 1fr; gap: 16px; } }

/* Steps */
.step { position: relative; background: #fff; padding: 34px 28px; box-shadow: 0 6px 24px rgba(1,13,29,.06); border-top: 4px solid var(--gold); }
.step .num { display: inline-block; color: var(--gold); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }

/* Testimonials */
.quote-card { background: #fff; padding: 34px; box-shadow: 0 6px 24px rgba(1,13,29,.06); position: relative; }
.quote-card::before { content: "\201C"; position: absolute; top: 4px; right: 24px; font-size: 5rem; line-height: 1; color: var(--gold); opacity: .35; font-family: Georgia, serif; }
.quote-card .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; }
.quote-card blockquote { margin: 0 0 18px; color: var(--navy-900); }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--navy-900); }

/* Values (about) */
.value { background: #fff; padding: 34px 30px; border-left: 4px solid var(--gold); box-shadow: 0 6px 24px rgba(1,13,29,.06); }

/* ---------- Service page layout ---------- */
.service-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.service-layout .main img { width: 100%; margin: 10px 0 28px; }
.service-layout h3 { margin-top: 30px; }
.sidebar { position: sticky; top: 140px; display: grid; gap: 28px; }
.side-box { border: 1px solid var(--line); padding: 28px; }
.side-box h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 16px; }
.side-box ul { list-style: none; display: grid; gap: 2px; }
.side-box a { display: flex; gap: 10px; align-items: center; color: var(--navy-900); padding: 8px 0; font-weight: 500; border-bottom: 1px solid var(--bg-soft); }
.side-box a::before { content: "›"; color: var(--gold); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.side-box a:hover, .side-box a[aria-current="page"] { color: var(--gold); }
.side-cta {
  color: #fff; text-align: center; padding: 44px 28px;
  background: linear-gradient(rgba(1,13,29,.82), rgba(1,13,29,.82)), var(--img) center / cover no-repeat;
}
.side-cta h3 { color: #fff; margin-bottom: 4px; }
.side-cta p { color: rgba(255,255,255,.88); font-size: 1.15rem; }
@media (max-width: 960px) { .service-layout { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* FAQ */
.faq-wrap { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-wrap details { background: #fff; border: 1px solid var(--line); }
.faq-wrap summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; color: var(--navy-900); font-size: 1.06rem; position: relative; }
.faq-wrap summary::-webkit-details-marker { display: none; }
.faq-wrap summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; background: var(--gold); color: #fff; font-weight: 400; font-size: 1.3rem; }
.faq-wrap details[open] summary { color: var(--gold); }
.faq-wrap details[open] summary::after { content: "–"; }
.faq-wrap details p { padding: 0 24px 22px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { display: flex; gap: 18px; align-items: flex-start; background: #fff; padding: 24px; box-shadow: 0 6px 24px rgba(1,13,29,.06); margin-bottom: 18px; }
.info-card .ico { width: 54px; height: 54px; flex: none; background: var(--gold); display: grid; place-items: center; }
.info-card .ico svg { width: 26px; height: 26px; fill: #fff; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.info-card p { margin: 0; }
.form-card { background: var(--navy-900); padding: 40px; color: rgba(255,255,255,.85); }
.form-card h2 { color: #fff; font-size: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 28px 22px; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9rem; font-weight: 500; color: #fff; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  color: #fff; font: 400 1rem var(--font);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; padding: 12px 14px; font-weight: 500; display: none; }
.form-status.is-success { display: block; background: rgba(46,160,90,.18); color: #b9f0cc; }
.form-status.is-error { display: block; background: rgba(220,60,40,.18); color: #ffc9c0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.85); }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding: 70px 20px 50px; }
.footer-main img { height: 120px; width: 120px; margin-bottom: 18px; }
.footer-main h3 { color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
.footer-main ul { list-style: none; display: grid; gap: 8px; }
.footer-main ul a { color: rgba(255,255,255,.85); }
.footer-main ul a::before { content: "› "; color: var(--gold); }
.footer-main ul a:hover { color: var(--gold); }
.footer-contact { margin-top: 14px; display: grid; gap: 4px; }
.footer-contact a { color: #fff; font-weight: 500; }
.footer-bottom { background: var(--navy-700); padding: 18px 0; font-size: .92rem; font-weight: 500; }
@media (max-width: 800px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-main > :first-child { grid-column: 1 / -1; } }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; background: var(--navy-900); }
  .call-bar .btn { flex: 1; padding: 13px 10px; }
  body { padding-bottom: 72px; }
}

.notfound { padding: 130px 0; text-align: center; }
.notfound .big { font-size: 6rem; font-weight: 700; color: var(--gold); line-height: 1; }

@media (max-width: 760px) {
  .hero, .band { background-image: linear-gradient(rgba(1,13,29,.86), rgba(1,13,29,.86)), var(--img); background-size: cover; background-position: center; }
  .hero { min-height: 0; }
  .badge-card { bottom: -24px; padding: 16px 18px; }
}

@media (max-width: 1180px) { .hc--landline { display: none; } }
.main-nav { margin-left: 112px; }
@media (max-width: 900px) { .main-nav { margin-left: 0; } }

/* WhatsApp chat button (every page) */
.wa-chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px;
  background: #25d366; color: #0b3d1f; border-radius: 999px; font-weight: 700; font-size: 1rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .15s, background .15s;
}
.wa-chat:hover { background: #20bd5a; color: #0b3d1f; transform: translateY(-2px); }
.wa-chat:focus-visible { outline: 3px solid #010d1d; outline-offset: 3px; }
.wa-chat svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
@media (max-width: 760px) {
  .wa-chat { bottom: 86px; right: 14px; padding: 13px; }
  .wa-chat span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
