/* ═══════════════════════════════════════════
   Pizza2Home – style.css
   Mobile-first, uses CSS custom properties
   Compatible with Tailwind CSS v4 (no conflicts)
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* ── TOKENS ── */
:root {
  --green-dark: #1C3A1A;
  --green-mid: #3C7C17;
  --green-light: #569B43;
  --green-bright: #8DC63F;
  --red: #C82C27;
  --cream: #F4DE9F;
  --orange: #EFB16F;
  --olive: #5A6C30;
  --black: #0D1B0C;
  --white: #FAFFF8;
  --gray-light: #F0F5EE;
  --gray-text: #4A5C48;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

/* ── BASE ── */
body {
  font-family: 'Lato', sans-serif;
  background: var(--gray-light);
  color: var(--black);
  line-height: 1.65;
  font-size: 15px;
}

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
header {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
}

/* Logo */
.logo {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
}

.logo-name span {
  color: var(--green-bright);
}

.logo-tagline {
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 3px;
}

/* Nav — hidden on mobile, shown on desktop */
nav {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #152E14;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color var(--transition);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--green-bright);
}

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 0 12px;
  gap: 7px;
  transition: background var(--transition);
  min-width: 0;
}

.search-bar:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--green-bright);
}

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 13px;
  width: 110px;
  padding: 7px 0;
  min-width: 0;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-bar svg {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #2A4F12 60%, var(--olive) 100%);
  padding: 40px 16px 36px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(141, 198, 63, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 80%, rgba(200, 44, 39, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-breadcrumb {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-breadcrumb a {
  color: var(--green-bright);
  text-decoration: none;
}

.hero-breadcrumb a:hover {
  text-decoration: underline;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 7vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero h1 em {
  font-style: normal;
  color: var(--green-bright);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(141, 198, 63, 0.15);
  border: 1px solid var(--green-bright);
  color: var(--green-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.hero-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.hero-status strong {
  color: var(--green-bright);
}

/* ════════════════════════════════════════════
   MAIN WRAPPER
════════════════════════════════════════════ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 0;
}

/* ── Section titles ── */
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--green-bright), transparent);
  border-radius: 2px;
}

/* ════════════════════════════════════════════
   OVERVIEW TABLE
════════════════════════════════════════════ */
#overview {
  margin-bottom: 32px;
}

.overview-table-wrap {
  display: none;
  /* Mobile first */
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .overview-table-wrap {
    display: block;
  }
}

/* ── Mobile Overview List ── */
.overview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .overview-list {
    display: none;
  }
}

.overview-list-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green-bright);
}

.ov-rank {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-mid);
  width: 24px;
}

.ov-info {
  flex: 1;
  min-width: 0;
}

.ov-name {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 14px;
  margin-bottom: 2px;
}

.ov-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ov-stars {
  color: var(--orange);
  font-size: 10px;
}

.ov-right {
  text-align: right;
}

.ov-score {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-dark);
}


table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

thead {
  background: var(--green-dark);
}

thead th {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  padding: 12px 14px;
  text-align: left;
  font-weight: 400;
  white-space: nowrap;
}

thead th:last-child {
  text-align: right;
}

tbody tr {
  border-bottom: 1px solid #E8F0E6;
  transition: background var(--transition);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: #F5FAF3;
}

tbody td {
  padding: 14px 14px;
  vertical-align: middle;
}

.rank-num {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-bright);
  opacity: 0.5;
  width: 28px;
}

.biz-link {
  color: var(--green-mid);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color var(--transition);
}

.biz-link:hover {
  color: var(--red);
}

.biz-address {
  font-size: 11px;
  color: var(--gray-text);
  margin-top: 2px;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--green-mid);
  /* Default fallback */
  color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Wildcard for any badge- class to ensure background */
[class*="badge-"] {
  background: var(--green-dark);
  color: var(--white);
}

.badge-worthwhile,
.badge-worthwhile-detour {
  background: #1C3A1A;
  color: #FAFFF8;
  border: 1px solid #1C3A1A;
}

