/* =========================================================
   North Carolina Soccer Hall of Fame
   Shared site styles
   Palette: Carolina red #D42426, gold #FFD700, deep red #8B0000
   Fonts: Playfair Display (display/serif), Lato (body)
   ========================================================= */

:root {
  --red: #D42426;
  --red-deep: #8B0000;
  --gold: #FFD700;
  --gold-soft: rgba(255, 215, 0, 0.85);
  --ink: #1a1a1a;
  --paper: #ffffff;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Lato', system-ui, sans-serif;
  --maxw: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

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

/* ----------------------------- Header / Nav ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
  font-size: 15px;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand .crest {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--red);
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li { position: relative; }

.nav-links a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  background: rgba(212, 36, 38, 0.07);
}

/* Dropdown */
.has-dropdown > a::after { content: ' \25BE'; font-size: 0.8em; }

.dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a { font-size: 12px; }

/* ----------------------------- Hero (home only) ----------------------------- */
body[data-page="home"] .hero {
  position: relative;
  height: 78vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #2a2a2a;
}

body[data-page="home"] .hero video,
body[data-page="home"] .hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="home"] .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-content h1 {
  font-family: var(--serif);
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: clamp(34px, 7vw, 76px);
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

/* ----------------------------- Red announcement section ----------------------------- */
.section-wrapper {
  position: relative;
  width: 100%;
  background: var(--red);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 70px;
  overflow: hidden;
}

.section-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,0,0,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,0,0,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-accent,
.bottom-accent {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.9), transparent);
  border-radius: 2px;
}
.top-accent { margin-bottom: 32px; }
.bottom-accent { margin-top: 48px; }

.org-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.org-title .state {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 6px;
  color: var(--gold-soft);
  margin-bottom: 4px;
}

.mission-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.7;
  text-align: center;
  max-width: 720px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 40px;
  padding: 0 20px;
}
.mission-quote::before,
.mission-quote::after {
  font-size: 2.5em;
  color: rgba(255,215,0,0.4);
  font-family: var(--serif);
  line-height: 0;
  vertical-align: middle;
}
.mission-quote::before { content: '\201C'; margin-right: 4px; }
.mission-quote::after { content: '\201D'; margin-left: 4px; }

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 600px;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.5), transparent);
}
.divider-diamond {
  width: 10px;
  height: 10px;
  background: rgba(255,215,0,0.7);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.celebration-headline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.celebration-date {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
}

.announcement-body {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.85;
  text-align: center;
  color: rgba(255,255,255,0.92);
  max-width: 780px;
  margin-bottom: 36px;
  font-weight: 300;
}

.inductees-card {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 8px;
  padding: 28px 36px;
  max-width: 780px;
  width: 100%;
  text-align: center;
  margin-bottom: 36px;
  backdrop-filter: blur(4px);
}

.inductees-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

.inductees-names {
  font-family: var(--serif);
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 500;
  line-height: 1.7;
}

.champions-row {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  line-height: 1.6;
}
.champions-row strong {
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.venue-note {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-bottom: 40px;
}

.photo-cta {
  display: inline-block;
  padding: 16px 48px;
  background: rgba(255,215,0,0.9);
  color: var(--red-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.photo-cta:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}

/* ----------------------------- Gallery strip ----------------------------- */
.gallery {
  background: #fff;
  padding: 50px 24px;
}
.gallery-track {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.gallery-track img,
.gallery-track .placeholder {
  height: 150px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  scroll-snap-align: start;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.gallery-track .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f1f1;
  color: #999;
  font-size: 12px;
  text-align: center;
  padding: 8px;
}

/* ----------------------------- Generic content pages ----------------------------- */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.page h1 {
  font-family: var(--serif);
  color: var(--red);
  font-size: clamp(30px, 5vw, 48px);
  margin-bottom: 8px;
}
.page .lead {
  font-size: 18px;
  color: #555;
  margin-bottom: 36px;
  max-width: 760px;
}
.page h2 {
  font-family: var(--serif);
  color: var(--red-deep);
  margin: 36px 0 14px;
  font-size: 26px;
}
.page p { margin-bottom: 16px; max-width: 760px; }

/* Inductee classes */
.class-block { margin-bottom: 34px; }
.class-block h3 {
  font-family: var(--serif);
  color: var(--red);
  font-size: 22px;
  border-bottom: 2px solid rgba(212,36,38,0.2);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.class-block ul { list-style: none; columns: 2; gap: 24px; }
.class-block li { padding: 4px 0; break-inside: avoid; }

/* ----------------------------- Footer ----------------------------- */
.site-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 50px 24px 40px;
  text-align: center;
}
.footer-title {
  font-family: var(--serif);
  font-style: italic;
  color: var(--red);
  font-size: 24px;
  margin-bottom: 24px;
}
.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  max-width: 800px;
  margin: 0 auto 30px;
}
.partners a { display: inline-flex; }
.partners img {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s, filter 0.2s;
}
.partners a:hover img {
  transform: translateY(-3px);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}
.partners .placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #aaa;
}
.footer-legal {
  font-size: 12px;
  color: #888;
  line-height: 1.7;
}

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 2px solid var(--red);
    padding: 8px;
  }
  .nav-links.open { display: flex; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding-left: 18px;
  }
  .class-block ul { columns: 1; }
}

