/* ==========================================================================
   Tri-States Heating & Air — membership landing page
   Mobile-first. No frameworks, no build step.

   Contents
   1.  Design tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography
   5.  Buttons & links
   6.  Header
   7.  Hero
   8.  Problem → relief
   9.  What's included
   10. How it works
   11. Offer band
   12. Why Tri-States Heating & Air
   13. Booking + calendar container
   14. Privacy page
   15. Footer
   16. Sticky mini-CTA
   17. Scroll reveal & reduced motion
   ========================================================================== */

/* 1. DESIGN TOKENS ======================================================== */
:root {
  /* Brand foundation */
  --navy:        #12233d;
  --navy-deep:   #0b1727;
  --navy-mid:    #1b3355;
  --navy-line:   rgba(255, 255, 255, .14);

  /* Warm accent */
  --amber:       #e8871e;
  --amber-lift:  #f6a63c;
  --amber-deep:  #c96c0d;
  /* darker burnt orange reserved for small text on light backgrounds (AA) */
  --amber-text:  #a5560a;

  /* Cool end of the comfort motif */
  --cool:        #4a9fd8;
  --cool-soft:   #9cc9e8;

  /* Neutrals */
  --paper:       #fbfaf8;
  --paper-warm:  #f4f1ec;
  --ink:         #15202e;
  --ink-soft:    #4c5a6c;
  --white:       #ffffff;

  /* The temperature gradient — used sparingly, never as a background wash */
  --grad-temp: linear-gradient(90deg, var(--amber-deep) 0%, var(--amber) 26%, var(--amber-lift) 44%, #b9c9d6 62%, var(--cool-soft) 78%, var(--cool) 100%);
  --grad-temp-v: linear-gradient(180deg, var(--amber) 0%, var(--amber-lift) 30%, #bcccd8 58%, var(--cool) 100%);

  /* Type */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-micro:  0.8125rem;
  --fs-small:  0.9375rem;
  --fs-body:   clamp(1.0625rem, 1rem + 0.28vw, 1.1875rem);
  --fs-lede:   clamp(1.125rem, 1.03rem + 0.62vw, 1.4375rem);
  --fs-h3:     clamp(1.1875rem, 1.1rem + 0.5vw, 1.4375rem);
  --fs-h2:     clamp(1.8rem, 1.42rem + 2.6vw, 3.35rem);
  --fs-h1:     clamp(2.4rem, 1.55rem + 3.94vw, 5rem);
  --fs-mega:   clamp(2.6rem, 1.61rem + 4.52vw, 5.5rem);

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --shell: 74rem;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(11, 23, 39, .08), 0 3px 8px rgba(11, 23, 39, .06);
  --shadow-md: 0 2px 4px rgba(11, 23, 39, .06), 0 12px 28px -8px rgba(11, 23, 39, .18);
  --shadow-lg: 0 4px 10px rgba(11, 23, 39, .08), 0 28px 60px -18px rgba(11, 23, 39, .34);
  --shadow-amber: 0 2px 0 var(--amber-deep), 0 12px 24px -10px rgba(201, 108, 13, .7);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* 2. RESET & BASE ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* Fixed, non-interactive grain for depth. Never on a scrolling container. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

ul, ol { list-style: none; padding: 0; }

strong { font-weight: 600; }

/* Visible, high-contrast focus everywhere */
:focus-visible {
  outline: 3px solid var(--amber-lift);
  outline-offset: 3px;
  border-radius: 3px;
}
.site-header :focus-visible,
.offer :focus-visible,
.booking :focus-visible,
.included :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--amber-lift);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--amber);
  color: var(--navy-deep);
  font-weight: 700;
  padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* 3. LAYOUT PRIMITIVES ==================================================== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

/* 4. TYPOGRAPHY =========================================================== */
.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--navy);
}
.h2--light { color: var(--white); }

h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.kicker {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-temp);
  flex: none;
}
.kicker--light { color: var(--amber-lift); }

