/* ===================================
   Dad's 80th Birthday — Gettysburg
   Full unified stylesheet
   =================================== */

:root {
  --navy:        #1a2744;
  --navy-light:  #2a3a5c;
  --navy-deep:   #0f1a2e;
  --cream:       #faf6f0;
  --cream-dark:  #f0ead8;
  --gold:        #c9a84c;
  --gold-light:  #e8d9a0;
  --gold-pale:   rgba(201,168,76,0.12);
  --warm-gray:   #6b6560;
  --text:        #2c2926;
  --text-light:  #7a746e;
  --white:       #ffffff;
  --border:      #e8e2da;
  --card-bg:     #ffffff;
  --hero-grad:   linear-gradient(150deg, #0d1929 0%, #1a2744 50%, #22304e 100%);
}

/* ============================================================
   RESET & BASE
============================================================ */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--navy); }

.container { max-width: 980px; margin: 0 auto; padding: 0 28px; }

/* ============================================================
   NAVIGATION
============================================================ */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

#nav.scrolled {
  background: rgba(13, 25, 41, 0.96);
  padding: 13px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 980px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.02em;
}
.nav-logo:hover { color: var(--gold); }

.nav-links { display: flex; gap: 30px; }

.nav-links a {
  font-size: 0.78rem; font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,0.8);
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--navy-deep);
  padding: 80px 28px 32px;
  z-index: 190;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-link {
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-link:hover { color: var(--gold); }

/* ============================================================
   HERO
============================================================ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/gettysburg.avif');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Dark overlay so text stays legible over the photo */
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 18, 32, 0.72) 0%,
    rgba(15, 26, 46, 0.60) 50%,
    rgba(10, 18, 32, 0.75) 100%
  );
}

/* Subtle gold tint layer */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 65%, rgba(201,168,76,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(201,168,76,0.07) 0%, transparent 50%);
}

.hero-grain {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-content {
  position: relative; z-index: 1;
  padding: 40px 24px;
}

.hero-eyebrow {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold); margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-weight: 700; color: var(--white);
  margin-bottom: 22px; line-height: 1.05;
}
.hero-title sup {
  font-size: 0.4em; vertical-align: super;
}

.hero-subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,0.68);
  max-width: 500px; margin: 0 auto 40px;
  font-weight: 300; line-height: 1.75;
}

.hero-cta-row {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: 3px;
  transition: transform 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn-gold {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-gold:hover {
  background: var(--gold-light); color: var(--navy);
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.45);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 1;
}
.hero-scroll-hint span {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: rgba(255,255,255,0.4);
}
.scroll-line {
  width: 1px; height: 44px;
  background: rgba(255,255,255,0.2);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ''; position: absolute;
  top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--gold);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}

/* ============================================================
   SECTIONS SHARED
============================================================ */

section { padding: 108px 0; }

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy); text-align: center; margin-bottom: 12px;
}
.section-subtitle {
  text-align: center; color: var(--text-light);
  font-size: 1.05rem; max-width: 540px;
  margin: 0 auto 68px; font-weight: 300;
}

/* ============================================================
   TRIBUTE SECTION
============================================================ */

#tribute {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.tribute-bg-texture {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(201,168,76,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 0%, rgba(201,168,76,0.05) 0%, transparent 50%);
}

.tribute-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
  position: relative; z-index: 1;
}

/* Photo column */
.tribute-photo-col {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.tribute-photo-frame {
  position: relative; width: 100%;
}

.tribute-photo-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1.5px solid rgba(201,168,76,0.5);
  border-radius: 4px;
  transform: rotate(-2.5deg);
  pointer-events: none;
}
.tribute-photo-frame::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  transform: rotate(1deg);
  pointer-events: none;
}

.tribute-photo {
  width: 100%; display: block;
  border-radius: 3px;
  filter: sepia(10%) contrast(1.05) brightness(0.98);
  position: relative; z-index: 1;
}

.tribute-service-badge {
  display: flex; align-items: center; gap: 16px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 6px;
  padding: 16px 22px;
  width: 100%;
}
.badge-anchor {
  font-size: 2rem; color: var(--gold); flex-shrink: 0; line-height: 1;
}
.badge-text-wrap {
  display: flex; flex-direction: column; gap: 3px;
}
.badge-title {
  font-size: 0.85rem; font-weight: 700;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.1em;
}
.badge-sub {
  font-size: 0.72rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* Text column */
.tribute-text-col { color: var(--white); }

.tribute-eyebrow {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold); margin-bottom: 14px;
}

