:root {
  --ink: #16202a;
  --muted: #5f6a76;
  --line: #d9e3ea;
  --paper: #ffffff;
  --cloud: #f4f8fa;
  --navy: #12304a;
  --navy-dark: #0a1e31;
  --red: #c7352d;
  --red-dark: #98251f;
  --blue: #1f75a8;
  --gold: #f2b84b;
  --shadow: 0 22px 60px rgba(18, 48, 74, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.55;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(217, 227, 234, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}
.site-header.is-scrolled { box-shadow: 0 14px 36px rgba(18, 48, 74, 0.1); }
.brand, .site-nav, .hero-actions, .hero-stats, .quick-contact, .site-footer { display: flex; align-items: center; }
.brand-logo { width: auto; height: 62px; max-width: min(42vw, 220px); object-fit: contain; }
.site-nav { justify-content: center; gap: clamp(14px, 2.6vw, 30px); color: var(--muted); font-size: 14px; font-weight: 800; }
.site-nav a:hover { color: var(--red); }
.header-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 8px; font-weight: 800; }
.header-cta { padding: 0 18px; color: #fff; background: var(--navy); font-size: 14px; }
.button { width: fit-content; padding: 0 22px; border: 1px solid transparent; cursor: pointer; }
.button.primary { color: #fff; background: var(--red); }
.button.primary:hover, .header-cta:hover { background: var(--red-dark); }
.button.secondary { color: var(--navy); background: #fff; border-color: var(--line); }
.nav-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(380px, 0.68fr) minmax(620px, 1.32fr);
  min-height: calc(100vh - 82px);
  background: linear-gradient(110deg, #f7fbfd 0%, #f7fbfd 45%, #e8f1f5 45%, #e8f1f5 100%);
  overflow: hidden;
}
.hero-copy { align-self: center; padding: clamp(44px, 6vw, 82px) clamp(20px, 5vw, 72px); }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Source Serif 4", Georgia, serif; letter-spacing: 0; }
h1 { max-width: 720px; margin-bottom: 22px; color: var(--navy-dark); font-size: clamp(42px, 5.6vw, 78px); line-height: 0.92; }
h2 { margin-bottom: 18px; color: var(--navy-dark); font-size: clamp(32px, 4vw, 56px); line-height: 1; }
h3 { margin-bottom: 10px; font-size: 21px; line-height: 1.2; }
.hero-text { max-width: 650px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.hero-actions { flex-wrap: wrap; gap: 12px; margin: 34px 0; }
.hero-stats { flex-wrap: wrap; gap: 16px; margin: 0; }
.hero-stats div { min-width: 138px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.72); }
.hero-stats dt { color: var(--navy); font-size: 28px; font-weight: 800; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.hero-media { position: relative; min-height: 560px; }
.hero-media img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; object-position: right center; }
.hero-media::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,49,.24), transparent 32%); content: ""; pointer-events: none; }
.service-badge { position: absolute; z-index: 1; right: clamp(18px,4vw,54px); bottom: clamp(18px,4vw,54px); display: grid; gap: 4px; max-width: 330px; padding: 18px; border-radius: 8px; color: #fff; background: rgba(10,30,49,.9); box-shadow: var(--shadow); }
.service-badge strong { font-size: 20px; }
.service-badge span { color: #dbe8f0; font-size: 14px; }

.quick-contact { justify-content: center; gap: 1px; padding: 0 clamp(18px,4vw,58px); background: var(--navy-dark); }
.quick-contact a { display: grid; gap: 3px; width: min(100%,330px); min-height: 96px; padding: 22px 24px; color: #fff; background: rgba(255,255,255,.06); }
.quick-contact span, .contact-cards span { color: #a8c1d4; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.quick-contact strong, .contact-cards strong { overflow-wrap: anywhere; }
.credential-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; padding: clamp(18px,3vw,32px) clamp(18px,4vw,58px); border-bottom: 1px solid var(--line); background: #fff; }
.credential-strip .logo-credential { display: grid; gap: 4px; min-height: 112px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy-dark); background: #fff; box-shadow: 0 14px 34px rgba(18,48,74,.08); }
.credential-strip span { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.credential-strip strong { font-size: 17px; line-height: 1.25; }
.logo-carousel { grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; }
.logo-carousel-frame { overflow: hidden; }
.logo-strip { display: flex; align-items: center; gap: 16px; transition: transform .32s ease; will-change: transform; }
.logo-strip .logo-credential { flex: 0 0 calc((100% - 48px) / 4); place-items: center; min-height: 140px; }
.logo-strip img { max-width: 150px; max-height: 104px; }
.logo-strip .brand-credential img { max-width: 190px; max-height: 112px; }
.logo-strip .bryant-credential img { max-width: 150px; max-height: 65px; }
.logo-strip .wide-credential { grid-template-columns: 1fr; }
.logo-arrow { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 999px; color: #fff; background: var(--navy); box-shadow: 0 14px 26px rgba(18,48,74,.14); font-size: 34px; line-height: 1; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.logo-arrow:hover { background: var(--red); transform: translateY(-1px); }
.logo-arrow:focus-visible { outline: 3px solid rgba(31,117,168,.24); outline-offset: 3px; }
.award-credential { grid-template-columns: 82px minmax(0,1fr); column-gap: 16px; align-items: center; }
.award-credential img { grid-row: span 2; width: 82px; height: 82px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.22)); }
.logo-credential img { padding: 8px; border-radius: 8px; background: rgba(255,255,255,.94); }
.wide-credential { grid-template-columns: 108px minmax(0,1fr); }
.wide-credential img { width: 108px; height: 64px; }
.section, .contact-section { padding: clamp(72px,9vw,128px) clamp(20px,5vw,72px); }
#services { background: radial-gradient(circle at right top, rgba(31,117,168,.13), transparent 42%), #fbfdfe; }
.section-heading { max-width: 860px; margin-bottom: 38px; }
.section-heading.compact { max-width: 680px; }
.section-heading p, .career-copy p, .contact-copy p { color: var(--muted); font-size: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(24px,4vw,40px); }
.service-card, .review-card, .lead-form { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.service-card { position: relative; display: grid; place-items: center; gap: 18px; min-height: clamp(250px,25vw,340px); padding: clamp(34px,5vw,58px); border: 3px solid #d9f2fb; overflow: hidden; text-align: center; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.service-card::before { position: absolute; inset: 0; background: linear-gradient(rgba(10,30,49,.72),rgba(10,30,49,.72)), url("assets/just-right-hero.png") center / cover; opacity: 0; transition: opacity .22s ease; content: ""; }
.service-card-cooling::before { background-image: linear-gradient(rgba(10,30,49,.62),rgba(10,30,49,.62)), url("assets/air-conditioning-service.jpg"); background-position: center; }
.service-card-heating::before { background-image: linear-gradient(rgba(10,30,49,.62),rgba(10,30,49,.62)), url("assets/heating-service.jpg"); background-position: center; }
.service-card-gas::before { background-image: linear-gradient(rgba(10,30,49,.62),rgba(10,30,49,.62)), url("assets/gas-plumbing-service.jpg"); background-position: center; }
.service-card-electrical::before { background-image: linear-gradient(rgba(10,30,49,.62),rgba(10,30,49,.62)), url("assets/electrical-service-van.png"); background-position: center; }
.service-card > * { position: relative; z-index: 1; }
.service-card h3 { margin: 0; color: var(--navy-dark); font-size: clamp(33px,4vw,54px); line-height: 1; transition: color .22s ease; }
.service-card p, .review-card p { color: var(--muted); }
.service-card p { max-width: 390px; margin: 0; font-size: 16px; transition: opacity .22s ease, transform .22s ease; }
.service-icon { position: relative; display: grid; place-items: center; width: 76px; height: 76px; color: #1f75e8; font-size: 54px; font-weight: 800; line-height: 1; transition: color .22s ease, opacity .22s ease; }
.service-icon-image img { width: 64px; height: 64px; object-fit: contain; transition: filter .22s ease, opacity .22s ease; }
.service-icon-flame, .service-icon-drop { color: transparent; }
.service-icon-flame::before { width: 50px; height: 62px; border-radius: 58% 42% 55% 45% / 62% 42% 58% 38%; background: linear-gradient(145deg,#72c1ff,#1767e6); transform: rotate(-18deg); content: ""; }
.service-icon-flame::after { position: absolute; bottom: 12px; width: 26px; height: 34px; border-radius: 54% 46% 57% 43% / 62% 42% 58% 38%; background: #0f55d8; transform: rotate(-22deg); content: ""; }
.service-icon-drop::before, .service-icon-drop::after { content: ""; }
.service-icon-drop::before { width: 42px; height: 58px; border-radius: 58% 42% 55% 45% / 62% 42% 58% 38%; background: #5eb4f5; transform: rotate(28deg) translate(-12px,0); }
.service-icon-drop::after { position: absolute; width: 48px; height: 62px; border-radius: 58% 42% 55% 45% / 62% 42% 58% 38%; background: #1767e6; transform: rotate(-18deg) translate(9px,6px); }
.service-icon-bolt { color: #2381e6; font-size: 70px; font-style: italic; }
.service-learn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 8px; color: #fff; background: #248cf0; font-size: 18px; font-weight: 800; opacity: 0; transform: translateY(10px); transition: opacity .22s ease, transform .22s ease, background .22s ease; }
.service-learn:hover { background: #0f6fce; }
.service-card:hover, .service-card:focus-within { border-color: rgba(255,255,255,.45); box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card:hover::before, .service-card:focus-within::before { opacity: 1; }
.service-card:hover h3, .service-card:focus-within h3 { color: #fff; }
.service-card:hover p, .service-card:focus-within p { opacity: 0; transform: translateY(-6px); }
.service-card:hover .service-icon, .service-card:focus-within .service-icon { color: #fff; opacity: .95; }
.service-card:hover .service-icon-flame::before, .service-card:focus-within .service-icon-flame::before,
.service-card:hover .service-icon-flame::after, .service-card:focus-within .service-icon-flame::after,
.service-card:hover .service-icon-drop::before, .service-card:focus-within .service-icon-drop::before,
.service-card:hover .service-icon-drop::after, .service-card:focus-within .service-icon-drop::after { background: #fff; }
.service-card:hover .service-icon-image img, .service-card:focus-within .service-icon-image img { filter: brightness(0) invert(1); }
.service-card:hover .service-learn, .service-card:focus-within .service-learn { opacity: 1; transform: translateY(0); }
.feature-band { display: grid; grid-template-columns: minmax(0,.78fr) minmax(300px,1fr); gap: clamp(28px,5vw,72px); align-items: center; padding: clamp(62px,8vw,104px) clamp(20px,5vw,72px); color: #fff; background: var(--navy-dark); }
.feature-band h2 { color: #fff; }
.feature-band .eyebrow { color: #f6d38a; }
.feature-list { display: grid; gap: 14px; }
.feature-list article { display: grid; gap: 5px; padding: 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.07); }
.feature-list span { color: #d5e4ef; }
.review-marquee { position: relative; overflow: hidden; padding-block: 4px 22px; }
.review-marquee::before, .review-marquee::after { position: absolute; top: 0; bottom: 0; z-index: 1; width: clamp(38px,8vw,120px); content: ""; pointer-events: none; }
.review-marquee::before { left: 0; background: linear-gradient(90deg,#fff,rgba(255,255,255,0)); }
.review-marquee::after { right: 0; background: linear-gradient(270deg,#fff,rgba(255,255,255,0)); }
.review-track { display: flex; gap: 18px; width: max-content; animation: review-scroll 28s linear infinite; }
.review-marquee:hover .review-track { animation-play-state: paused; }
.review-card { display: flex; flex: 0 0 clamp(280px,31vw,420px); flex-direction: column; min-height: 240px; padding: 28px; color: #fff; background: linear-gradient(145deg,var(--red),#7c201d); box-shadow: var(--shadow); }
.review-card p { color: #ffe8e6; }
.featured-review { color: #fff; background: linear-gradient(145deg,var(--red),#7c201d); box-shadow: var(--shadow); }
.featured-review p { color: #ffe8e6; }
.stars { margin-bottom: 18px; color: var(--gold); letter-spacing: .08em; }
.review-card strong { margin-top: auto; }
@keyframes review-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}
.career-section, .contact-section { display: grid; grid-template-columns: minmax(280px,.9fr) minmax(320px,.78fr); gap: clamp(30px,6vw,90px); align-items: start; }
.career-section { background: #fff; }
.career-copy { position: sticky; top: 112px; }
.contact-section { background: linear-gradient(rgba(244,248,250,.94),rgba(244,248,250,.94)), linear-gradient(120deg,rgba(199,53,45,.12),rgba(31,117,168,.14)); }
.contact-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 34px; }
.contact-cards a { display: grid; gap: 6px; min-height: 112px; padding: 18px; border-radius: 8px; color: #fff; background: var(--navy); }
.lead-form { display: grid; gap: 18px; padding: clamp(22px,4vw,34px); box-shadow: var(--shadow); }
label { display: grid; gap: 7px; color: var(--navy-dark); font-size: 14px; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px; color: var(--ink); background: #fff; font: inherit; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(31,117,168,.16); }
.file-label input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.file-label span { display: flex; align-items: center; min-height: 54px; padding: 13px 14px; border: 1px dashed var(--blue); border-radius: 8px; color: var(--muted); background: #f8fbfd; font-weight: 700; cursor: pointer; }
.form-button { width: 100%; border: 0; }
.form-status { min-height: 24px; margin: 0; color: var(--red-dark); font-weight: 800; }
.site-footer { display: block; color: #eaf4fb; background: linear-gradient(135deg,#0a365b,#071f38); }
.footer-main { display: grid; grid-template-columns: minmax(240px,1fr) minmax(190px,.65fr) minmax(250px,.9fr); gap: clamp(22px,4vw,46px); padding: clamp(26px,4vw,42px) clamp(20px,5vw,72px); }
.footer-brand img { width: min(174px,58vw); height: auto; margin-bottom: 14px; padding: 8px; border-radius: 8px; background: #fff; }
.footer-brand p { max-width: 500px; margin-bottom: 14px; color: #d7e7f2; font-size: 14px; line-height: 1.55; }
.bbb-profile-link { display: block; width: min(138px, 40vw); transition: transform .18s ease, filter .18s ease; }
.bbb-profile-link:hover { transform: translateY(-2px); filter: drop-shadow(0 18px 26px rgba(0,0,0,.22)); }
.bbb-profile-link img { width: 100%; height: auto; margin: 0; padding: 0; background: transparent; }
.footer-column h2 { margin-bottom: 16px; color: #fff; font-family: "Manrope", Arial, sans-serif; font-size: clamp(21px,2.2vw,28px); line-height: 1; }
.footer-column ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-column li { color: #f3f8fc; font-size: 15px; font-weight: 800; }
.footer-column li::before { margin-right: 9px; color: #79c7f2; content: "✓"; }
.footer-contact li { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 10px; align-items: baseline; }
.footer-contact li::before { content: ""; display: none; }
.footer-contact span { color: #79c7f2; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.footer-contact a { color: #fff; overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 14px clamp(20px,5vw,72px); border-top: 1px solid rgba(255,255,255,.16); color: #dce8f0; font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-managed { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.managed-by { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; white-space: nowrap; }
.managed-by span { color: #dce8f0; font-weight: 800; }
.site-footer a { color: #fff; font-weight: 800; }
@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; min-height: 440px; }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-band, .career-section, .contact-section { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: minmax(220px,1fr) minmax(170px,.7fr) minmax(220px,.9fr); gap: 24px; }
  .career-copy { position: static; }
}
@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; gap: 14px; }
  .brand-logo { height: 56px; max-width: 58vw; }
  .nav-toggle { display: grid; gap: 5px; width: 42px; height: 42px; place-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .nav-toggle span { width: 18px; height: 2px; background: var(--ink); }
  .site-nav { position: fixed; inset: 82px 14px auto; display: none; flex-direction: column; align-items: stretch; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 4px; }
  .header-cta { display: none; }
  .hero-copy { padding-block: 34px 46px; }
  .hero-media { min-height: 310px; }
  h1 { font-size: clamp(39px,12vw,58px); }
  .hero-text { font-size: 17px; }
  .hero-actions, .button { width: 100%; }
  .hero-actions .button { width: 100%; }
  .hero-stats { display: none; }
  .service-badge { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .quick-contact { display: grid; padding: 0; }
  .quick-contact a { width: 100%; min-height: 82px; }
  .credential-strip { grid-template-columns: 1fr; padding: 0; }
  .credential-strip .logo-credential { min-height: 82px; }
  .logo-carousel { grid-template-columns: auto minmax(0,1fr) auto; padding: 16px; }
  .logo-strip .logo-credential { flex-basis: calc((100% - 16px) / 2); min-height: 118px; }
  .logo-strip img { max-width: 140px; max-height: 96px; }
  .logo-arrow { width: 40px; height: 40px; font-size: 30px; }
  .award-credential { grid-template-columns: 72px minmax(0,1fr); }
  .award-credential img { width: 72px; height: 72px; }
  .wide-credential { grid-template-columns: 92px minmax(0,1fr); }
  .wide-credential img { width: 92px; height: 54px; }
  .service-grid, .contact-cards { grid-template-columns: 1fr; }
  .service-card, .review-card { min-height: 0; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-contact li { grid-template-columns: 1fr; gap: 4px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-managed { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 560px) {
  .logo-strip .logo-credential { flex-basis: 100%; }
}
@media (max-width: 420px) {
  .brand-logo { height: 50px; }
  .section, .contact-section { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .review-track { animation: none; }
}