.badge-neighborhood,
.badge-neighborhood-gem {
  background: #3C7C17;
  color: #FAFFF8;
  border: 1px solid #3C7C17;
}

.badge-slice-heaven,
.badge-slice-of-heaven {
  background: #8DC63F;
  color: #1C3A1A;
  border: 1px solid #8DC63F;
}

.badge-service,
.badge-excellent-service {
  background: #C82C27;
  color: #FAFFF8;
  border: 1px solid #C82C27;
}

.badge-west,
.badge-west-side {
  background: #EFB16F;
  color: #1C3A1A;
  border: 1px solid #EFB16F;
}

.badge-elite,
.badge-state-elite {
  background: #F4DE9F;
  color: #1C3A1A;
  border: 1px solid #5A6C30;
}

/* Page Specific Overrides */
.city-page .badge {
  background: #E8F5D6 !important;
  color: #3C7C17 !important;
  border: 1px solid #8DC63F !important;
}

.state-page .badge {
  background: #FFF8E8 !important;
  color: #8A6B00 !important;
  border: 1px solid #EFB16F !important;
}

.stars {
  color: var(--orange);
  font-size: 13px;
  letter-spacing: 1px;
}

.rating-val {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 2px;
}

.score-val {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  text-align: right;
}

/* ════════════════════════════════════════════
   AD BOX
════════════════════════════════════════════ */
.ad-section {
  margin-bottom: 32px;
}

.ad-box {
  background: linear-gradient(135deg, #f9f9f9, #f2f2f2);
  border: 2px dashed #D0D8CE;
  border-radius: var(--radius);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B0B8AE;
  position: relative;
  overflow: hidden;
}

.ad-box::before {
  content: 'Advertisement';
  font-size: 9px;
  position: absolute;
  top: 8px;
  left: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C8D0C6;
  font-weight: 700;
}

.ad-placeholder {
  text-align: center;
  line-height: 1.6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ad-placeholder strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

/* ════════════════════════════════════════════
   RESTAURANT CARDS
════════════════════════════════════════════ */
.cards-section {
  margin-bottom: 40px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  /* mobile: stacked */
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.5s ease both;
}

.card:nth-child(1) {
  animation-delay: 0.05s;
}

.card:nth-child(2) {
  animation-delay: 0.12s;
}

.card:nth-child(3) {
  animation-delay: 0.19s;
}

.card:nth-child(4) {
  animation-delay: 0.26s;
}

.card:nth-child(5) {
  animation-delay: 0.33s;
}

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

/* Card image panel */
.card-img {
  width: 100%;
  height: 180px;
  background: var(--green-dark);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .card {
    flex-direction: row !important;
    align-items: stretch !important;
  }

  .card-img {
    width: 300px !important;
    height: auto !important;
    min-height: 240px !important;
  }
}

.card-img-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-dark), #2A5010);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.card-rank {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
  user-select: none;
}

/* Card body */
.card-body {
  flex: 1;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.card-name {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.2;
}

.card-scores {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.card-score-big {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.card-score-label {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-text);
}

.card-address {
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.card-address svg {
  color: var(--green-light);
  margin-top: 1px;
  flex-shrink: 0;
}

.card-desc {
  font-size: 13px;
  color: #3A4A38;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 12px;
}

/* Card footer — buttons */
.card-footer {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-stars-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--green-mid);
  color: var(--white);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform 0.15s;
  flex: 1;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--gray-text);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #C8D8C4;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--green-light);
  color: var(--green-mid);
}

/* ════════════════════════════════════════════
   NEARBY CITIES
════════════════════════════════════════════ */
.nearby-section {
  margin-bottom: 40px;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.city-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 12px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.city-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-bright);
}

.city-emoji {
  font-size: 26px;
}

.city-name {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 600;
  line-height: 1.2;
}

.city-dist {
  font-size: 11px;
  color: var(--gray-text);
}

