/* L & L HVAC Services Inc. — "Texas workshop" theme
   cream #f3ead7 · ink navy #182630 · rust #b0511f (accent) · steel #66707a
   Display: Fraunces (600/700/800). Body: system stack. */

:root {
  --cream: #f3ead7;
  --cream-deep: #e9dcc3;
  --ink: #182630;
  --ink-soft: #2b3b47;
  --rust: #b0511f;
  --rust-deep: #8f3f16;
  --steel: #66707a;
  --line: rgba(24, 38, 48, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.44rem);
  --step-2: clamp(1.44rem, 1.25rem + 0.95vw, 1.9rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.7rem + 2.75vw, 3.4rem);
  --step-6: clamp(3rem, 1.8rem + 6vw, 5.75rem);

  --pad: clamp(5rem, 10vw, 9rem);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.045;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 1rem;
}

h2 { font-size: var(--step-4); font-weight: 800; }
h2 em, .hero-title em { font-style: italic; font-weight: 700; color: var(--rust); }
h3 { font-size: var(--step-1); }

p { text-wrap: pretty; margin: 0 0 1.25rem; max-width: 68ch; }

a { color: var(--rust-deep); }
a:hover { color: var(--rust); }

address { font-style: normal; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 0.75rem 1.25rem; z-index: 3000; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container.narrow { max-width: 860px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.05rem;
  padding: 0.9rem 1.9rem; border-radius: 6px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; min-height: 48px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease),
              background-color 180ms var(--ease), color 180ms var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--rust); color: #faf4e6; box-shadow: 0 6px 18px rgba(176, 81, 31, 0.28); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left 450ms var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(176, 81, 31, 0.35); background: var(--rust-deep); color: #faf4e6; }
.btn-primary:hover::after { left: 130%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,0.3); }
.btn-lg { font-size: 1.2rem; padding: 1.05rem 2.4rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(243, 234, 215, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0.7rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-seal { width: 40px; height: 40px; color: var(--rust); flex-shrink: 0; transition: transform 300ms var(--ease); }
.brand:hover .brand-seal { transform: rotate(-12deg); }
.brand-word { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-word em { font-style: normal; font-weight: 600; color: var(--steel); font-size: 0.95rem; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.98rem;
  position: relative; padding: 0.25rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--rust); transform: scaleX(0); transform-origin: left;
  transition: transform 200ms var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { margin-left: 0; font-size: 0.95rem; padding: 0.65rem 1.4rem; min-height: 44px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem);
  background:
    radial-gradient(60vw 40vw at 85% 10%, rgba(176, 81, 31, 0.10), transparent 70%),
    radial-gradient(50vw 35vw at 8% 85%, rgba(24, 38, 48, 0.08), transparent 70%),
    var(--cream);
}
.hero-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rust-deep); margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 2px; background: var(--rust); }
.hero-title { font-size: var(--step-6); font-weight: 800; line-height: 0.98; margin-bottom: 1.5rem; }
.hero-sub { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }

.mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask > span { display: inline-block; transform: translateY(110%); animation: rise 0.75s var(--ease) forwards; }
.mask:nth-child(1) > span:nth-child(1) { animation-delay: 0.10s; }
.mask:nth-child(1) > span:nth-child(2) { animation-delay: 0.16s; }
.mask:nth-child(2) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: translateY(0); } }