/* 5. BUTTONS & LINKS ====================================================== */
.btn {
  --btn-bg: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-align: center;
  padding: .95rem 1.4rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--navy-deep);
  box-shadow: var(--shadow-amber);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 0 var(--amber-deep), 0 18px 32px -12px rgba(201, 108, 13, .8);
}
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--amber-deep); }

.btn--amber { background: linear-gradient(175deg, var(--amber-lift), var(--amber) 62%); }
.btn--lg {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.2rem);
  padding: 1.15rem 1.9rem;
  width: 100%;
}
.btn--sm { font-size: var(--fs-small); padding: .7rem 1.1rem; }

.btn--white {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 0 rgba(11, 23, 39, .35), 0 16px 34px -14px rgba(0, 0, 0, .6);
}
.btn--white:hover { box-shadow: 0 2px 0 rgba(11, 23, 39, .35), 0 22px 42px -14px rgba(0, 0, 0, .7); }

.btn__arrow {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-call {
  font-weight: 600;
  color: var(--cool-soft);
  text-decoration-color: rgba(156, 201, 232, .45);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .18s var(--ease);
}
.link-call:hover { color: var(--white); }

@media (min-width: 34rem) {
  .btn--lg { width: auto; }
}

/* 6. HEADER =============================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 23, 39, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--navy-line), 0 10px 30px -18px rgba(0, 0, 0, .9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: .6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--white);
}
.brand__mark {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), var(--shadow-sm);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.brand__sub {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--cool-soft);
  margin-top: .2rem;
}

.header-actions { display: flex; align-items: center; gap: 1rem; }

.header-phone {
  display: none;
  align-items: center;
  gap: .45rem;
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-small);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .ico {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: var(--amber-lift);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-phone:hover { color: var(--amber-lift); }

.header-actions .btn { display: none; }

@media (min-width: 40rem) {
  .header-phone { display: inline-flex; }
}
@media (min-width: 56rem) {
  .header-actions .btn { display: inline-flex; }
}

/* 7. HERO ================================================================= */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-deep);
  color: var(--white);
  padding-bottom: clamp(3.5rem, 9vw, 6.5rem);
  margin-top: -4.25rem;
  padding-top: 4.25rem;
  overflow: hidden;
}
.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 55% at 82% 6%, rgba(232, 135, 30, .30), transparent 62%),
    radial-gradient(60% 60% at 6% 88%, rgba(74, 159, 216, .22), transparent 65%),
    linear-gradient(178deg, var(--navy) 0%, var(--navy-deep) 74%);
}
.hero__atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    linear-gradient(var(--navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  mask-image: radial-gradient(90% 70% at 50% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 30%, #000 10%, transparent 75%);
}

.hero__grid { padding-top: clamp(2rem, 5vw, 4rem); }
.hero__copy { max-width: 62rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--cool-soft);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  padding: .45rem .9rem .45rem .75rem;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.eyebrow__dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(232, 135, 30, .2);
  flex: none;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-mega);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
}
.hero__offer { display: block; }
.hero__title .hot,
.hero__title .cool {
  font-style: normal;
  display: inline-block;
}
.hero__title .hot { color: var(--amber-lift); }
.hero__title .cool { color: rgba(255, 255, 255, .82); }

/* Outlined "No Loan." — only where text-stroke actually paints, so the words
   never disappear on a browser that ignores it. */
@supports (-webkit-text-stroke: 2px currentColor) {
  .hero__title .cool {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, .8);
  }
}

.hero__lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: rgba(255, 255, 255, .84);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__lede strong { color: var(--white); font-weight: 600; }

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-line);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, .7);
}
.hero__facts li { display: flex; align-items: baseline; gap: .4rem; }
.hero__facts span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}

/* Image frames ------------------------------------------------------------ */
.frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-mid);
  box-shadow: var(--shadow-lg);
}
.frame img { width: 100%; }
.frame--hero {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  box-shadow: none;
}
.frame--hero picture,
.frame--hero img { width: 100%; height: 100%; }
.frame--hero img {
  object-fit: cover;
  object-position: center;
}
.frame--tilt {
  transform: rotate(-1.4deg);
  transition: transform .4s var(--ease);
}
.frame--tilt:hover { transform: rotate(0deg) scale(1.012); }