/* ════════════════════════════════════════════
   REQUEST UPDATE SECTION
════════════════════════════════════════════ */
.update-section {
  margin-bottom: 40px;
}

.update-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--orange);
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
}

.update-box h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  color: var(--green-dark);
  font-weight: 600;
}

.update-box p {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.6;
  max-width: 600px;
}

.btn-update {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--green-mid);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--green-mid);
  align-self: flex-start;
  transition: background var(--transition), color var(--transition);
}

.btn-update:hover {
  background: var(--green-mid);
  color: var(--white);
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 44px 16px 28px;
  margin-top: 16px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
  margin-bottom: 32px;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-logo-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  text-decoration: none;
}

.footer-logo-img {
  height: 38px;
  width: auto;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

/* full-width on mobile */

.footer-logo-name {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
}

.footer-logo-name span {
  color: var(--green-bright);
}

.footer-logo-tagline {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 3px;
  display: block;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 14px;
  font-weight: 400;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ════════════════════════════════════════════
   RESPONSIVE — sm: 480px
════════════════════════════════════════════ */
@media (min-width: 480px) {
  .header-inner {
    padding: 0 20px;
  }

  main {
    padding: 32px 20px 0;
  }

  .search-bar input {
    width: 130px;
  }

  .cities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .card-actions {
    flex: 0 0 auto;
  }

  .btn-primary,
  .btn-secondary {
    flex: none;
  }

  .update-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .update-text {
    flex: 1;
  }

  .btn-update {
    align-self: center;
    flex-shrink: 0;
  }
}

/* ════════════════════════════════════════════
   RESPONSIVE — md: 768px
════════════════════════════════════════════ */
@media (min-width: 768px) {
  .header-inner {
    height: 68px;
    gap: 20px;
    padding: 0 24px;
  }

  .logo-name {
    font-size: 22px;
  }

  .logo-tagline {
    font-size: 9px;
  }

  /* Show hamburger still, hide desktop nav */
  .search-bar input {
    width: 150px;
  }

  main {
    padding: 40px 24px 0;
  }

  .hero {
    padding: 52px 24px 44px;
  }

  .hero-sub {
    font-size: 15px;
  }

  /* Cards: side-by-side on tablet+ */
  .card {
    flex-direction: row;
  }

  .card-img {
    width: 180px;
    height: auto;
  }

  .card-body {
    padding: 22px 24px 18px;
  }

  .card-name {
    font-size: 19px;
  }

  .card-score-big {
    font-size: 26px;
  }

  .cities-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ════════════════════════════════════════════
   RESPONSIVE — lg: 1024px
════════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* Switch from hamburger to full desktop nav */
  .nav-toggle {
    display: none;
  }

  nav {
    display: flex;
  }

  .search-bar input {
    width: 160px;
  }

  .card-img {
    width: 200px;
  }

  .card-desc {
    -webkit-line-clamp: 5;
  }

  .cities-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ════════════════════════════════════════════
   RESPONSIVE — xl: 1200px
════════════════════════════════════════════ */
@media (min-width: 1200px) {

  .header-inner,
  .hero-inner,
  main,
  .footer-inner {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ════════════════════════════════════════════
   STATS SECTION (state page)
════════════════════════════════════════════ */
.stats-section {
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.stat-accent {
  width: 4px;
  flex-shrink: 0;
}

.stat-inner {
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-text);
}

.stat-value {
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1;
}

.stat-value--city {
  font-size: 26px;
  line-height: 1.15;
}

.stat-sub {
  font-size: 11px;
  color: var(--gray-text);
  margin-top: 2px;
}

/* ── Badge: State Elite ── */
.badge-elite {
  background: #FFF8E8;
  color: #8A6B00;
  border: 1px solid #EFB16F;
}

/* ── Ad section (state page) ── */
.ad-section {
  margin-bottom: 32px;
}

.ad-box {
  background: linear-gradient(135deg, #f9f9f9, #f2f2f2);
  border: 2px dashed #D0D8CE;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B0B8AE;
  position: relative;
}

.ad-box::before {
  content: 'Advertisement';
  font-size: 9px;
  position: absolute;
  top: 8px;
  left: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C8D0C6;
  font-weight: 700;
}

.ad-placeholder {
  text-align: center;
  line-height: 1.6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ad-placeholder strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

/* ════════════════════════════════════════════
   STATS RESPONSIVE
════════════════════════════════════════════ */
@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-value {
    font-size: 40px;
  }

  .stat-value--city {
    font-size: 28px;
  }
}

@media (min-width: 768px) {
  .stat-inner {
    padding: 22px 20px 18px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-value {
    font-size: 44px;
  }

  .stat-value--city {
    font-size: 30px;
  }

  .stat-sub {
    font-size: 12px;
  }
}

/* ════════════════════════════════════════════
   HOME PAGE — HERO EXTENDED
════════════════════════════════════════════ */
.hero--home {
  padding-bottom: 52px;
}

.home-hero-content {
  max-width: 680px;
}

.home-hero-h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(32px, 7vw, 58px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 14px;
}

.home-hero-h1 em {
  font-style: normal;
  color: var(--green-bright);
}

.home-hero-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 480px;
}

/* ── Home Search Widget ── */
.home-search {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  margin-bottom: 28px;
}

.home-search-field {
  display: flex;
  flex-direction: column;
  padding: 12px 16px 10px;
}

.home-search-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 4px;
}

.home-search-select,
.home-search-input {
  background: none;
  border: none;
  outline: none;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  padding: 0;
  width: 100%;
  -webkit-appearance: none;
}

.home-search-select {
  cursor: pointer;
}

.home-search-divider {
  height: 1px;
  background: var(--gray-light);
  margin: 0 16px;
}

.home-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green-mid);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 20px;
  transition: background var(--transition);
  width: 100%;
}

.home-search-btn:hover {
  background: var(--green-dark);
}

/* ── Scale Stats Strip ── */
.home-scale-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
}

.home-scale-item {
  display: flex;
  flex-direction: column;
  padding-right: 20px;
}

.home-scale-item strong {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.home-scale-item span {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.home-scale-sep {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  margin-right: 20px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   HOME — SHARED SECTION WRAPPER
════════════════════════════════════════════ */
.home-section {
  margin-bottom: 52px;
}

.home-section-sub {
  font-size: 14px;
  color: var(--gray-text);
  margin-top: -10px;
  margin-bottom: 20px;
}

/* ════════════════════════════════════════════
   STATE DIRECTORY
════════════════════════════════════════════ */
.state-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.state-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.state-card:hover {
  border-color: var(--green-bright);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.state-card--coming {
  opacity: 0.75;
}

.state-card--teaser {
  opacity: 0.45;
  pointer-events: none;
  border-style: dashed;
  border-color: #C8D8C4;
}

.state-flag {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.state-info {
  flex: 1;
  min-width: 0;
}

.state-name {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.2;
}

.state-meta {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 2px;
}

.state-arrow {
  color: var(--green-light);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   FRESHLY BAKED CITIES
════════════════════════════════════════════ */
.fresh-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.fresh-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.fresh-card:hover {
  border-color: var(--green-bright);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.fresh-card--soon {
  opacity: 0.5;
  pointer-events: none;
  border-style: dashed;
  border-color: #C8D8C4;
}

.fresh-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.fresh-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--green-bright);
  color: var(--green-dark);
  padding: 2px 8px;
  border-radius: 20px;
}

.fresh-badge--soon {
  background: #E8F0E6;
  color: var(--gray-text);
}

.fresh-state {
  font-size: 11px;
  color: var(--gray-text);
  letter-spacing: 0.5px;
}

.fresh-city {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.1;
}

.fresh-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fresh-count {
  font-size: 12px;
  color: var(--gray-text);
}

.fresh-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-mid);
}

.fresh-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-light);
}

.fresh-date {
  font-size: 11px;
  color: var(--gray-text);
}

.fresh-footer svg {
  color: var(--green-light);
}

/* ════════════════════════════════════════════
   NATIONAL ELITE LEADERBOARD
════════════════════════════════════════════ */
.elite-podium {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.elite-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  border-left: 4px solid transparent;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.elite-card--gold {
  border-left-color: #D4AF37;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.15);
  padding-top: 32px;
}

.elite-card--silver {
  border-left-color: #A8A9AD;
}

.elite-card--bronze {
  border-left-color: #CD7F32;
}

.elite-crown {
  position: absolute;
  top: 8px;
  left: 18px;
  font-size: 14px;
  line-height: 1;
}

.elite-rank-wrap {
  flex-shrink: 0;
}

.elite-rank {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  width: 44px;
  text-align: center;
}

.elite-rank--1 {
  color: #D4AF37;
}

.elite-rank--2 {
  color: #A8A9AD;
}

.elite-rank--3 {
  color: #CD7F32;
}

.elite-body {
  flex: 1;
  min-width: 0;
}

.elite-name {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.2;
}

.elite-location {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 2px;
}

.elite-stars {
  font-size: 13px;
  color: var(--orange);
  margin-top: 4px;
  letter-spacing: 1px;
}

.elite-stars span {
  font-size: 12px;
  color: var(--gray-text);
  letter-spacing: 0;
}

.elite-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.elite-score {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.elite-score-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-top: 2px;
}

.elite-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green-mid);
  color: var(--white);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  align-self: flex-start;
  transition: background var(--transition);
  white-space: nowrap;
}

.elite-cta:hover {
  background: var(--green-dark);
}

/* gold card stacks cta below body */
.elite-card--gold {
  flex-wrap: wrap;
}

.elite-card--gold .elite-body {
  order: 1;
}

.elite-card--gold .elite-score-wrap {
  order: 2;
}

.elite-card--gold .elite-cta {
  order: 3;
  width: 100%;
  justify-content: center;
  margin-top: 14px;
  padding: 9px 16px;
  font-size: 12px;
}

/* ════════════════════════════════════════════
   METHODOLOGY
════════════════════════════════════════════ */
.methodology-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 20px 24px;
}

.method-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.method-pillar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-light);
}

