/* Foodies For A Cause - shared styles */
:root {
  --maroon: #500000;
  --maroon-dark: #350000;
  --black: #1c1712;
  --cream: #faf5ea;
  --warm-white: #fffcf6;
  --gold: #c99a3f;
  --yellow: #f5c518;
  --gray: #5c5346;
  --border: #ddd2bd;
  --radius: 5px;
  --shadow: 0 1px 3px rgba(28, 23, 18, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.65;
}

h1, h2, h3, .brand {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.01em;
}

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

a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
header.site-header {
  background: var(--warm-white);
  border-bottom: 3px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--black);
}

.brand img.logo-mark-img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
}

.brand:hover { text-decoration: none; }

nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  color: var(--black);
  font-weight: 500;
  font-size: 0.94rem;
}

nav a:hover { color: var(--maroon); text-decoration: none; }

.nav-cta {
  background: var(--maroon);
  color: var(--warm-white) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover { background: var(--maroon-dark); }

/* Dropdown (native details/summary - no JS required) */
.has-dropdown { position: relative; }

.has-dropdown details { position: relative; }

.has-dropdown summary.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--black);
  list-style: none;
}

.has-dropdown summary.dropdown-toggle::-webkit-details-marker { display: none; }
.has-dropdown summary.dropdown-toggle::marker { content: ''; }

.has-dropdown summary.dropdown-toggle:hover { color: var(--maroon); }

.dropdown-menu {
  position: absolute;
  top: 130%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 190px;
  padding: 6px;
}

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 4px;
  font-weight: 500;
  color: var(--black);
  font-size: 0.94rem;
}

.dropdown-menu a:hover {
  background: var(--cream);
  text-decoration: none;
  color: var(--maroon);
}

.nav-toggle-mobile {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: var(--maroon);
  color: var(--warm-white);
  padding: 64px 24px;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text { flex: 1; min-width: 280px; }

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 16px;
  line-height: 1.15;
}

.hero p {
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 0 26px;
  opacity: 0.92;
}

.hero-logo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 4px solid var(--warm-white);
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--warm-white);
  color: var(--maroon);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--warm-white);
}

.btn:hover { text-decoration: none; background: var(--gold); border-color: var(--gold); color: var(--black); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--warm-white);
  color: var(--warm-white);
}

.btn-outline:hover { background: var(--warm-white); color: var(--maroon); }

.btn-solid {
  background: var(--maroon);
  color: var(--warm-white);
  border: 2px solid var(--maroon);
}

.btn-solid:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: var(--warm-white); }

/* Page header (non-home pages) */
.page-hero {
  background: var(--black);
  color: var(--warm-white);
  padding: 50px 24px;
  text-align: center;
  border-bottom: 3px solid var(--maroon);
}

.page-hero h1 { margin: 0 0 8px; font-size: 2rem; }
.page-hero p { margin: 0 auto; opacity: 0.85; max-width: 520px; }

/* Sections */
section { padding: 60px 0; }

section.alt { background: var(--warm-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

h2.section-title {
  font-size: 1.75rem;
  margin: 0 0 12px;
  text-align: center;
}

.section-lede {
  text-align: center;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--maroon);
  border-radius: var(--radius);
  padding: 24px;
}

.card.service-highlight {
  border-left: 4px solid var(--gold);
  background: var(--warm-white);
}

.card h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 1.15rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 8px;
}

/* Officer cards */
.officer-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--maroon);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.officer-photo {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  border-bottom: 1px solid var(--border);
}

.officer-photo .initials {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 600;
}

.officer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.officer-card .info { padding: 18px; }
.officer-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.officer-card .role { color: var(--maroon); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* Event detail rows */
.event-row {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--maroon);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 18px;
}

.event-row h3 { margin: 0 0 6px; font-size: 1.2rem; }
.event-row .meta { color: var(--gray); font-size: 0.92rem; margin-bottom: 10px; }
.event-row .meta strong { color: var(--black); }

/* Forms */
.form-embed {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.form-embed iframe {
  width: 100%;
  border: none;
  display: block;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 48px;
}

.contact-info-grid .card { text-align: center; border-left: none; border-top: 4px solid var(--maroon); }

.contact-info-grid .card h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 1.05rem;
}

/* Donate */
.donate-box {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--maroon);
  border-radius: var(--radius);
  max-width: 640px;
  margin: 0 auto;
  padding: 36px;
  text-align: center;
}

.donate-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0;
}

.donate-tiers .tier {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 8px;
  font-weight: 700;
  color: var(--maroon);
}

/* Footer */
footer.site-footer {
  background: var(--black);
  color: #d9cfc0;
  padding: 40px 24px 24px;
  margin-top: 0;
}

.footer-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

footer.site-footer .footer-wrap a,
footer.site-footer .footer-bottom a {
  color: var(--yellow);
}

footer.site-footer .footer-wrap a:hover,
footer.site-footer .footer-bottom a:hover {
  color: var(--yellow);
  opacity: 0.85;
}

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: #9c9184;
  margin-top: 28px;
  border-top: 1px solid #3a332a;
  padding-top: 18px;
}

/* Mobile */
@media (max-width: 780px) {
  .nav-wrap { flex-wrap: wrap; row-gap: 8px; padding: 10px 18px; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand img.logo-mark-img { height: 38px; width: 38px; }

  nav { width: 100%; }
  nav ul {
    display: none;
    position: static;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
    padding: 14px 0 6px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
  }
  nav ul.open { display: flex; }
  nav ul li { width: 100%; }
  nav ul li a { display: block; padding: 10px 0; }
  nav ul li a.nav-cta { text-align: center; margin-top: 8px; padding: 10px 0; }
  .has-dropdown summary.dropdown-toggle { padding: 10px 0; }
  .nav-toggle-mobile { display: block; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding: 2px 0 6px 14px; }

  .hero { padding: 40px 20px; }
  .hero-inner { flex-direction: column; text-align: center; align-items: center; gap: 26px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { margin-left: auto; margin-right: auto; font-size: 1rem; }
  .hero-logo { width: 130px; height: 130px; }
  .hero-buttons { justify-content: center; }

  .page-hero { padding: 38px 20px; }
  .page-hero h1 { font-size: 1.55rem; }

  section { padding: 42px 0; }
  h2.section-title { font-size: 1.45rem; }
  .section-lede { margin-bottom: 30px; }

  .donate-tiers { grid-template-columns: 1fr; }
  .donate-box { padding: 26px 20px; }

  .form-embed iframe { height: 560px; }

  .footer-wrap { flex-direction: column; gap: 26px; }
}
