/* B & B Gas & Electric Appliance Repair — "The parts counter since 1966" */
:root {
  --paper: #f2e9d4;
  --paper-wash: #e6d8b8;
  --hairline: #c9b88f;
  --ink: #241c13;
  --peg: #251c12;
  --peg-deep: #17100a;
  --peg-panel: #2f2415;
  --bone: #efe6cf;
  --muted: #a6957a;
  --accent: #1e7f79;
  --accent-deep: #15635e;
  --accent-ink: #123c39;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --step--1: clamp(0.875rem, 0.84rem + 0.18vw, 0.97rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.12rem + 0.65vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.36rem + 1.2vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.62rem + 2.4vw, 3.4rem);
  --step-5: clamp(3.2rem, 1.9rem + 6.5vw, 6.4rem);
  --step-6: clamp(4rem, 2.2rem + 9vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "New Rocker", "Georgia", serif; font-weight: 400; line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 0.6em; }
h1 em, h2 em { font-family: Georgia, "Times New Roman", serif; font-style: italic; letter-spacing: 0; }
p { text-wrap: pretty; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Grain */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* Eyebrow + section head */
.eyebrow {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent); font-weight: 700; margin: 0 0 1rem;
}
.eyebrow-light { color: var(--accent); }
.eyebrow-dark { color: var(--accent-ink); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--step-3); }
.lede { font-size: var(--step-1); color: #5a4c36; max-width: 62ch; margin: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.8rem 24px; background: rgba(242, 233, 212, 0.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
  font-family: "New Rocker", Georgia, serif; font-size: 1.6rem;
  color: var(--bone); background: var(--peg); padding: 0.25rem 0.55rem 0.35rem;
  border-radius: 6px; line-height: 1;
}
.brand-words { display: flex; flex-direction: column; line-height: 1.25; }
.brand-words strong { font-size: 0.95rem; }
.brand-words small { font-size: 0.72rem; color: #6b5b40; }
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 0.92rem; font-weight: 600; position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--accent); transition: width 180ms var(--ease);
}
.site-nav a:hover::after { width: 100%; }
.header-call {
  font-size: 1.15rem; font-weight: 800; text-decoration: none;
  font-variant-numeric: tabular-nums; color: var(--accent-ink);
}

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42rem 30rem at 85% -10%, rgba(30, 127, 121, 0.12), transparent 60%),
    radial-gradient(36rem 26rem at -10% 110%, rgba(201, 184, 143, 0.5), transparent 60%);
}
.hero-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  position: relative;
}
.hero-title { font-size: var(--step-6); margin-bottom: 1rem; }
.hero-title em { color: var(--accent); }
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask > span { display: inline-block; }
.hero-sub { font-size: var(--step-1); max-width: 44ch; color: #4a3d28; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0; }
.btn {
  display: inline-block; padding: 0.95rem 1.7rem; border-radius: 6px;
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}
.btn-primary { background: var(--accent); color: #f4f7f4; box-shadow: 0 10px 26px -12px rgba(30, 127, 121, 0.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -12px rgba(30, 127, 121, 0.8); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-3px); background: var(--ink); color: var(--paper); }
.btn-dark { background: var(--peg); color: var(--bone); }
.btn-dark:hover { transform: translateY(-3px); }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; list-style: none; margin: 0; padding: 1.2rem 0 0; border-top: 1px solid var(--hairline); }
.trust-row li { font-size: 0.9rem; font-weight: 600; color: #5a4c36; display: flex; align-items: center; gap: 0.5rem; }
.trust-row li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(36, 28, 19, 0.45);
  filter: saturate(0.82) sepia(0.14) contrast(1.02);
  transition: transform 500ms var(--ease);
}
.hero-photo:hover img { transform: scale(1.02); }
.hero-photo figcaption {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  background: rgba(37, 28, 18, 0.88); color: var(--bone);
  padding: 0.8rem 1.1rem; border-radius: 10px; font-size: 0.92rem;
}
.ticket-stub {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em;
  color: var(--peg); background: var(--paper); border-radius: 4px;
  padding: 0.2rem 0.55rem; margin-right: 0.7rem; vertical-align: middle;
}

/* Marquee */
.marquee {
  background: var(--peg); color: var(--bone); overflow: hidden;
  border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
  padding: 0.85rem 0;
}
.marquee-track { display: flex; gap: 3.2rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: "New Rocker", Georgia, serif; font-size: 1.1rem; white-space: nowrap; }
.marquee-track span::after { content: "·"; margin-left: 3.2rem; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats */
.stats { padding: clamp(3rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--hairline); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: left; }
.stat-num { font-family: "New Rocker", Georgia, serif; font-size: var(--step-3); color: var(--accent-ink); font-variant-numeric: tabular-nums; display: block; }
.stat-label { font-size: 0.92rem; color: #5a4c36; }

/* Services: drawer labels */
.services { padding: clamp(5rem, 10vw, 8rem) 0; }
.drawer-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.drawer {
  display: grid; grid-template-columns: 88px 1fr 44px; gap: 1.4rem; align-items: center;
  padding: 1.9rem 0.6rem; border-bottom: 2px solid var(--ink);
  position: relative; transition: background 200ms var(--ease), padding 200ms var(--ease);
}
.drawer::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--accent); transition: width 200ms var(--ease);
}
.drawer:hover { background: rgba(30, 127, 121, 0.06); }
.drawer:hover::before { width: 6px; }
.drawer-no { font-family: "New Rocker", Georgia, serif; font-size: var(--step-2); color: var(--accent); }
.drawer-body h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.drawer-body p { margin: 0; color: #4a3d28; max-width: 68ch; }
.drawer-pull { width: 34px; height: 10px; border: 2px solid var(--hairline); border-radius: 5px; justify-self: end; }

/* Pegboard divider */
.peg-divider { color: var(--accent); padding: 0.4rem 0; background: var(--paper); }
.peg-divider svg { display: block; width: 100%; height: 48px; }
.peg-holes circle { fill: var(--hairline); opacity: 0; transform: scale(0.2); transform-box: fill-box; transform-origin: center; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.peg-divider.drawn .peg-holes circle { opacity: 1; transform: scale(1); }
.peg-divider .peg-holes circle:nth-child(2n) { transition-delay: 120ms; }
.peg-divider .peg-holes circle:nth-child(3n) { transition-delay: 240ms; }
.peg-divider .peg-hooks path { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 600ms var(--ease) 300ms; }
.peg-divider.drawn .peg-hooks path { stroke-dashoffset: 0; }

/* Heritage: dark pegboard side */
.heritage { background: var(--peg); color: var(--bone); padding: clamp(5rem, 10vw, 8rem) 0; }
.heritage-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.heritage-photo img {
  border-radius: 20px; filter: saturate(0.7) sepia(0.2) contrast(1.02) brightness(0.94);
  transition: transform 500ms var(--ease);
}
.heritage-photo:hover img { transform: scale(1.02); }
.heritage-photo figcaption { margin-top: 0.9rem; color: var(--muted); font-size: 0.92rem; }
.heritage-copy h2 { font-size: var(--step-3); }
.heritage-copy h2 em { color: var(--accent); }
.heritage-copy p { color: #d9cdb2; max-width: 62ch; }
.heritage-facts { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.heritage-facts li {
  border: 1px solid #4a3a24; border-radius: 8px; padding: 0.7rem 1rem;
  font-weight: 600; font-size: 0.95rem; background: var(--peg-panel);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}
.heritage-facts li:hover { transform: translateY(-4px); border-color: var(--accent); }

/* Warranty band */
.warranty { padding: clamp(5rem, 10vw, 8rem) 0; }
.warranty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.warranty-copy h2 { font-size: var(--step-3); }
.warranty-copy h2 em { color: var(--accent); }
.coupons { display: grid; gap: 1.2rem; }
.coupon {
  border: 2px dashed var(--accent); border-radius: 12px; padding: 1.4rem 1.6rem;
  background: rgba(30, 127, 121, 0.06);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.coupon:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -16px rgba(30, 127, 121, 0.5); }
.coupon strong { font-family: "New Rocker", Georgia, serif; font-size: var(--step-1); display: block; margin-bottom: 0.25rem; }
.coupon span { color: #5a4c36; font-size: 0.95rem; }

/* Full-bleed band */
.band { position: relative; min-height: 70vh; display: flex; align-items: flex-end; overflow: hidden; }
.band-img {
  position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover;
  filter: saturate(0.65) sepia(0.22) contrast(1.03) brightness(0.8);
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.band-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 16, 10, 0.15) 0%, rgba(23, 16, 10, 0.78) 100%); }
.band-copy { position: relative; color: var(--bone); padding: clamp(4rem, 8vw, 7rem) 24px; }
.band-copy h2 { font-size: var(--step-3); max-width: 16ch; }
.band-copy p { max-width: 58ch; color: #e6dcc4; }

/* Wipe divider */
.wipe { background: var(--peg-deep); }
.wipe span { display: block; height: clamp(2.5rem, 5vw, 4rem); background: var(--accent); transform: scaleX(0); transform-origin: left; }
.wipe.on span { animation: wipe 900ms var(--ease) forwards; }
@keyframes wipe { to { transform: scaleX(1); } }

/* Reviews */
.reviews { background: var(--peg-deep); color: var(--bone); padding: clamp(5rem, 10vw, 8rem) 0; }
.reviews .section-head h2 em { color: var(--accent); }
.aggregate { text-align: center; max-width: 640px; margin: 0 auto; }
.aggregate-stars { position: relative; display: inline-block; font-size: 2.6rem; letter-spacing: 0.1em; line-height: 1; }
.stars-back { color: #4a3a24; }
.stars-front { position: absolute; left: 0; top: 0; color: var(--accent); overflow: hidden; white-space: nowrap; }
.aggregate-num { font-family: "New Rocker", Georgia, serif; font-size: var(--step-5); margin: 0.6rem 0 0; }
.aggregate-label { color: var(--muted); margin: 0; }
.aggregate-note { color: #d9cdb2; margin-top: 1.4rem; max-width: 48ch; margin-left: auto; margin-right: auto; }

/* Service area */
.area { padding: clamp(5rem, 10vw, 8rem) 0; }
.area .section-head h2 em { color: var(--accent); }
.area-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.area-card {
  font-style: normal; background: var(--peg); color: var(--bone);
  border-radius: 14px; padding: 1.8rem; line-height: 1.7;
  transition: transform 200ms var(--ease);
}
.area-card:hover { transform: translateY(-5px); }
.area-card strong { display: block; font-family: "New Rocker", Georgia, serif; font-weight: 400; font-size: 1.15rem; margin-bottom: 0.5rem; }
.area-card a { color: var(--accent); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.area-towns { display: flex; flex-direction: column; gap: 0.8rem; justify-content: center; }
.town {
  font-family: "New Rocker", Georgia, serif; font-size: var(--step-1);
  border: 2px solid var(--hairline); border-radius: 10px; padding: 0.8rem 1.2rem; text-align: center;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}
.town:hover { transform: translateY(-4px); border-color: var(--accent); }
.town-note { font-family: inherit; font-size: 0.95rem; color: #5a4c36; border-style: dashed; }
.area-hours { list-style: none; margin: 0; padding: 1.8rem; background: var(--paper-wash); border-radius: 14px; display: flex; flex-direction: column; justify-content: center; gap: 0.8rem; }
.area-hours li { display: flex; justify-content: space-between; font-weight: 600; border-bottom: 1px solid var(--hairline); padding-bottom: 0.8rem; }
.area-hours li:last-child { border-bottom: 0; padding-bottom: 0; }

/* FAQ */
.faq { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--paper-wash); }
.faq-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq .section-head h2 em { color: var(--accent); }
.faq-list details {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 10px;
  margin-bottom: 0.9rem; overflow: hidden;
  transition: box-shadow 200ms var(--ease);
}
.faq-list details:hover { box-shadow: 0 10px 24px -14px rgba(36, 28, 19, 0.35); }
.faq-list summary {
  cursor: pointer; padding: 1.2rem 1.4rem; font-weight: 700; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.5rem; color: var(--accent); flex: none;
  transition: transform 200ms var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 1.4rem 1.3rem; margin: 0; color: #4a3d28; }

/* Final CTA */
.cta { background: var(--accent); color: #0e2b28; padding: clamp(5rem, 10vw, 8rem) 0; text-align: center; }
.cta-inner h2 { font-size: var(--step-5); color: #f2f7f5; }
.cta-inner h2 em { color: #0e2b28; }
.cta .eyebrow { color: #0e2b28; }
.cta-phone {
  display: block; font-family: "New Rocker", Georgia, serif; font-size: var(--step-6);
  color: #f2f7f5; text-decoration: none; font-variant-numeric: tabular-nums;
  margin: 1rem 0 1.6rem; transition: transform 200ms var(--ease);
}
.cta-phone:hover { transform: scale(1.03); }
.cta-sub { margin: 1.4rem 0 0; color: #0e2b28; font-weight: 600; }

/* Footer */
.site-footer { background: var(--peg-deep); color: var(--muted); padding: 3rem 0 5rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand .brand-mark { font-size: 1.3rem; }
.footer-brand p { margin: 0; }
.footer-brand strong { color: var(--bone); }
.footer-contact { font-style: normal; line-height: 1.8; text-align: right; }
.footer-contact a { color: var(--bone); font-weight: 700; text-decoration: none; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid #33291a; padding-top: 1.4rem; font-size: 0.85rem; margin: 0; }

/* Mobile call bar */
.mobile-callbar { display: none; }

/* Reveal system (JS-gated so content shows with JS disabled) */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .mask > span { transform: translateY(110%); animation: rise 700ms var(--ease) forwards; }
html.js .mask:nth-of-type(2) > span { animation-delay: 90ms; }
@keyframes rise { to { transform: translateY(0); } }
html.js .hero-photo { opacity: 0; transform: translateY(20px); animation: settle 700ms var(--ease) 260ms forwards; }
@keyframes settle { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-call { margin-left: auto; font-size: 1.02rem; }
  .hero-inner, .heritage-grid, .warranty-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-photo { order: 2; }
  .drawer { grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.6rem 0.4rem; }
  .drawer-pull { display: none; }
  .cta-phone { font-size: clamp(2rem, 9.6vw, 3.2rem); white-space: nowrap; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
  .mobile-callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; }
  .mobile-callbar a {
    display: block; text-align: center; background: var(--accent); color: #f4f7f4;
    font-weight: 800; font-size: 1.05rem; text-decoration: none; padding: 1rem;
  }
  body { padding-bottom: 60px; }
  .site-footer { padding-bottom: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal, html.js .mask > span, html.js .hero-photo { opacity: 1 !important; transform: none !important; }
  .peg-divider .peg-holes circle { opacity: 1; transform: none; }
  .peg-divider .peg-hooks path { stroke-dashoffset: 0; }
  .wipe span { transform: scaleX(1); }
}