.temp-rail {
  height: 5px;
  background: var(--grad-temp);
  opacity: .9;
}

@media (min-width: 56rem) {
  .frame--hero { aspect-ratio: 12 / 5; }
}

/* 8. PROBLEM → RELIEF ===================================================== */
.problem { background: var(--paper); }
.problem__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }

.pains {
  display: grid;
  gap: 1.6rem;
  margin-top: 2rem;
  position: relative;
  padding-left: 1.6rem;
}
.pains::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35rem;
  bottom: .35rem;
  width: 4px;
  border-radius: 3px;
  background: var(--grad-temp-v);
}
.pains h3 { color: var(--navy); margin-bottom: .35rem; }
.pains p { color: var(--ink-soft); }

.problem__aside { display: grid; gap: clamp(1.5rem, 4vw, 2rem); }

.relief {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.relief::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad-temp);
}
.relief__label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-lift);
  margin-bottom: .7rem;
}
.relief__body { color: rgba(255, 255, 255, .86); }
.relief__body strong { color: var(--white); }

@media (min-width: 56rem) {
  .problem__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .problem__text { padding-top: 1rem; }
}

/* 9. WHAT'S INCLUDED ====================================================== */
.included {
  background: var(--navy);
  color: var(--white);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.included::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(75% 50% at 12% 0%, rgba(74, 159, 216, .16), transparent 60%);
}

.cards { display: grid; gap: 1.1rem; }

.card {
  position: relative;
  /* own stacking context so the ghost numeral (z-index:-1) paints above the
     card background but stays behind the card text */
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 2.1rem);
  transition: transform .28s var(--ease), border-color .28s var(--ease), background-color .28s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 166, 60, .45);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 14px;
  background: rgba(232, 135, 30, .14);
  border: 1px solid rgba(246, 166, 60, .3);
  margin-bottom: 1.15rem;
}
.card__icon svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: var(--amber-lift);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__title { color: var(--white); margin-bottom: .6rem; }
.card p { color: rgba(255, 255, 255, .76); }

.card__list {
  display: grid;
  gap: .5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--navy-line);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, .88);
}
.card__list li {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.card__list li::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  flex: none;
  background: var(--amber);
}

.card--accent {
  background: linear-gradient(165deg, rgba(232, 135, 30, .16), rgba(232, 135, 30, .04));
  border-color: rgba(246, 166, 60, .34);
}

/* The signature moment: an oversized outlined 12 sitting behind its card text */
.card--twelve { padding-right: clamp(1.4rem, 3.5vw, 2.1rem); }
.numeral-ghost {
  position: absolute;
  right: -0.06em;
  bottom: -0.34em;
  font-family: var(--font-display);
  font-size: clamp(9rem, 26vw, 15rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(246, 166, 60, .09);
  pointer-events: none;
  z-index: -1;
}
@supports (-webkit-text-stroke: 2px currentColor) {
  .numeral-ghost {
    color: transparent;
    -webkit-text-stroke: 2px rgba(246, 166, 60, .22);
  }
}

@media (min-width: 54rem) {
  .cards {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .card--tall   { grid-column: span 7; grid-row: span 2; }
  .card--accent { grid-column: span 5; }
  .card--twelve { grid-column: span 5; }
  .cards > .card:last-child {
    grid-column: span 12;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 1.6rem;
    align-items: center;
  }
  .cards > .card:last-child .card__icon { grid-row: span 2; margin-bottom: 0; }
  .cards > .card:last-child .card__title { align-self: end; }
  .cards > .card:last-child p { max-width: 52ch; }
}

/* 10. HOW IT WORKS ======================================================== */
.steps { background: var(--paper-warm); }

.steps__list {
  display: grid;
  gap: 2rem;
  position: relative;
}

.step { position: relative; padding-left: 4.25rem; }
.step__num {
  position: absolute;
  left: 0;
  top: -0.15rem;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-deep);
  background: linear-gradient(170deg, var(--amber-lift), var(--amber));
  box-shadow: 0 8px 18px -8px rgba(201, 108, 13, .8);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: 3.4rem;
  bottom: -2rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(232, 135, 30, .55), rgba(74, 159, 216, .3));
}
.step__title { color: var(--navy); margin-bottom: .45rem; }
.step p { color: var(--ink-soft); }

