/* ==========================================================================
   Best Water Companies STL - 2026 Awards
   Awards-ceremony aesthetic: deep plum velvet, champagne program stock,
   gold laurel. Poppins (UI) + Crimson Text (award serif).
   ========================================================================== */

:root {
  --plum: #9d174d;
  --plum-deep: #7a0f3a;
  --plum-stage: #400a22;
  --plum-night: #310619;
  --ink: #2a0716;
  --ink-soft: #63414f;
  --champagne: #f7e8d3;
  --champagne-soft: #fdf6ea;
  --champagne-deep: #e6cfae;
  --gold: #c99a3f;
  --gold-bright: #e7c079;
  --line: rgba(157, 23, 77, 0.16);
  --shadow-card: 0 14px 34px rgba(49, 6, 25, 0.12);
  --shadow-stage: 0 30px 70px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--champagne);
  -webkit-font-smoothing: antialiased;
}

svg { display: block; }
a { color: var(--plum); text-decoration: none; }
a:hover { text-decoration: underline; }

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

[id] { scroll-margin-top: 90px; }

.wrap {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.eyebrow.left-only::after { display: none; }
.eyebrow.left-only::before { display: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 0.9rem 0 0.7rem;
}

.section-head p { color: var(--ink-soft); }

.laurel { color: var(--plum); }
.laurel.gold { color: var(--gold); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 232, 211, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--champagne-deep);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand:hover { text-decoration: none; }
.brand .laurel { width: 34px; height: 18px; flex: none; }
.brand .brand-stl { color: var(--plum); }

.brand-edition {
  display: inline-block;
  margin-left: 0.55rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
}

.site-nav a:hover { color: var(--plum); text-decoration: none; }

.site-nav a.nav-cta {
  padding: 0.5rem 1.05rem;
  background: var(--plum);
  color: var(--champagne-soft);
  border-radius: 999px;
  font-weight: 600;
}

.site-nav a.nav-cta:hover { background: var(--plum-deep); }

/* --------------------------------------------------------------------------
   Hero: the program cover
   -------------------------------------------------------------------------- */

.hero {
  text-align: center;
  padding: clamp(3.4rem, 8vw, 6rem) 0 clamp(2.6rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201, 154, 63, 0.14), transparent 70%),
    var(--champagne);
}

.hero .laurel-crest { width: 128px; height: 66px; margin: 0 auto 1.4rem; }

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.3rem);
  max-width: 17ch;
  margin: 1.1rem auto 0;
}

.hero h1 em {
  font-style: italic;
  color: var(--plum);
}

.hero .hero-sub {
  max-width: 56ch;
  margin: 1.4rem auto 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-plum {
  background: var(--plum);
  color: var(--champagne-soft);
  box-shadow: 0 10px 24px rgba(157, 23, 77, 0.28);
}

.btn-plum:hover { background: var(--plum-deep); }

.btn-champagne {
  background: var(--champagne);
  color: var(--plum-deep);
  border-color: rgba(201, 154, 63, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.btn-champagne:hover { background: #fff8ea; }

.btn-ghost-gold {
  background: transparent;
  color: var(--gold-bright);
  border-color: rgba(231, 192, 121, 0.5);
}

.btn-ghost-gold:hover { background: rgba(231, 192, 121, 0.1); }

.text-link {
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}

.text-link:hover { text-decoration: none; color: var(--plum-deep); }

/* --------------------------------------------------------------------------
   Category ticker: the running program strip
   -------------------------------------------------------------------------- */

.ticker {
  overflow: hidden;
  background: var(--plum);
  border-block: 1px solid var(--plum-deep);
  padding: 0.55rem 0;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  white-space: nowrap;
  animation: ticker-roll 52s linear infinite;
}

.ticker-track span {
  color: var(--champagne);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ticker-track .tick-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
  flex: none;
}

@keyframes ticker-roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   The Stage: Best Overall
   -------------------------------------------------------------------------- */

.stage {
  position: relative;
  padding: clamp(3.8rem, 9vw, 6.5rem) 0 clamp(3.2rem, 8vw, 5.5rem);
  background:
    radial-gradient(ellipse 62% 46% at 50% -4%, rgba(231, 192, 121, 0.2), transparent 68%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(157, 23, 77, 0.35), transparent 70%),
    linear-gradient(180deg, var(--plum-stage), var(--plum-night));
  color: var(--champagne);
}

.plaque {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2.2rem, 5.5vw, 3.6rem) clamp(1.4rem, 4.5vw, 3.2rem);
  text-align: center;
  border: 1px solid rgba(231, 192, 121, 0.36);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(247, 232, 211, 0.07), rgba(247, 232, 211, 0.02));
  box-shadow: var(--shadow-stage), inset 0 0 0 5px rgba(49, 6, 25, 0.35), inset 0 0 0 6px rgba(231, 192, 121, 0.16);
  animation: plaque-rise 0.9s ease 0.1s both;
}

@keyframes plaque-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.plaque .eyebrow { color: var(--gold-bright); }
.plaque .eyebrow::before,
.plaque .eyebrow::after { background: rgba(231, 192, 121, 0.55); }

.plaque .laurel-crest {
  width: 148px;
  height: 76px;
  margin: 1.3rem auto 0.4rem;
}

.winner-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.3rem, 5.6vw, 3.7rem);
  line-height: 1.1;
  color: var(--champagne);
  margin-top: 0.2rem;
}

