/* Solihull Heating. Colours and fonts from the Wix site: brand red, greys, near-black. */
/* Headings: Nunito Sans Light, the nearest free match to the Avenir LT 35 Light the Wix
   site used (Avenir is licensed and can't be copied). Body text: Questrial, as on Wix. */
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-latin-300.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Questrial";
  src: url("/fonts/questrial-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --red: #c4121a;
  --red-dark: #9e0e15;
  --ink: #1d1d1d;
  --text: #333;
  --muted: #5f5f5f;
  --grey: #f1f1f1;
  --line: #dcdcdc;
  --dark: #161616;
  --white: #fff;
  --head: "Nunito Sans", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --body: "Questrial", "Segoe UI", Arial, sans-serif;
  --wrap: 1140px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--white); color: var(--text); font: 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
svg { width: 1em; height: 1em; flex: none; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--head); font-weight: 300; color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 10; background: var(--white); padding: .5rem 1rem; }
.skip:focus { left: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.4em; border: 2px solid transparent;
  border-radius: var(--radius); font: 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: var(--grey); color: var(--red-dark); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }

/* Header */
.site-header { background: var(--white); }
.head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 18px; padding-bottom: 18px; }
.brand { flex: 0 1 600px; min-width: 0; }
.brand img { width: 100%; max-width: 600px; }
.head-call { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex-shrink: 0; }
.head-call .btn { font-size: 1.15rem; }
.head-mobiles { display: flex; gap: 1rem; font-size: .9rem; }
.head-mobiles a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.head-mobiles a:hover { color: var(--red); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; flex-shrink: 0; }
.menu-btn svg { width: 30px; height: 30px; }
/* The Wix menu: a light grey bar, grey capitals, and the open page's tab solid red,
   running straight into the section below (no line between). */
