/* =============================================
   KCAC Website — styles.css
   Kansas City Actuaries Club
   ============================================= */

/* --- TOKENS --- */
:root {
  --navy:      #142E68;
  --navy-dark: #0d1f4a;
  --gold:      #C8A951;
  --gold-light:#e8c96c;
  --light-bg:  #F0F3F8;
  --text:      #1a1a2e;
  --text-mid:  #4a4a6a;
  --white:     #ffffff;
  --border:    #d8dde8;

  --font-display: 'Merriweather', Georgia, serif;
  --font-body:    'Inter', Arial, sans-serif;

  --radius:   6px;
  --shadow:   0 2px 16px rgba(20,46,104,0.10);
  --shadow-lg:0 6px 32px rgba(20,46,104,0.15);

  --max-width: 1100px;
  --header-h:  72px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

/* --- LAYOUT HELPERS --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

.section {
  padding: 72px 0;
}
.bg-light { background: var(--light-bg); }
.bg-navy  { background: var(--navy); }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title.light { color: var(--white); }
.section-intro { text-align: center; margin-bottom: 2rem; }
.section-intro.light { color: rgba(255,255,255,0.85); }

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border: 2px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.75);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--header-h);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: flex; align-items: center; }
.logo { height: 52px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}
.nav-link.active { color: var(--gold); background: transparent; }

.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
.nav-close   { display: none; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; line-height: 1; align-self: flex-end; }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Gradient stands in until a KC skyline photo is added.
     To use a photo: replace the gradient with:
     background: url('../images/kc-skyline.jpg') center/cover no-repeat; */
/*  background: linear-gradient(135deg, #0d1f4a 0%, #142E68 45%, #1e3d7a 70%, #2a4f8e 100%); */
   background: url('https://www.visitkc.com/uploads/2024/05/Scout-KC-skyline-1600x625-HERO.jpg') center/cover no-repeat;
  overflow: hidden;
}
/* Subtle grid texture overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,169,81,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,81,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,31,74,0.4) 0%, rgba(13,31,74,0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  max-width: 720px;
  margin: 0 auto;
}
.hero-logo {
  height: 90px;
  width: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}
.hero-sub {
  color: var(--gold-light);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- PAGE HERO (inner pages) --- */
.page-hero {
  background: var(--navy);
  padding: 52px 24px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin: 0; }

/* --- CARDS --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { color: var(--navy); margin-bottom: 0.5rem; }
.card p  { margin: 0; }

/* --- EVENT CARDS --- */
.event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.event-cards-full {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 0 auto;
}
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.event-card-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.event-card h3 { color: var(--navy); margin: 0; }
.event-card-meta { font-size: 0.9rem; color: var(--text-mid); }
.event-card .btn { margin-top: 0.75rem; align-self: flex-start; }

.no-events {
  text-align: center;
  padding: 3rem;
  color: var(--text-mid);
  background: var(--light-bg);
  border-radius: var(--radius);
  grid-column: 1 / -1;
}

/* --- LEADER CARDS --- */
.leader-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}
.leader-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.leader-initial {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.leader-card h3 { color: var(--navy); font-size: 1rem; }
.leader-title {
  font-weight: 600;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0.15rem 0;
}
.leader-company { font-size: 0.88rem; color: var(--text-mid); margin: 0; }
.leader-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--gold);
}

.leader-linkedin {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}


/* --- VOLUNTEER CALLOUT --- */
.volunteer-callout {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.volunteer-callout h2 { margin-bottom: 1rem; }
.volunteer-callout p  { max-width: 560px; margin: 0 auto 1.5rem; }

/* --- TWO COLUMN --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* --- STYLED LIST --- */
.styled-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.styled-list li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.styled-list li:last-child { border-bottom: none; }
.styled-list li::before {
  content: '▸';
  color: var(--gold);
  position: absolute;
  left: 0;
  font-size: 0.85rem;
  top: 0.55rem;
}

/* --- MAILCHIMP SECTION --- */
.mailing-list { padding: 72px 0; }
.mailchimp-placeholder {
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: rgba(255,255,255,0.8);
}
/* When Mailchimp embed is added, style the inputs it generates: */
.mailing-list input[type="email"],
.mailing-list input[type="text"] {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 1rem;
  display: block;
}

/* --- CONTACT PAGE --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-item {
  margin-bottom: 1.25rem;
}
.contact-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  margin-bottom: 0.2rem;
}
.contact-item a { font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20,46,104,0.1);
}
.form-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-mid);
}

/* --- FOOTER --- */
.site-footer {
  background: var(--navy-dark);
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: white; font-weight: 600; font-size: 0.95rem;
}
.footer-logo { height: 36px; width: auto; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.8rem; margin: 0; }

/* --- MISC --- */
.loading-text { color: var(--text-mid); text-align: center; padding: 2rem; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 260px;
    background: var(--navy-dark);
    padding: 1.5rem;
    gap: 0.25rem;
    z-index: 200;
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .nav-close { display: block; }
  .nav-link { padding: 0.75rem 1rem; font-size: 1rem; }

  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: 420px; }
  .hero-logo { height: 70px; }
  .section { padding: 48px 0; }

  .leader-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .leader-cards { grid-template-columns: 1fr; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