.method-pillar:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.method-pillar-pct {
  font-family: 'Oswald', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.method-pillar-icon {
  color: var(--gray-text);
}

.method-pillar-name {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--green-dark);
}

.method-pillar-desc {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.7;
}

.method-quote {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--green-mid);
  border-left: 3px solid var(--green-bright);
  padding: 10px 16px;
  background: var(--gray-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

/* ════════════════════════════════════════════
   HOME RESPONSIVE — sm: 480px
════════════════════════════════════════════ */
@media (min-width: 480px) {
  .state-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fresh-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ════════════════════════════════════════════
   HOME RESPONSIVE — md: 768px
════════════════════════════════════════════ */
@media (min-width: 768px) {
  .hero--home {
    padding-bottom: 64px;
  }

  /* Search horizontal layout */
  .home-search {
    flex-direction: row;
    align-items: stretch;
    border-radius: var(--radius);
  }

  .home-search-field {
    flex: 1;
    padding: 14px 20px 12px;
  }

  .home-search-divider {
    width: 1px;
    height: auto;
    margin: 12px 0;
  }

  .home-search-btn {
    width: auto;
    padding: 0 28px;
    border-radius: 0 var(--radius) var(--radius) 0;
    flex-shrink: 0;
  }

  .state-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fresh-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .elite-podium {
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
  }

  .elite-card {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 18px 18px;
  }

  .elite-card--gold {
    flex: 1.2;
    padding-top: 40px;
    order: 2;
  }

  .elite-card--silver {
    order: 1;
  }

  .elite-card--bronze {
    order: 3;
  }

  .elite-score-wrap {
    align-items: flex-start;
    width: 100%;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }

  .elite-score {
    font-size: 32px;
  }

  .elite-rank {
    font-size: 28px;
    width: auto;
  }

  .method-pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .method-pillar {
    padding: 0 24px 0;
    border-bottom: none;
    border-right: 1px solid var(--gray-light);
  }

  .method-pillar:first-child {
    padding-left: 0;
  }

  .method-pillar:last-child {
    border-right: none;
  }
}

/* ════════════════════════════════════════════
   HOME RESPONSIVE — lg: 1024px
════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .state-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fresh-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .elite-card--gold {
    flex: 1.3;
  }

  .methodology-section {
    padding: 40px 40px 32px;
  }
}

/* ── Search bar visibility ── */
.desktop-only {
  display: none;
}

@media (min-width: 992px) {
  .desktop-only {
    display: flex;
  }
}

/* ── Mobile Search ── */
.mobile-search {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search form {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  padding: 10px 14px;
  font-size: 14px;
}

.mobile-search button {
  background: var(--green-bright);
  color: var(--green-dark);
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

/* ── Hamburger active state ── */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Footer Bottom Layout ── */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-timestamp {
  font-weight: 700;
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ════════════════════════════════════════════
   RANKINGS HUB
════════════════════════════════════════════ */
.rankings-page .hero {
  text-align: center;
  border-bottom: 4px solid var(--cream);
}

.rankings-page .badge {
  background: #E8F5D6 !important;
  color: #3C7C17 !important;
  border: 1px solid #8DC63F !important;
}

.rankings-page .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

.rankings-section {
  margin: 0 auto 40px;
  /* Remove top margin for all devices */
  max-width: 1200px;
  padding: 0 !important;
  /* Force remove all paddings */
}

.hof-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid #E8F0E6;
}

.hof-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 10px;
  /* Decreased padding */
  text-align: center;
}

.hof-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  margin: 0;
}

/* ── Top 20 Table UI ── */
.top20-list {
  list-style: none;
  padding: 0;
}

.top20-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #F0F5EE;
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
  gap: 15px;
}

.top20-item:hover {
  background: #F5FAF3;
}

.top20-rank {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-bright);
  opacity: 0.5;
  width: 32px;
  flex-shrink: 0;
}

