/* ============================================
   THE CHICKWEED TROPHY - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  --green-dark:   #1a4a1a;
  --green-mid:    #2e7d32;
  --green-light:  #4caf50;
  --gold:         #c9a84c;
  --gold-light:   #f0d080;
  --cream:        #fdf8ee;
  --brown:        #5d3a1a;
  --white:        #ffffff;
  --shadow:       rgba(0,0,0,0.25);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: #222;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- Grass texture header bg ---- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-dark), var(--gold), var(--green-dark));
  z-index: 9999;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0d2e0d 100%);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 15px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0.5rem 0;
  flex-shrink: 0;
}

.navbar-logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}
.navbar-brand:hover .navbar-logo { transform: rotate(-5deg) scale(1.05); }

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

.nav-links a {
  display: block;
  color: var(--gold-light);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 1.3rem 1.2rem;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--gold);
  transition: left 0.3s ease, right 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  left: 0; right: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--gold-light);
  border-radius: 3px;
  transition: all 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(46,125,50,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(46,125,50,0.2) 0%, transparent 60%),
    linear-gradient(180deg, #0a1f0a 0%, #1a4a1a 40%, #2e7d32 100%);
}

/* Animated golf hole rings */
.hero::before {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.15);
  animation: ringPulse 4s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.08);
  animation: ringPulse 4s ease-in-out infinite 1s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.02); }
}



.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease both;
}

/* Hero icon wrapper — centred above the badge */
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.6rem;
  animation: heroLogoFloat 3s ease-in-out infinite, fadeInDown 1s ease 0.1s both;
}

/* Canvas renders only the chick+golf ball portion of the logo */
#hero-icon-canvas {
  /* width/height set dynamically by JS to match natural aspect ratio */
  height: 160px;
  width: auto;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.65));
  display: block;
}

/* Keep .hero-logo class available for navbar (logo.png in full) */
.hero-logo {
  height: 180px;
  width: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
  animation: heroLogoFloat 3s ease-in-out infinite, fadeInDown 1s ease 0.2s both;
  margin-bottom: 1.5rem;
}

@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease 0.4s both;
  margin-bottom: 0.5rem;
}

.hero h1 span {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin: 1rem 0 2rem;
  animation: fadeInUp 1s ease 0.6s both;
  font-style: italic;
}

.hero-since {
  font-size: 0.9rem;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeInUp 1s ease 1s both;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e0b84d);
  color: var(--green-dark);
  box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.5);
  background: linear-gradient(135deg, #e0b84d, var(--gold));
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--green-dark);
  transform: translateY(-3px);
}

.btn-green {
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(46,125,50,0.4);
}
.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46,125,50,0.5);
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0d2e0d 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.02) 20px,
    rgba(255,255,255,0.02) 40px
  );
}

.page-header h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}

.page-header h1 span { color: var(--gold); }

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.page-header-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto 0;
  position: relative;
  z-index: 1;
}

/* ============================================
   SECTIONS & LAYOUT
   ============================================ */
.section {
  padding: 5rem 2rem;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, #f5f0e4 0%, var(--cream) 100%);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title span { color: var(--gold); }

.section-subtitle {
  text-align: center;
  color: #666;
  font-style: italic;
  margin-bottom: 3rem;
  font-size: 1rem;
}

.gold-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.75rem auto 2rem;
}

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--gold);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.card-icon {
  font-size: 3rem;
  padding: 2rem 2rem 0;
}

.card-body { padding: 1.5rem 2rem 2rem; }