.nav { background: #e6e6e6; }
.nav .wrap { display: flex; }
.nav a { color: #4a4a4a; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-family: var(--body); font-size: 1.05rem; padding: 1rem 1.4rem; }
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { background: var(--red); color: var(--white); }

@media (max-width: 980px) {
  .head-mobiles { flex-direction: column; align-items: flex-end; gap: 0; }
  .nav a { padding: 1rem 1rem; font-size: 1rem; }
}

@media (max-width: 760px) {
  .head { padding-top: 12px; padding-bottom: 12px; }
  .brand { flex-basis: 300px; }
  .head-call { display: none; }
  .menu-btn { display: block; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav .wrap { flex-direction: column; padding: 0; }
  .nav a { padding: .85rem 16px; border-top: 1px solid #d6d6d6; }
}

/* Home hero */
.hero { background: linear-gradient(90deg, rgb(196 18 26 / .15) 0%, rgb(170 12 20 / .92) 48%, rgb(170 12 20 / .96) 100%), var(--red) url("/img/hero-bg.webp") center / cover; color: var(--white); padding: 56px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.hero-img { margin: 0 auto; width: 100%; max-width: 440px; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: .1em; }
.hero-sub { font-family: var(--head); font-weight: 300; font-size: 1.35rem; margin-bottom: 1rem; }
.hero-phones { list-style: none; margin: 0 0 1.2rem; padding: 0; font-family: var(--head); font-weight: 300; font-size: 1.25rem; }
.hero a { color: var(--white); }
.hero .btn-white { color: var(--red); margin-top: .5rem; }
@media (max-width: 760px) {
  .hero { padding: 36px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-img { max-width: 300px; }
}

/* Lists with ticks */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 1.7em; margin-bottom: .35em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.05em; height: 1.05em; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticks.cols { columns: 2 220px; column-gap: 2rem; }
.ticks.cols li { break-inside: avoid; }

/* Testimonials */
.testimonials { background: var(--grey); padding: 64px 0; }
.testimonials h2 { text-align: center; }
.quote { color: var(--red); font-size: 1.5em; line-height: 0; vertical-align: -.2em; margin-right: .1em; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 1.5rem; }
.review { margin: 0; background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.review blockquote { margin: .6rem 0 1rem; flex: 1; }
.review figcaption { font-family: var(--body); color: var(--ink); }
.review figcaption span { display: block; font-family: var(--body); font-size: .85rem; color: var(--muted); }
.stars { display: flex; gap: 2px; color: #f4b400; }
.stars svg { width: 1.1rem; height: 1.1rem; }
.review-more { text-align: center; margin: 1.5rem 0 0; }

/* The three service panels */
.trio { padding: 64px 0; }
.trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trio article { border-top: 4px solid var(--red); background: var(--white); box-shadow: 0 2px 14px rgb(0 0 0 / .08); padding: 28px 24px 16px; }
.trio article > img { width: 72px; margin-bottom: 1rem; }
.trio h2 { font-size: 1.5rem; }
.trio h2 a { color: var(--ink); text-decoration: none; }
.trio h2 a:hover { color: var(--red); }
@media (max-width: 900px) { .trio-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* Accreditation logos */
.brands { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; overflow: hidden; }
/* The logos scroll across on a loop, as on Wix: the set is in the track twice, and the
   track moves left by exactly one set. Paused on hover, and still for reduced motion. */
.brands-track { display: flex; width: max-content; animation: brands-scroll 30s linear infinite; }
.brands:hover .brands-track { animation-play-state: paused; }
.brands-set { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.brands-set img { height: 80px; width: auto; max-width: none; }
@keyframes brands-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; width: auto; justify-content: center; }
  .brands-set { flex-wrap: wrap; justify-content: center; gap: 24px 56px; padding: 0 16px; }
  .brands-set[aria-hidden], .brand-repeat { display: none; }
}

/* Areas */
.areas { background: var(--dark); color: #ddd; padding: 56px 0; }
.areas h2 { color: var(--white); }
.areas a { color: var(--white); }
.areas-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .4rem 1.5rem; }
.area-list li { padding-left: 1rem; border-left: 3px solid var(--red); }
.area-list.inline { margin-bottom: 1.5rem; }
@media (max-width: 760px) { .areas-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Inner pages */
.page { padding: 48px 0 56px; }
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; margin-bottom: .4em; }
.prose > :first-child { margin-top: 0; }
.lede { font-size: 1.15rem; color: var(--ink); }
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.split > img { border-radius: var(--radius); }
.badges { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 1rem; }
.pair { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; margin: 1.5rem 0; }
.pair img { max-height: 180px; width: auto; }
.photo { margin: 2rem 0; }
.photo img { border-radius: var(--radius); width: 100%; }
.callout { display: flex; gap: 24px; align-items: center; background: var(--grey); border-left: 4px solid var(--red); padding: 20px 24px; margin: 2rem 0; }
.callout img { width: 110px; }
.callout h2 { margin: 0 0 .4em; font-size: 1.35rem; }
.callout p { margin: 0; }
.flag { background: #fff3cd; padding: 0 .3em; }
.table-scroll { overflow-x: auto; margin-bottom: 1em; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
th { font-family: var(--body); font-weight: 400; color: var(--ink); }
@media (max-width: 760px) {
  .page { padding: 32px 0 40px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split > img { max-width: 360px; }
  .callout { flex-direction: column; align-items: flex-start; }
}

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-phones { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-phones a { display: flex; align-items: center; gap: .6rem; font-family: var(--body); font-size: 1.3rem; color: var(--ink); text-decoration: none; padding: .3rem 0; }
.contact-phones a:hover { color: var(--red); }
.contact-phones svg { color: var(--red); width: 1.3rem; height: 1.3rem; }
.contact-phones span { color: var(--muted); font-size: 1rem; min-width: 3.6em; }
.enquiry { background: var(--grey); padding: 28px; border-radius: var(--radius); border-top: 4px solid var(--red); }
.enquiry h2 { margin-top: 0; }
.field { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .3rem; }
.field label { font-family: var(--body); color: var(--ink); }
.field label span { font-family: var(--body); color: var(--muted); font-size: .85rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--white); border: 1px solid #bbb; border-radius: var(--radius);
  padding: .6rem .7rem; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); outline: 2px solid rgb(196 18 26 / .25); outline-offset: 0; }
textarea { resize: vertical; }
.h-captcha { margin: .5rem 0 1rem; min-height: 78px; }
.form-status { margin: 1rem 0 0; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #1d6b2f; background: #e7f4ea; padding: .7rem 1rem; border-radius: var(--radius); }
.form-status.is-error { color: #8a1016; background: #fbe9ea; padding: .7rem 1rem; border-radius: var(--radius); }
.enquiry.sent .field, .enquiry.sent .field-row, .enquiry.sent .h-captcha, .enquiry.sent [type=submit] { display: none; }
.form-note { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .enquiry { padding: 20px 16px; }
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Call to action band */
.cta { background: var(--red); color: var(--white); padding: 40px 0; }
.cta h2 { color: var(--white); }
.cta a { color: var(--white); }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-inner p { margin: 0; }
.cta-phones { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-phones a { display: block; background: var(--white); color: var(--red); text-decoration: none; font-family: var(--body); font-size: 1.1rem; padding: .6rem 1rem; border-radius: var(--radius); }
.cta-phones a:hover { background: var(--grey); color: var(--red-dark); }
.cta-phones span { color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { background: var(--dark); color: #ccc; font-size: .95rem; padding-top: 40px; }
.site-footer a { color: #eee; }
.site-footer a:hover { color: var(--white); }
.foot { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-mark { width: 72px; }
.foot-col { display: flex; gap: .7rem; }
.foot-col ul, .foot-links { list-style: none; margin: 0; padding: 0; }
.foot-col li, .foot-links li { margin-bottom: .3rem; }
.foot-icon { width: 1.3rem; height: 1.3rem; color: var(--red); margin-top: .15rem; }
.foot-links a { display: inline-flex; align-items: center; gap: .4rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; border-top: 1px solid #333; margin-top: 32px; padding-top: 16px; padding-bottom: 20px; font-size: .85rem; color: #999; }
.foot-base a { color: #bbb; }
.cookie-settings { background: none; border: 0; padding: 0; font: inherit; color: #bbb; text-decoration: underline; cursor: pointer; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } .foot-mark { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

/* Cookie banner (only when GA4_ID is set) */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 680px; margin: 0 auto;
  background: var(--white); color: var(--text); border-radius: var(--radius); box-shadow: 0 6px 30px rgb(0 0 0 / .25);
  padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: .95rem;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 300px; }
.consent-actions { display: flex; gap: 10px; }
