/* ==========================================================================
   HotDawgs — Hearthside SIGNATURE layer
   Loaded after style.css. Adds the one real idea this page is built around:

   THE ROOM WARMS UP AS YOU SCROLL.

   The hero opens cold — a held breath, a dog on a hard floor at midnight.
   As you scroll, a cold blue cast burns off and the ember glow already
   built into the hero takes over. Further down, the "Before / After"
   isn't two cards side by side — it's a single frame where firelight
   physically sweeps across the room and changes what's in it.

   Everything else stays quiet on purpose so that idea has room to land:
   brass-engraved detail cards instead of emoji, one consistent warm
   photographic cast instead of four different stock-photo color casts,
   and a hair of film grain instead of a flat vector-clean surface.
   ========================================================================== */

:root {
  --midnight: #131E28;
  --midnight-soft: #2E4356;
  --brass-line: rgba(176,141,87,0.45);
}

/* ---------------------------------------------------------------------
   Film grain — the whole page gets a hair of texture so it reads as a
   photographed room, not a rendered one. Pure CSS, no image request.
   --------------------------------------------------------------------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
@media (prefers-reduced-motion: reduce) { .grain-overlay { opacity: 0.035; } }

/* ---------------------------------------------------------------------
   Logo mark — a drawn ember instead of the 🔥 emoji. Reads as designed,
   not defaulted, and gives the brass palette a place to introduce itself.
   --------------------------------------------------------------------- */
.logo-mark { width: 22px; height: 22px; flex-shrink: 0; display: block; }
.logo-mark .ember-fill { fill: var(--ember); }
.logo-mark .ember-fill-soft { fill: var(--ember-glow); }
.footer-brand .logo-mark .ember-fill { fill: var(--ember-glow); }
.footer-brand .logo-mark .ember-fill-soft { fill: var(--gold); }

/* ---------------------------------------------------------------------
   Hero — cold-to-warm scroll drive.
   A --warmth custom property (0 → 1) is written by js/warmth.js as the
   hero scrolls past. A blue-cast overlay fades out; the existing ember
   glow intensifies. Static fallback (--warmth: 0.35 by default) keeps
   it looking intentional even with JS/reduced-motion off.
   --------------------------------------------------------------------- */
.hero { --warmth: 0.35; }

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-atmosphere-cold {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(200deg, rgba(46,67,86,0.55) 0%, rgba(19,30,40,0.2) 55%, transparent 80%);
  opacity: calc(1 - var(--warmth, 0.35));
  transition: opacity 0.1s linear;
}
.hero::before {
  opacity: calc(0.45 + (var(--warmth, 0.35) * 0.65));
}

.hero-scene-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(251,241,225,0.5);
  margin: 0 0 22px;
}

/* Vertical warmth rail — desktop-only ambient readout of the same scroll
   value, so the metaphor is stated twice: once in light, once as data. */
.warmth-rail {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 220px;
}
.warmth-rail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251,241,225,0.4);
}
.warmth-rail-track {
  position: relative;
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--midnight-soft), var(--ember-glow));
  border-radius: 2px;
  opacity: 0.55;
}
.warmth-rail-dot {
  position: absolute;
  left: 50%;
  top: calc(var(--warmth, 0.35) * 100%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ember-glow);
  box-shadow: 0 0 10px 2px rgba(233,161,92,0.7);
  transform: translate(-50%, -50%);
}
@media (max-width: 900px) { .warmth-rail { display: none; } }

/* ---------------------------------------------------------------------
   Reveal stage — replaces the old side-by-side compare cards with one
   frame where the "After" photo physically wipes across the "Before"
   photo as you scroll, like firelight crossing a room.
   --------------------------------------------------------------------- */
.reveal-section { padding: 100px 0; }
.reveal-stage { margin-top: 54px; }
.reveal-media {
  --reveal: 55%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -24px rgba(36,26,18,0.4);
}
.reveal-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reveal-img-cold { filter: saturate(0.55) brightness(0.82) sepia(0.12) hue-rotate(160deg) contrast(1.05); }
.reveal-img-warm {
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
  filter: saturate(1.12) brightness(1.02) sepia(0.16) contrast(1.04);
}
.reveal-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--reveal);
  width: 3px;
  background: var(--ember-glow);
  box-shadow: 0 0 24px 4px rgba(233,161,92,0.55);
  transform: translateX(-50%);
  z-index: 3;
}
.reveal-divider::before,
.reveal-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 34px; height: 34px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--ember-glow);
  opacity: 0.16;
  filter: blur(6px);
}
.reveal-divider::before { top: 30%; }
.reveal-divider::after { top: 70%; }
.reveal-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.reveal-label-warm { color: var(--ember-dark); }

@media (max-width: 700px) {
  .reveal-media { aspect-ratio: 4 / 5; }
}

/* ---------------------------------------------------------------------
   Plaque cards — the safety strip, rebuilt as small engraved brass
   plates instead of an emoji row. Hand-drawn line icons, one hairline
   ring, restrained.
   --------------------------------------------------------------------- */
.plaque-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.plaque-card {
  border: 1px solid var(--brass-line);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(251,241,225,0.03), transparent);
}
.plaque-ring {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1.5px solid var(--brass-line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.plaque-ring svg { width: 22px; height: 22px; stroke: var(--ember-glow); }
.plaque-card p {
  color: rgba(251,241,225,0.75);
  font-size: 13.5px;
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 900px) { .plaque-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------
   Polaroid frame — the size-finder photo, tucked into a small tilted
   print instead of a full-bleed image, like something pinned above a
   mantel rather than a stock marketing photo.
   --------------------------------------------------------------------- */
.polaroid {
  background: var(--cream);
  padding: 14px 14px 46px;
  border-radius: 4px;
  box-shadow: 0 26px 50px -18px rgba(36,26,18,0.35), 0 0 0 1px rgba(36,26,18,0.04);
  transform: rotate(-2.2deg);
  max-width: 420px;
  margin: 0 auto;
}
.quiz-visual .polaroid img {
  border-radius: 2px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  height: auto;
  filter: saturate(1.1) sepia(0.16) contrast(1.03);
}
.polaroid-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 14px;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------
   Warm photographic cast — one consistent tint across product shots so
   the page reads as a single art-directed shoot, not four stock photos.
   --------------------------------------------------------------------- */
.photo-warm { filter: saturate(1.1) sepia(0.14) contrast(1.03) brightness(1.01); }

/* Section head refinement — a hair more editorial, less "template SaaS." */
.section-head { text-align: left; margin: 0 0 44px; max-width: 640px; }
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.gift-banner .section-head,
.quiz-teaser .section-head { margin: 0; }

/* Thin brass rule under the nav instead of the flat line color. */
.site-nav { border-bottom: 1px solid var(--brass-line); }
