*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0F1B2D;
  --navy-dark: #0A1420;
  --navy-light: #162438;
  --navy-mid: #1E3450;
  --parchment: #F5EDD6;
  --parchment-dim: #C9BA99;
  --gold: #C9A84C;
  --gold-light: #E8CC80;
  --gold-dim: #8A6E30;
  --burgundy: #6B2737;
  --burgundy-light: #8F3548;
  --slate: #8A9BB0;
  --slate-light: #B8C7D9;
  --card-bg: #162438;
  --border: rgba(201,168,76,0.18);
  --border-strong: rgba(201,168,76,0.4);
  --text-muted: #7A8FA8;
  --radius: 10px;
  --radius-lg: 16px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--navy);
  color: var(--parchment);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden; /* safety net against any remaining horizontal overflow */
}

img { max-width: 100%; display: block; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(15,27,45,0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  cursor: pointer;
  min-width: 0; /* lets flex children shrink instead of forcing overflow */
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
  max-width: 180px;
}

/* FIX: was a fixed 300px with a 260px left margin — guaranteed overflow on
   any screen under ~700px wide. Logo now scales fluidly with clamp() and
   the old margin-left push is removed; layout/centering is handled by the
   flex container instead of a magic-number margin. */
.logo-img {
  width: clamp(120px, 22vw, 220px);
  height: auto;
  margin: 0;
}

/* FIX: the UpRight Path partner mark was an inline style with a fixed
   200px width and a 260px right margin — same overflow problem as the
   logo. Moved out of inline HTML into this class so media queries can
   actually control it (inline styles can't be overridden by @media). */
.nav-partner-mark {
  width: clamp(90px, 16vw, 200px);
  height: auto;
  margin: 0;
}

.nav-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-shrink: 0;
}

/* ── HAMBURGER TOGGLE ────────────────────────────────────────────────────── */
/* Hidden by default (desktop shows .nav-actions inline instead). Becomes
   visible at the nav-collapse breakpoint below, where .nav-actions hides. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--gold-light);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
/* Animates into an X when open */
.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); }

/* ── MOBILE DROPDOWN ─────────────────────────────────────────────────────── */
/* Holds the partner mark (and is the home for any future nav links) on
   narrow screens, so the top bar itself never needs more than logo +
   hamburger button — this is what actually removes the horizontal
   pressure on phones, rather than just shrinking the partner mark further. */
.nav-dropdown {
  display: none; /* JS adds .open; this base rule keeps it off-DOM-flow until then */
  position: fixed;
  /* top is set inline by JS to match the nav's actual rendered height —
     necessary because nav padding (and therefore height) changes across
     breakpoints, so no single hardcoded value here would stay correct
     everywhere. See toggleNavMenu() in the page script. */
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--navy-light);
  border-bottom: 1px solid var(--border);
  transition: max-height 0.3s ease;
  z-index: 99; /* just below nav's z-index:100 so it tucks neatly underneath */
}
.nav-dropdown.open {
  display: block;
  max-height: 220px;
}
.nav-dropdown-link {
  display: flex;
  justify-content: center;
  padding: 1rem;
}
.nav-dropdown-partner-mark {
  width: clamp(140px, 50vw, 220px);
  height: auto;
}

/* ── NAV COLLAPSE BREAKPOINT ─────────────────────────────────────────────── */
/* Below this width: hide the inline partner mark + show the hamburger.
   768px (not just phones) because the logo + full-size partner mark
   genuinely don't both fit comfortably on tablets either. */
@media (max-width: 768px) {
  .nav-actions { display: none; }
  .nav-toggle  { display: flex; }
}

@media (min-width: 769px) {
  .nav-dropdown { display: none !important; } /* never shown on desktop, even if toggled */
}

@media (min-width: 640px) { .nav-tagline { display: inline; } }
@media (max-width: 640px) { .nav-tagline { display: none; } }

@media (max-width: 480px) {
  nav { padding: 0.85rem 1rem; gap: 0.5rem; }
  .nav-logo { max-width: 110px; }
  .logo-img { width: clamp(80px, 28vw, 140px); }
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero { padding: 5rem 2rem 4rem; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--parchment);
  max-width: 780px;
  margin: 0 auto 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--slate-light);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero-sub { font-size: 0.95rem; }
}

/* ── SEARCH ──────────────────────────────────────────────────────────────── */
.search-wrap { max-width: 600px; margin: 0 auto; }
.search-bar {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1.5px solid var(--border-strong);
  border-radius: 50px;
  padding: 0.4rem 0.4rem 0.4rem 1.4rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-bar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,0.12); }
.search-bar input {
  flex: 1;
  min-width: 0; /* lets the input shrink inside the flex row instead of overflowing */
  background: transparent;
  border: none;
  outline: none;
  color: var(--parchment);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 40px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--gold-light); }