.winner-title {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.plaque .citation {
  max-width: 54ch;
  margin: 1.5rem auto 0;
  color: rgba(247, 232, 211, 0.82);
  font-size: 0.98rem;
}

.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.7rem;
  list-style: none;
}

.fact-chips li {
  padding: 0.42rem 1rem;
  border: 1px solid rgba(231, 192, 121, 0.4);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--champagne);
  background: rgba(231, 192, 121, 0.08);
}

.service-line {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: rgba(247, 232, 211, 0.72);
}

.service-line strong { color: var(--champagne); font-weight: 600; }

.plaque-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.plaque .site-mention {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: rgba(247, 232, 211, 0.6);
}

.plaque .site-mention a {
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(231, 192, 121, 0.45);
}

.plaque .site-mention a:hover { text-decoration: none; color: #f3d9a4; }

/* --------------------------------------------------------------------------
   Quote form: the RSVP card
   -------------------------------------------------------------------------- */

.quote-card {
  max-width: 760px;
  margin: 2.6rem auto 0;
  padding: clamp(1.8rem, 4.5vw, 2.6rem);
  background: var(--champagne-soft);
  color: var(--ink);
  border-radius: var(--radius);
  border: 1px solid rgba(231, 192, 121, 0.7);
  box-shadow: var(--shadow-stage);
}

.quote-card h3 {
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  text-align: center;
}

.quote-card .quote-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 46ch;
  margin: 0.5rem auto 0;
}

.quote-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum-deep);
  margin-bottom: 0.4rem;
}

.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fffdf7;
  border: 1px solid var(--champagne-deep);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder { color: #b39a86; }

.field input:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(157, 23, 77, 0.14);
}

.field input.field-empty { border-color: #c0392b; }

.quote-submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.quote-submit-row .btn { min-width: 260px; }

.form-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

.form-msg {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  text-align: center;
}

.form-msg.error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.35);
  color: #8e2417;
}

.form-msg.error a { color: #8e2417; font-weight: 600; text-decoration: underline; }

.quote-success {
  text-align: center;
  padding: 1.6rem 0.6rem 0.6rem;
}

.quote-success .success-laurel { width: 96px; height: 50px; margin: 0 auto 1rem; color: var(--gold); }

.quote-success h4 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--plum-deep);
}

.quote-success p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  max-width: 44ch;
  margin: 0.6rem auto 0;
}

.quote-success a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Category winners grid
   -------------------------------------------------------------------------- */

