/* Boiler Replacement Milton Keynes — shared visual system */
:root {
  --brand: #1476d4;
  --brand-dark: #0b4f96;
  --brand-light: #eaf4ff;
  --heat: #f7941d;
  --heat-dark: #d96312;
  --ink: #102b45;
  --ink-soft: #4b6175;
  --line: #dbe6ef;
  --bg: #ffffff;
  --bg-alt: #f3f8fc;
  --bg-dark: #0b263f;
  --max: 1180px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 24px rgba(16, 43, 69, .08);
  --shadow-lg: 0 22px 55px rgba(16, 43, 69, .16);
  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.72;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.13;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(2.35rem, 5vw, 4.35rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.3vw, 3rem); font-weight: 800; margin-bottom: .6em; }
h3 { font-size: 1.22rem; font-weight: 750; margin-bottom: .5em; letter-spacing: -.018em; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin-bottom: 1rem; color: var(--ink-soft); }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
img { display: block; max-width: 100%; height: auto; }
::selection { color: #fff; background: var(--brand); }

:focus-visible {
  outline: 3px solid rgba(247, 148, 29, .85);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 25px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(20, 118, 212, .2);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--brand-dark);
  box-shadow: 0 12px 28px rgba(20, 118, 212, .28);
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
}
.btn--ghost { border: 2px solid var(--brand); box-shadow: none; background: transparent; color: var(--brand-dark); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--lg { min-height: 56px; padding: 16px 31px; font-size: 1.02rem; }
.muted { color: var(--ink-soft); font-size: .9rem; }

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-top: 4px solid var(--heat);
  border-bottom: 1px solid rgba(219, 230, 239, .9);
  box-shadow: 0 6px 24px rgba(16, 43, 69, .06);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
}
.nav {
  display: flex;
  max-width: var(--max);
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
  padding: 10px 20px;
}
.nav__logo { display: block; flex: 0 1 250px; line-height: 0; }
.nav__logo img { width: 250px; max-width: 100%; height: auto; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__links > li > a {
  display: block;
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--ink);
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav__links > li > a:hover,
.nav__links > li > a[aria-current='page'] { color: var(--brand-dark); background: var(--brand-light); }
.nav__call {
  margin-left: 3px;
  padding: 11px 16px !important;
  border-radius: 999px !important;
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 750 !important;
}
.nav__call:hover { background: var(--brand-dark) !important; }
.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 1.45rem;
  cursor: pointer;
}

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 276px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.has-dropdown::after { content: ''; display: none; position: absolute; top: 100%; right: 0; left: 0; height: 14px; }
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 550;
  text-decoration: none;
}
.dropdown a:hover { background: var(--bg-alt); color: var(--brand-dark); }