.search-hints { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.hint-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  color: var(--slate-light);
  cursor: pointer;
  transition: all 0.2s;
}
.hint-pill:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(201,168,76,0.06); }

@media (max-width: 480px) {
  .search-bar { padding: 0.35rem 0.35rem 0.35rem 1.1rem; border-radius: 30px; }
  .search-btn { padding: 0.55rem 1.1rem; font-size: 0.85rem; border-radius: 30px; }
  .hint-pill { font-size: 0.74rem; padding: 0.28rem 0.75rem; }
}

/* ── SECTION ─────────────────────────────────────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }
.section-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 600; color: var(--parchment); }
.section-rule { flex: 1; height: 1px; background: var(--border); min-width: 24px; }
.section-link { font-size: 0.83rem; color: var(--gold); text-decoration: none; font-weight: 500; cursor: pointer; }
.section-link:hover { color: var(--gold-light); }

@media (max-width: 480px) {
  .section { padding: 2rem 1.1rem; }
  .section-title { font-size: 1.25rem; }
}

/* ── MOVIE GRID ──────────────────────────────────────────────────────────── */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.2rem; }
.movie-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
}
.movie-card:hover { transform: translateY(-4px); border-color: var(--gold-dim); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.poster-wrap { width: 100%; aspect-ratio: 2/3; overflow: hidden; background: var(--navy-mid); }
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.poster-placeholder svg { opacity: 0.2; }
.movie-info { padding: 0.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.movie-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 600; color: var(--parchment); line-height: 1.3; }
.movie-meta { font-size: 0.75rem; color: var(--text-muted); }
.faith-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-top: auto;
  width: fit-content;
}
.badge-affirm  { background: rgba(34,139,34,0.18); color: #6FCF97; border: 1px solid rgba(111,207,151,0.3); }
.badge-caution { background: rgba(201,168,76,0.15); color: var(--gold-light); border: 1px solid rgba(201,168,76,0.3); }
.badge-concern { background: rgba(107,39,55,0.25); color: #F2A0B2; border: 1px solid rgba(242,160,178,0.3); }
.badge-pending { background: rgba(138,155,176,0.15); color: var(--slate-light); border: 1px solid rgba(138,155,176,0.3); }

@media (max-width: 600px) {
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.7rem; }
  .movie-title { font-size: 0.85rem; }
}

@media (max-width: 360px) {
  /* Smallest common phone width — two 130px columns + gap can still be
     tight on a 320px-wide device, so this drops the floor further. */
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 0.55rem; }
}

/* ── CATEGORY FILTERS ────────────────────────────────────────────────────── */
.category-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cat-pill {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--slate-light);
  cursor: pointer;
  transition: all 0.18s;
  background: transparent;
}
.cat-pill:hover, .cat-pill.active { border-color: var(--gold); color: var(--gold-light); background: rgba(201,168,76,0.08); }

/* ── SEARCH RESULTS ──────────────────────────────────────────────────────── */
.results-area { display: none; }
.results-area.active { display: block; }
.result-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s;
  border: 1px solid transparent;
}
.result-row:hover { background: rgba(201,168,76,0.05); border-color: var(--border); }
.result-thumb {
  width: 44px;
  height: 66px;
  object-fit: cover;
  border-radius: 5px;
  background: var(--navy-mid);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.result-info { flex: 1; min-width: 0; } /* min-width:0 lets long titles truncate/wrap instead of overflowing */
.result-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; color: var(--parchment); }
.result-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.result-arrow { color: var(--gold-dim); font-size: 1.3rem; flex-shrink: 0; }

@media (max-width: 480px) {
  .result-row { padding: 0.65rem; gap: 0.65rem; }
  .result-thumb { width: 36px; height: 54px; }
  .result-title { font-size: 0.9rem; }
}

/* ── OVERLAY / PANEL ─────────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,12,22,0.88);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.overlay.open { opacity: 1; pointer-events: all; }
.panel {
  background: var(--navy-light);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s;
  position: relative;
}
.overlay.open .panel { transform: translateY(0); }
.panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--slate-light);
  font-size: 1rem;
  transition: background 0.2s;
  z-index: 10;
}
.panel-close:hover { background: rgba(255,255,255,0.14); }

.panel-hero { display: grid; grid-template-columns: 200px 1fr; }
.panel-poster-area { width: 200px; background: var(--navy-mid); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.panel-poster-area img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-meta { padding: 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; background: var(--navy-mid); min-width: 0; }
.panel-title { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--parchment); line-height: 1.2; }
.panel-yr { font-size: 0.85rem; color: var(--slate); display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.panel-yr span { color: var(--parchment-dim); }
.panel-synopsis { font-size: 0.9rem; color: var(--slate-light); line-height: 1.7; }
.panel-cast { font-size: 0.8rem; color: var(--text-muted); }
.panel-cast strong { color: var(--slate-light); }
.panel-body { padding: 2rem; }

@media (max-width: 768px) {
  .overlay { padding: 1rem 0.6rem; }
  .panel-hero { grid-template-columns: 1fr; }
  .panel-poster-area { width: 100%; height: 220px; }
  .analysis-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .panel-meta { padding: 1.25rem; }
  .panel-title { font-size: 1.35rem; }
  .panel-body { padding: 1.25rem; }
  .panel-poster-area { height: 180px; }
  .panel-close { width: 30px; height: 30px; top: 0.7rem; right: 0.7rem; }
}

/* ── SCRIPTURE LENS ──────────────────────────────────────────────────────── */
.scripture-lens {
  background: rgba(201,168,76,0.06);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.scripture-lens::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 0.8rem;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}