.tribute-heading {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--white); margin-bottom: 32px;
}

.tribute-birthday-line {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 32px;
}
.bday-block {
  display: flex; flex-direction: column; gap: 4px;
}
.bday-label {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--gold);
}
.bday-date {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--white); font-style: italic;
}
.bday-sep {
  width: 1px; height: 44px;
  background: rgba(201,168,76,0.3); flex-shrink: 0;
}

.tribute-body {
  font-size: 1rem; line-height: 1.85;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px; font-weight: 300;
}

.tribute-quote {
  position: relative;
  border-left: 3px solid var(--gold);
  padding: 12px 0 12px 24px;
  margin: 28px 0 32px;
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; color: var(--gold);
  opacity: 0.4; line-height: 0;
  position: absolute; top: 20px; left: 16px;
  pointer-events: none;
}
.tribute-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem; color: rgba(255,255,255,0.75);
  line-height: 1.65; padding-left: 20px;
}

.tribute-stat-row {
  display: flex; gap: 32px;
}
.tribute-stat {
  display: flex; flex-direction: column; gap: 5px;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.45);
}

/* ============================================================
   ITINERARY
============================================================ */

#itinerary { background: var(--cream); }

/* Day blocks */
.day-block { margin-bottom: 88px; }
.day-block:last-child { margin-bottom: 0; }

.day-header {
  display: flex; align-items: center; gap: 18px; margin-bottom: 40px;
}
.day-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 0.82rem; font-weight: 700; flex-shrink: 0;
}
.day-title { font-size: 1.55rem; color: var(--navy); }

/* Timeline */
.timeline { position: relative; padding-left: 104px; }
.timeline::before {
  content: ''; position: absolute;
  left: 82px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-time {
  position: absolute; left: -104px; top: 22px;
  width: 76px; text-align: right;
  font-size: 0.78rem; font-weight: 700;
  color: var(--warm-gray); letter-spacing: 0.02em;
}
.timeline-item::before {
  content: ''; position: absolute;
  left: -24px; top: 24px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold); border: 2px solid var(--cream); z-index: 1;
}
.timeline-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 26px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.timeline-card h4 { font-size: 1.12rem; color: var(--navy); margin-bottom: 8px; }
.timeline-card p  { font-size: 0.95rem; color: var(--text-light); }

