/* ==========================================================================
   Newcastle HVAC — styles.css
   Professional UK HVAC trade website. Mobile-first, responsive, accessible.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0c2f4a;        /* deep, trustworthy base */
  --navy-700: #103a5c;
  --blue: #1466a8;        /* primary brand blue */
  --blue-600: #115a96;
  --teal: #0fa3b1;        /* cool / cooling accent */
  --teal-50: #e6f6f8;
  --orange: #ef7d18;      /* heat / call-to-action accent */
  --orange-600: #d96c0c;
  --ink: #16222e;         /* body text */
  --muted: #566472;       /* secondary text */
  --line: #e2e8ee;        /* borders */
  --bg: #ffffff;
  --bg-soft: #f4f7fa;     /* soft section background */
  --bg-band: #0c2f4a;     /* dark band */
  --green: #1c9b6b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(16, 42, 67, 0.08);
  --shadow-lg: 0 14px 40px rgba(16, 42, 67, 0.14);
  --maxw: 1140px;
  --gap: 24px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 36px 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--orange);
  color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .08em;
  font-size: .8rem; font-weight: 700; color: var(--teal); margin-bottom: .5rem;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-weight: 700; font-size: 1rem; padding: 13px 22px; border-radius: 10px;
  border: 2px solid transparent; transition: transform .08s ease, background .2s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-600); color: #fff; }
.btn--secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-600); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy); color: #cfe0ee; font-size: .9rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .topbar__msg { color: #acc6dc; }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 10px rgba(16,42,67,.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 54px; width: auto; display: block; }
@media (max-width: 480px) { .brand__logo { height: 46px; } }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.main-nav a { color: var(--navy); font-weight: 600; padding: 10px 12px; border-radius: 8px; display: block; }
.main-nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); }

.has-sub { position: relative; }
.has-sub > .submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 8px; display: none; flex-direction: column; gap: 2px;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: flex; }
.submenu a { font-weight: 600; padding: 9px 12px; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { font-weight: 800; color: var(--navy); white-space: nowrap; }
.header-phone:hover { color: var(--blue); text-decoration: none; }

.nav-toggle {
  display: none; background: var(--navy); border: 0; border-radius: 8px;
  width: 46px; height: 42px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: #fff; margin: 0 auto; position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(12,47,74,.94), rgba(20,102,168,.86)),
    url("../images/hero-pattern.svg") center/cover no-repeat, var(--navy);
  color: #fff; padding: 64px 0;
}
.hero h1 { color: #fff; max-width: 20ch; margin-bottom: .35em; }
.hero p { color: #dcebf6; font-size: 1.15rem; max-width: 54ch; }
.hero .eyebrow { color: #8fe0e9; }
.hero--page { padding: 48px 0 44px; }
.hero--page h1 { max-width: 24ch; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-grid .media { border-color: rgba(255,255,255,.25); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-figure { max-width: 520px; }
}

.breadcrumbs { font-size: .85rem; margin-bottom: 14px; color: #bcd4e6; }
.breadcrumbs a { color: #fff; }
.breadcrumbs span[aria-current] { color: #bcd4e6; }
.hero--page .breadcrumbs { color: rgba(255,255,255,.75); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--teal-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trustbar ul {
  list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap;
  gap: 10px 28px; justify-content: center;
}
.trustbar li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); margin: 0; }
.trustbar svg { color: var(--teal); flex: 0 0 auto; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); height: 100%;
}
.card h3 { margin-top: 6px; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card .card__link { font-weight: 700; }
.card--link { display: block; color: inherit; transition: transform .1s ease, box-shadow .2s ease; }
.card--link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfe0ee; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; margin-bottom: 6px;
}
.icon-badge--warm { background: linear-gradient(135deg, var(--orange), #f6a23c); }

/* Benefits / feature list */
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .feature__icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal);
}
.feature h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Tick list */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* Two-column prose split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel--soft { background: var(--bg-soft); box-shadow: none; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.2rem;
}
.step h3 { margin-bottom: .25rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; border-radius: 16px;
  padding: 40px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dcebf6; max-width: 58ch; margin: 0 auto 8px; }
.cta-band .btn-row { justify-content: center; }
.section--cta { background: var(--bg-soft); }

/* ---------- FAQ accordion ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--navy);
  position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--blue); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__a { padding: 0 20px 18px; color: var(--muted); }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid rgba(20,102,168,.18); border-color: var(--blue);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Info / contact list ---------- */
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-list .icon-badge { width: 44px; height: 44px; flex: 0 0 44px; }
.contact-list strong { display: block; color: var(--navy); }

/* ---------- Areas list ---------- */
.area-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.area-links a {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--navy);
}
.area-links a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.area-links svg { color: var(--teal); }

/* ---------- Related links chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.chips a {
  display: inline-block; padding: 8px 14px; background: var(--teal-50); color: var(--navy);
  border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1px solid #cfeef1;
}
.chips a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.chips li > span {
  display: inline-block; padding: 8px 14px; background: var(--teal-50); color: var(--navy);
  border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1px solid #cfeef1;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c4d7e6; padding: 50px 0 24px; margin-top: 8px; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c4d7e6; }
.site-footer a:hover { color: #fff; }
.footer-logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; box-shadow: var(--shadow); }
.footer-logo img { height: 56px; width: auto; display: block; }
.footer-contact strong { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem;
}
.footer-bottom a { color: #c4d7e6; }

/* ---------- Media / images ---------- */
.media { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.media > picture { display: block; }
.media img { display: block; width: 100%; height: auto; }
.media--cover img { aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; }
.media figcaption { padding: 11px 15px; font-size: .85rem; line-height: 1.4; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.media-col { display: flex; }
.media-col .media { width: 100%; align-self: center; }
.gallery { margin-top: 18px; }
.hero-figure { margin-top: 26px; }

/* ---------- Misc ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; color: var(--navy-700); }
.tag { display: inline-block; background: var(--teal-50); color: var(--teal); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.placeholder-note {
  background: #fff7ec; border: 1px dashed var(--orange); border-radius: 10px; padding: 14px 16px;
  font-size: .92rem; color: #7a4e12;
}
.stat-row { display: flex; flex-wrap: wrap; gap: 28px; }
.stat { flex: 1 1 160px; }
.stat .stat__num { font-size: 2rem; font-weight: 800; color: var(--blue); }
.stat .stat__label { color: var(--muted); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 12px 20px 20px; display: none; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--bg-soft); }
  .has-sub > .submenu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; }
  .has-sub > a::after { content: " \25BE"; color: var(--muted); }
  .header-cta .btn { display: none; }
}
@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 42px 0; }
  .cta-band { padding: 30px 22px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
  .topbar .topbar__msg { display: none; }
}

/* Offset in-page anchor targets so the sticky header doesn't cover them */
:target { scroll-margin-top: 96px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