.lens-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lens-label::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); }
.lens-verse { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--parchment); line-height: 1.7; font-style: italic; margin-bottom: 0.4rem; }
.lens-ref { font-size: 0.78rem; color: var(--gold-dim); font-weight: 500; }

@media (max-width: 480px) {
  .scripture-lens { padding: 1.1rem; }
  .lens-verse { font-size: 0.92rem; }
}

/* ── ANALYSIS ────────────────────────────────────────────────────────────── */
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.analysis-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.analysis-card-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.analysis-card-body { font-size: 0.88rem; color: var(--slate-light); line-height: 1.65; }
.values-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.5rem; }
.values-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.87rem; color: var(--slate-light); }
.value-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 0.38rem; flex-shrink: 0; }
.dot-positive { background: #6FCF97; }
.dot-neutral  { background: var(--gold); }
.dot-concern  { background: #F2A0B2; }

/* ── FAITH METER ─────────────────────────────────────────────────────────── */
.faith-meter-wrap { margin-bottom: 1.5rem; }
.faith-meter-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--slate); margin-bottom: 0.5rem; }
.faith-meter-label strong { color: var(--parchment); font-size: 0.88rem; }
.meter-track { height: 6px; background: rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--burgundy-light), var(--gold), #6FCF97); transition: width 0.7s ease; }

/* ── PASTOR NOTE ─────────────────────────────────────────────────────────── */
.pastor-note {
  background: rgba(107,39,55,0.15);
  border-left: 3px solid var(--burgundy-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
}
.pastor-note-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #F2A0B2; margin-bottom: 0.4rem; }
.pastor-note-text { font-size: 0.88rem; color: var(--slate-light); line-height: 1.65; }

/* ── AI LOADING ──────────────────────────────────────────────────────────── */
.ai-loading { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 3rem; text-align: center; }
.ai-spinner { width: 42px; height: 42px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-loading strong { color: var(--gold-light); display: block; font-size: 1rem; margin-bottom: 0.2rem; }
.ai-loading p { font-size: 0.88rem; color: var(--text-muted); }

@media (max-width: 480px) { .ai-loading { padding: 2rem 1rem; } }

/* ── ERROR STATE ─────────────────────────────────────────────────────────── */
.error-state { padding: 2rem; text-align: center; color: var(--text-muted); }
.error-state p { color: var(--slate-light); margin-top: 0.5rem; }

/* ── GENERIC LOADING GRID ────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--navy-mid) 25%, var(--navy-light) 50%, var(--navy-mid) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   Rebuilt to match the actual <footer> markup (brand block + 3 link
   columns + bottom bar). The previous CSS for this section assumed a
   .footer-grid/.footer-col/.footer-bottom structure that didn't exist
   anywhere in the HTML, and used several fixed-pixel offsets
   (margin-left:220px, padding-left:100px, padding:34px 120px) that broke
   on anything narrower than a wide desktop. All of that is replaced below
   with a responsive grid that degrades cleanly at each breakpoint, with
   matching HTML provided alongside this stylesheet.
═══════════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem 0;
}

/* .container wraps the footer's inner content (footer-grid + footer-bottom)
   in the actual markup now — centers it and caps the width on large screens.
   Padding lives on .footer itself so .container doesn't need its own. */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.9rem;
  max-width: 280px;
}

/* The footer brand mark reuses the .nav-logo wrapper but needs its own,
   slightly larger fluid size — separate from .logo-img (used in the nav)
   so the two never fight over conflicting widths. */
.footer-brand .logo-img {
  width: clamp(120px, 18vw, 180px);
  height: auto;
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.footer-col ul li { text-align: left; }

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .footer { padding: 2rem 1.25rem 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: 1 / -1; } /* brand block spans full width above the 2x2 link grid */
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.7rem; }
  .footer-links { justify-content: center; margin-top: 0.5rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   GLOBAL RESPONSIVE PASS
   Catch-alls that weren't tied to one component above.
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  nav { padding: 1rem; }
}

@media (max-width: 380px) {
  /* Very narrow phones (older/small devices) */
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .search-hints { gap: 0.45rem; }
  .nav-logo { max-width: 90px; }
  .nav-partner-mark { width: clamp(70px, 24vw, 110px); }
}