/* =========================================================
   BANWAITT HEATING
   Edit colours in section 1; phone/text content in index.html.
   No framework, build step or external font connection needed.
   ========================================================= */

/* 1. THEME COLOURS */
:root {
  --page: #f3f5f7;
  --surface: #ffffff;
  --soft: #e9edf1;
  --ink: #252a32;
  --text: #52606d;
  --line: #d7dfe6;
  --dark: #18232f;
  --dark-card: #243341;
  --orange: #e95720;
  --radius: 20px;
  --shadow: 0 14px 35px -20px #14263855;
}

/* 2. BASE AND TYPOGRAPHY */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.8 Manrope, 'Segoe UI', sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
p { margin: 0 0 20px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; letter-spacing: -.035em; font-weight: 800; margin: 0 0 22px; }
h1 { font-size: clamp(2.6rem, 4vw, 4rem); line-height: 1.12; }
h2 { font-size: clamp(2rem, 3.3vw, 3.3rem); }
h3 { font-size: 1.5rem; margin-top: 26px; }
h4 { font-size: 1.2rem; margin-top: 22px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.skip { position: fixed; top: -100px; left: 15px; z-index: 100; background: white; padding: 12px; }
.skip:focus { top: 10px; }

/* 3. HEADER AND NAVIGATION */
header { position: sticky; top: 0; z-index: 20; min-height: 96px; padding: 10px 6%; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fffffff5; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 68px; height: 68px; object-fit: contain; }
.brand > span { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.brand > span > span { display: block; color: var(--orange); font-size: 10px; letter-spacing: .16em; }
nav { display: flex; gap: 30px; }
nav a { padding: 10px 0; font-size: 14px; font-weight: 700; border-bottom: 2px solid transparent; }
nav a.active { border-bottom-color: var(--orange); }
.header-cta { background: var(--orange); color: white; padding: 12px 25px; border-radius: 30px; font-size: 14px; font-weight: 700; box-shadow: 0 4px 0 -1px #b83d0e; }
.header-cta span { margin-left: 20px; }
.menu-toggle { display: none; }

/* 4. WELCOME SECTION */
.exact-hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 4%; padding: 55px 5% 70px; background: linear-gradient(130deg, #e5ebf0, #f8fafb); }
.exact-hero-copy { padding: 38px; background: linear-gradient(140deg, white, #f5f7f9); border: 1px solid white; border-radius: 25px; box-shadow: 0 8px 0 -3px #cfd9e2, var(--shadow); }
.exact-hero-copy::before { content: ''; display: block; width: 52px; height: 4px; background: var(--orange); border-radius: 4px; margin-bottom: 22px; }
.document-label { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-bottom: 22px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--text); }
.exact-hero h3 { font-size: 21px; line-height: 1.5; }
.exact-hero p { font-size: 15px; color: var(--text); }
.exact-hero-photo { position: relative; min-height: 640px; border: 6px solid white; border-radius: 75px 22px 22px 22px; overflow: hidden; box-shadow: var(--shadow); }
.exact-hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }

/* 5. SHARED CONTENT, PHOTOS AND LISTS */
.source-section { padding: 75px 7%; border-top: 1px solid var(--line); }
.source-section p { color: var(--text); max-width: 1000px; }
.source-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 11px; }
.source-list li { position: relative; padding-left: 25px; color: var(--text); line-height: 1.7; }
.source-list li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.photo-section, .source-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 7%; align-items: start; }
.photo-section { background: var(--surface); }
.source-intro { margin-bottom: 35px; }
.source-photo { position: sticky; top: 125px; height: 490px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #e6ecf1, #fff); box-shadow: var(--shadow); }
.source-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.source-photo:has(img[src="assets/heat-pump.webp"]) { display: grid; place-items: center; }
.source-photo img[src="assets/heat-pump.webp"] { width: 78%; height: 78%; object-fit: contain; object-position: center; filter: drop-shadow(0 15px 12px #172f492b); }
.source-intro .source-photo { position: relative; top: auto; height: 370px; }

/* 6. COMPACT SERVICES CARDS */
.overview { margin: 30px 4%; padding: 40px 4%; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.overview > p { font-size: 15px; }
.overview > .source-list { grid-template-columns: repeat(3, 1fr); gap: 13px; }
.overview > .source-list li { display: flex; align-items: center; min-height: 63px; padding: 14px 17px 14px 41px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(140deg, white, #edf1f5); box-shadow: 0 4px 0 -1px #d2dce5; transition: transform .2s, box-shadow .2s; }
.overview > .source-list li::before { left: 17px; }
.overview > .source-list li:hover { transform: translateY(-4px); box-shadow: 0 6px 0 -2px #cbd7e1, var(--shadow); }

/* 7. EXPANDABLE DETAILS */
.source-fold { margin: 18px 0; border: 1px solid var(--line); border-radius: 15px; background: white; overflow: hidden; box-shadow: 0 6px 18px -12px #172f4950; }
.source-fold summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 27px; cursor: pointer; color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1.5; }
.source-fold summary::-webkit-details-marker { display: none; }
.source-fold summary b { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; background: var(--soft); border-radius: 50%; font-weight: 400; transition: transform .2s; }
.source-fold[open] summary b { transform: rotate(45deg); }
.fold-body { padding: 0 27px 20px; }

/* 8. DARK ACCENTS: GRANTS AND AIR CONDITIONING */
.grant-source, .ac-source { background: linear-gradient(130deg, #263746, var(--dark)); color: #f5f7fa; }
.grant-source { margin: 35px 4%; padding: 55px 5%; border-radius: 26px; border: 1px solid #3b4d5e; box-shadow: 0 8px 0 -3px #101b26, var(--shadow); }
.grant-source h2, .grant-source h3, .grant-source h4, .ac-source h2, .ac-source h3, .ac-source h4 { color: #f5f7fa; }
.grant-source p, .grant-source li, .ac-source p, .ac-source li { color: #d0dae3; }
.source-panel { margin: 30px 0; padding: 10px 28px 20px; border: 1px solid #4a5c6d; border-left: 4px solid var(--orange); border-radius: 18px; background: #ffffff06; }
.grant-source .source-fold { background: var(--dark-card); border-color: #465969; }
.grant-source summary { color: #f5f7fa; }
.grant-source summary b { color: #fff; background: #3a4b5b; }

/* 9. SOLAR, PROCESS, FINANCE AND ABOUT */
.solar-source, .plumbing-source { background: var(--soft); }
.system-source { background: #f5f7f9; }
.six-steps, .why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; }
.six-steps article, .why-grid article { padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(140deg, white, #f0f4f7); box-shadow: 0 5px 0 -2px #d1dce5, var(--shadow); transition: transform .2s; }
.six-steps article:hover, .why-grid article:hover { transform: translateY(-4px); }
.six-steps h4, .why-grid h4 { margin-top: 0; font-weight: 800; }
.six-steps p, .why-grid p { margin: 0; font-size: 15px; }
.finance-source { margin: 35px 5%; padding: 42px 4%; background: white; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 20px; box-shadow: var(--shadow); }
.finance-source > p:last-child { font-size: 14px; }
.plumbing-source .source-list { grid-template-columns: 1fr 1fr; }

/* 10. CONTACT AND FOOTER */
.contact-source { background: #e8eef3; }
.contact-panel { margin-top: 30px; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.contact-panel p:first-child { font-size: 25px; font-weight: 800; color: var(--ink); }
.contact-panel p:last-child { margin-bottom: 0; }
.contact-panel a { text-decoration: underline; text-underline-offset: 4px; }
footer { padding: 35px 7%; display: flex; align-items: center; justify-content: space-between; gap: 25px; background: var(--dark); color: white; }
.footer-brand { font-size: 20px; font-weight: 800; }
.footer-brand span { display: block; color: #ff8b52; font-size: 12px; letter-spacing: .2em; }
footer > a:last-child { font-size: 14px; }

/* 11. TABLET */
@media (max-width: 1000px) {
  .brand > span { display: none; }
  header { padding-inline: 4%; }
  nav { gap: 20px; }
  .exact-hero { gap: 25px; padding-inline: 4%; }
  .exact-hero-copy { padding: 28px; }
  .exact-hero-photo { min-height: 680px; }
  .overview > .source-list, .six-steps, .why-grid { grid-template-columns: 1fr 1fr; }
  .source-section { padding: 60px 5%; }
  .source-photo { height: 400px; }
}

/* 12. MOBILE */
@media (max-width: 650px) {
  html { scroll-padding-top: 90px; }
  header { min-height: 84px; }
  .brand img { width: 58px; height: 58px; }
  .brand > span { display: block; font-size: 16px; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; gap: 10px; border: 0; background: transparent; font-size: 14px; }
  nav { display: none; position: absolute; top: 84px; left: 0; width: 100%; padding: 15px 6% 25px; background: white; border-bottom: 1px solid var(--line); }
  nav.open { display: flex; flex-direction: column; gap: 4px; }
  .exact-hero, .photo-section, .source-intro { grid-template-columns: 1fr; gap: 28px; }
  .exact-hero { padding: 28px 5% 40px; }
  .exact-hero-copy { padding: 25px 23px; }
  h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.35rem; }
  .exact-hero h3 { font-size: 18px; }
  .exact-hero-photo { min-height: 410px; }
  .source-section { padding: 50px 6%; }
  .overview, .grant-source, .finance-source { margin: 25px 4%; padding: 32px 6%; }
  .overview > .source-list, .six-steps, .why-grid, .plumbing-source .source-list { grid-template-columns: 1fr; }
  .overview > .source-list li { min-height: 54px; }
  .source-photo { position: relative; top: 0; height: 310px; }
  .source-intro .source-photo { height: 290px; }
  .source-fold summary { padding: 20px; font-size: 17px; }
  .fold-body { padding: 0 20px 20px; }
  .source-panel, .contact-panel { padding: 20px; }
  footer { padding-inline: 6%; }
}

/* 13. ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .overview > .source-list li:hover, .six-steps article:hover, .why-grid article:hover { transform: none; }
}

/* SEO heading levels retain the existing visual sizes. */
.exact-hero .hero-subtitle { font-size: 21px; line-height: 1.5; margin-top: 26px; }
.six-steps h3, .why-grid h3 { font-size: 1.2rem; margin-top: 0; font-weight: 800; }
@media (max-width:650px) { .exact-hero .hero-subtitle { font-size:18px; } }

/* 14. CERTIFICATION AND MANUFACTURER LOGO STRIP */
.trust-section {
  margin: 30px 4% 0;
  padding: 36px 0 22px;
  border: 1px solid #d8e2eb;
  border-radius: 24px;
  background: linear-gradient(140deg, #ffffff, #eaf0f6);
  box-shadow: inset 0 1px 0 white, 0 6px 0 -3px #d0dce7, var(--shadow);
  overflow: hidden;
  text-align: center;
}
.trust-heading { padding: 0 25px; }
.trust-heading h2 { font-size: clamp(1.7rem, 2.5vw, 2.5rem); margin-bottom: 13px; }
.trust-heading h3 { font-size: clamp(1rem, 1.5vw, 1.2rem); margin: 0 0 12px; font-weight: 700; }
.trust-heading p { color: var(--text); font-size: 14px; margin-bottom: 24px; }
.trust-marquee { overflow: hidden; padding: 8px 0 18px; }
.trust-marquee:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.trust-track { display: flex; width: max-content; animation: trust-scroll 35s linear infinite; }
.trust-logo-group { display: flex; gap: 18px; margin: 0; padding: 0 18px 0 0; list-style: none; }
.trust-logo-card { flex: 0 0 auto; width: 172px; height: 128px; display: grid; place-items: center; padding: 16px; background: #fff; border: 1px solid #dae2e9; border-radius: 16px; box-shadow: 0 5px 0 -2px #d3dee8, 0 12px 22px -17px #182f4c55; }
/* Native-resolution logo windows exclude the screenshot borders.
   Individual aspect ratios prevent stretching; optical sizes balance tall and wide marks. */
.trust-logo { display: block; width: min(136px, calc(90px * var(--ratio))); aspect-ratio: var(--ratio); background-image: url('assets/trust-logos.webp'); background-repeat: no-repeat; mix-blend-mode: multiply; }
.logo-0 { --ratio: 220 / 224; background-size: 985% 324.10714285714283%; background-position: 2.8762198253723676% 48.60557768924303%; }
.logo-1 { --ratio: 210 / 233; background-size: 1031.904761904762% 311.587982832618%; background-position: 18.08891159938682% 47.66734279918864%; }
.logo-2 { --ratio: 262 / 192; background-size: 827.0992366412214% 378.125%; background-position: 33.38582677165354% 47.752808988764045%; }
.logo-3 { --ratio: 271 / 109; background-size: 799.6309963099632% 666.0550458715596%; background-position: 49.57805907172996% 47.64991896272285%; }
.logo-4 { --ratio: 267 / 83; background-size: 811.6104868913858% 874.698795180723%; background-position: 65.73684210526316% 47.744945567651634%; }
.logo-5 { --ratio: 264 / 143; background-size: 820.8333333333334% 507.6923076923077%; background-position: 82.23857067787704% 46.65523156089194%; }
.logo-6 { --ratio: 253 / 118; background-size: 856.5217391304348% 615.2542372881355%; background-position: 97.80564263322884% 48.51973684210527%; }
/* Additional supplied manufacturer logos; retain the original artwork. */
.logo-main { --ratio: 464 / 218; background-image: url('assets/main-heating.webp'); background-size: 165.517241% 314.220183%; background-position: 50% 50.321199%; }
.trust-logo-image { display: block; width: 136px; max-width: 100%; height: 90px; object-fit: contain; }
@media (max-width:650px) { .trust-logo-image { width: 100%; height: 44px; } }
.trust-section:hover .trust-track, .trust-section:focus-within .trust-track { animation-play-state: paused; }
@keyframes trust-scroll { to { transform: translateX(-50%); } }
@media (max-width:650px) {
  .trust-section { padding: 22px 0 8px; margin: 22px 4% 0; border-radius: 18px; }
  .trust-heading { padding-inline: 16px; }
  .trust-heading h2 { font-size: 1.4rem; line-height: 1.25; margin-bottom: 10px; }
  .trust-heading h3 { font-size: .85rem; line-height: 1.5; margin-bottom: 8px; }
  .trust-heading p { font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
  .trust-logo-group { gap: 8px; padding-right: 8px; }
  /* Four card slots keep at least three complete logos visible during motion. */
  .trust-logo-card { width: calc((92vw - 34px) / 4); height: 70px; padding: 7px; border-radius: 10px; }
  .trust-logo { width: min(100%, calc(44px * var(--ratio))); }
  .trust-track { animation-duration: 28s; }
}
@media (prefers-reduced-motion:reduce) {
  .trust-track { animation: none; width: auto; }
  .trust-logo-group { flex-wrap: wrap; justify-content: center; padding: 0 8px; }
  .trust-logo-group[aria-hidden="true"] { display: none; }
}

/* 15. LOCATION MAP AND FOOTER SOCIALS */
.location-section { margin: 40px 4%; padding: 28px; background: linear-gradient(140deg, #fff, #eaf0f6); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.location-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.location-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .17em; margin-bottom: 8px; }
.location-heading h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 10px; }
.location-heading p:last-child { margin: 0; }
.map-directions { display: inline-flex; align-items: center; gap: 18px; padding: 14px 20px; background: var(--dark); color: white; border-radius: 12px; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.map-directions:hover { background: #34475d; }
.location-map { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #e6e9ed; }
.location-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { width: 88px; height: 88px; object-fit: contain; background: white; border-radius: 14px; padding: 4px; }
.footer-brand .footer-wordmark { color: white; font-size: 20px; letter-spacing: .03em; }
.footer-wordmark > span { margin-top: 5px; }
.footer-socials { display: flex; gap: 12px; }
.social-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff35; border-radius: 50%; background: #ffffff0d; color: white; }
.social-icon svg { width: 20px; height: 20px; }
.social-icon:focus-visible, .map-directions:focus-visible { outline: 3px solid #ff8b52; outline-offset: 4px; }
@media(max-width:650px) {
  .location-section { margin: 26px 4%; padding: 18px; border-radius: 18px; }
  .location-heading { flex-direction: column; align-items: flex-start; gap: 18px; }
  .location-heading p:last-child { font-size: 13px; }
  .location-map iframe { height: 300px; }
  footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 8px; padding: 18px 4%; text-align: left; }
  .footer-brand { min-width: 0; gap: 9px; }
  .footer-brand img { width: 46px; height: 46px; padding: 2px; border-radius: 8px; }
  .footer-brand .footer-wordmark { font-size: 13px; }
  .footer-wordmark > span { font-size: 8px; margin-top: 3px; }
  .footer-socials { gap: 4px; justify-content: flex-end; }
  .social-icon { width: 36px; height: 40px; border-radius: 10px; }
  .social-icon svg { width: 16px; height: 16px; }
  footer > a:last-child { grid-column: 1 / -1; justify-self: center; font-size: 11px; padding: 4px 12px; }
  .location-map { width: 100%; min-width: 0; border-radius: 12px; }
  .location-map iframe { width: 100%; min-width: 0; height: 280px; }
  .map-directions { width: 100%; justify-content: space-between; padding: 12px 14px; }
}

.map-help { margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: var(--text); }
.map-help a, .map-reload { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.map-reload { border: 0; padding: 0; background: none; font: inherit; cursor: pointer; }
