/* ============================================================
   Domino Fuel and Home Services
   Same-Day Heating & Cooling Repair landing page
   ============================================================ */

:root {
  /* Brand palette, pulled from the logo */
  --blue:       #1568be;   /* bright royal blue ("Domino Fuel") */
  --blue-dark:  #104f94;
  --navy:       #11233f;   /* "and home services" navy */
  --navy-deep:  #0b1a30;
  --gold:       #f2b01e;   /* the 45-year stars */
  --red:        #d62828;   /* call-to-action urgency */
  --red-dark:   #b21f1f;

  --ink:        #14213a;
  --muted:      #5a6b85;
  --line:       #e2e8f2;
  --bg:         #f5f7fa;
  --white:      #ffffff;

  --wrap:       1120px;
  --radius:     12px;
  --shadow:     0 10px 30px rgba(17, 35, 63, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

h1, h2, h3 {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  line-height: 1.03;
  margin: 0;
  letter-spacing: .01em;
}

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.logo img {
  display: block;
  height: 46px;
  width: auto;
}
.header-call {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header-call__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: pulse-green 1.8s infinite;
  flex: none;
}
@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.header-call__text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}
.header-call__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 600;
}
.header-call__num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--blue);
  white-space: nowrap;
}
.header-call:hover .header-call__num { color: var(--blue-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--call {
  flex-direction: column;
  background: var(--red);
  color: var(--white);
  padding: 12px 30px;
  box-shadow: 0 8px 20px rgba(214, 40, 40, .32);
}
.btn--call:hover { background: var(--red-dark); }
.btn__small {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  opacity: .92;
}
.btn__big {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}
.btn--call-lg { padding: 16px 44px; }
.btn--call-lg .btn__big { font-size: 2.3rem; }

.btn--ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .5);
  padding: 14px 26px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(21, 104, 190, .5), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding-block: 60px 68px;
}
/* Looping background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  z-index: -2;
  pointer-events: none;
}
/* Readability overlay so hero text stays legible over the footage */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(21, 104, 190, .45), transparent 60%),
    linear-gradient(160deg, rgba(17, 35, 63, .82) 0%, rgba(11, 26, 48, .9) 100%);
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-stars {
  color: var(--gold);
  font-size: 1.7rem;
  letter-spacing: .18em;
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
}
.hero-title::after {
  content: "";
  display: block;
  width: 92px;
  height: 6px;
  margin: 20px auto 0;
  background: var(--gold);
  border-radius: 3px;
}
.hero-sub {
  max-width: 620px;
  margin: 22px auto 30px;
  font-size: 1.16rem;
  color: rgba(255, 255, 255, .86);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  list-style: none;
  margin: 38px auto 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.trust-strip li {
  font-size: .96rem;
  color: rgba(255, 255, 255, .8);
}
.trust-strip strong { color: var(--white); }

/* ---------- Hero form card ---------- */
.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  border-top: 5px solid var(--gold);
  padding: 30px 30px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.form-card__head {
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--navy);
}
.form-card__sub {
  margin: 8px 0 20px;
  font-size: .95rem;
  color: var(--muted);
}
.form-card__sub a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.form-card__sub a:hover { text-decoration: underline; }

/* MightyForms embed container: reserve space so the card
   doesn't collapse while the form script loads */
.mighty-form { min-height: 320px; }

/* ---------- Section shared ---------- */
.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  text-transform: uppercase;
  color: var(--navy);
}
.section-title--light { color: var(--white); }
.section-lead {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

/* ---------- Fixes ---------- */
.fixes { padding-block: 68px; }
.fixes-inner {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 44px;
  align-items: start;
}
.fix-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 34px;
}
.fixes-aside { position: sticky; top: 92px; }
.fix-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px 30px;
  box-shadow: var(--shadow);
}
.fix-col__head {
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--blue);
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 3px solid var(--gold);
}
.fix-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fix-list li {
  position: relative;
  padding: 9px 0 9px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.fix-list li:last-child { border-bottom: 0; }
.fix-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(21, 104, 190, .14);
  box-shadow: inset 0 0 0 3px var(--blue);
}

/* ---------- How it works ---------- */
.how {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding-block: 68px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  counter-reset: none;
  margin: 40px 0 0;
  padding: 0;
}
.step {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  margin-bottom: 16px;
}
.step__head {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.step p { margin: 0; color: rgba(255, 255, 255, .82); }

/* ---------- Why ---------- */
.why { padding-block: 68px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 38px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow);
}
.why-card__head {
  font-size: 1.28rem;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.why-card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Testimonials ---------- */
.testimonials { padding-block: 68px; background: var(--white); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 38px;
}
.review {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
}
.review__stars {
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: .12em;
  margin-bottom: 14px;
}
.review blockquote {
  margin: 0 0 18px;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.6;
}
.review blockquote::before { content: "\201C"; }
.review blockquote::after { content: "\201D"; }
.review figcaption {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.review__name { font-weight: 700; color: var(--navy); }
.review__town { font-size: .88rem; color: var(--muted); }

/* ---------- Service area ---------- */
.area {
  background: var(--blue);
  color: var(--white);
  padding-block: 56px;
}
.area-inner { text-align: center; }
.area-lead {
  max-width: 560px;
  margin: 14px auto 26px;
  color: rgba(255, 255, 255, .9);
  font-size: 1.08rem;
}
.area-call {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
  background: var(--gold);
  padding: 12px 34px;
  border-radius: var(--radius);
  transition: transform .12s ease, filter .15s ease;
}
.area-call:hover { filter: brightness(1.05); }
.area-call:active { transform: translateY(1px); }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--navy-deep);
  color: var(--white);
  padding-block: 66px;
}
.final-cta__inner { text-align: center; }
.final-cta__title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  text-transform: uppercase;
}
.final-cta__sub {
  margin: 12px 0 30px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .84);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .78);
  padding-block: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 30px;
}
.footer-brand strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  color: var(--white);
  display: block;
  line-height: 1;
}
.footer-brand span { font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-years { margin: 8px 0 0; color: var(--gold); font-weight: 600; font-size: .9rem; }
.footer-contact { text-align: right; }
.footer-contact a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.footer-contact p { margin: 4px 0 0; font-size: .92rem; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 18px 24px;
}
.footer-legal p { margin: 0; font-size: .84rem; color: rgba(255, 255, 255, .55); }

/* ---------- Sticky mobile call bar ---------- */
.sticky-call {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 15px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .22);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
}
/* Revealed after the first scroll (class toggled in JS) */
.sticky-call.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-call__pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .fixes-inner { grid-template-columns: 1fr; gap: 34px; }
  .fixes-aside { position: static; top: auto; }
  .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .header-call__label { display: none; }
  .header-call__num { font-size: 1.1rem; }
  .header-call { flex: none; }
  .logo img { height: 36px; min-width: 0; }
  .header-inner { gap: 10px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn--ghost { text-align: center; }
  .sticky-call { display: flex; }
  body { padding-bottom: 58px; } /* room for sticky bar */
}

/* ---------- Hero: no video on mobile ---------- */
@media (max-width: 768px) {
  /* Drop the video on phones; show the static poster + color instead */
  .hero-video { display: none; }
  .hero-overlay { display: none; }
  /* Phones get just the solid navy gradient, no photo */
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-call__pulse { animation: none; }
  .btn { transition: none; }
  /* Fall back to the static gradient for motion-sensitive visitors */
  .hero-video { display: none; }
  .sticky-call { transition: none; }
}