.steps__cta { margin-top: clamp(2.25rem, 5vw, 3rem); }

@media (min-width: 54rem) {
  .steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
  .step { padding-left: 0; padding-top: 4.5rem; }
  .step__num { top: 0; }
  .step:not(:last-child)::before {
    left: 3.6rem;
    right: -2.5rem;
    top: 1.5rem;
    bottom: auto;
    width: auto;
    height: 3px;
    background: linear-gradient(90deg, rgba(232, 135, 30, .6), rgba(74, 159, 216, .25));
  }
}

/* 11. OFFER BAND ========================================================== */
.offer {
  position: relative;
  isolation: isolate;
  background: var(--navy-deep);
  color: var(--white);
  padding-block: clamp(3.25rem, 8vw, 6rem);
  overflow: hidden;
  text-align: center;
}
.offer__temp {
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--grad-temp);
}
.offer__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 78% at 50% 0%, rgba(232, 135, 30, .34), transparent 64%),
    radial-gradient(45% 60% at 88% 100%, rgba(74, 159, 216, .2), transparent 65%);
}

.offer__inner { display: grid; justify-items: center; }

.offer__stamp {
  display: inline-block;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--amber);
  padding: .35rem 1rem;
  border-radius: 4px;
  transform: rotate(-1.6deg);
  margin-bottom: 1.25rem;
}

.offer__title {
  font-family: var(--font-display);
  font-size: var(--fs-mega);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.045em;
  margin-bottom: 1.1rem;
}
.offer__title em {
  font-style: normal;
  color: var(--amber-lift);
  position: relative;
}
.offer__title em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: .04em;
  height: 5px;
  border-radius: 3px;
  background: var(--grad-temp);
  opacity: .95;
}

.offer__body {
  font-size: var(--fs-lede);
  color: rgba(255, 255, 255, .84);
  max-width: 40rem;
  margin-bottom: 2rem;
  text-wrap: pretty;
}
.offer__fine {
  font-size: var(--fs-micro);
  line-height: 1.55;
  color: rgba(255, 255, 255, .64);
  max-width: 38rem;
  margin-top: 1.5rem;
}

/* 12. WHY TRI-STATES HEATING & AIR ======================================== */
.why { background: var(--paper); }
.why__grid { display: grid; gap: clamp(2.25rem, 6vw, 3.5rem); }

.why__visual .frame { max-width: 26rem; }

.trust {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
.trust h3 {
  color: var(--navy);
  margin-bottom: .35rem;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}
.trust h3::before {
  content: "";
  width: .6rem;
  height: .6rem;
  flex: none;
  border-radius: 2px;
  background: var(--amber);
  transform: rotate(45deg);
}
.trust p { color: var(--ink-soft); }

.credentials {
  display: grid;
  gap: 1px;
  margin-top: 2.5rem;
  background: rgba(18, 35, 61, .12);
  border: 1px solid rgba(18, 35, 61, .12);
  border-radius: var(--radius);
  overflow: hidden;
}
.credentials > div { background: var(--white); padding: 1.1rem 1.25rem; }
.credentials dt {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .25rem;
}
.credentials dd {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}
.credentials a { text-decoration-color: var(--amber); text-underline-offset: 3px; }

@media (min-width: 34rem) {
  .credentials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 56rem) {
  .why__grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: center;
  }
  .why__visual .frame { max-width: none; }
}