.top20-info {
  flex: 1;
  min-width: 0;
}

@media (min-width: 992px) {

  .top20-info {
    /* Set a fixed base width so the name has plenty of room */
    flex: 0 0 450px;
    /* This creates a FORCED gap between the Name and the Badge */
    margin-right: 30px;
  }
}

.top20-name {
  font-weight: 700;
  color: var(--green-mid);
  /* Match .biz-link */
  font-size: 14px;
  margin-bottom: 2px;
  transition: color var(--transition);
}

.top20-item:hover .top20-name {
  color: var(--red);
  /* Match .biz-link:hover */
}

.top20-loc {
  font-size: 11px;
  color: var(--gray-text);
}

.top20-badge {
  width: 300px;
  /* Increased to push rating right */
  text-align: left;
  display: none;
  /* Hide on mobile */
}

.top20-rating {
  width: 150px;
  /* Increased to prevent overlap */
  display: none;
  /* Hide on mobile */
}

@media (min-width: 992px) {

  .top20-badge,
  .top20-rating {
    display: block;
  }
}

.top20-score-wrap {
  text-align: right;
  flex: 1;
}

.top20-score {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
}

.top20-score-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--gray-text);
  letter-spacing: 1px;
}

/* ── Podium Logic ── */
.top20-item:nth-child(1) {
  border-left: 4px solid #D4AF37;
}