.timeline-card.highlight-card {
  background: linear-gradient(135deg, #1a2744 0%, #2a3a5c 100%);
  border: none;
}
.timeline-card.highlight-card h4 { color: var(--gold); }
.timeline-card.highlight-card p  { color: rgba(255,255,255,0.78); }
.timeline-card.highlight-card .booking-tag { border-top-color: rgba(255,255,255,0.12); }
.timeline-card.highlight-card .tag-label   { color: var(--gold-light); }
.timeline-card.highlight-card a            { color: var(--white); }
.timeline-card.highlight-card .tag-note    { color: rgba(255,255,255,0.55); }

/* Booking tags */
.booking-tag {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
}
.tag-label {
  font-weight: 700; color: var(--navy);
  text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.1em;
}
.tag-note {
  color: var(--text-light); font-size: 0.82rem;
  flex-basis: 100%; margin-top: 4px;
}

/* ============================================================
   MAPS SECTION
============================================================ */

#maps { background: var(--navy-deep); }

.maps-title { color: var(--white); }
.maps-subtitle { color: rgba(255,255,255,0.5); }

/* Tabs */
.map-tabs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px; padding: 6px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.map-tab {
  flex: 1; min-width: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 10px;
  background: transparent; border: none;
  border-radius: 7px; cursor: pointer;
  transition: background 0.25s, color 0.25s;
  color: rgba(255,255,255,0.45);
}
.map-tab:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.8); }
.map-tab.active {
  background: var(--navy-light);
  color: var(--white);
  box-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
.tab-day {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.tab-label {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700;
}

/* Panels */
.map-panels { position: relative; }
.map-panel { display: none; flex-direction: column; animation: mapFadeIn 0.35s ease; }
.map-panel.active { display: flex; }

@keyframes mapFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Context bar */
.map-context-bar {
  display: flex; align-items: center; gap: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 12px 18px; flex-wrap: wrap;
}
.map-context-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.context-dot {
  width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0;
}
.context-dot.confederate { background: #DA1F3D; }
.context-dot.union       { background: #00A0E2; }
.context-dot.cemetery-dot { background: var(--gold); }

.map-controls { margin-left: auto; display: flex; gap: 6px; }
.zoom-btn {
  width: 34px; height: 34px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 1rem; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.zoom-btn:hover {
  background: var(--gold); color: var(--navy); border-color: var(--gold);
}

/* Viewport */
.map-viewport {
  width: 100%; height: 560px;
  background: #f5f2e2;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden; position: relative;
  cursor: grab; touch-action: none;
}
.map-viewport:active { cursor: grabbing; }

.map-svg-wrapper {
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0;
  user-select: none; will-change: transform;
}
.map-svg-wrapper img {
  display: block; max-width: none;
  min-width: 520px; width: 100%;
  pointer-events: none; user-select: none;
  -webkit-user-drag: none;
}

/* Caption */
.map-caption {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 8px 8px;
  padding: 24px 28px;
}
.map-caption h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--white); margin-bottom: 10px;
}
.map-caption p {
  font-size: 0.88rem; color: rgba(255,255,255,0.55);
  line-height: 1.8; font-weight: 300; max-width: 800px;
}

/* ============================================================
   DIRECTORY
============================================================ */

#directory { background: var(--white); }

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.dir-card {
  background: var(--cream);
  border-radius: 8px; padding: 28px;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.dir-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
.dir-category {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); background: var(--gold-pale);
  padding: 4px 10px; border-radius: 3px; margin-bottom: 12px;
}
.dir-card h4 { font-size: 1.12rem; color: var(--navy); margin-bottom: 8px; }
.dir-card p  { font-size: 0.9rem;  color: var(--text-light); }

/* ============================================================
   LOGISTICS / TIPS
============================================================ */

#logistics { background: var(--cream); }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.tip-card {
  background: var(--white); border-radius: 8px;
  padding: 32px 28px; border: 1px solid var(--border);
  transition: transform 0.3s;
}
.tip-card:hover { transform: translateY(-2px); }
.tip-icon      { font-size: 1.75rem; margin-bottom: 16px; }
.tip-card h4   { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.tip-card p    { font-size: 0.9rem;  color: var(--text-light); }

/* ============================================================
   FOOTER
============================================================ */

footer {
  background: var(--navy-deep);
  text-align: center; padding: 56px 0 48px;
  position: relative; overflow: hidden;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 2px; background: var(--gold); opacity: 0.5;
}
.footer-anchor {
  font-size: 1.8rem; color: var(--gold); opacity: 0.4;
  margin-bottom: 16px;
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--white);
  margin-bottom: 8px;
}
.footer-dates {
  font-size: 0.82rem; color: var(--gold); opacity: 0.7;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.footer-sub {
  font-size: 0.78rem; color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {
  .tribute-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .tribute-photo-col { align-items: flex-start; }
  .tribute-photo-frame, .tribute-service-badge { max-width: 380px; }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu   { display: flex; }

  section { padding: 76px 0; }

  .timeline { padding-left: 0; }
  .timeline::before { left: 0; }
  .timeline-time {
    position: static; width: auto;
    text-align: left; margin-bottom: 6px; margin-left: 20px;
  }
  .timeline-item::before { left: -4px; }
  .timeline-card { margin-left: 20px; }

  .day-header { flex-direction: column; align-items: flex-start; }
  .day-badge  { width: 50px; height: 50px; font-size: 0.75rem; }

  .map-viewport { height: 380px; }
  .map-tab { padding: 10px 8px; min-width: 80px; }
  .tab-day { font-size: 0.9rem; }
  .tab-label { font-size: 0.62rem; }

  .directory-grid, .tips-grid { grid-template-columns: 1fr; }
  .tribute-stat-row { gap: 24px; }
}

@media (max-width: 520px) {
  .hero-title { font-size: 2.8rem; }
  .tribute-photo-frame, .tribute-service-badge { max-width: 100%; }
  .map-viewport { height: 300px; }
  .tribute-birthday-line { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bday-sep { display: none; }
}