/* =============================================
   Maryland Breastfeeding Coalition — Stylesheet
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary:       #1D4E6B;   /* deep teal */
  --primary-dark:  #153A51;
  --primary-light: #2A6A8F;
  --gold:          #C9932A;
  --gold-light:    #E8B84B;
  --cream:         #FAFAF8;
  --light-blue:    #EBF5FA;
  --text-dark:     #1E2D3D;
  --text-mid:      #4A5E70;
  --text-light:    #7A8E9E;
  --white:         #FFFFFF;
  --border:        #D9E6EE;
  --shadow:        0 4px 20px rgba(29,78,107,0.10);
  --shadow-hover:  0 8px 32px rgba(29,78,107,0.18);
  --radius:        10px;
  --radius-lg:     18px;
  --transition:    0.25s ease;
  --nav-height:    74px;
  --max-width:     1140px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

/* ---- Layout Helpers ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 80px 0; }
.section-sm { padding: 52px 0; }
.section-lg { padding: 110px 0; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-header p { font-size: 1.05rem; margin-top: 0.75rem; }

.text-center { text-align: center; }
.text-white, .text-white h1, .text-white h2, .text-white h3, .text-white p { color: var(--white); }

.bg-cream    { background: var(--cream); }
.bg-light    { background: var(--light-blue); }
.bg-primary  { background: var(--primary); }
.bg-dark     { background: var(--primary-dark); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201,147,42,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }

/* ---- Image Placeholders ---- */
.img-placeholder {
  background: var(--light-blue);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  gap: 0.5rem;
}
.img-placeholder .ph-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}
.img-placeholder .ph-label {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-light);
  max-width: 220px;
}

/* ---- Navigation ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(29,78,107,0.07);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo img {
  height: 52px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--light-blue);
  color: var(--primary);
}
.nav-links .nav-donate {
  background: var(--gold);
  color: var(--white);
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  margin-left: 0.5rem;
}
.nav-links .nav-donate:hover {
  background: var(--gold-light);
  color: var(--white);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-content h1 { color: var(--white); margin-bottom: 1rem; }
.hero-content p  { color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-bottom: 1.75rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--primary);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat-item .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.80);
  margin-top: 0.35rem;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.card-body { padding: 1.75rem; }
.card-img { width: 100%; height: 210px; object-fit: cover; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }

/* ---- Events ---- */
.event-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: box-shadow var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-hover); }
.event-date {
  min-width: 60px;
  text-align: center;
  background: var(--light-blue);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
}
.event-date .month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.1em;
}
.event-date .day {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
  display: block;
}
.event-info h4 { margin-bottom: 0.3rem; color: var(--text-dark); }
.event-info p  { font-size: 0.88rem; margin-bottom: 0.25rem; color: var(--text-mid); }
.event-meta { font-size: 0.82rem; color: var(--text-light); display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Board Members ---- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2rem;
}
.board-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.board-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.board-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
}
.board-photo-placeholder {
  width: 100%;
  height: 200px;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--border);
}
.board-info { padding: 1.25rem 1rem; }
.board-info h4 { font-size: 0.98rem; color: var(--primary-dark); margin-bottom: 0.2rem; }
.board-role {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}
.board-info p { font-size: 0.82rem; color: var(--text-mid); }

/* ---- Membership Tiers ---- */
.tier-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--border);
  transition: all var(--transition);
}
.tier-card.featured {
  border-top-color: var(--gold);
  box-shadow: var(--shadow-hover);
  transform: scale(1.03);
}
.tier-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin: 0.75rem 0;
}
.tier-price span { font-size: 1rem; color: var(--text-light); }
.tier-features { margin: 1.25rem 0; }
.tier-features li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-mid);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ---- Donate Cards ---- */
.donate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.donate-card h3 { margin-bottom: 0.5rem; }
.donate-card p { font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,0.80); font-size: 1.05rem; max-width: 560px; margin: 0 auto 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 72px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.80); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ---- Contact Form ---- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(42,106,143,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 52px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; }
.footer-col h5 {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-contact p { font-size: 0.88rem; margin-bottom: 0.4rem; }
.footer-contact a { color: rgba(255,255,255,0.65); }
.footer-contact a:hover { color: var(--gold-light); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--gold); color: var(--white); }
.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin: 0; }
.footer-ein {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ---- Utility ---- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin: 1rem auto;
}
.divider-left { margin-left: 0; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: var(--light-blue);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.badge-gold { background: rgba(201,147,42,0.12); color: var(--gold); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.08); gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 1rem; border-radius: 8px; }
  .nav-links .nav-donate { text-align: center; margin: 0.5rem 0 0; }
  .nav-toggle { display: flex; }
  .navbar { position: relative; }

  .hero { min-height: 480px; }
  .section { padding: 60px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .tier-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 540px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: column; }
  .cta-btns { flex-direction: column; align-items: center; }
}
