/* ===========================================================
   La Vida Logan — shared stylesheet
   Brand colors pulled from the logo (gold awareness ribbon on
   blue, green outline). Change the variables below to update
   the whole site at once.
=========================================================== */

:root {
  --blue: #1c7fa8;       /* primary / header, footer */
  --blue-dark: #14607f;
  --gold: #f5c242;       /* accent / buttons, highlights */
  --gold-dark: #dba52a;
  --green: #2e9e44;      /* secondary accent */
  --ink: #223142;        /* body text */
  --paper: #fffaf0;      /* warm off-white page background */
  --card: #ffffff;
  --max-width: 1100px;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(28, 127, 168, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--blue-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--blue); }

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

.script {
  font-family: "Sacramento", "Brush Script MT", cursive;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--blue);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand img { height: 44px; width: auto; }

.brand-name {
  font-family: "Sacramento", cursive;
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  display: block;
  transition: background 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.16);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    width: 100%;
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    padding: 10px 0 16px;
  }
  .nav-wrap { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--blue-dark);
  box-shadow: 0 6px 16px rgba(245, 194, 66, 0.45);
}
.btn-gold:hover { background: var(--gold-dark); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(46, 158, 68, 0.4);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 80px 0 90px;
  text-align: center;
}
.hero h1 { color: #fff; }
.hero .lede {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.15rem;
  color: #eaf6fc;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-ribbon {
  height: 90px;
  width: auto;
  margin: 0 auto 18px;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: #fff2da; }
.section-white { background: #fff; }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.card.event {
  border-top: 5px solid var(--gold);
}
.card.event.past {
  border-top-color: #b9c4cd;
  opacity: 0.9;
}

.tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tag.past { background: #8b98a3; }

.date-badge {
  font-weight: 800;
  color: var(--blue);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #d8ecf5;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-weight: 800;
  font-size: 1.6rem;
  border: 4px solid var(--gold);
  overflow: hidden;
  flex-shrink: 0;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.founder-card {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  text-align: left;
}
.founder-photo { width: 170px; height: 170px; margin: 0; }
.founder-text .team-role { margin-bottom: 8px; }
.founder-text p { margin: 0; }
@media (max-width: 620px) {
  .founder-card { flex-direction: column; text-align: center; }
}
.team-role { color: var(--green); font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  justify-content: center;
}
.gallery-item {
  position: relative;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #d8ecf5, #fff2da);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-weight: 700;
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(20,30,40,0.75));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 26px 12px 10px;
  text-align: center;
}

/* ---------- Donate ---------- */
.donate-box {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}
.donate-box h2 { color: #fff; }

.ways-to-give {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}
form.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--blue-dark);
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #d9e6ec;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 18px;
  background: #fff;
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--blue-dark);
  color: #dcecf3;
  padding: 40px 0 24px;
  margin-top: 40px;
}
footer.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  color: #b7d3de;
}

/* ---------- Sticky donate button ---------- */
.sticky-donate {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #2A2005;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  border: 2px solid rgba(255,255,255,0.6);
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}
.sticky-donate.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-donate:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.34);
}
.sticky-donate svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 520px) {
  .sticky-donate { left: 14px; bottom: 14px; padding: 12px 18px; font-size: 0.88rem; }
}

/* ---------- Footer legal / fiscal sponsorship note ---------- */
.legal-note {
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: inherit;
  opacity: 0.85;
}
.legal-note a { color: inherit; text-decoration: underline; }
