/* ============================================================
   Hvac Royal Service Inc — Chicago
   Palette: desaturated 70s photo (faded print, warm, grainy)
   ============================================================ */

:root {
  --bg:      #efe6d0;
  --bg-2:    #e3d7bb;
  --ink:     #3a2f1a;
  --ink-soft:#5c4d31;
  --a:       #a67c00;  /* mustard */
  --b:       #6b7a3a;  /* avocado */
  --c:       #c04e1a;  /* burnt sienna */
  --line:    rgba(58, 47, 26, 0.22);
  --card:    #f6efdd;
  --shadow:  0 1px 0 rgba(58,47,26,.10), 0 12px 30px -18px rgba(58,47,26,.45);
  --wrap:    1180px;
  --pad:     clamp(1.25rem, 4vw, 3rem);
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #1c1810;
    --bg-2:    #241f15;
    --ink:     #ece1c6;
    --ink-soft:#c3b491;
    --a:       #d9a72b;
    --b:       #9aab5c;
    --c:       #e2703a;
    --line:    rgba(236, 225, 198, 0.20);
    --card:    #262013;
    --shadow:  0 1px 0 rgba(0,0,0,.4), 0 14px 34px -20px rgba(0,0,0,.9);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

/* grain overlay — the "faded print" texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.30;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  body::before { mix-blend-mode: screen; opacity: 0.14; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c); text-underline-offset: 3px; }
a:hover { color: var(--a); }

:focus-visible {
  outline: 3px solid var(--c);
  outline-offset: 3px;
  border-radius: 2px;
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 1.6rem + 5.4vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.01em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   SCROLL PROGRESS — a colored strip that is part of the layout
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  z-index: 60;
  background: var(--bg-2);
}
.progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--a), var(--c) 55%, var(--b));
}
@supports (animation-timeline: scroll()) {
  .progress span {
    animation: fill linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes fill { to { transform: scaleX(1); } }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
  min-height: 44px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 3px;
}
.brand-text { font-size: 0.98rem; }
.topnav {
  display: none;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.92rem;
}
.topnav a { color: var(--ink-soft); text-decoration: none; }
.topnav a:hover { color: var(--c); text-decoration: underline; }

.callbtn {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  background: var(--c);
  color: #fff8ec;
  text-decoration: none;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}
.callbtn:hover { background: var(--a); color: #2a2109; }
.callbtn-label { opacity: 0.75; font-weight: 400; }

@media (min-width: 860px) {
  .topnav { display: flex; }
  .callbtn { margin-left: 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b);
  margin-bottom: 1rem;
}
h1 { margin-bottom: 1.1rem; }

/* caret-blinking headline */
.caret {
  display: inline-block;
  margin-left: 0.06em;
  color: var(--c);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.6rem;
}

/* ---- audio-visualizer bars (visual only, no sound) ---- */
.viz {
  margin: 0 0 1.8rem;
  padding: 0.85rem 1rem 0.7rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  max-width: 420px;
}
.viz-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 46px;
}
.viz-bars i {
  flex: 1 1 auto;
  min-width: 2px;
  background: var(--a);
  border-radius: 1px;
  transform-origin: 50% 100%;
  animation: pulse 1.5s ease-in-out infinite alternate;
}
.viz-bars i:nth-child(3n)   { background: var(--b); }
.viz-bars i:nth-child(4n+1) { background: var(--c); }
@keyframes pulse {
  from { transform: scaleY(0.18); }
  to   { transform: scaleY(1); }
}
.viz-caption {
  margin: 0.55rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--c); color: #fff8ec; }
.btn-primary:hover { background: var(--a); color: #2a2109; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.8rem; min-height: 56px; }

.hero-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 44ch;
}

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  filter: saturate(0.82) contrast(1.03);
}
.hero-figure figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: 0.9rem; }
.section-lede { color: var(--ink-soft); font-size: 1.02rem; }

/* ============================================================
   SERVICES — menu-first cards
   ============================================================ */
