/* Springborn Heating & Air Conditioning - static rebuild of the Wix site.
   Measurements are taken from the live site at a 1280px viewport
   (980px content column, left edge at 150px). */

@font-face {
  font-family: "Acier BAT Display";
  src: url("fonts/acier-bat-display-solid.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Centrale Sans";
  src: url("fonts/centrale-sans-bold.woff2") format("woff2");
  font-display: swap;
}

:root {
  --red: #d12233;
  --navy: #293487;
  --black: #000;
  --white: #fff;
  --tint: #f0f1f7;             /* rgba(41,52,135,.07) over white */
  --field: #c7c7c7;
  --display: "Acier BAT Display", "Barlow", Impact, sans-serif;
  --body: "Figtree", "Proxima Nova", Arial, sans-serif;
  --nav: "Barlow", Arial, sans-serif;
  --author: "Centrale Sans", "Figtree", Arial, sans-serif;
  --card-shadow: 0 2px 26px 2px rgba(0, 0, 0, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }
.skip-link:focus { left: 8px; }

.container { width: 980px; max-width: calc(100% - 40px); margin: 0 auto; }

/* ---------- Shared pieces ---------- */
.eyebrow {
  position: relative;
  padding-left: 51px;
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  line-height: 28.8px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 3px;
  margin-top: -2px;
  background: var(--navy);
}
.eyebrow-red { color: var(--red); }
.eyebrow-plain { padding-left: 0; }
.eyebrow-plain::before { display: none; }

h2, .card h3, .why-label, .info-item h3 {
  font-family: var(--display);
  letter-spacing: 0;
  line-height: normal;
}
h2 { font-size: 45px; }
.title-red { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  width: 161px;
  border-radius: 5px;
  border: 1px solid var(--red);
  color: var(--white);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0;
  transition: background-color .2s, border-color .2s;
}
.btn-red { background: var(--red); }
.btn-red:hover { background: var(--navy); }
.btn-navy { background: var(--navy); border-color: var(--navy); }
.btn-navy:hover { background: var(--red); border-color: var(--red); }

/* Section photo backgrounds: photo at reduced opacity over black */
.bg-media { position: absolute; inset: 0; background: var(--black); overflow: hidden; }
.bg-media img { width: 100%; height: 100%; object-fit: cover; }

/* Rounded white corner cut-outs (Wix vector shape, 145x150) */
.corner { position: absolute; width: 145px; height: 150px; fill: var(--white); z-index: 1; }
.corner-tl { top: 0; left: 0; }
.corner-br { right: 0; bottom: 0; transform: rotate(180deg); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 116px;
  padding: 0 81px 0 58px;
  background: var(--white);
}
.brand img { width: 166px; height: 78px; object-fit: cover; }
.main-nav { display: flex; gap: 40px; margin-left: auto; margin-right: 42px; }
.main-nav a {
  font-family: var(--nav);
  font-weight: 600;
  font-size: 16px;
  line-height: 50px;
  letter-spacing: 0;
  color: var(--black);
  transition: color .4s;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.header-cta { width: 156px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 678px; overflow: hidden; }
.hero .bg-media img { opacity: .53; }
.hero-content {
  position: relative;
  z-index: 2;
  padding: 166px 0 0 calc(50% - 567px);
  max-width: calc(50% - 567px + 700px);
  color: var(--white);
}
.hero-content .eyebrow { padding-left: 51px; }
.hero h1 {
  margin-top: 7px;
  font-family: var(--nav);
  font-weight: 600;
  font-size: 65px;
  line-height: 81.5px;
  letter-spacing: 0;
}
.hero-lede { margin-top: 13px; max-width: 620px; font-size: 18px; line-height: 32.4px; }
.hero-actions { display: flex; gap: 23px; margin-top: 24px; }

/* ---------- About ---------- */
.about { height: 629px; }
.about-grid { position: relative; height: 100%; }
.about-copy { position: absolute; left: 0; top: 87px; width: 470px; }
.about-copy h2 { margin-top: 1px; }
.about-copy p:not(.eyebrow) { line-height: 25.6px; }
.about-copy h2 + p { margin-top: 14px; }
.about-copy p + p { margin-top: 25.6px; }
.about-images { position: absolute; left: 545px; top: 86px; width: 485px; height: 457px; }
.about-images img, .about-images .frame { position: absolute; border-radius: 5px; }
.about-images img { object-fit: cover; box-shadow: 0 1px 33px 0 rgba(0, 0, 0, .23); background: var(--white); }
.img-front { left: 0; top: 0; width: 298px; height: 300px; }
.img-back { left: 147px; top: 117px; width: 338px; height: 340px; }
.frame { left: 78px; top: 41px; width: 315px; height: 340px; border: 2px solid var(--red); border-radius: 0 !important; }

/* ---------- What we offer ---------- */
.offer { position: relative; padding: 117px 0 111px; }
.offer-band { position: absolute; left: 0; right: 0; top: 0; height: 519px; overflow: hidden; }
.offer-band .bg-media img { opacity: .33; }
.offer-head { position: relative; z-index: 2; width: 940px; max-width: calc(100% - 40px); margin: 0 auto; text-align: center; color: var(--white); }
.offer-head h2 { max-width: 740px; margin: 6px auto 0; }
.offer-head p:last-child { margin-top: 13px; font-size: 18px; line-height: 32.4px; }
.cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 334px);
  gap: 29px 30px;
  justify-content: center;
  margin-top: 51px;
}
.card {
  height: 475px;
  padding: 14px 13px 0;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 2px 30px 2px rgba(0, 0, 0, .12);
  text-align: center;
}
.card:nth-child(-n+3) { height: 498px; }
.card img { width: 308px; height: 221px; object-fit: cover; border-radius: 17px; }
.card h3 { margin-top: 26px; color: var(--red); font-size: 26px; }
.card p { margin: 8px 5px 0; font-size: 15px; line-height: 22.5px; }

/* ---------- Why choose us ---------- */
.why { height: 680px; background: var(--tint); overflow: hidden; }
.why-grid { position: relative; height: 100%; }
.why-copy { position: absolute; left: 0; top: 54px; width: 560px; }
.why-copy h2 { margin-top: 1px; }
.why-list { margin-top: 24px; display: grid; gap: 15px; }
.why-list li {
  display: flex;
  align-items: center;
  width: 486px;
  height: 118px;
  padding-left: 26px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}
.why-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 1px 33px 0 rgba(0, 0, 0, .14);
}
.why-icon img { width: 55px; height: 55px; }
.why-label { margin-left: 31px; font-size: 32px; line-height: 44.8px; }
.why-label-first { margin-left: 34px; }
.why-photo { position: absolute; left: 533px; bottom: 0; width: 483px; height: 575px; object-fit: cover; }