/* 13. BOOKING + CALENDAR CONTAINER ======================================== */
.booking {
  background: var(--navy);
  color: var(--white);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.booking::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(65% 45% at 80% 4%, rgba(232, 135, 30, .16), transparent 62%);
}
.booking__head { max-width: 42rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.booking__lede {
  font-size: var(--fs-lede);
  color: rgba(255, 255, 255, .8);
  margin-top: .9rem;
}
.booking__fine {
  font-size: var(--fs-micro);
  line-height: 1.55;
  color: rgba(255, 255, 255, .64);
  max-width: 44rem;
  margin-top: 1.5rem;
}

/* Full-width, iframe-friendly shell. No fixed height anywhere in this block. */
.calendar-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(.5rem, 2vw, 1.25rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .3);
}

#booking-calendar {
  width: 100%;
  min-height: 640px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 5.5rem;
  background: var(--white);
}

/* Let a pasted GoHighLevel embed fill the container and grow as it needs to */
#booking-calendar iframe {
  display: block;
  width: 100% !important;
  min-width: 100%;
  min-height: 640px;
  height: 100%;
  border: 0;
}
#booking-calendar > div:not(.calendar-fallback) { width: 100%; }

/* Fallback panel — JS removes it as soon as the embed renders */
.calendar-fallback {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .7rem;
  text-align: center;
  min-height: 640px;
  padding: 2rem 1.25rem;
  border: 2px dashed rgba(18, 35, 61, .22);
  border-radius: var(--radius);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(232, 135, 30, .07), transparent 70%),
    var(--paper-warm);
}
.calendar-fallback__pulse {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--grad-temp);
  box-shadow: 0 0 0 8px rgba(232, 135, 30, .1);
  animation: pulse 2.6s var(--ease) infinite;
  margin-bottom: .4rem;
}
.calendar-fallback__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.calendar-fallback__note {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  max-width: 32rem;
}
.calendar-fallback .btn { margin-top: .5rem; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.09); opacity: .82; }
}

@media (min-width: 48rem) {
  #booking-calendar,
  #booking-calendar iframe,
  .calendar-fallback { min-height: 760px; }
}

/* 14. PRIVACY PAGE ======================================================== */
.legal-page { background: var(--paper); }
.legal-page .site-header { background: var(--navy-deep); }
.legal-back {
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 700;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, .45);
}
.legal-back:hover { color: var(--amber-lift); }

.legal-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-bottom: 5px solid transparent;
  border-image: var(--grad-temp) 1;
}
.legal-hero::after {
  content: "";
  position: absolute;
  width: 16rem;
  height: 16rem;
  right: -7rem;
  bottom: -9rem;
  border: 1px solid rgba(156, 201, 232, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(156, 201, 232, .035), 0 0 0 6rem rgba(156, 201, 232, .025);
  pointer-events: none;
}
.legal-hero__inner { position: relative; z-index: 1; max-width: 58rem; }
.legal-hero .eyebrow { color: var(--cool-soft); }
.legal-hero__title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-mega);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.legal-hero__lede {
  max-width: 44rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, .76);
  font-size: var(--fs-lede);
}
.legal-hero__date {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, .58);
  font-size: var(--fs-small);
}

.legal-layout {
  display: grid;
  gap: clamp(2.5rem, 7vw, 5rem);
  padding-block: var(--section-y);
}
.legal-nav {
  align-self: start;
  padding: 1.25rem;
  background: var(--paper-warm);
  border: 1px solid rgba(18, 35, 61, .12);
  border-radius: var(--radius);
}
.legal-nav__title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
}
.legal-nav ol { display: grid; gap: .55rem; margin-top: .75rem; }
.legal-nav a {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  text-underline-offset: 3px;
}
.legal-nav a:hover { color: var(--amber-text); }