.services {
  background: var(--bg-2);
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}
.menu {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .menu { grid-template-columns: 1fr 1fr; }
  .menu-group:last-child { grid-column: 1 / -1; }
}
.menu-group h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line);
}
.item:last-child { border-bottom: 0; }
.item-name {
  margin: 0;
  font-weight: 600;
  font-size: 1.02rem;
}
.item-desc {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
}
.item-price {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--a);
  white-space: nowrap;
  padding-top: 0.15rem;
}
.menu-foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ============================================================
   STORY
   ============================================================ */
.story {
  background: var(--bg);
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}
.story-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 940px) {
  .story-grid { grid-template-columns: 1fr 1fr; }
}
.story-copy h2 { margin-bottom: 1.2rem; }
.story-copy p { color: var(--ink-soft); }
.story-figures {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 620px) {
  .story-figures { grid-template-columns: 1fr 1fr; }
}
.story-figures figure { margin: 0; }
.story-figures img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  filter: saturate(0.82) contrast(1.03);
}
.story-figures figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   RATES / STEPS
   ============================================================ */
.rates {
  background: var(--b);
  color: #f4efdd;
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}
.rates h2, .rates h3 { color: #f7f2e2; }
.rates .section-lede { color: rgba(247, 242, 226, 0.82); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.steps li {
  border-top: 2px solid rgba(247, 242, 226, 0.45);
  padding-top: 1rem;
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: rgba(247, 242, 226, 0.7);
  margin-bottom: 0.6rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.steps p { font-size: 0.92rem; color: rgba(247, 242, 226, 0.86); }

/* ============================================================
   HOURS / VISIT / AREA CARDS
   ============================================================ */
.cards-section {
  background: var(--bg-2);
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}
.footer-cards {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .footer-cards { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.42rem 0;
  border-bottom: 1px dashed var(--line);
  font-weight: 400;
}
.hours th { color: var(--ink-soft); }
.hours td { text-align: right; font-family: var(--font-mono); font-size: 0.82rem; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours-open td { color: var(--c); font-weight: 700; }
.card-note {
  margin-top: 1.1rem;
  font-size: 0.87rem;
  color: var(--ink-soft);
}
.card-visit address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 0.2rem;
}
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.card-links a { min-height: 44px; display: inline-flex; align-items: center; }
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.94rem;
}
.area-list li::before {
  content: "—";
  color: var(--a);
  margin-right: 0.45rem;
}

/* ============================================================
   CLOSING
   ============================================================ */
.closing {
  background: var(--c);
  color: #fff6ea;
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.closing-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 940px) {
  .closing-inner { grid-template-columns: 1.1fr 0.9fr; }
}
.closing blockquote {
  margin: 0;
  border-left: 3px solid rgba(255, 246, 234, 0.5);
  padding-left: 1.4rem;
}
.closing blockquote p {
  font-size: clamp(1.2rem, 1rem + 1.1vw, 1.7rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}
.closing cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 246, 234, 0.78);
}
.closing-call { text-align: left; }
.closing-line {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: rgba(255, 246, 234, 0.92);
}
.closing .btn-primary {
  background: #fff6ea;
  color: #8a3410;
}
.closing .btn-primary:hover { background: var(--ink); color: var(--bg); }
.closing-note {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: rgba(255, 246, 234, 0.8);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 2.5rem 0 2rem;
}
.footer-inner { display: grid; gap: 1rem; justify-items: start; }
.footer-line {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(239, 230, 208, 0.72);
}
.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem;
  background: rgba(239, 230, 208, 0.10);
  border: 1px solid rgba(239, 230, 208, 0.28);
  border-radius: 3px;
  color: rgba(239, 230, 208, 0.88);
  text-decoration: none;
  min-height: 0;
}
.claim-banner:hover { background: rgba(239, 230, 208, 0.18); color: #fff; }

.attribution {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.55;
  font-family: var(--font-mono);
}
.attribution a { color: inherit; }

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; opacity: 1; }
  .viz-bars i { animation: none; transform: scaleY(0.55); }
  .viz-bars i:nth-child(2n) { transform: scaleY(0.85); }
  .viz-bars i:nth-child(3n) { transform: scaleY(0.35); }
  .progress span { transform: scaleX(1); animation: none; }
  .btn { transition: none; }
}
