/* ==========================================================================
   CAPE CORAL DEMOCRATIC CLUB — styles.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --blue:        #0000FF;
  --blue-hal:    #dfebfa;
  --blue-dark:   #0B3C5D;
  --steal-blue:  #4682B4;
  --btn-blue:    #1E90FF;
  --dark-cyan:   #177e8c;
  --light-cyan:  #f3f8f8;
  --teal-light:  #E8F5F6;
  --silver:      #C6C6C6;
  --white:       #FFFFFF;
  --near-white:  #F4F9FA;
  --charcoal:    #1A1A1A;
  --ink:         #2C2C2A;
  --gray:        #6B6B68;
  --light-gray:  #E5E5E5;
  --border:      #DCD9D0;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Lora', serif;

  --max-width: 1200px;
  --gutter:    clamp(20px, 5vw, 48px);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--ink);
}

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

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn-primary {
  background: var(--btn-blue);
  color: white;
  padding: 10px 18px;
  border-radius: 5px;
  display: inline-block;
  font-weight: 600;
  transition: background 0.2s ease;
}
.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  border: 2px solid white;
  padding: 10px 18px;
  color: white;
  display: inline-block;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover {
  background: white;
  color: var(--blue-dark);
}

/* --------------------------------------------------------------------------
   5. NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  background: var(--blue-dark);
  padding: 15px 0;
  color: white;
  position: relative;
  z-index: 100;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: white;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 80vh;
  background: url('images/hero3.png') center / cover no-repeat;
  display: flex;
  align-items: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

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

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.05rem;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* --------------------------------------------------------------------------
   7. QUICK ACTION BAR
   -------------------------------------------------------------------------- */
.action-bar {
  background: var(--steal-blue);
  padding: 15px 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.action-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.action-bar img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.action-bar a {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   8. ISSUES / WHAT WE FIGHT FOR
   -------------------------------------------------------------------------- */
.issues {
  padding: 50px 0;
  text-align: center;
  background: var(--near-white);
}

.issues h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--blue-dark);
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.issue-card {
  background: var(--blue-hal);
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.issue-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.issue-card h3 {
  color: var(--blue-dark);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.issue-card p {
  color: var(--blue-dark);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   9. STATS BAR
   -------------------------------------------------------------------------- */
.stats {
  background: var(--blue-dark);
  color: var(--blue-hal);
  padding: 20px 0;
}

.stats-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 20px;
}

.stats-flex > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stats img {
  width: 35px;
  height: 30px;
}

/* --------------------------------------------------------------------------
   10. VOLUNTEER / TESTIMONIALS
   -------------------------------------------------------------------------- */
.volunteer-section {
  padding: 70px 0;
  background: #f9f9f9;
}

.volunteer-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.volunteer-left img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.volunteer-left h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--blue-dark);
}

.volunteer-left p {
  margin-bottom: 20px;
  color: #555;
}

/* Testimonial grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: white;
  padding: 25px 20px 20px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.testimonial-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  margin-top: 15px;
}

.quote-icon {
  font-size: 40px;
  font-weight: bold;
  color: #FF6B6B;
  position: absolute;
  top: 15px;
  left: 15px;
  opacity: 0.8;
  line-height: 1;
}

.quote-text {
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
}

.quote-author {
  font-size: 13px;
  color: var(--blue-dark);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   11. UPCOMING EVENTS
   -------------------------------------------------------------------------- */
.events-section {
  padding: 50px 0;
  background: #ffffff;
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.events-header h2 {
  font-size: 1.7rem;
  color: var(--blue-dark);
}

.view-events-top {
  font-size: 12px;
  font-weight: bold;
  color: var(--blue-dark);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.event-card-modern {
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.event-date-box {
  min-width: 58px;
  text-align: center;
  flex-shrink: 0;
}

.event-month {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.event-day {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--blue-dark);
}

.event-content h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.event-date,
.event-time,
.event-location {
  font-size: 12px;
  color: #555;
  margin-bottom: 3px;
}

.event-btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--btn-blue);
  color: white;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.event-btn:hover {
  background: var(--blue-dark);
}

.events-footer {
  margin-top: 20px;
  text-align: right;
}

.events-footer a {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-dark);
}

/* --------------------------------------------------------------------------
   12. EMAIL SIGNUP
   -------------------------------------------------------------------------- */
.signup {
  background: var(--blue-dark);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.signup h2 {
  margin-bottom: 24px;
  font-size: 1.6rem;
}

.signup form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.signup input {
  padding: 10px 14px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  width: 200px;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   13. FINAL CTA
   -------------------------------------------------------------------------- */
.final-cta {
  background: var(--steal-blue);
  color: white;
  text-align: center;
  padding: 50px var(--gutter);
}

.final-cta h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
footer {
  background: var(--blue-dark);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE — MOBILE FIRST BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
  .issue-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .volunteer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: ≤ 600px */
@media (max-width: 600px) {
  /* Navbar — hamburger */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 16px 0 8px;
  }

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

  .nav-flex {
    flex-wrap: wrap;
  }

  /* Action bar: 2×2 grid on mobile */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Issues: single column */
  .issue-grid {
    grid-template-columns: 1fr;
  }

  /* Stats: column */
  .stats-flex {
    flex-direction: column;
    gap: 20px;
  }

  /* Testimonials: single column */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* Events header: stack */
  .events-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Signup form: stack */
  .signup form {
    flex-direction: column;
    align-items: center;
  }

  .signup input {
    width: 100%;
    max-width: 320px;
  }

  .signup .btn-primary {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}
