/*
  Kernersville 155 & America 250 Celebration - Main Stylesheet
  Cleaned & consolidated for 2024.
*/

/* ---- RESET & BASE STYLES ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-blue: #002447;
  --secondary-blue: #1C4F80;
  --accent-red: #9E2B25;
  --accent-gold: #D4AF37;
  --text-dark: #333333;
  --text-light: #F7F0E1;
  --bg-cream: #F7F0E1;
  --bg-white: #FFFFFF;
  --border-light: #E0D9C5;
}

/* ---- TYPOGRAPHY ---- */
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Georgia', serif; color: var(--text-dark); background: var(--bg-cream); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: 'Times New Roman', serif; font-weight: 700; margin-bottom: 1rem; line-height: 1.3; }
p { margin-bottom: 1rem; }
a { color: var(--secondary-blue); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-red); }
img { max-width: 100%; height: auto; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 1.5rem 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block; padding: 0.75rem 1.5rem; border-radius: 5px; font-weight: bold;
  text-align: center; cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.btn-primary { background: var(--primary-blue); color: var(--text-light); border: 2px solid var(--primary-blue);}
.btn-primary:hover { background: var(--secondary-blue); border-color: var(--secondary-blue);}
.btn-secondary { background: transparent; color: var(--primary-blue); border: 2px solid var(--primary-blue);}
.btn-secondary:hover { background: var(--primary-blue); color: var(--text-light); }

/* ---- HEADER & NAVIGATION ---- */
header {
  background: var(--primary-blue);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.logo-container { text-align: center; margin-bottom: 0.5rem; }
.logo { height: 60px; width: auto; }

nav { display: flex; justify-content: center; }
.nav-menu {
  display: flex; list-style: none; flex-wrap: wrap; justify-content: center;
}
.nav-menu li { position: relative; }
.nav-menu a {
  color: var(--text-light); padding: 0.5rem 1rem; display: block; text-decoration: none;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-gold); }

/* ---- DUAL LOGO SIZING - MOBILE RESPONSIVE ---- */
.dual-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap; /* Allow wrapping if needed on very small screens */
}

.dual-logo img.kvl155-logo {
  height: auto !important;
  width: auto !important;
  max-height: 120px !important; /* Override inline styles */
  max-width: 200px; /* Prevent it from getting too wide */
}

.dual-logo img.america250-logo {
  height: auto !important;
  width: auto !important;
  max-height: 100px !important; /* Override inline styles */
  max-width: 150px; /* Prevent it from getting too wide */
}

.logo-plus {
  color: var(--accent-gold);
  font-size: 2.5rem;
  margin: 0 1.5rem;
  font-weight: bold;
}

/* Mobile responsiveness for dual logo */
@media (max-width: 768px) {
  .dual-logo {
    gap: 1rem; /* Add spacing between elements */
  }

  .dual-logo img.kvl155-logo {
    max-height: 80px !important;
    max-width: 140px !important;
  }

  .dual-logo img.america250-logo {
    max-height: 64px !important;
    max-width: 100px !important;
  }

  .logo-plus {
    font-size: 2rem;
    margin: 0 0.7rem;
  }
}

@media (max-width: 480px) {
  .dual-logo {
    flex-direction: column; /* Stack vertically on very small screens */
    gap: 1rem;
  }

  .dual-logo img.kvl155-logo {
    max-height: 70px !important;
    max-width: 120px !important;
  }

  .dual-logo img.america250-logo {
    max-height: 56px !important;
    max-width: 90px !important;
  }

  .logo-plus {
    font-size: 1.8rem;
    margin: 0;
    order: -1; /* Put the plus sign at the top when stacked */
  }
}

/* ---- HERO SECTIONS ---- */
.america250-hero { text-align: center; background-size: cover; background-position: center; padding: 3rem 0 2rem 0; }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; padding: 0 1rem; }
.america250-hero h1 { font-size: 3rem; color: var(--primary-blue);}
.america250-hero p { font-size: 1.3rem; color: var(--text-dark);}

/* ---- INTRO ---- */
.america250-intro {
  padding: 2.5rem 0; background: var(--bg-white); border-bottom: 1px solid var(--border-light);
}
.intro-content { max-width: 800px; margin: 0 auto; text-align: center; }
.intro-content h2 { color: var(--primary-blue); margin-bottom: 2rem; font-size: 2.2rem;}
.intro-content p { margin-bottom: 1.5rem; font-size: 1.1rem; line-height: 1.7;}

/* ---- PARALLEL HISTORIES TIMELINE ---- */
.america250-parallels { padding: 3rem 0; background: var(--bg-cream);}
.timeline-parallels { max-width: 1000px; margin: 2rem auto 0; }
.timeline-item { margin-bottom: 3rem;}
.year {
  display: block; margin: 0 auto 1.5rem auto; background: var(--primary-blue);
  color: var(--text-light); font-weight: bold; padding: 0.5rem 1.25rem;
  border-radius: 7px; font-size: 1.2rem; text-align: center; width: fit-content;
}
.timeline-row {
  display: flex; justify-content: space-between; gap: 2rem; align-items: stretch;
}
.timeline-side {
  width: 48%; background: #fff; padding: 1.2rem 1rem;
  border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  min-width: 0; display: flex; flex-direction: column; justify-content: center;
}
.timeline-us { border-left: 4px solid #2a4d9b;}
.timeline-kernersville { border-right: 4px solid #ad843b; text-align: right;}
.timeline-us h3 { color: #2a4d9b; margin-top: 0;}
.timeline-kernersville h3 { color: #ad843b; margin-top: 0;}

@media (max-width: 900px) {
  .timeline-row { flex-direction: column; gap: 1rem;}
  .timeline-side { width: 100%; text-align: left !important; border-left: 4px solid #ccc; border-right: none !important;}
  .timeline-kernersville h3, .timeline-us h3 { text-align: left;}
}

/* ---- BASIC SECTION & TEXT ---- */
section { padding: 4rem 0;}
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 3rem; color: var(--primary-blue); position: relative;}
.section-title::after { content: ''; display: block; width: 80px; height: 3px; background: var(--accent-gold); margin: 0.8rem auto 0;}
.section-intro { text-align: center; max-width: 800px; margin: 0 auto 3rem; font-size: 1.2rem;}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .section-title { font-size: 1.8rem;}
  .america250-hero h1 { font-size: 2.5rem;}
}
@media (max-width: 480px) {
  html { font-size: 14px;}
  .section-title { font-size: 1.6rem;}
}