/* Hero */
.hero {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--bg-dark);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 27, 47, .93) 0%, rgba(9, 42, 71, .82) 44%, rgba(9, 42, 71, .3) 75%, rgba(9, 42, 71, .18) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  padding-block: 98px;
}
.hero__inner::before {
  content: '';
  display: block;
  width: 62px;
  height: 5px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--heat);
}
.hero__eyebrow {
  margin-bottom: 12px;
  color: #cfe7ff !important;
  font-size: .81rem !important;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1 { max-width: 13ch; margin-bottom: 20px; color: #fff; text-wrap: balance; }
.hero p { max-width: 48ch; color: rgba(255, 255, 255, .88); font-size: 1.15rem; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 30px; }
.hero .btn--ghost { border-color: rgba(255, 255, 255, .75) !important; color: #fff !important; }
.hero .btn--ghost:hover { border-color: #fff !important; background: #fff !important; color: var(--ink) !important; }

/* Sections and content */
.section { padding: 82px 0; }
.section--alt { position: relative; background: linear-gradient(135deg, #f5f9fd 0%, #eef6fc 100%); }
.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: 70ch; font-size: 1.04rem; }
.center { text-align: center; }
.center .section__lead { margin-inline: auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(34px, 6vw, 76px); }
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--heat));
  opacity: .8;
}
.card:hover { transform: translateY(-4px); border-color: #bfd6e9; box-shadow: 0 16px 36px rgba(16, 43, 69, .12); }
.card h3 { margin-bottom: .55em; }
.card p:last-child { margin-bottom: 0; }
.card a { font-weight: 700; }

.linklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.linklist a {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.linklist a::after { content: '\2192'; margin-left: auto; color: var(--brand); font-size: 1.1rem; }
.linklist a:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--brand-dark); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--line); background: #fff; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: .96rem; }
th { background: var(--brand-light); color: var(--ink); font-weight: 750; }
tr:last-child td { border-bottom: 0; }

.faq details { margin-bottom: 12px; padding: 4px 22px; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 5px 16px rgba(16, 43, 69, .05); background: #fff; }
.faq summary { padding: 17px 0; color: var(--ink); font-family: var(--font-head); font-size: 1.06rem; font-weight: 700; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--brand); font-size: 1.45rem; line-height: 1; }
.faq details[open] { border-color: #bdd7eb; box-shadow: var(--shadow-sm); }
.faq details[open] summary::after { content: '\2013'; }
.faq details > p { margin-bottom: 0; padding: 0 0 18px; }

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 20px;
  background: linear-gradient(125deg, #0b4f96 0%, #1476d4 68%, #1983df 100%);
  color: #fff;
  text-align: center;
}
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.cta-band::before { width: 300px; height: 300px; top: -190px; left: -70px; }
.cta-band::after { width: 240px; height: 240px; right: -60px; bottom: -150px; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 720px; margin-inline: auto; color: rgba(255, 255, 255, .88); }
.cta-band .btn { border-color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .14); background: #fff; color: var(--brand-dark); }
.cta-band .btn:hover { background: #eef7ff; color: var(--brand-dark); }

/* Forms */
.form-card { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 17px; }
.field label { display: block; margin-bottom: 7px; color: var(--ink); font-size: .91rem; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c9d7e4;
  border-radius: 10px;
  background: #fbfdff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(20, 118, 212, .12); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }

/* Articles and supporting pages */
.article { max-width: 860px; }
.article > h1 { margin-bottom: 18px; }
.article > h1::after { content: ''; display: block; width: 58px; height: 5px; margin-top: 24px; border-radius: 99px; background: var(--heat); }
.article h2 { margin-top: 48px; }
.article h3 { margin-top: 28px; }
.article ul:not(.linklist), .article ol { margin: 0 0 1.15rem 1.3em; color: var(--ink-soft); }
.article li { margin-bottom: .48rem; }
.article__date { margin-top: -4px; }
.faq-page h2 { margin-top: 38px; font-size: 1.45rem; }
.contact-list { margin: 22px 0; list-style: none; }
.contact-list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.team-grid { margin-top: 26px; }
.team-card .avatar {
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 800;
}
.team-card .role { margin-bottom: 9px; color: var(--brand-dark); font-size: .9rem; font-weight: 700; }
.wc-phone { font-weight: 750; }

/* Footer */
.site-footer { padding: 66px 0 28px; background: var(--bg-dark); color: rgba(255, 255, 255, .76); }
.site-footer h4 { margin-bottom: 16px; color: #fff; font-size: .98rem; letter-spacing: .01em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .85fr 1fr 1.05fr; gap: clamp(26px, 4vw, 48px); }
.site-footer p { color: rgba(255, 255, 255, .72) !important; font-size: .91rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255, 255, 255, .76); font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .13); color: rgba(255, 255, 255, .52); font-size: .83rem; }
.footer-disclaimer { margin-top: 11px; color: rgba(255, 255, 255, .55) !important; font-size: .79rem !important; line-height: 1.55; }

@media (max-width: 1080px) {
  .nav__links > li > a { padding-inline: 8px; font-size: .86rem; }
  .nav__call { padding-inline: 13px !important; }
}

@media (max-width: 920px) {
  .nav { min-height: 78px; }
  .nav__logo { flex-basis: 230px; }
  .nav__logo img { width: 230px; }
  .nav__toggle { display: inline-grid; place-items: center; flex: 0 0 auto; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    background: #fff;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links > li > a { padding: 11px 12px; font-size: .96rem; }
  .nav__call { display: inline-flex !important; width: fit-content; margin-top: 5px; }
  .dropdown { display: block; position: static; min-width: 0; padding: 2px 0 4px 14px; border: 0; box-shadow: none; }
  .dropdown a { padding: 8px 12px; }
  .has-dropdown::after { display: none !important; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}

@media (max-width: 760px) {
  .hero { min-height: 530px; }
  .hero::after { background: linear-gradient(90deg, rgba(6, 27, 47, .94), rgba(9, 42, 71, .7)); }
  .hero__inner { padding-block: 76px; }
  .section { padding: 65px 0; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .linklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .wrap, .hero__inner { width: min(100% - 32px, var(--max)); }
  .nav { min-height: 73px; padding-inline: 16px; }
  .nav__logo { flex-basis: min(220px, calc(100vw - 94px)); }
  .nav__logo img { width: 220px; }
  h1 { font-size: clamp(2.15rem, 11vw, 3rem); }
  h2 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .hero { min-height: 510px; }
  .hero p { font-size: 1.05rem; }
  .hero__cta { align-items: stretch; flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .section { padding: 56px 0; }
  .grid--2, .grid--3, .grid--4, .form-row, .linklist, .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .cta-band { padding: 58px 16px; }
  .btn--lg { padding-inline: 24px; }
}

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