.card-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.card-body p { color: #555; line-height: 1.7; }

/* ============================================
   FACTS / STATS BAR
   ============================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--green-dark), #0d2e0d);
  padding: 3rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  animation: countUp 0.5s ease both;
}

.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 0.5rem;
  display: block;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--green-light), var(--gold));
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2.5rem;
  animation: fadeInLeft 0.6s ease both;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 3px var(--gold);
}

.timeline-year {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 20px var(--shadow);
  border-left: 4px solid var(--green-light);
  line-height: 1.7;
  color: #444;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border: 3px dashed var(--gold);
  border-radius: 20px;
  text-align: center;
  padding: 3rem;
  background: rgba(201,168,76,0.05);
}

.gallery-placeholder-icon { font-size: 5rem; margin-bottom: 1rem; }

.gallery-placeholder h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.gallery-placeholder p { color: #666; max-width: 400px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

/* ============================================
   CLUB PAGE
   ============================================ */
.club-hero {
  background: linear-gradient(rgba(10,30,10,0.7), rgba(10,30,10,0.7)),
              url('https://www.cathcartcastle.net/wp-content/uploads/2021/03/CathcartCastle-2.jpg') center/cover no-repeat;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px var(--shadow);
  border-top: 3px solid var(--green-light);
  text-align: center;
}

.info-card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

.info-card h4 {
  font-family: 'Inter', sans-serif;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.info-card p { color: #555; font-size: 0.95rem; line-height: 1.6; }

/* ============================================
   BOWSER OF THE DECADE
   ============================================ */
.bowser-section {
  background: linear-gradient(135deg, #0d2e0d 0%, #1a4a1a 50%, #0d2e0d 100%);
  padding: 5rem 0;
}

.bowser-section .section-title,
.bowser-section .section-subtitle {
  color: #fff;
}

.bowser-card {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  max-width: 820px;
  margin: 2.5rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

/* Portrait in an ornate gold frame effect */
.bowser-frame-wrap {
  position: relative;
  flex-shrink: 0;
  padding: 14px;
  background: linear-gradient(145deg, #c9a84c, #f0d080, #a07830, #f0d080, #c9a84c);
  border-radius: 8px;
  box-shadow:
    0 0 0 3px #a07830,
    0 8px 40px rgba(0,0,0,0.7),
    inset 0 0 12px rgba(201,168,76,0.4);
  animation: bowserFloat 4s ease-in-out infinite;
}

.bowser-img {
  display: block;
  width: 200px;
  height: auto;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

@keyframes bowserFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-10px) rotate(1deg); }
}

/* Wanted-poster shimmer overlay */
.bowser-frame-overlay {
  position: absolute;
  inset: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
}

.bowser-text {
  flex: 1;
  min-width: 260px;
  color: #fff;
}

.bowser-question {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.bowser-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.2rem;
}

.bowser-body em {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 600;
}

.bowser-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  border-top: 1px solid rgba(201,168,76,0.25);
  padding-top: 1rem;
  font-style: italic;
}

.bowser-tagline span {
  color: var(--gold);
  font-weight: 600;
  font-style: normal;
}

@media (max-width: 600px) {
  .bowser-card { gap: 2rem; }
  .bowser-img  { width: 160px; }
  .bowser-question { font-size: 1.2rem; }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: linear-gradient(180deg, #0d2e0d, #061506);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '⛳';
  position: absolute;
  font-size: 8rem;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

footer .footer-logo {
  height: 70px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0.9);
  position: relative;
  z-index: 1;
}

footer p { margin-bottom: 0.4rem; font-size: 0.9rem; position: relative; z-index: 1; }

footer a {
  color: var(--gold-light);
  text-decoration: none;
}
footer a:hover { color: var(--white); }

.footer-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto;
  opacity: 0.5;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.footer-nav a {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   GOPHER ANIMATIONS
   ============================================ */
.gopher-mascot {
  position: fixed;
  bottom: 0;
  z-index: 500;
  pointer-events: none;
  user-select: none;
}

.gopher-mascot img {
  height: 180px;
  width: auto;
  display: block;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
}

.gopher-left {
  left: -220px;
  animation: slideInLeft var(--gopher-duration, 1.2s) cubic-bezier(0.34, 1.56, 0.64, 1) var(--gopher-delay, 0s) both,
             slideOutLeft var(--gopher-duration, 1.2s) cubic-bezier(0.36, 0, 0.66, -0.56) var(--gopher-out-delay, 4s) both;
}

.gopher-right {
  right: -220px;
  animation: slideInRight var(--gopher-duration, 1.2s) cubic-bezier(0.34, 1.56, 0.64, 1) var(--gopher-delay, 0s) both,
             slideOutRight var(--gopher-duration, 1.2s) cubic-bezier(0.36, 0, 0.66, -0.56) var(--gopher-out-delay, 4s) both;
}

.gopher-left img { transform: scaleX(-1); }

@keyframes slideInLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(220px); }
}

@keyframes slideOutLeft {
  from { transform: translateX(220px); }
  to   { transform: translateX(0); }
}

@keyframes slideInRight {
  from { transform: translateX(0); }
  to   { transform: translateX(-220px); }
}

@keyframes slideOutRight {
  from { transform: translateX(-220px); }
  to   { transform: translateX(0); }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: none; }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: none; }

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-25px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================
   RIBBON / QUOTE SECTION
   ============================================ */
.quote-ribbon {
  background: linear-gradient(135deg, var(--gold) 0%, #e0a830 100%);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-ribbon::before,
.quote-ribbon::after {
  content: '⛳';
  position: absolute;
  font-size: 6rem;
  opacity: 0.1;
  top: 50%;
  transform: translateY(-50%);
}
.quote-ribbon::before { left: 2rem; }
.quote-ribbon::after  { right: 2rem; }

.quote-ribbon blockquote {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--green-dark);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.quote-ribbon cite {
  display: block;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 1rem;
  opacity: 0.7;
}

/* ============================================
   JACKET SECTION
   ============================================ */
.jacket-section {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.jacket-img-wrap {
  flex: 0 0 auto;
  text-align: center;
}

.jacket-chick {
  width: 200px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
  animation: chickBob 2.5s ease-in-out infinite;
}

@keyframes chickBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-15px) rotate(3deg); }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0d2e0d;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  }

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

  .nav-links a { padding: 0.9rem 2rem; }

  .gopher-mascot img { height: 120px; }

  .hero { min-height: 70vh; }

  .jacket-section { flex-direction: column; text-align: center; }

  /* Two-column homepage grids: stack to single column */
  .scorecard-teaser-grid,
  .history-teaser-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Scorecard: table on top, text below */
  .scorecard-teaser-grid > div:first-child { order: 1; }
  .scorecard-teaser-grid > div:last-child  { order: 2; }

  /* History: text already first, gopher image second — fine as-is */
  .history-teaser-grid > div:last-child {
    display: flex;
    justify-content: center;
  }
  .history-teaser-grid > div:last-child img {
    width: 140px;
  }

  /* Section padding: tighter on mobile */
  .section { padding: 3.5rem 1.25rem; }

  /* Page header */
  .page-header { padding: 2.5rem 1.25rem 2rem; }
  .page-header p { font-size: 0.95rem; }

  /* Bowser of the Decade */
  .bowser-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .bowser-frame-wrap { flex-shrink: unset; }
  .bowser-img { width: 180px; }
  .bowser-tagline { text-align: left; }

  /* Footer nav: tighter gap */
  .footer-nav { gap: 0.75rem; }
  .footer-nav a { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero { min-height: 60vh; padding: 2rem 1rem; }

  /* Bowser */
  .bowser-img { width: 150px; }
  .bowser-question { font-size: 1.1rem; }
  .bowser-body { font-size: 1rem; }

  /* Section title */
  .section-title { font-size: 1.6rem; }

  /* Cards grid: force single column */
  .cards-grid { grid-template-columns: 1fr; }

  /* Container side padding */
  .container { padding-left: 1rem; padding-right: 1rem; }

  /* Stats bar */
  .stats-bar { flex-wrap: wrap; gap: 1rem; padding: 1rem; }

  /* History teaser: centre-align text on small phones */
  .history-teaser-grid .section-title { text-align: center; }
  .history-teaser-grid .gold-divider  { margin-left: auto; margin-right: auto; }

  /* Scorecard teaser: make table font a bit smaller */
  .scorecard-teaser-grid table { font-size: 0.75rem; }

  /* Footer */
  footer { padding: 2rem 1rem; }
  .footer-nav { gap: 0.5rem; }
  .footer-nav a { font-size: 0.72rem; letter-spacing: 0.5px; }
}

/* ============================================
   UTILITY
   ============================================ */
.text-gold { color: var(--gold); }
.text-green { color: var(--green-mid); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
