/* ===========================================================
   The Heating Oil People — homepage styles
   =========================================================== */

:root {
  --cream:        #faf7f2;
  --cream-lt:     #fdfaf5;
  --navy:         #16233d;
  --navy-dk:      #0e1729;
  --navy-mid:     #22345a;
  --orange:       #e07b1f;
  --orange-dk:    #c96a12;
  --orange-dkr:   #b95f0d;
  --orange-lt:    #f3a04c;
  --peach:        #fbeedd;
  --peach-hi:     #fdf3e7;
  --border:       #ece5d8;
  --border-in:    #ddd3c2;
  --track:        #f0e9dd;
  --ink:          #1c2b47;
  --ink-head:     #16233d;
  --muted:        #5b6a85;
  --muted-2:      #7a8499;
  --muted-3:      #8a8273;
  --on-navy:      #aebad2;
  --on-navy-hi:   #dde4f0;
  --topbar-txt:   #c9d3e6;
  --band:         #e8eef7;
  --footer-txt:   #8fa0bd;

  --shadow-lift:  0 24px 60px rgba(8,15,30,0.4);
  --font-head:    'Bricolage Grotesque', sans-serif;
  --font-body:    'Public Sans', sans-serif;
  --wrap:         1160px;
  --pad-x:        48px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dkr); }

h1, h2, h3 { font-family: var(--font-head); margin: 0; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.wrap--narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .05s ease;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dk); color: #fff; }
.btn--dark { background: var(--navy); color: var(--cream-lt); }
.btn--dark:hover { background: var(--navy-mid); color: var(--cream-lt); }
.btn--pill { padding: 12px 22px; border-radius: 999px; font-size: 15px; }
.btn--block { width: 100%; border-radius: 12px; padding: 16px; font-size: 17px; }
.btn--lg { padding: 18px 40px; font-size: 17px; }
.cta .btn--dark:hover { background: var(--navy-dk); }

/* ---------- Eyebrow / badges ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--peach);
  color: var(--orange-dkr);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow--onDark { background: var(--navy-mid); color: var(--orange-lt); margin-bottom: 0; }

.badge {
  background: var(--peach);
  color: var(--orange-dkr);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: var(--topbar-txt);
  font-size: 14px;
  padding: 8px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar__rating { display: flex; align-items: center; gap: 8px; }
.stars { color: var(--orange-lt); letter-spacing: 1px; }
.topbar__hours { display: flex; gap: 16px; align-items: center; }
.topbar__phone { color: var(--orange-lt); font-weight: 600; }

/* ---------- Header ---------- */
.header {
  background: var(--cream);
  padding: 20px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}
.brand__mark--sm { width: 38px; height: 38px; border-radius: 10px; font-size: 17px; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--navy); line-height: 1.1; }
.brand__name--onDark { color: var(--cream-lt); font-size: 17px; }
.brand__tag { font-size: 12px; color: var(--muted-3); }

.nav__links { display: flex; gap: 32px; align-items: center; font-size: 15px; font-weight: 600; }
.nav__links > a { color: var(--muted); }
.nav__links > a.is-active { color: var(--ink); }
.nav__links > a:hover { color: var(--ink); }
.nav__cta { color: #fff; }
.nav__cta:hover { color: #fff; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--navy);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  padding: 72px var(--pad-x) 88px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-weight: 800;
  font-size: 54px;
  line-height: 1.08;
  color: #fdfaf5;
  margin: 20px 0 18px;
  text-wrap: pretty;
}
.hero__lead { font-size: 18px; line-height: 1.6; color: var(--on-navy); margin: 0 0 32px; max-width: 480px; }
.ticklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticklist li { display: flex; gap: 12px; align-items: center; color: var(--on-navy-hi); font-size: 16px; }
.tick {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Quote form ---------- */
.quote {
  background: var(--cream-lt);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lift);
}
.quote__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.quote__title { font-weight: 700; font-size: 24px; color: var(--navy); }
.quote__sub { font-size: 14px; color: var(--muted-3); margin: 0 0 22px; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--track);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 18px;
}
.segmented__btn {
  border: none;
  border-radius: 9px;
  padding: 11px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--muted-3);
  transition: background .15s, color .15s, box-shadow .15s;
}
.segmented__btn.is-on {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(20,30,50,0.12);
}

