/* =========================================================
   Microsite Base — shared styles
   Plain CSS, no build step. Edit freely.
   Brand color and font are driven by CSS variables below so
   a single change re-themes the whole site.
   ========================================================= */

:root {
  --brand:        #1a56db;   /* {{BRAND_COLOR}} primary brand / links / buttons */
  --brand-dark:   #1442ad;   /* darker shade for hovers */
  --ink:          #15212e;   /* body text */
  --ink-soft:     #4a5a6a;   /* secondary text */
  --line:         #e3e8ee;   /* hairlines / borders */
  --bg:           #ffffff;
  --bg-alt:       #f6f8fa;   /* alternating section background */
  --bg-dark:      #15212e;   /* footer / dark band */
  --max:          1160px;    /* content max width */
  --radius:       10px;
  --font-head: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: .55em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .35em; letter-spacing: -.01em; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
a  { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }

.muted { color: var(--ink-soft); font-size: .9rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 20px; max-width: var(--max); margin: 0 auto;
}
.nav__logo img { max-height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: .97rem; }
.nav__links a:hover { color: var(--brand); text-decoration: none; }

/* dropdown for services */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 250px; padding: 8px 0; box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
/* invisible bridge: fills the gap between the menu item and the dropdown
   so hover isn't lost when the mouse travels down into the submenu */
.has-dropdown::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; display: none;
}
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 9px 18px; font-size: .92rem; }
.dropdown a:hover { background: var(--bg-alt); }

.nav__call {
  background: var(--brand); color: #fff !important;
  padding: 10px 18px; border-radius: var(--radius); font-weight: 600;
}
.nav__call:hover { background: var(--brand-dark); text-decoration: none; }

/* mobile nav toggle */
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px; }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 8px 0; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: 0; }
  .nav__toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,33,46,.55), rgba(21,33,46,.78)); z-index: 1; }
.hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 90px 20px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 600; opacity: .9; }
.hero h1 { color: #fff; margin: 10px 0 16px; max-width: 18ch; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 46ch; }
.hero__cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.82); }
.section__lead { max-width: 65ch; }
.center { text-align: center; }
.center .section__lead { margin: 0 auto; }

/* two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* feature / why-us grid */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.section--alt .card { background: #fff; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* service / area link list */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }
.linklist a {
  display: block; padding: 14px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 600;
}
.linklist a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* cost table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .96rem; }
th { background: var(--bg-alt); font-family: var(--font-body); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); font-size: 1.1rem; padding: 16px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: 16px; margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; text-align: center; padding: 56px 20px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-band .btn { background: #fff; color: var(--brand); }
.cta-band .btn:hover { background: #f0f3f7; }

/* ---------- estimate / contact form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.8); padding: 56px 0 28px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-family: var(--font-body); font-size: 1rem; letter-spacing: .02em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.8); font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-disclaimer { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 10px; line-height: 1.5; }

/* ---------- article pages (about, FAQ, team, careers, legal) ---------- */
.article { max-width: 820px; }
.article h1 { margin-bottom: 14px; }
.article h2 { margin-top: 40px; }
.article h3 { margin-top: 26px; }
.article ul, .article ol { margin: 0 0 1rem 1.3em; color: var(--ink-soft); }
.article li { margin-bottom: .45rem; }
.article__date { margin-top: -4px; }
.faq-page h2 { font-size: 1.35rem; margin-top: 34px; }
.contact-list { list-style: none; margin: 22px 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.team-grid { margin-top: 24px; }
.team-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }
.team-card .role { color: var(--brand); font-weight: 600; font-size: .9rem; margin-bottom: 8px; }

/* phone link — class is a stable hook for WhatConverts dynamic number insertion */
.wc-phone { font-weight: 700; }

/* =========================================================
   MK Plumbers — modern visual refresh
   ========================================================= */
:root {
  --brand: #075985;
  --brand-dark: #06476a;
  --brand-light: #eaf6fb;
  --accent: #0ea5a8;
  --ink: #102331;
  --ink-soft: #526573;
  --line: #dce7ec;
  --bg: #ffffff;
  --bg-alt: #f5f9fa;
  --bg-dark: #0b2433;
  --max: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 8px 24px rgba(16,35,49,.07);
  --shadow-md: 0 18px 44px rgba(16,35,49,.12);
}

body {
  line-height: 1.7;
  background: #fff;
  font-size: 16px;
}

.wrap { padding-left: 24px; padding-right: 24px; }

h1, h2, h3, h4 { letter-spacing: -.028em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.23rem; }
p { color: var(--ink-soft); }

/* Header */
.site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(220,231,236,.9);
  box-shadow: 0 3px 18px rgba(16,35,49,.04);
  backdrop-filter: blur(14px);
}
.nav { min-height: 76px; padding-top: 11px; padding-bottom: 11px; }
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.22rem;
  letter-spacing: -.025em;
}
.nav__logo:hover { text-decoration: none; color: var(--brand); }
.nav__logo::before {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 12px 12px 12px 4px;
  background: linear-gradient(145deg, var(--brand), var(--accent));
  box-shadow: 0 7px 18px rgba(7,89,133,.22);
  transform: rotate(45deg);
}
.nav__logo strong { position: relative; }
.nav__links { gap: 7px; }
.nav__links > li > a:not(.nav__call) {
  padding: 10px 11px;
  border-radius: 9px;
  font-weight: 600;
  color: #2d4350;
}
.nav__links > li > a:not(.nav__call):hover {
  background: var(--brand-light);
  color: var(--brand);
}
.nav__call {
  padding: 11px 17px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(7,89,133,.18);
}
.dropdown {
  top: calc(100% + 8px);
  border: 1px solid rgba(220,231,236,.95);
  border-radius: 14px;
  min-width: 275px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(16,35,49,.14);
}
.dropdown a { padding: 10px 12px; border-radius: 8px; }