/* reveal-on-load for hero supporting bits */
.js .reveal-hero { opacity: 0; transform: translateY(14px); animation: fadeUp 0.6s var(--ease) 0.4s forwards; }
.js .hero-ctas.reveal-hero { animation-delay: 0.55s; }
.js .stat-band.reveal-hero { animation-delay: 0.68s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.stat-band {
  display: grid; grid-template-columns: repeat(3, auto); gap: 2rem; justify-content: start;
  margin: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line);
}
.stat dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); margin-bottom: 0.3rem; }
.stat dd { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.stat dd strong { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.stars { color: var(--rust); letter-spacing: 0.1em; }
.stars.big { font-size: 1.6rem; }

/* the rubber-stamp seal */
.hero-seal { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.seal { width: min(300px, 60vw); height: auto; color: var(--rust); filter: drop-shadow(0 10px 24px rgba(176,81,31,0.22)); }
.seal-ring { stroke: var(--rust); }
.seal-text { fill: var(--rust); }
.seal-center { fill: var(--rust); }
.seal-spin { transform-origin: 110px 110px; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-caption { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* ---------- color-wipe transition ---------- */
.wipe { position: relative; height: 5px; background: var(--ink); overflow: hidden; }
.wipe-bar {
  position: absolute; inset: 0; background: var(--rust);
  transform: scaleX(0); transform-origin: left;
}
.js .wipe.inview .wipe-bar { animation: wipeAcross 1.1s var(--ease) forwards; }
@keyframes wipeAcross {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ---------- sections ---------- */
.section { padding: var(--pad) 0; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 800px; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }

/* ---------- services: numbered rows, not cards ---------- */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start; padding: 2rem 0.5rem; border-bottom: 1px solid var(--line);
  transition: background-color 200ms var(--ease), padding-left 250ms var(--ease);
}
.service-row:hover { background: rgba(176, 81, 31, 0.06); padding-left: 1.25rem; }
.service-num {
  font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: var(--step-3);
  color: transparent; -webkit-text-stroke: 1.5px var(--rust); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.service-row h3 { margin-bottom: 0.5rem; }
.service-row p { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.service-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rust-deep); border: 1.5px solid var(--rust); border-radius: 999px;
  padding: 0.35rem 0.9rem; white-space: nowrap; align-self: center;
}

/* ---------- marquee divider ---------- */
.marquee {
  background: var(--ink); color: var(--cream); overflow: hidden; white-space: nowrap;
  padding: 1.1rem 0; border-top: 3px solid var(--rust); border-bottom: 3px solid var(--rust);
}
.marquee-track { display: inline-block; animation: marquee 32s linear infinite; }
.marquee-track span {
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.04em; padding-right: 0.5rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- process ---------- */
.process-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem);
}
.process-step { position: relative; padding-top: 1rem; border-top: 3px solid var(--rust); }
.process-num {
  font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: clamp(3.5rem, 6vw, 5rem);
  line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--rust);
  display: block; margin-bottom: 1rem; font-variant-numeric: tabular-nums;
}
.process-step h3 { margin-bottom: 0.6rem; }
.process-step p { margin: 0; color: var(--ink-soft); }

/* ---------- reviews band (dark navy punctuation) ---------- */
.reviews {
  background:
    radial-gradient(50vw 30vw at 80% 0%, rgba(176, 81, 31, 0.16), transparent 70%),
    var(--ink);
  color: var(--cream);
}
.reviews .eyebrow { color: #e0a072; }
.reviews .eyebrow::before { background: #e0a072; }
.reviews h2 { color: var(--cream); }
.reviews h2 em { color: #e0a072; }
.lede.light { color: #cfd6d4; }
.review-proof {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; margin-top: 1rem;
}
.review-score { text-align: center; border: 2px dashed rgba(224, 160, 114, 0.55); border-radius: var(--radius); padding: 2.25rem 1.5rem; }
.score-num { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: clamp(4rem, 8vw, 5.5rem); line-height: 1; color: var(--cream); font-variant-numeric: tabular-nums; }
.score-sub { display: block; margin-top: 0.75rem; color: #cfd6d4; font-size: 0.95rem; }
.review-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.review-notes li { color: #e7e2d4; font-size: 1.08rem; line-height: 1.6; padding-left: 2rem; position: relative; }
.review-notes li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 1.1rem; height: 2px; background: #e0a072;
}
.review-notes strong { color: var(--cream); font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; display: block; margin-bottom: 0.2rem; }
.reviews-cta { margin-top: 3rem; text-align: center; }

/* ---------- service area ---------- */
.area-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.area-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.area-list strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: var(--step-2); font-weight: 800; letter-spacing: -0.01em; }
.area-list span { color: var(--steel); font-size: 0.98rem; }
.area-card {
  background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; justify-content: center;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.area-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(24, 38, 48, 0.14); }
.mini-seal { width: 52px; height: 52px; color: var(--rust); }
.area-card address { font-size: 1.1rem; line-height: 1.7; }
.area-card address strong { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; }
.area-hours { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 1rem; }
.faq-list details {
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 252, 244, 0.5);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.faq-list details:hover { border-color: var(--rust); }
.faq-list details[open] { background: rgba(255, 252, 244, 0.9); border-color: var(--rust); }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.6rem; font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.15rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 1.6rem;
  color: var(--rust); flex-shrink: 0; transition: transform 250ms var(--ease); line-height: 1;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 1.6rem 1.5rem; margin: 0; color: var(--ink-soft); max-width: 64ch; }

/* ---------- story ---------- */
.story { background: var(--cream-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.story-copy h2 { margin-bottom: 1.5rem; }
.story-copy p { color: var(--ink-soft); }
.story-copy strong { color: var(--ink); }
.story-sign { margin-top: 2rem; display: flex; flex-direction: column; }
.story-name { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 1.35rem; }
.story-role { color: var(--steel); font-size: 0.95rem; }
.story-panel {
  background: var(--ink); color: var(--cream); border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.story-panel:hover { transform: translateY(-5px) rotate(-0.5deg); box-shadow: 0 22px 48px rgba(24, 38, 48, 0.28); }
.seal-stamp { width: min(220px, 55vw); color: #e0a072; transform: rotate(-6deg); transition: transform 300ms var(--ease); }
.seal-stamp circle { stroke: #e0a072; }
.seal-stamp text { fill: #e0a072; }
.story-panel:hover .seal-stamp { transform: rotate(2deg) scale(1.03); }
.story-panel blockquote {
  margin: 0; font-family: "Fraunces", Georgia, serif; font-style: italic;
  font-size: var(--step-2); line-height: 1.4; text-wrap: balance;
}
.story-panel cite { font-style: normal; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: #a9b3b1; }

/* ---------- final CTA ---------- */
.cta-card {
  background:
    radial-gradient(40vw 25vw at 50% 0%, rgba(176, 81, 31, 0.12), transparent 70%),
    #faf5e9;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.75rem, 5vw, 4rem);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.cta-card h2 { font-size: var(--step-4); max-width: 20ch; }
.cta-sub { color: var(--ink-soft); font-size: var(--step-1); max-width: 52ch; margin: 0; }
.cta-mail {
  font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: clamp(1.15rem, 4.6vw, 2.75rem);
  color: var(--rust-deep); text-decoration: none; letter-spacing: -0.01em; overflow-wrap: anywhere;
  position: relative;
}
.cta-mail::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 3px; width: 100%;
  background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease);
}
.cta-mail:hover { color: var(--rust); }
.cta-mail:hover::after { transform: scaleX(1); }
.cta-fine { margin: 0.5rem 0 0; color: var(--steel); font-size: 0.92rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 calc(2.5rem + 0px); }
.footer-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-right: auto; }
.footer-brand strong { font-family: "Fraunces", Georgia, serif; display: block; font-size: 1.05rem; }
.footer-brand span { color: var(--steel); font-size: 0.92rem; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.footer-nav a:hover { color: var(--rust-deep); }
.footer-fine { width: 100%; margin: 0.5rem 0 0; color: var(--steel); font-size: 0.85rem; }

/* ---------- mobile sticky bar ---------- */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(243, 234, 215, 0.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { width: 100%; }

/* ---------- scroll reveals (JS adds .js and .in; visible by default without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 550ms var(--ease), transform 550ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-inner { gap: 1rem; }
  .header-cta { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-seal { order: -1; }
  .seal { width: min(210px, 52vw); }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .process-steps { grid-template-columns: 1fr; gap: 2rem; }
  .review-proof { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 64px 1fr; }
  .service-tag { display: none; }
  .mobile-bar { display: block; }
  body { padding-bottom: 76px; }
  .site-footer { padding-bottom: 1.5rem; }
}

@media (min-width: 901px) {
  .mobile-bar { display: none !important; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mask > span { transform: none !important; }
  .js .reveal, .js .reveal-hero { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .seal-spin { animation: none !important; }
}