@media (max-width: 600px) {
  .section-wrapper { padding: 40px 16px 50px; }
  .inductees-card { padding: 22px 20px; }
  .photo-cta { padding: 14px 36px; font-size: 13px; }
}

/* =========================================================
   Motion & polish: scroll reveal, header-on-scroll, footer
   ========================================================= */

/* --- Header: subtle elevation + tightening once scrolled --- */
.site-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
.nav-inner { transition: padding 0.3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13); }
.site-header.scrolled .nav-inner { padding-top: 6px; padding-bottom: 6px; }
.site-header.scrolled .brand .crest { transform: scale(0.92); transition: transform 0.3s ease; }

/* --- Scroll reveal --- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1),
                transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
    will-change: opacity, transform;
  }
  [data-reveal="left"]  { transform: translateX(-30px); }
  [data-reveal="right"] { transform: translateX(30px); }
  [data-reveal="zoom"]  { transform: scale(0.94); }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* --- Footer polish --- */
.site-footer {
  position: relative;
  border-top: none;
  padding-top: 54px;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-title { position: relative; }

/* Back-to-top button */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
  z-index: 200;
}
.to-top:hover { background: var(--red-deep); transform: translateY(-2px); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 600px) { .to-top { right: 14px; bottom: 14px; } }

/* --- Stats band (home) --- */
.stats { background: #fff; padding: 56px 24px; }
.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { position: relative; }
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px; top: 50%;
  transform: translateY(-50%);
  height: 48px; width: 1px;
  background: #eceae4;
}
.stat-num {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
  color: var(--red);
}
.stat-label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6b6860;
  font-weight: 700;
}
@media (max-width: 680px) {
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 34px 16px; }
  .stat::after { display: none; }
}

/* --- Hero parallax safeguard --- */
[data-parallax] { will-change: transform; }

/* --- Footer: flanking sponsors + center + partner row (matches site) --- */
.footer-main {
  max-width: 1000px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}
.footer-sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-sponsor img { height: 90px; width: auto; object-fit: contain; transition: transform 0.2s; }
.footer-sponsor a:hover img { transform: translateY(-3px); }
.footer-sponsor span {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  max-width: 170px;
  line-height: 1.4;
}
.footer-center { text-align: center; }
.footer-ig {
  display: inline-flex;
  color: var(--red);
  margin: 10px 0 12px;
  transition: transform 0.2s, color 0.2s;
}
.footer-ig:hover { transform: translateY(-2px); color: var(--red-deep); }
.footer-ig svg { width: 26px; height: 26px; }
@media (max-width: 720px) {
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  .footer-sponsor span { max-width: none; }
}

/* --- Home news/photo strip: clickable cards --- */
.gallery-track a.gallery-item {
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #f1f1f1;
}
.gallery-track a.gallery-item img { height: 175px; width: 100%; object-fit: cover; border-radius: 0; }
.gallery-track a.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); }

/* =========================================================
   Header: pill nav, Instagram, transparent overlay on home
   ========================================================= */

/* Center the nav between brand (left) and Instagram (right) */
.nav-links { flex: 1; justify-content: center; }

/* Nav items as floating pill buttons */
.nav-links > li > a {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  color: var(--ink);
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: var(--red);
  color: #fff;
}
/* Dropdown items are not pills */
.dropdown a {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 4px;
}
.dropdown a:hover { background: rgba(212, 36, 38, 0.08); color: var(--red); }

/* Instagram icon button */
.nav-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.nav-ig:hover { color: var(--red-deep); transform: translateY(-2px); }
.nav-ig svg { width: 22px; height: 22px; }

/* --- Home page: header floats transparently over the hero video --- */
body[data-page="home"] .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
}
body[data-page="home"] .brand { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
body[data-page="home"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(6px);
}

/* Mobile: keep Instagram beside the menu toggle */
@media (max-width: 860px) {
  .nav-ig { order: 3; }
  .nav-links { flex: 1 0 100%; }
}

/* =========================================================
   Home: full-screen hero video + larger scrollable carousel
   ========================================================= */

/* Video fills the whole top of the page */
body[data-page="home"] .hero { height: 100vh; min-height: 560px; }

/* Larger tiles + horizontal carousel */
.gallery { position: relative; }
.gallery-track {
  grid-auto-columns: minmax(300px, 320px);
  gap: 20px;
  cursor: grab;
  scrollbar-width: none;
  scroll-padding: 24px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-track a.gallery-item img { height: 250px; }

/* Carousel arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--red);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, opacity 0.2s, transform 0.2s;
}
.gallery-arrow:hover { background: var(--red); color: #fff; transform: translateY(-50%) scale(1.06); }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-arrow.hidden { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
  .gallery-arrow { display: none; }
  .gallery-track { grid-auto-columns: 80vw; }
  .gallery-track a.gallery-item img { height: 210px; }
}

/* =========================================================
   Local-Luxe-inspired polish: hover lifts, image zoom, success anim
   ========================================================= */

/* Content cards lift on hover */
.info-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.12);
}

