/* =================================================================
   main.css - Shared styles (vars, reset, topbar, nav, footer, mobile)
   The Rogers Daisy Airgun Museum
   ================================================================= */
:root {
  --navy: #0d1b2a;
  --navy-light: #1a2f45;
  --gold: #c9922a;
  --gold-light: #e8b84b;
  --cream: #f5f0e8;
  --cream-dark: #e8e0d0;
  --red: #C8102E;
  --red-dark: #9e0c24;
  --navy-dark: #070e17;
  --rust: #8b3a1a;
  --text-dark: #1a1208;
  --text-mid: #4a3f2f;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Crimson Pro', Georgia, serif; background: var(--cream); color: var(--text-dark); overflow-x: hidden; }

/* =================================================================
   TOP BAR
   ================================================================= */
.topbar {
  background: var(--navy-dark);
  border-bottom: 2px solid var(--red);
  color: var(--cream-dark);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--gold-light); text-decoration: none; }
.topbar a:hover { color: #fff; }

/* =================================================================
   NAVBAR
   ================================================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(8px);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold);
}
.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 10px 0;
}
.nav-logo-wrap img { height: 85px; width: auto; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5)); }
.nav-logo-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
  font-weight: 700;
}
.nav-logo-text span {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 300;
  margin-top: 3px;
}
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dark);
  text-decoration: none;
  padding: 22px 17px;
  display: block;
  transition: color 0.2s;
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 17px; right: 17px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links li a:hover { color: #fff; }
.nav-links li a:hover::after { transform: scaleX(1); }
.nav-links li.donate a {
  background: var(--gold);
  color: var(--navy);
  margin-left: 8px;
  padding: 10px 20px;
  border-radius: 2px;
}
.nav-links li.donate a:hover { background: var(--gold-light); }
.nav-links li.donate a::after { display: none; }

/* =================================================================
   DROPDOWNS
   ================================================================= */
.nav-links .has-dropdown { position: relative; }

.nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: var(--navy-dark);
  border-top: 2px solid var(--gold);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  z-index: 500;
}
.nav-links .has-dropdown:hover .dropdown { display: block; }

.nav-links .dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8c8d8;
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav-links .dropdown li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
  border-left-color: var(--gold);
}
/* Override ::after underline for dropdown links */
.nav-links .dropdown li a::after { display: none; }

.nav-links .dropdown li a.future { opacity: 0.45; font-style: italic; }

/* =================================================================
   ANNIVERSARY BADGE
   ================================================================= */
.anniv-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #C8102E;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 3px;
  padding: 10px 20px;
  margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(200,16,46,0.55), 0 0 0 1px rgba(200,16,46,0.3);
  animation: fadeUp 1s ease 0.1s both;
}
.anniv-flag { font-size: 1.25rem; line-height: 1; }
.anniv-text {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.anniv-text sup { font-size: 0.58rem; vertical-align: super; }

/* =================================================================
   FOOTER
   ================================================================= */
footer { background: var(--navy); color: rgba(245,240,232,0.58); padding: 48px 48px 32px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto 40px;
  align-items: start;
}

/* Brand block */
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 12px; }
.footer-logo-wrap img { height: 110px; width: auto; }
.footer-logo-name { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--cream); line-height: 1.2; }
.footer-logo-name span { display: block; font-family: 'Josefin Sans', sans-serif; font-size: 0.56rem; letter-spacing: 0.22em; color: var(--gold-light); font-weight: 300; text-transform: uppercase; margin-top: 3px; }
.footer-brand p { font-size: 0.93rem; line-height: 1.7; max-width: 270px; }

.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a { color: rgba(245,240,232,0.45); font-family: 'Josefin Sans', sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; border: 1px solid rgba(245,240,232,0.18); padding: 5px 11px; border-radius: 2px; text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.social-links a:hover { color: var(--gold-light); border-color: var(--gold-light); }



/* Footer nav columns */
.footer-col h4 { font-family: 'Josefin Sans', sans-serif; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(245,240,232,0.52); text-decoration: none; font-size: 0.93rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-col ul li a.future { opacity: 0.45; font-style: italic; }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--gold-light); text-decoration: none; }

/* =================================================================
   HAMBURGER
   ================================================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .welcome-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* Dropdowns: show flat/stacked inside mobile menu */
  .nav-links .has-dropdown { position: static; }
  .nav-links .dropdown {
    display: block;
    position: static;
    background: rgba(0,0,0,0.2);
    box-shadow: none;
    border-top: none;
    border-left: 2px solid var(--gold);
    margin: 0 0 4px 16px;
    padding: 4px 0;
  }
  .nav-links .dropdown li a { padding: 7px 14px; font-size: 0.68rem; }
}

@media (max-width: 768px) {
  .welcome-wrap { grid-template-columns: 1fr; gap: 36px; padding: 48px 24px; }
  .vintage-strip { grid-template-columns: 1fr; }
  .vintage-img { min-height: 260px; }
  .vintage-text { padding: 48px 28px; }
  .news-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-content { padding: 0 28px; }
  .topbar { display: none; }
  .hero-overlay {
    background: linear-gradient(to bottom,
      rgba(13,27,42,0.72) 0%,
      rgba(13,27,42,0.82) 50%,
      rgba(13,27,42,0.72) 100%);
  }
  .hero-title, .hero-sub, .hero-eyebrow { text-shadow: 0 2px 8px rgba(0,0,0,0.7); }

  .hamburger { display: flex; }
  nav { flex-wrap: wrap; padding: 10px 20px; }
  .nav-logo-wrap { flex: 1; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: var(--navy-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0 16px;
    margin-top: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    padding: 13px 24px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links li a::after { display: none; }
  .nav-links li.donate { margin-top: 8px; }
  .nav-links li.donate a {
    margin: 0 24px;
    text-align: center;
    display: block;
    border-radius: 2px;
    border-bottom: none;
  }

  footer { padding: 40px 24px 24px; }
  .footer-links { gap: 8px 16px; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .welcome-stats { grid-template-columns: 1fr 1fr; }
  .nav-logo-wrap img { height: 60px; }
  .nav-logo-text strong { font-size: 0.9rem; }
  .nav-logo-text span { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