/* ---------- Testimonials ---------- */
.testi { position: relative; height: 667px; overflow: hidden; }
.testi .bg-media img { opacity: .29; }
.testi-head { position: relative; z-index: 2; padding-top: 95px; text-align: center; color: var(--white); }
.testi-head h2 { margin-top: 6px; }
.slider { position: relative; z-index: 2; width: 980px; max-width: 100%; height: 361px; margin: 11px auto 0; }
.slide { display: flex; justify-content: center; align-items: flex-start; gap: 36px; padding-top: 35px; }
.testi-card {
  width: 429px;
  padding: 33px 27px 40px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}
.quote { width: 64px; height: 53px; fill: var(--navy); }
.testi-card p { margin-top: 11px; font-size: 15px; line-height: 22.5px; }
.testi-card .author { margin-top: 12px; font-family: var(--author); font-size: 18px; line-height: 27px; letter-spacing: 0; }
.slider-arrow {
  position: absolute;
  top: 50%;
  width: 58px;
  height: 58px;
  margin-top: -29px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.slider-arrow svg { width: 100%; height: 100%; fill: var(--red); }
.slider-arrow.prev { left: -31px; }
.slider-arrow.next { right: -31px; transform: scaleX(-1); }
.slider-dot { position: absolute; left: 50%; bottom: -2px; width: 6px; height: 6px; margin-left: -3px; background: var(--red); }

/* ---------- Contact ---------- */
.contact { height: 655px; }
.contact-grid { position: relative; height: 100%; }
.contact-info {
  position: absolute;
  left: 0;
  top: 68px;
  width: 363px;
  height: 506px;
  padding: 36px 36px 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--red) 0%, var(--navy) 100%);
  box-shadow: var(--card-shadow);
  color: var(--white);
}
.info-item + .info-item { margin-top: 32.5px; }
.info-item svg { width: 42px; height: 42px; fill: var(--white); }
.info-item h3 { margin-top: 7px; font-size: 22px; }
.info-item p { margin-top: 5px; line-height: 24px; }
.contact-form-wrap { position: absolute; left: 444px; top: 67px; width: 540px; }
.contact-form-wrap h2 { margin-top: 0; }
.lede { margin-top: 8px; font-size: 15px; line-height: 22.5px; }
.lede strong { font-size: 19px; font-weight: 700; }
.contact-form { margin-top: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { margin-bottom: 25px; }
.field label { display: block; margin-bottom: 12px; font-size: 14px; line-height: 14px; }
.req { color: var(--red); }
.field input, .field textarea {
  display: block;
  width: 100%;
  height: 44px;
  padding: 3px 12px;
  border: 1px solid var(--field);
  border-radius: 5px;
  background: transparent;
  font: 400 14px var(--body);
  color: var(--black);
}
.field textarea { height: 88px; padding-top: 10px; resize: none; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.btn-submit {
  width: 147px;
  height: 42px;
  margin-top: 6px;
  border: 1px solid var(--navy);
  border-radius: 5px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--display);
  font-size: 18px;
  line-height: 25.2px;
  cursor: pointer;
  transition: background-color .4s, border-color .4s;
}
.btn-submit:hover { background: rgba(41, 52, 135, .67); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Map ---------- */
.map-embed { height: 417px; background: #111; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-pin { background: none; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  height: 253px;
  padding-top: 35px;
  background: var(--white);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .7);
  text-align: center;
}
.site-footer img { width: 286px; height: 135px; margin: 0 auto; object-fit: cover; }
.site-footer hr { width: 1102px; max-width: calc(100% - 40px); margin: 24px auto 0; border: 0; border-top: 1px solid var(--navy); }
.site-footer p { margin-top: 13px; font-size: 14px; line-height: 25.2px; }

/* ---------- Tablet / narrow desktop ---------- */
@media (max-width: 1100px) {
  .site-header { padding: 0 24px; }
  .main-nav { gap: 24px; margin-right: 24px; }
  .hero-content { padding-left: 40px; max-width: 740px; }
  .cards { grid-template-columns: repeat(2, 334px); }
  .card, .card:nth-child(-n+3) { height: auto; padding-bottom: 40px; }
  .slider-arrow.prev { left: 0; }
  .slider-arrow.next { right: 0; }
  .slide { padding-left: 60px; padding-right: 60px; }
}

/* ---------- Mobile (mirrors the Wix mobile layout) ---------- */
@media (max-width: 760px) {
  .site-header { height: 76px; padding: 0 20px 0 14px; justify-content: space-between; }
  .brand img { width: 120px; height: 57px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: block;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .nav-toggle svg { fill: none; stroke: var(--navy); stroke-width: 1.6; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 20px 20px;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
  }
  .main-nav.open { display: flex; }

  h2 { font-size: 26px; }
  .container { max-width: calc(100% - 40px); }

  .hero { height: auto; padding: 48px 20px 60px; }
  .hero-content { padding: 0; max-width: none; }
  .hero h1 { font-size: 34px; line-height: 1.2; }
  .hero-lede { font-size: 14px; line-height: 26px; }
  .hero-actions .btn { flex: 1; width: auto; }
  .corner { width: 60px; height: 62px; }

  .about { height: auto; padding: 40px 0 50px; }
  .about-copy, .about-images { position: relative; left: auto; top: auto; width: 100%; }
  .about-copy p:not(.eyebrow) { font-size: 14px; line-height: 24px; }
  .about-copy p + p { margin-top: 24px; }
  .about-images { height: 320px; margin-top: 40px; }
  .img-back { left: 0; top: 10px; width: 62%; height: 210px; z-index: 1; }
  .img-front { left: auto; right: 0; top: 70px; width: 55%; height: 210px; z-index: 2; }
  .frame { left: 20%; top: 0; width: 60%; height: 250px; z-index: 0; }

  .offer { padding: 50px 0 30px; }
  .offer-band { height: 360px; }
  .offer-head p:last-child { font-size: 14px; line-height: 26px; }
  .cards { grid-template-columns: minmax(0, 334px); gap: 20px; margin-top: 30px; padding: 0 20px; }
  .card img { width: 100%; height: auto; aspect-ratio: 308 / 221; }

  .why { height: auto; padding: 40px 0 0; }
  .why-copy, .why-photo { position: relative; left: auto; top: auto; width: 100%; }
  .why-list li { width: 100%; height: 84px; padding-left: 12px; }
  .why-icon { width: 64px; height: 64px; }
  .why-icon img { width: 40px; height: 40px; }
  .why-label, .why-label-first { margin-left: 16px; font-size: 20px; }
  .why-photo { width: 80%; height: auto; margin: 20px auto 0; }

  .testi { height: auto; padding-bottom: 70px; }
  .testi-head { padding-top: 60px; }
  .slider { height: auto; padding: 0 30px 30px; }
  .slide { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 0 0; }
  .testi-card { width: 100%; }
  .slider-arrow { width: 34px; height: 34px; margin-top: -17px; }
  .slider-arrow.prev { left: -4px; }
  .slider-arrow.next { right: -4px; }

  .contact { height: auto; padding: 24px 0 40px; }
  .contact-info, .contact-form-wrap { position: relative; left: auto; top: auto; width: 100%; }
  .contact-info { height: auto; padding: 24px 20px 30px; }
  .contact-form-wrap { margin-top: 30px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }

  .site-footer { height: auto; padding-bottom: 20px; }
  .site-footer img { width: 200px; height: 94px; }
}

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