
/* ==========================================================================
   Thermo Direct — Furnace Repair in Raleigh, NC
   Rebuilt on the homepage system, not the legacy service-page template.
   Fonts and palette are the values shipping on thermodirectinc.com today:
   Alvar Pro Black + Spartan are self-hosted by the site and served with
   Access-Control-Allow-Origin: *, so they are linked rather than substituted.
   ========================================================================== */

:root{
  /* Type */
  --display:'Alvar Pro','Arial Black',system-ui,sans-serif;
  --label:'Spartan','Nunito Sans',system-ui,sans-serif;
  --body:'Nunito Sans',system-ui,-apple-system,'Segoe UI',sans-serif;

  /* Palette — the shipped Elementor globals */
  --white:#ffffff;
  --navy:#00254a;          /* --color-3 : headings + dark panels            */
  --navy-deep:#001a35;     /* one step down, for layered dark surfaces      */
  --blue:#0088ce;          /* --color-4 : accents, icons, large type        */
  --blue-600:#0073b3;      /* same family, darkened so 14px white clears AA */
  --cyan:#dcf2f6;          /* --color-5 : soft fills                        */
  --yellow:#ffe600;        /* --color-6 : primary CTA                       */
  --peach:#fbceb8;         /* --color-7                                     */
  --orange:#ee4e14;        /* --color-8 : card borders, accents             */
  --cta-orange:#f26722;    /* the warm end of the shipped CTA gradient      */
  --cta-ink:#002b49;       /* the navy the live buttons actually use        */
  --cta-grad:linear-gradient(180deg,#ffe600 34.26%,#f26722 87.09%);
  --cta-grad-hover:linear-gradient(180deg,#fff04d 24%,#f4813f 92%);
  --ink:#14202e;           /* body copy on light — 13.9:1 on white          */
  --ink-soft:#41505f;      /* secondary copy — 7.4:1 on white               */
  --line:#dbe4ec;
  --shell:#f4f8fb;

  /* Rhythm */
  --gutter:clamp(1.25rem,4vw,3rem);
  --measure:68ch;
  --radius:12px;
  --radius-sm:6px;

  /* Motion */
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-quart:cubic-bezier(.25,1,.5,1);

  /* z-index scale */
  --z-base:1;
  --z-raised:10;
  --z-sticky:100;
  --z-header:200;
  --z-drawer:300;
  --z-skip:400;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:clip;scroll-behavior:smooth;scroll-padding-top:112px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.65;
  overflow-x:clip;
  -webkit-font-smoothing:antialiased;
}
@media (min-width:900px){body{font-size:18px}}

img{max-width:100%;height:auto;display:block}
a{color:#0064a0;text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--orange)}
::selection{background:var(--yellow);color:var(--navy)}

h1,h2,h3,h4{
  font-family:var(--display);
  font-weight:900;
  color:var(--navy);
  line-height:1.04;
  letter-spacing:-.02em;
  text-wrap:balance;
  margin:0 0 .5em;
}
h1{font-size:clamp(2.3rem,1.35rem + 4.2vw,4.6rem)}
h2{font-size:clamp(1.85rem,1.2rem + 2.6vw,3.1rem)}
h3{font-size:clamp(1.25rem,1.05rem + .8vw,1.6rem);letter-spacing:-.01em}
h4{font-size:1.05rem;letter-spacing:0}
p{margin:0 0 1.1em;max-width:var(--measure);text-wrap:pretty}
p:last-child{margin-bottom:0}

.wrap{width:min(1200px,100% - (var(--gutter) * 2));margin-inline:auto}
.wrap--narrow{width:min(920px,100% - (var(--gutter) * 2))}
.section{padding-block:clamp(3.25rem,2rem + 5vw,6rem)}
.section--tight{padding-block:clamp(2.25rem,1.5rem + 3vw,3.75rem)}
.stack>*+*{margin-top:1.1em}

.skip{
  position:absolute;left:.75rem;top:-4rem;z-index:var(--z-skip);
  background:var(--yellow);color:var(--navy);font-family:var(--label);font-weight:700;
  padding:.7rem 1.1rem;border-radius:var(--radius-sm);transition:top .2s var(--ease-out);
}
.skip:focus{top:.75rem}

:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{
  outline:3px solid var(--orange);
  outline-offset:3px;
  border-radius:4px;
}

/* ---- Buttons ----------------------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;gap:.55rem;
  font-family:var(--body);font-weight:800;font-size:1rem;line-height:1;
  padding:.95rem 1.5rem;border-radius:var(--radius-sm);border:2px solid transparent;
  text-decoration:none;cursor:pointer;
  transition:background-color .25s var(--ease-out),color .25s var(--ease-out),
             border-color .25s var(--ease-out),transform .25s var(--ease-out);
}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0)}
/* The brand CTA fill: yellow into orange, with the same stop positions the
   live site ships on Schedule Now and the hero quote tiles. Navy on the
   orange end still measures 4.7:1, so the label holds up across the ramp. */
.btn--primary{
  background:var(--cta-grad);
  color:var(--cta-ink);
  border-color:transparent;
  background-origin:border-box;
}
.btn--primary:hover{background:var(--cta-grad-hover);color:var(--cta-ink);border-color:transparent}
.btn--phone{background:var(--white);color:var(--navy);border-color:var(--navy)}
.btn--phone:hover{background:var(--navy);color:var(--white)}
.btn--onDark{background:transparent;color:var(--white);border-color:rgba(255,255,255,.55)}
.btn--onDark:hover{background:var(--white);color:var(--navy);border-color:var(--white)}
.btn--ghost{background:var(--cyan);color:#002b49;border-color:var(--cyan)}
.btn--ghost:hover{background:var(--blue-600);color:var(--white);border-color:var(--blue-600)}
.btn--sm{padding:.7rem 1.1rem;font-size:.9rem}
.nav__actions .btn{white-space:nowrap}
/* The header CTA follows the live nav button: Spartan bold, uppercase.
   Scoped to the nav so the in-page CTAs keep their sentence case. */
.btn--nav{
  font-family:var(--label);font-weight:700;font-size:.82rem;
  letter-spacing:.02em;text-transform:uppercase;
}
.btn svg{flex:none}

/* ---- Hero -------------------------------------------------------------- */
.hero{
  position:relative;overflow:hidden;color:var(--white);
  background:
    radial-gradient(115% 85% at 78% 8%,rgba(0,136,206,.55) 0%,rgba(0,136,206,0) 58%),
    linear-gradient(180deg,var(--navy) 0%,var(--navy-deep) 100%);
}
.hero::after{
  /* the homepage's yellow underline motif, stretched into a floor rule */
  content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:var(--yellow);
}
.hero__inner{
  display:grid;gap:clamp(2rem,4vw,3.5rem);align-items:center;
  padding-block:clamp(2.75rem,2rem + 4vw,5rem);
}
@media (min-width:960px){.hero__inner{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}}
.hero h1{color:var(--white);margin-bottom:.35em}
.hero__lede{font-size:clamp(1.02rem,.95rem + .35vw,1.2rem);color:#dbe7f2;max-width:52ch}
.hero__cta{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.75rem}
.hero__trust{
  display:flex;flex-wrap:wrap;gap:.55rem 1.5rem;margin:2rem 0 0;padding:1.25rem 0 0;
  list-style:none;border-top:1px solid rgba(255,255,255,.2);
}
.hero__trust li{
  display:flex;align-items:center;gap:.55rem;
  font-weight:700;font-size:.9rem;color:#e6eef6;
}
.hero__trust svg{color:var(--yellow);flex:none}

.hero__figure{position:relative;justify-self:center;max-width:420px;width:100%}
.hero__figure::before{
  content:"";position:absolute;inset:6% 8% 2%;border-radius:50%;
  background:radial-gradient(circle,rgba(0,136,206,.75) 0%,rgba(0,37,74,0) 68%);
  filter:blur(6px);
}
.hero__furnace{
  position:relative;margin-inline:auto;width:min(100%,340px);
  filter:drop-shadow(0 30px 45px rgba(0,0,0,.45));
}
@media (max-width:959px){.hero__figure{max-width:340px}}

/* ---- Offer ------------------------------------------------------------- */
.offer{background:var(--shell);border-bottom:1px solid var(--line)}
.offer__card{
  position:relative;background:var(--white);border:2px solid var(--orange);
  border-radius:var(--radius);padding:clamp(1.5rem,1rem + 2vw,2.25rem);
  display:grid;gap:1.25rem 2rem;align-items:center;
}
@media (min-width:820px){.offer__card{grid-template-columns:minmax(0,1fr) auto}}
.offer__amount{
  font-family:var(--display);font-weight:900;color:#d2400c;
  font-size:clamp(2.4rem,1.6rem + 3vw,3.6rem);line-height:.95;letter-spacing:-.02em;
  display:block;
}
.offer__what{
  font-family:var(--display);font-weight:900;color:var(--navy);
  font-size:clamp(1.1rem,.95rem + .6vw,1.5rem);line-height:1.15;margin:.35rem 0 .75rem;
  max-width:none;
}
.offer__fine{font-size:.78rem;line-height:1.55;color:var(--ink-soft);max-width:62ch;margin:0}
.offer__actions{display:flex;flex-wrap:wrap;gap:.7rem}
.offer__sticker{
  position:absolute;top:-16px;right:16px;width:78px;height:78px;border-radius:50%;
  background:var(--blue-600);color:var(--white);display:grid;place-content:center;text-align:center;
  font-family:var(--label);font-weight:700;font-size:.56rem;line-height:1.25;letter-spacing:.03em;
  text-transform:uppercase;padding:.5rem;box-shadow:0 6px 14px rgba(0,37,74,.28);
  rotate:-8deg;
}
@media (max-width:560px){.offer__sticker{display:none}}

/* ---- Intro ------------------------------------------------------------- */
.intro{display:grid;gap:clamp(1.75rem,4vw,3rem)}
@media (min-width:940px){.intro{grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr);align-items:start}}
.intro p{color:var(--ink);font-size:1.05rem}
.aside{
  background:var(--cyan);border-radius:var(--radius);padding:1.5rem;
  border-top:5px solid var(--blue);
}
.aside h3{margin-bottom:.5rem}
.aside p{font-size:.95rem;color:#123047}
.aside__tel{
  display:block;font-family:var(--display);font-weight:900;color:var(--navy);
  font-size:clamp(1.5rem,1.2rem + 1.1vw,2rem);text-decoration:none;margin:.65rem 0 .25rem;
  letter-spacing:-.02em;
}
.aside__tel:hover{color:#c0390a}
.aside__note{font-size:.8rem;color:#2b4d67;margin:0}

/* ---- Dark panels ------------------------------------------------------- */
.panel{color:var(--white);background:var(--navy)}
.panel h2,.panel h3{color:var(--white)}
.panel p{color:#dbe7f2}
.panel--edge{position:relative}
.panel--edge::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:var(--yellow)}

/* Signs list */
.signs{display:grid;gap:clamp(1.75rem,4vw,3rem)}
@media (min-width:940px){.signs{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start}}
.signs__list{list-style:none;margin:0;padding:0;display:grid;gap:.85rem}
@media (min-width:600px){.signs__list{grid-template-columns:1fr 1fr}}
.sign{
  display:flex;gap:.9rem;align-items:flex-start;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius-sm);padding:1rem 1.1rem;
}
/* The supplied sign icons carry their own yellow disc inside the artwork,
   so this holder is just a box — no background, no glyph sizing. */
.sign__icon{flex:none;width:42px;height:42px}
.sign__icon svg{display:block;width:100%;height:100%}
.sign b{display:block;font-family:var(--display);font-weight:900;font-size:1.02rem;letter-spacing:-.01em;color:var(--white)}
.sign span{display:block;font-size:.88rem;line-height:1.5;color:#cfe0ee;margin-top:.15rem}

/* ---- Furnace diagram --------------------------------------------------- */
.diagram{display:grid;gap:clamp(2rem,4vw,3.5rem);align-items:start}
@media (min-width:960px){.diagram{grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr)}}
.diagram__figure{
  position:relative;background:linear-gradient(180deg,#eef5fa 0%,#dfeaf3 100%);
  border:1px solid var(--line);border-radius:var(--radius);
  padding:1.5rem 1rem;max-width:420px;margin-inline:auto;width:100%;
}
@media (min-width:960px){.diagram__figure{position:sticky;top:120px}}
.diagram__stage{width:100%;max-width:290px;margin-inline:auto}
.diagram__img{width:100%}
.diagram__caption{
  margin:1.1rem auto 0;font-size:.78rem;line-height:1.5;color:var(--ink-soft);text-align:center;
}

.problems{list-style:none;margin:0;padding:0}
.problem{
  border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:1.15rem 1.25rem;background:var(--white);
}
.problem+.problem{margin-top:.75rem}
.problem__head{display:flex;gap:.85rem;align-items:flex-start}
.problem__num{
  flex:none;width:28px;height:28px;border-radius:50%;background:var(--navy);color:var(--white);
  font-family:var(--label);font-weight:700;font-size:.78rem;
  display:grid;place-items:center;margin-top:.25rem;
}
.problem__num--off{background:var(--blue-600)}
.problem h3{margin:0 0 .3rem}
.problem p{margin:0;font-size:.95rem;color:var(--ink-soft)}
.problem__where{
  display:inline-block;margin-top:.6rem;font-family:var(--label);font-weight:700;
  font-size:.64rem;letter-spacing:.06em;text-transform:uppercase;
  color:#00456e;background:var(--cyan);border-radius:999px;padding:.28rem .65rem;
}

/* ---- Process ----------------------------------------------------------- */
.process{list-style:none;margin:0;padding:0;display:grid;gap:1.25rem}
@media (min-width:760px){.process{grid-template-columns:repeat(4,1fr);gap:0}}
.step{position:relative;padding-top:2.9rem}
@media (min-width:760px){.step{padding-right:1.5rem}}
.step::before{
  content:"";position:absolute;left:0;top:19px;width:100%;height:2px;
  background:repeating-linear-gradient(90deg,#c4d3e0 0 8px,transparent 8px 14px);
}
.step:last-child::before{width:19px}
@media (max-width:759px){.step::before{display:none}.step{padding-top:0;padding-left:3.25rem;min-height:38px}}
.step__num{
  position:absolute;left:0;top:0;width:38px;height:38px;border-radius:50%;
  background:var(--navy);color:var(--white);display:grid;place-items:center;
  font-family:var(--display);font-weight:900;font-size:1.05rem;
  outline:5px solid var(--shell);
}
.step h3{font-size:1.1rem;margin-bottom:.35rem}
.step p{font-size:.93rem;color:var(--ink-soft);margin:0;max-width:34ch}

/* ---- Why choose -------------------------------------------------------- */
.why{display:grid;gap:clamp(2rem,4vw,3rem);align-items:center}
@media (min-width:960px){.why{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}}
.why__photo{border-radius:var(--radius);overflow:hidden;box-shadow:0 24px 50px rgba(0,0,0,.35)}
.why__list{list-style:none;margin:0;padding:0;display:grid;gap:1.4rem}
.why__list li{display:flex;gap:1rem;align-items:flex-start}
.why__icon{
  flex:none;width:42px;height:42px;border-radius:50%;background:var(--yellow);color:var(--navy);
  display:grid;place-items:center;
}
.why__icon svg{width:22px;height:22px}
/* This one icon ships its own yellow disc, so the holder drops its
   background rather than drawing a disc behind a disc. */
.why__icon--art{background:none}
.why__icon--art svg{width:100%;height:100%}
.why__list h3{font-size:1.15rem;margin-bottom:.3rem}
.why__list p{font-size:.95rem;margin:0}
.badges{margin-top:clamp(2rem,4vw,3rem);padding-top:1.75rem;border-top:1px solid rgba(255,255,255,.2);text-align:center}
.badges img{margin-inline:auto;max-width:820px;width:100%}
/* Default to a light-background caption; .panel overrides it for the navy
   band, so the same markup stays legible wherever the section lands. */
.badges p{color:var(--ink-soft);font-size:.85rem;margin:1rem auto 0;max-width:70ch;text-align:center}
.panel .badges p{color:#cfe0ee}

/* ---- Reviews ----------------------------------------------------------- */
.reviews__head{text-align:center;margin-bottom:clamp(1.75rem,3vw,2.5rem)}
.reviews__head p{margin-inline:auto;color:var(--ink-soft)}
.reviews__grid{display:grid;gap:1.25rem}
@media (min-width:820px){.reviews__grid{grid-template-columns:1fr 1fr}}
.review{
  border:2px solid var(--orange);border-radius:var(--radius);background:var(--white);
  padding:clamp(1.25rem,1rem + 1vw,1.85rem);display:flex;flex-direction:column;gap:.9rem;
}
.review__top{display:flex;align-items:center;gap:.7rem}
.review__top img.g{width:28px;height:28px}
.review__top img.s{width:104px;height:auto}
.review blockquote{margin:0;font-size:.97rem;line-height:1.6;color:var(--ink)}
.review figcaption{font-family:var(--label);font-weight:700;font-size:.78rem;color:var(--ink-soft);margin-top:auto}
.reviews__more{text-align:center;margin:1.75rem auto 0;max-width:none}

/* ---- CTA band ---------------------------------------------------------- */
.cta{background:var(--blue-600);color:var(--white);position:relative;overflow:hidden}
.cta::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:var(--yellow)}
.cta__inner{display:grid;gap:1.75rem;align-items:center}
@media (min-width:900px){.cta__inner{grid-template-columns:minmax(0,1.3fr) auto}}
/* Mascot sits above the button group in the same column. He is decoration,
   so below 900px he is dropped rather than pushing the CTAs down the page. */
.cta__side{display:flex;flex-direction:column;align-items:center;gap:1.5rem}
.cta__mascot{display:none}
@media (min-width:900px){
  .cta__mascot{
    display:block;width:clamp(160px,15vw,215px);
    filter:drop-shadow(0 16px 26px rgba(0,26,53,.32));
  }
}
.cta h2{color:var(--white);margin-bottom:.4em}
.cta p{color:#eaf5fc;max-width:56ch;margin:0}
.cta__actions{display:flex;flex-wrap:wrap;gap:.75rem}

/* ---- FAQ --------------------------------------------------------------- */
.faq{display:grid;gap:.6rem;max-width:900px;margin-inline:auto}
.faq details{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--white);overflow:hidden}
.faq details[open]{border-color:var(--blue)}
.faq summary{
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  cursor:pointer;list-style:none;padding:1.05rem 1.25rem;
  font-family:var(--display);font-weight:900;font-size:1.02rem;color:var(--navy);
  letter-spacing:-.01em;background:var(--white);
  transition:background-color .25s var(--ease-out);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{background:var(--shell)}
.faq summary::after{
  content:"";flex:none;width:22px;height:22px;border-radius:50%;background-color:var(--blue-600);
  transition:transform .3s var(--ease-out),background-color .25s var(--ease-out);
  background-image:
    linear-gradient(var(--white),var(--white)),
    linear-gradient(var(--white),var(--white));
  background-size:10px 2px,2px 10px;background-position:center,center;background-repeat:no-repeat;
}
.faq details[open] summary::after{transform:rotate(135deg);background-color:#d2400c}
.faq .faq__body{padding:0 1.25rem 1.25rem}
.faq .faq__body p{font-size:.97rem;color:var(--ink-soft)}

/* ---- Related services -------------------------------------------------- */
.related{display:grid;gap:.85rem}
@media (min-width:700px){.related{grid-template-columns:repeat(3,1fr)}}
.related a{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  border:1px solid var(--line);border-radius:var(--radius-sm);padding:1.05rem 1.2rem;
  text-decoration:none;color:var(--navy);font-family:var(--display);font-weight:900;
  font-size:1.02rem;letter-spacing:-.01em;background:var(--white);
  transition:border-color .25s var(--ease-out),background-color .25s var(--ease-out),
             transform .25s var(--ease-out);
}
.related a:hover{border-color:var(--blue);background:var(--cyan);transform:translateY(-2px);color:var(--navy)}
.related svg{flex:none;color:var(--blue-600)}

/* ---- Motion ------------------------------------------------------------ */
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.hero h1,.hero__lede,.hero__cta,.hero__trust{animation:rise .75s var(--ease-quart) both}
.hero__lede{animation-delay:.13s}
.hero__cta{animation-delay:.2s}
.hero__trust{animation-delay:.27s}
.hero__figure{animation:rise .9s var(--ease-quart) .12s both}

/* Reveals are JS-added only, so the default state is always visible. */
.js .reveal{opacity:0;transform:translateY(20px);transition:opacity .7s var(--ease-quart),transform .7s var(--ease-quart)}
.js .reveal.is-in{opacity:1;transform:none}
.js .reveal--stagger>*{opacity:0;transform:translateY(14px);transition:opacity .55s var(--ease-quart),transform .55s var(--ease-quart)}
.js .reveal--stagger.is-in>*{opacity:1;transform:none}
.js .reveal--stagger.is-in>*:nth-child(2){transition-delay:.07s}
.js .reveal--stagger.is-in>*:nth-child(3){transition-delay:.14s}
.js .reveal--stagger.is-in>*:nth-child(4){transition-delay:.21s}
.js .reveal--stagger.is-in>*:nth-child(5){transition-delay:.28s}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
  .js .reveal,.js .reveal--stagger>*{opacity:1;transform:none}
  .btn:hover,.related a:hover{transform:none}
}