.top20-item:nth-child(2) {
  border-left: 4px solid #C0C0C0;
}

.top20-item:nth-child(3) {
  border-left: 4px solid #CD7F32;
}

.top20-item:nth-child(1) .top20-rank {
  color: #D4AF37;
  opacity: 1;
}

.top20-item:nth-child(2) .top20-rank {
  color: #C0C0C0;
  opacity: 1;
}

.top20-item:nth-child(3) .top20-rank {
  color: #CD7F32;
  opacity: 1;
}

/* ── Capitals Grid ── */
.capitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.capital-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid #E8F0E6;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition);
}

.capital-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-bright);
}

.capital-rank {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--cream);
  -webkit-text-stroke: 1px var(--green-mid);
}

.capital-info {
  flex: 1;
}

.capital-name {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--green-dark);
}

.capital-state {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-text);
}

.capital-score {
  text-align: right;
}

.capital-avg {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--green-mid);
}

.capital-label {
  font-size: 8px;
  text-transform: uppercase;
  color: var(--gray-text);
}

/* ── Recently Verified ── */
.verified-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.verified-item {
  background: #F9FDF8;
  border: 1px solid #D0D8CE;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  color: inherit;
}

.verified-city {
  font-weight: 700;
  font-size: 14px;
  color: var(--green-dark);
}