.winners {
  padding: clamp(3.4rem, 8vw, 5.5rem) 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.award-card {
  position: relative;
  background: var(--champagne-soft);
  border: 1px solid var(--champagne-deep);
  border-radius: var(--radius);
  padding: 2rem 1.7rem 1.8rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(49, 6, 25, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.award-card .laurel { width: 64px; height: 33px; margin: 0 auto 1rem; }

.award-card .cat-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.award-card h3 {
  font-size: 1.42rem;
  line-height: 1.25;
}

.award-card .card-rule {
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 0.95rem auto;
  border-radius: 2px;
}

.award-card .winner {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--plum-deep);
}

.award-card .blurb {
  margin-top: 0.55rem;
  font-size: 0.87rem;
  color: var(--ink-soft);
}

.winners-foot {
  text-align: center;
  margin-top: 2.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Methodology strip (index)
   -------------------------------------------------------------------------- */

.method-strip {
  background: var(--plum);
  color: var(--champagne);
  padding: clamp(2.6rem, 6vw, 3.8rem) 0;
}

.method-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.method-strip h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  max-width: 22ch;
}

.method-strip p {
  color: rgba(247, 232, 211, 0.8);
  font-size: 0.94rem;
  max-width: 52ch;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  padding: clamp(3.4rem, 8vw, 5.5rem) 0;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.faq-list details {
  background: var(--champagne-soft);
  border: 1px solid var(--champagne-deep);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--plum);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
}

.faq-list details p {
  margin-top: 0.8rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--plum-night);
  color: rgba(247, 232, 211, 0.72);
  padding: 3rem 0 2.4rem;
  font-size: 0.85rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(231, 192, 121, 0.18);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--champagne);
  font-weight: 600;
}

.footer-brand .laurel { width: 34px; height: 18px; color: var(--gold-bright); }

.footer-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-nav a { color: rgba(247, 232, 211, 0.78); font-size: 0.85rem; }
.footer-nav a:hover { color: var(--gold-bright); text-decoration: none; }

.disclosure {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(247, 232, 211, 0.55);
  max-width: 72ch;
}

.footer-legal {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: rgba(247, 232, 211, 0.42);
}

/* --------------------------------------------------------------------------
   Methodology page
   -------------------------------------------------------------------------- */

.page-hero {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.2rem, 5vw, 3.4rem);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201, 154, 63, 0.14), transparent 70%),
    var(--champagne);
}

.page-hero .laurel-crest { width: 110px; height: 57px; margin: 0 auto 1.2rem; }

.page-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.4rem);
  max-width: 20ch;
  margin: 1rem auto 0;
}

.page-hero p {
  max-width: 58ch;
  margin: 1.2rem auto 0;
  color: var(--ink-soft);
}

.criteria {
  padding: clamp(2.8rem, 7vw, 4.5rem) 0;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
  max-width: 900px;
  margin: 0 auto;
}

.criterion {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--champagne-soft);
  border: 1px solid var(--champagne-deep);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.criterion:last-child {
  grid-column: 1 / -1;
  max-width: 560px;
  justify-self: center;
  width: 100%;
}

.criterion .numeral {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--plum);
  background: rgba(201, 154, 63, 0.08);
}

.criterion h3 { font-size: 1.25rem; }

.criterion p {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.method-prose {
  padding-bottom: clamp(2.8rem, 7vw, 4.5rem);
}

.method-prose .prose {
  max-width: 720px;
  margin: 0 auto;
}

.method-prose h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  margin-bottom: 0.8rem;
}

.method-prose p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.method-prose p + p { margin-top: 1rem; }

.method-prose .prose + .prose { margin-top: 2.8rem; }

.judgment-callout {
  max-width: 760px;
  margin: 3rem auto 0;
  padding: clamp(1.8rem, 4.5vw, 2.6rem);
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--plum-stage), var(--plum-night));
  color: var(--champagne);
  border: 1px solid rgba(231, 192, 121, 0.3);
}

.judgment-callout .laurel { width: 84px; height: 43px; margin: 0 auto 1rem; color: var(--gold-bright); }

.judgment-callout h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: var(--champagne);
}

.judgment-callout p {
  margin-top: 0.9rem;
  font-size: 0.94rem;
  color: rgba(247, 232, 211, 0.8);
}

.judgment-callout .btn { margin-top: 1.6rem; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .criteria-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(1120px, 100% - 2.2rem); }
  .site-header .wrap { flex-direction: column; gap: 0.5rem; padding: 0.75rem 0; }
  .site-nav { justify-content: center; gap: 1rem; }
  .brand-edition { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .quote-fields { grid-template-columns: 1fr; }
  .quote-submit-row .btn { width: 100%; min-width: 0; }
  .plaque-actions .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .method-strip .wrap { flex-direction: column; align-items: flex-start; }
  [id] { scroll-margin-top: 120px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .plaque { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .award-card { transition: none; }
  .btn:hover, .award-card:hover { transform: none; }
}