/* Home news tiles: image zoom inside the frame on hover */
.gallery-track a.gallery-item img { transition: transform 0.55s ease; }
.gallery-track a.gallery-item:hover img { transform: scale(1.06); }

/* Springy icon nudge (board/stat accents) */
.section-bar, .about-toggle-bar { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.info-card:hover .section-bar { transform: scaleY(1.1); }

/* Animated form success (matches Local-Luxe formSuccessIn) */
@keyframes formSuccessIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.form-success { animation: formSuccessIn 0.5s ease both; }

/* Refined primary button hover (gold CTA on home) */
.photo-cta { transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.2s ease; }

/* =========================================================
   Header symmetry: nav centered between equal-weight sides
   ========================================================= */
.brand .crest {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
}
.nav-right { display: flex; align-items: center; }

/* Desktop: three columns -> nav is always page-centered */
@media (min-width: 861px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .brand { justify-self: start; }
  .nav-links { justify-self: center; flex: 0 1 auto; }
  .nav-right { justify-self: end; }
}

/* Mobile: brand left, menu toggle + Instagram grouped right */
@media (max-width: 860px) {
  .nav-inner { justify-content: flex-start; }
  .brand { margin-right: auto; }
}

/* =========================================================
   Bigger crest logo + larger hero title (home)
   ========================================================= */
.brand .crest { width: 58px; height: 58px; }
.brand {
  font-size: 16px;
  gap: 12px;
}
body[data-page="home"] .hero-content h1 {
  font-size: clamp(46px, 9.5vw, 116px);
  letter-spacing: 5px;
  line-height: 1.02;
}
@media (max-width: 600px) {
  .brand .crest { width: 46px; height: 46px; }
  .brand { font-size: 13px; }
}

/* =========================================================
   Symmetry fix: logo-only brand, equal side columns
   ========================================================= */
.brand { min-width: 0; }
@media (min-width: 861px) {
  .nav-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
}

/* =========================================================
   Header breathing room: wider bar, tighter pills
   ========================================================= */
.nav-inner { max-width: 1280px; }
.nav-links { gap: 6px; }
.nav-links > li > a { padding: 9px 13px; font-size: 12px; }
@media (min-width: 861px) {
  .nav-inner { gap: 24px; }
}

/* =========================================================
   Footer logo sizing, larger tiles, flip-down reveal
   ========================================================= */

/* Uniform bottom-row partner logos */
.partners { gap: 36px; }
.partners img { height: 58px; width: auto; max-width: 150px; object-fit: contain; }
.footer-sponsor img { height: 96px; }

/* Larger home news tiles */
.gallery-track { grid-auto-columns: minmax(340px, 360px); }
.gallery-track a.gallery-item img { height: 280px; }
@media (max-width: 600px) {
  .gallery-track { grid-auto-columns: 82vw; }
  .gallery-track a.gallery-item img { height: 220px; }
}

/* Flip-down reveal (tiles drop in from the top edge) */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal="flip"] {
    opacity: 0;
    transform: perspective(1100px) rotateX(-72deg);
    transform-origin: top center;
  }
  [data-reveal="flip"].is-visible {
    opacity: 1;
    transform: perspective(1100px) rotateX(0deg);
  }
}

/* =========================================================
   Footer flanking sponsors: equal boxes so left/right mirror
   ========================================================= */
.footer-sponsor { width: 180px; }
.footer-sponsor img {
  height: auto;
  width: auto;
  max-height: 84px;
  max-width: 150px;
  object-fit: contain;
}

/* =========================================================
   Bolder menu text, larger tiles, shrink NCASA footer logo
   ========================================================= */

/* Menu text: bold sans-serif on every page so it stands out */
.nav-links > li > a {
  font-family: 'Lato', system-ui, sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.6px;
}
.dropdown a { font-family: 'Lato', system-ui, sans-serif; font-weight: 700; }

/* Home news tiles a touch larger */
.gallery-track { grid-auto-columns: minmax(380px, 400px); }
.gallery-track a.gallery-item img { height: 300px; }
@media (max-width: 600px) {
  .gallery-track { grid-auto-columns: 84vw; }
  .gallery-track a.gallery-item img { height: 230px; }
}

/* Shrink only the first (NCASA) footer sponsor logo to match the rest */
.footer-main > .footer-sponsor:first-child img { max-height: 62px; max-width: 120px; }

/* Center both footer sponsor logos in their columns (mirror each other) */
.footer-main > .footer-sponsor { justify-self: center; }

/* Square home news tiles */
.gallery-track { grid-auto-columns: minmax(300px, 340px); }
.gallery-track a.gallery-item img { height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 600px) {
  .gallery-track { grid-auto-columns: 80vw; }
  .gallery-track a.gallery-item img { height: auto; aspect-ratio: 1 / 1; }
}