/* Buttons */
.btn {
  padding: 14px 24px;
  border-radius: 11px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(7,89,133,.14);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 25px rgba(7,89,133,.2); }
.btn--ghost { box-shadow: none; background: rgba(255,255,255,.7); }
.btn--lg { padding: 16px 28px; }

/* Hero */
.hero { min-height: 610px; display: grid; align-items: center; overflow: hidden; }
.hero__media img { object-position: center 44%; transform: scale(1.015); }
.hero::after {
  background:
    linear-gradient(90deg, rgba(8,31,45,.9) 0%, rgba(8,31,45,.75) 42%, rgba(8,31,45,.33) 72%, rgba(8,31,45,.16) 100%),
    linear-gradient(180deg, rgba(8,31,45,.08), rgba(8,31,45,.24));
}
.hero__inner { width: 100%; padding-top: 105px; padding-bottom: 105px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .78rem;
  letter-spacing: .09em;
  backdrop-filter: blur(8px);
}
.hero__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 0 4px rgba(94,234,212,.15); }
.hero h1 { max-width: 13ch; margin-top: 17px; text-shadow: 0 2px 18px rgba(0,0,0,.16); }
.hero p { max-width: 55ch; font-size: 1.17rem; line-height: 1.65; }
.hero__cta { margin-top: 30px; }
.hero .btn--ghost { background: rgba(255,255,255,.09); box-shadow: none; }
.hero .btn--ghost:hover { background: #fff; color: var(--brand) !important; }

/* Sections */
.section { padding: 82px 0; }
.section--alt {
  background: linear-gradient(180deg, #f6fafb 0%, #f2f7f8 100%);
  border-top: 1px solid #edf3f5;
  border-bottom: 1px solid #edf3f5;
}
.section__lead { max-width: 68ch; font-size: 1.045rem; }
.section > .wrap > h1:first-child {
  max-width: 17ch;
  margin-bottom: 20px;
}
body:not(:has(.hero)) .site-header + .section:first-of-type {
  padding-top: 74px;
  padding-bottom: 66px;
  background: linear-gradient(145deg, #f5fafb 0%, #ffffff 62%);
  border-bottom: 1px solid #edf3f5;
}
body:not(:has(.hero)) .site-header + .section:first-of-type h1::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* Improve standalone image bands on the home page */
.section[style*="padding:18px 0"] { padding: 24px 0 !important; background: #fff; }
.section[style*="padding:18px 0"] img {
  max-height: 530px;
  object-fit: cover;
  border-radius: 22px !important;
  box-shadow: var(--shadow-md);
}

/* Grids and cards */
.grid { gap: 22px; }
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe9ed;
  border-radius: 16px;
  padding: 29px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::before {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  top: -38px;
  right: -34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14,165,168,.18), rgba(7,89,133,.06));
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #bdd9e2; }
.card h3 { margin-bottom: 10px; }
.card a { font-weight: 700; }
.grid--3 .card > a:last-child::after { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 7px; opacity: .45; }

/* Lists / service areas */
.linklist { gap: 14px; }
.linklist a {
  position: relative;
  padding: 16px 46px 16px 18px;
  border-color: #dfe9ed;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(16,35,49,.04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.linklist a::after { content: "→"; position: absolute; right: 18px; color: var(--brand); }
.linklist a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* FAQ */
.faq details {
  border-color: #dfe9ed;
  border-radius: 13px;
  padding-left: 22px;
  padding-right: 22px;
  box-shadow: 0 4px 16px rgba(16,35,49,.035);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq details[open] { border-color: #bcd8e1; box-shadow: var(--shadow-sm); }
.faq summary { font-size: 1.04rem; padding: 18px 0; }

/* Forms */
.form-card {
  border: 1px solid #dbe7eb;
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.field label { font-size: .88rem; }
.field input, .field textarea, .field select {
  padding: 13px 14px;
  border: 1px solid #ccdbe1;
  border-radius: 10px;
  background: #fbfdfe;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(7,89,133,.1);
}

/* Tables */
table { border-radius: 14px; box-shadow: var(--shadow-sm); border-color: #dfe9ed; }
th { background: #eef6f8; color: #173747; }
th, td { padding: 16px 18px; }

/* CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 20px;
  background: linear-gradient(135deg, #075985 0%, #087b8f 100%);
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.cta-band::before { width: 320px; height: 320px; left: -130px; top: -170px; }
.cta-band::after { width: 250px; height: 250px; right: -95px; bottom: -130px; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 62ch; margin-left: auto; margin-right: auto; }
.cta-band .btn { box-shadow: 0 10px 28px rgba(0,0,0,.15); }

/* Article / team pages */
.article { max-width: 860px; }
.article h2 { margin-top: 46px; }
.article ul, .article ol { padding-left: 4px; }
.contact-list li { padding: 14px 0; }
.team-card .avatar {
  width: 62px; height: 62px;
  background: linear-gradient(145deg, var(--brand), var(--accent));
  box-shadow: 0 7px 18px rgba(7,89,133,.18);
}

/* Footer */
.site-footer {
  padding-top: 66px;
  background: linear-gradient(145deg, #092332, #0d2e3f);
}
.footer-grid { gap: 42px; }
.site-footer h4 { font-size: .94rem; text-transform: uppercase; letter-spacing: .065em; }
.site-footer a { transition: color .15s ease; }
.footer-bottom { margin-top: 46px; }

/* Responsive */
@media (max-width: 900px) {
  .nav { min-height: 68px; }
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand);
  }
  .nav__links {
    top: calc(100% + 1px);
    padding: 12px 20px 18px;
    box-shadow: 0 16px 28px rgba(16,35,49,.1);
  }
  .nav__links li { padding: 3px 0; }
  .nav__links > li > a { display: block; width: 100%; }
  .dropdown { margin: 3px 0 5px; background: #f8fbfc; border-radius: 10px; padding: 5px; }
  .hero { min-height: 550px; }
  .hero::after { background: linear-gradient(90deg, rgba(8,31,45,.9), rgba(8,31,45,.62)); }
  .hero__inner { padding-top: 82px; padding-bottom: 82px; }
  .section { padding: 68px 0; }
}

@media (max-width: 600px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .nav { padding-left: 18px; padding-right: 18px; }
  .nav__logo::before { width: 32px; height: 32px; border-radius: 10px 10px 10px 3px; }
  .nav__logo { font-size: 1.08rem; gap: 9px; }
  .hero { min-height: 520px; }
  .hero__inner { padding: 66px 18px 72px; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.25rem); }
  .hero p { font-size: 1.05rem; }
  .hero__cta { align-items: stretch; }
  .hero__cta .btn { width: 100%; text-align: center; }
  .section { padding: 58px 0; }
  .card { padding: 24px; }
  .form-card { padding: 24px 20px; }
  .cta-band { padding: 60px 18px; }
  .section[style*="padding:18px 0"] img { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
