/* ==========================================================================
   POLISH — "good to great" overlay for the Hazel site.
   Loads after style.css. Everything here is additive and reversible.
   1) Warmer paper tones  2) A gold thread (accents only)
   3) Gentle radii + softer shadows  4) Subtle motion (reveals, hovers)
   ========================================================================== */

:root {
  /* Warmer cream band + warmer hairlines */
  --bg-warm:     #f8f3ea;
  --rule:        #e7e0d3;
  --rule-strong: #cfc5b2;

  /* The gold thread — from the chain of office. Accents only. */
  --gold:      #a87b2f;   /* 4.6:1 on white — fine at 16px bold uppercase */
  --gold-soft: #c9a45c;
  --gold-tint: #f6efe1;

  /* Gentle rounding */
  --radius:     10px;
  --radius-img: 12px;
  --radius-sm:  8px;

  /* Softer, warmer shadows */
  --shadow: 0 1px 2px rgba(60, 45, 20, 0.05), 0 10px 28px rgba(60, 45, 20, 0.1);
  --shadow-soft: 0 1px 2px rgba(60, 45, 20, 0.04), 0 6px 18px rgba(60, 45, 20, 0.07);
}

/* ---- The gold thread ----------------------------------------------------- */

/* Eyebrows pick up a short gold dash — a quiet signature on every section. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--gold-soft);
  border-radius: 1px;
  flex-shrink: 0;
}
.section--deep .eyebrow { color: var(--gold-soft); }
.section--deep .eyebrow::before { background: var(--gold-soft); }
.page-banner .eyebrow { color: var(--gold-soft); }

/* Centered eyebrows (CTA blocks) */
.eyebrow--center { justify-content: center; }

/* Timeline: gold years and gold dots with a soft halo. */
.timeline { border-left-color: var(--rule-strong); }
.timeline__year { color: var(--gold); }
.timeline li::before {
  background: var(--gold);
  border-color: var(--gold-tint);
  box-shadow: 0 0 0 1px var(--gold-soft);
}

/* Pull-quote citations warm; the quote text itself stays as authored. */
.pullquote cite { color: var(--gold); }
.section--deep .pullquote cite { color: var(--gold-soft); }

/* Fact numbers: navy stays, but the thin rule under the band warms. */
.facts li {
  position: relative;
  padding-top: 1.1rem;
}
.facts li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.25rem;
  height: 2px;
  background: var(--gold-soft);
  border-radius: 1px;
}

/* Person roles pick up the gold too — accents only. */
.person__role { color: var(--gold); }

/* ---- Gentle radii --------------------------------------------------------- */

.card, .tier, .sponsor-tile, .notice,
.person__placeholder, .video-frame,
.player { border-radius: var(--radius); }

.card { overflow: hidden; }
.player { overflow: hidden; }

.hero__img, .split__img, .person__img, .card__img,
.gallery img, .portrait-img, .city-band__img, .page-banner__img {
  border-radius: var(--radius-img);
}
.card__img { border-radius: 0; }              /* card clips it already */
.city-band__img, .page-banner__img { border-radius: 0; }  /* full-bleed stays full-bleed */

/* Every button carries the same 12px radius as the photographs, so the
   controls and the imagery read as one system rather than two. */
.btn,
.nav-toggle,
.player__btn { border-radius: var(--radius-img); }
.btn { padding-inline: 2.2rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea { border-radius: var(--radius-sm); }
.footer-logos img { border-radius: var(--radius-sm); }

.city-band { border-radius: 0; }

/* Photos that float on the page get a soft warm shadow. */
.hero__img, .split__img, .person__img, .gallery img,
.portrait-img { box-shadow: var(--shadow-soft); }

/* ---- Subtle motion --------------------------------------------------------- */

/* Scroll reveal: hidden ONLY once reveal.js is live (html.reveal-on). */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal-on [data-reveal].is-visible { opacity: 1; transform: none; }
  [data-reveal="2"] { transition-delay: 0.08s; }
  [data-reveal="3"] { transition-delay: 0.16s; }
  [data-reveal="4"] { transition-delay: 0.24s; }
}

/* Card hover: slightly deeper lift, image eases in scale. */
.card__img { transition: transform 0.5s ease; }
a.card:hover .card__img { transform: scale(1.03); }
a.card:hover { box-shadow: var(--shadow); }

/* Gallery photos breathe on hover — and so do the portraits sitting directly
   above them, since two photo grids on the same page should behave alike. */
.gallery img,
.portrait-img { transition: transform 0.45s ease, box-shadow 0.45s ease; }
.gallery figure:hover img,
.portraits figure:hover .portrait-img { transform: scale(1.02); box-shadow: var(--shadow); }

/* Buttons: gentle press + lift. */
.btn { transition: background-color 0.18s ease, border-color 0.18s ease,
                   color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Nav underline slides in rather than popping. */
.nav-link { position: relative; border-bottom: 0; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-link:hover::after { transform: scaleX(1); background: var(--rule-strong); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }
@media (max-width: 1150px) {
  .nav-link { border-bottom: 1px solid var(--rule); }
  .nav-link::after { display: none; }
}

/* ---- Small detail refinements --------------------------------------------- */

/* Selection matches the warmer palette. */
::selection { background: var(--accent); color: #fff; }

/* Hairline between sections that share a white background. */
.page-head { border-bottom-color: var(--rule); }

/* Sponsor tiles hover — a soft invitation. */
.sponsor-tile { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.sponsor-tile:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-soft); }

/* Deflist labels warm slightly. */
.deflist dt { color: var(--ink); }
.deflist > div { transition: background-color 0.2s ease; }

/* Form focus rings stay navy; fields warm their border on hover. */
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--rule-strong); }

/* Footer: gold hairline above the bottom row. */
.footer-grid { border-bottom-color: rgba(201, 164, 92, 0.35); }

/* ---- The smallest phones --------------------------------------------------
   At 320px — an iPhone SE (1st generation), and still the narrowest screen
   worth supporting — the six-word title and the full-width "Menu" button
   cannot both fit on the header row, and the whole page picks up a sideways
   scroll. Tighten the gap, let the title wrap a word sooner, and trim the
   button's padding; together that reclaims the ~35px it was over by.
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
  .header-inner { gap: var(--space-sm); }
  .wordmark__name { max-width: 8.5em; }
  .nav-toggle { padding-inline: 0.7rem; gap: 0.45rem; }
}