.legal-copy { max-width: 48rem; }
.legal-copy section { scroll-margin-top: 6rem; }
.legal-copy section + section {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(18, 35, 61, .14);
}
.legal-copy h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.legal-copy p, .legal-copy ul { margin-top: 1rem; }
.legal-copy ul { display: grid; gap: .5rem; padding-left: 1.4rem; list-style: disc; }
.legal-copy li::marker { color: var(--amber); }
.legal-copy a { color: var(--amber-text); font-weight: 700; text-underline-offset: 3px; }
.legal-copy a:hover { color: var(--navy); }
.legal-callout {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--paper-warm);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--navy);
}
.legal-callout p { margin: 0; }

@media (min-width: 50rem) {
  .legal-layout { grid-template-columns: minmax(12rem, .55fr) minmax(0, 1.45fr); }
  .legal-nav { position: sticky; top: 6rem; }
}

/* 15. FOOTER ============================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .74);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  /* room so the sticky mini-CTA never permanently covers footer content */
  padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  font-size: var(--fs-small);
  border-top: 1px solid var(--navy-line);
}
.footer__grid { display: grid; gap: 2rem; }

.footer__brand { display: flex; align-items: center; gap: .9rem; }
.footer__mark {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}
.footer__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}
.footer__tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cool-soft);
  margin-top: .25rem;
}

.footer__h {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-lift);
  margin-bottom: .6rem;
}
.footer__col p + p { margin-top: .35rem; }
.footer__col a {
  color: var(--white);
  font-weight: 600;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
}
.footer__col a:hover { color: var(--amber-lift); }
.footer__muted { color: rgba(255, 255, 255, .64); }

.footer__base {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-line);
  display: grid;
  gap: 1rem;
}
.footer__legal {
  font-size: var(--fs-micro);
  line-height: 1.55;
  color: rgba(255, 255, 255, .6);
  max-width: 52rem;
}
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: var(--fs-micro);
  color: rgba(255, 255, 255, .64);
}
.footer__meta a { color: rgba(255, 255, 255, .8); text-underline-offset: 3px; }
.footer__meta a:hover { color: var(--amber-lift); }

@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
  .footer__meta { justify-content: space-between; }
}

.legal-footer { padding: 0 0 clamp(2.5rem, 6vw, 4rem); }
.legal-footer .footer__base { margin-top: 0; border-top: 0; }

/* 16. STICKY MINI-CTA ===================================================== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 23, 39, .95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(246, 166, 60, .35);
  box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, .9);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .34s var(--ease), opacity .28s var(--ease);
}
.sticky-cta[hidden] { display: none; }
.sticky-cta.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }

.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--shell);
  margin-inline: auto;
}
.sticky-cta__text {
  font-size: var(--fs-small);
  line-height: 1.3;
  color: rgba(255, 255, 255, .7);
  display: grid;
}
.sticky-cta__text strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sticky-cta .btn { flex: none; }

@media (min-width: 45rem) {
  .sticky-cta {
    left: auto;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    padding: .75rem .85rem .75rem 1.35rem;
    border: 1px solid rgba(246, 166, 60, .35);
    border-radius: 999px;
  }
  .sticky-cta__inner { gap: 1.5rem; }
}

/* 17. SCROLL REVEAL & REDUCED MOTION ====================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Stagger children inside a revealed group */
.js .hero__copy .reveal:nth-child(2) { transition-delay: .07s; }
.js .hero__copy .reveal:nth-child(3) { transition-delay: .14s; }
.js .hero__copy .reveal:nth-child(4) { transition-delay: .21s; }
.js .hero__copy .reveal:nth-child(5) { transition-delay: .28s; }
.js .cards .reveal:nth-child(2) { transition-delay: .08s; }
.js .cards .reveal:nth-child(3) { transition-delay: .16s; }
.js .cards .reveal:nth-child(4) { transition-delay: .24s; }
.js .steps__list .reveal:nth-child(2) { transition-delay: .1s; }
.js .steps__list .reveal:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sticky-cta { transition: none; }
  .frame--tilt, .frame--tilt:hover { transition: none; }
  .calendar-fallback__pulse { animation: none; }
  .btn, .card, .btn__arrow { transition: none; }
  .btn:hover, .card:hover { transform: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