.field-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-bottom: 16px; }
.field label, .optionset legend {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #3c4a66;
  margin-bottom: 6px;
  padding: 0;
}
.field input {
  width: 100%;
  border: 1.5px solid var(--border-in);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  background: #fff;
  color: var(--navy);
  outline: none;
  transition: border-color .15s;
}
.field input:focus { border-color: var(--orange); }
.field input::placeholder { color: #b3ab9c; }

.optionset { border: none; margin: 0 0 16px; padding: 0; }
.cards { display: grid; gap: 10px; }
.cards--2 { grid-template-columns: 1fr 1fr; }
.cards--3 { grid-template-columns: 1fr 1fr 1fr; }
.card {
  text-align: left;
  border: 1.5px solid var(--border-in);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
  transition: border-color .15s, background .15s;
}
.card:hover { border-color: var(--orange-lt); }
.card.is-on { border: 2px solid var(--orange); background: var(--peach-hi); }
.card__title { font-weight: 700; display: block; }
.card__note { font-size: 12px; color: var(--muted-3); }

.quote__result {
  margin-top: 18px;
  border: 1.5px solid var(--orange);
  background: var(--peach-hi);
  border-radius: 12px;
  padding: 18px 20px;
}
.quote__result .qr-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  color: var(--navy);
  line-height: 1.1;
}
.quote__result .qr-meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.quote__result.is-error { border-color: #d98c2a; background: #fff6ea; }
.quote__result.is-error .qr-price { font-size: 17px; color: var(--orange-dkr); }

.quote__phone { font-size: 13px; color: var(--muted-3); text-align: center; margin: 14px 0 0; }
.quote__phone a { font-weight: 700; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--cream-lt);
  border-bottom: 1px solid var(--border);
  padding: 22px var(--pad-x);
  display: flex;
  justify-content: center;
  gap: 56px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section { padding: 88px var(--pad-x); }
.section--dark { background: var(--navy); }
.section--soft { background: var(--cream-lt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__head { text-align: center; margin-bottom: 52px; }
.section__title { font-weight: 800; font-size: 38px; color: var(--ink-head); margin: 0 0 12px; }
.section__title--center { text-align: center; }
.section__title--left { text-align: left; }
.section__title--onDark { color: var(--cream-lt); }
.section__lead { color: var(--muted-2); font-size: 17px; max-width: 620px; margin: 0 auto; line-height: 1.6; }
.section__lead--center { text-align: center; }
.section__lead--left { text-align: left; margin: 0; }
.section__lead--onDark { color: var(--on-navy); }
.section--dark .section__lead--center { margin: 0 auto 56px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Features ---------- */
.feature {
  background: var(--cream-lt);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
}
.feature__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--peach);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature h3 { font-weight: 700; font-size: 20px; margin: 0 0 8px; color: var(--ink-head); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.feature--cta {
  background: var(--navy);
  border-color: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature--cta h3 { color: var(--cream-lt); margin-bottom: 10px; }
.feature--cta p { color: var(--on-navy); margin-bottom: 18px; }
.feature--cta .btn { align-self: flex-start; }

/* ---------- Steps ---------- */
.steps { margin-top: 8px; }
.step { text-align: center; }
.step__num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { font-weight: 700; font-size: 20px; color: var(--cream-lt); margin: 0 0 10px; }
.step p { color: var(--on-navy); font-size: 15px; line-height: 1.6; margin: 0 auto; max-width: 280px; }

/* ---------- Stats ---------- */
.stats { background: var(--band); padding: 56px var(--pad-x); }
.stats .grid { text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: 44px; color: var(--navy); line-height: 1; }
.stat__label { color: var(--muted); font-size: 15px; font-weight: 600; margin-top: 6px; }

/* ---------- Coverage ---------- */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.coverage__media { height: 400px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 26px; }
.chip {
  background: var(--peach);
  color: var(--orange-dkr);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
}
.chip--muted { background: var(--track); color: var(--muted-3); }

/* image slots (placeholders for user imagery) */
.image-slot {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-slot--map {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 40%),
    linear-gradient(135deg, #cfe0d3 0%, #a9c6b4 45%, #8fb59f 100%);
  border: 1px solid var(--border);
}
.image-slot--map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22,35,61,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,35,61,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.image-slot__pin {
  position: absolute;
  width: 16px; height: 16px;
  background: var(--orange);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(8,15,30,.35);
}
.image-slot__label {
  position: absolute;
  bottom: 16px;
  background: rgba(14,23,41,.82);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
}
.image-slot--post {
  height: 180px;
  border-radius: 0;
  background: hsl(var(--slot-hue, 28) 45% 88%);
}
.image-slot__emoji { font-size: 46px; opacity: .8; }

/* ---------- Reviews ---------- */
.review {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section--soft .review { background: var(--cream); }
.review__stars { color: var(--orange); font-size: 18px; letter-spacing: 2px; }
.review__text { margin: 0; color: #3c4a66; font-size: 15px; line-height: 1.65; flex: 1; }
.review__by { font-weight: 700; font-size: 14px; color: var(--navy); }
.review__place { color: var(--muted-3); font-weight: 500; }

/* ---------- FAQs ---------- */
.faqs { display: flex; flex-direction: column; gap: 12px; margin-top: 44px; }
.faq { background: var(--cream-lt); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq__q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq__mark { color: var(--orange); font-size: 20px; line-height: 1; }
.faq__a { margin: 0; padding: 0 24px 20px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.faq__a[hidden] { display: none; }

/* ---------- Blog ---------- */
.blog__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.blog__head .section__title { margin-bottom: 6px; }
.hub-link { font-weight: 700; font-size: 15px; }
.post { background: var(--cream); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.post__body { padding: 22px; }
.post__cat { font-size: 12px; font-weight: 700; color: var(--orange-dkr); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.post h3 { font-weight: 700; font-size: 18px; margin: 0 0 8px; color: var(--ink-head); line-height: 1.3; }
.post p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- CTA ---------- */
.cta { background: var(--orange); padding: 72px var(--pad-x); text-align: center; }
.cta h2 { font-weight: 800; font-size: 40px; color: #fff; margin: 0 0 12px; text-wrap: pretty; }
.cta p { color: #fde8d2; font-size: 17px; margin: 0 0 32px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dk); color: var(--footer-txt); padding: 64px var(--pad-x) 40px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; }
.brand--footer { margin-bottom: 16px; }
.footer__blurb { font-size: 14px; line-height: 1.7; margin: 0; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col a { color: var(--footer-txt); }
.footer__col a:hover { color: var(--cream-lt); }
.footer__heading { color: var(--cream-lt); font-weight: 700; margin-bottom: 4px; }
.footer__phone { color: var(--orange-lt); font-weight: 700; font-size: 17px; }
.footer__reg { margin: 10px 0 0; font-size: 14px; line-height: 1.8; }
.footer__bar {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--navy-mid);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 960px) {
  :root { --pad-x: 28px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .hero__title { font-size: 42px; }
  .coverage { grid-template-columns: 1fr; }
  .coverage__media { height: 300px; order: -1; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px var(--pad-x); }

  /* Mobile nav */
  .nav { position: relative; }
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    background: var(--cream-lt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    box-shadow: 0 16px 40px rgba(8,15,30,.18);
    min-width: 200px;
    z-index: 60;
  }
  .nav__links.is-open { display: flex; }
  .nav__cta { justify-content: center; }
}

@media (max-width: 620px) {
  :root { --pad-x: 20px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12.5px; }
  .topbar__hours { flex-wrap: wrap; gap: 8px; }
  .hero__title { font-size: 34px; }
  .quote { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .section__title { font-size: 30px; }
  .cta h2 { font-size: 30px; }
  .trust { gap: 20px 32px; }
  .blog__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__bar { flex-direction: column; }
}

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