.verified-state {
  font-size: 10px;
  color: var(--gray-text);
  text-transform: uppercase;
}

.verified-date {
  font-size: 9px;
  color: var(--green-light);
  margin-top: auto;
}

/* ════════════════════════════════════════════
   HOME PAGE SPECIFIC
════════════════════════════════════════════ */
.hero--home {
  text-align: center;
}

.home-hero-content {
  margin: 0 auto;
  text-align: center;
  max-width: 800px;
}

.home-hero-sub {
  margin: 0 auto 30px auto;
}

.home-search {
  padding: 10px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
}

.home-search-form {
  display: flex;
  width: 100%;
}

.home-search-field {
  flex: 1;
}

.home-search-input {
  font-size: 18px;
  padding: 15px;
  width: 100%;
  border: none;
}

.home-search-btn {
  padding: 0 30px;
  font-size: 16px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-search-btn span {
  margin-left: 8px;
}

.home-scale-strip {
  justify-content: center;
  margin-top: 40px;
}

.method-pillar-pct--green {
  color: var(--green-bright);
}

.method-pillar-pct--orange {
  color: var(--orange);
}

.method-pillar-pct--red {
  color: var(--red);
}

/* ── Hero Background Slideshow ── */
.hero--home {
  position: relative;
  overflow: hidden;
  background: #0c1c0a; /* Fallback */
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  /* 18s total cycle, staggered by 6s */
  animation: heroSlide 18s infinite ease-in-out;
  will-change: opacity, transform;
}

/* Specific delays to stagger the 3 images */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 6s; }
.slide:nth-child(3) { animation-delay: 12s; }

/* ── Animation: Smooth Fade + Subtle Ken Burns Zoom ── */
@keyframes heroSlide {
  0%   { opacity: 0; transform: scale(1.08); }
  8%   { opacity: 1; transform: scale(1.04); } 
  33%  { opacity: 1; transform: scale(1.02); } 
  41%  { opacity: 0; transform: scale(1); }    
  100% { opacity: 0; transform: scale(1); }
}

/* ── Brand Overlay: Deep Green Tint ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5; /* Sit above all slides */
  background: linear-gradient(
    to bottom,
    rgba(12, 28, 10, 0.78) 0%,
    rgba(28, 58, 26, 0.72) 50%,
    rgba(12, 28, 10, 0.85) 100%
  );
}

/* ── Content Alignment ── */
.hero--home .hero-inner {
  position: relative;
  z-index: 10; /* Above everything */
}

/* Mobile styling tweaks for Homepage */
@media (max-width: 767px) {
  .home-search-form {
    flex-direction: column !important;
    gap: 10px;
  }

  .home-search-btn {
    width: 100% !important;
    margin: 0 !important;
    padding: 15px !important;
    font-size: 18px !important;
    border-radius: 24px !important;
  }

  .home-search-field {
    width: 100%;
  }

  .home-search-input {
    text-align: center;
    border-radius: 24px !important;
  }

  /* Elite Leaderboard Mobile Reordering */
  .elite-podium {
    display: flex;
    flex-direction: column;
  }

  .elite-card--gold {
    order: -1;
  }

  .elite-card--silver {
    order: 0;
  }

  .elite-card--bronze {
    order: 1;
  }
}