/* ============================================
   The County Collectives — rebuild stylesheet v3
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --gold: #c59830;
  --gold-dark: #9a7826;
  --cream: #faf7f2;
  --charcoal: #26241f;
  --grey: #6b6559;
  --line: #e6e0d4;
  --max-width: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--charcoal);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ====== HEADER ====== */
.site-header {
  width: 100%;
  z-index: 100;
  background: #fff;
  position: relative;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 26px;
  gap: 24px;
}

.logo img { height: 90px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-size: 16px;
  font-weight: 400;
  color: var(--charcoal);
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active { color: var(--gold-dark); }

.nav-social { display: flex; gap: 18px; align-items: center; }
.nav-social a svg { width: 20px; height: 20px; fill: currentColor; }

.donate-btn {
  background: var(--gold);
  color: #fff !important;
  padding: 16px 34px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s;
}
.donate-btn:hover { background: var(--gold-dark); }

/* Transparent overlay header (hero pages) */
.site-header.transparent {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  background: transparent;
}
.site-header.transparent .main-nav a { color: #fff; }
.site-header.transparent .main-nav a:hover,
.site-header.transparent .main-nav a.active { color: var(--gold); }
.site-header.transparent .logo img { height: 90px; }
.site-header.transparent .nav-toggle { color: #fff; }
.site-header.transparent .donate-btn { color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: inherit;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,18,14,0.38);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 34px;
  max-width: 640px;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 18px 44px;
  font-size: 17px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--gold-dark); }

.btn-light {
  background: #fff;
  color: var(--gold-dark) !important;
  border: 1px solid #fff;
}
.btn-light:hover { background: var(--gold); color: #fff !important; }

/* ====== SECTIONS ====== */
.section { padding: 110px 0; }

.section-narrow {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

/* ====== WHO WE ARE — white section ====== */
.who-we-are { background: #fff; }

.who-we-are h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--charcoal);
  margin-bottom: 28px;
}

.who-we-are p.lead {
  font-size: 1.25rem;
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.8;
}

/* ====== COLLABORATE GOLD SECTION ====== */
.collab-section { background: var(--gold); }

.collab-section h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: #fff;
  margin-bottom: 0;
}

/* ====== CARD GRID ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
  margin-top: 72px;
}

.card { text-align: left; }

.card .card-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 26px;
}
.card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.7rem;
  margin-bottom: 12px;
  color: #fff;
}

.card p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
}

.grid-center { text-align: center; margin-top: 64px; }

/* ====== PARTNERS SECTION ====== */
.bg-cream { background: #fff; }
.bg-cream .eyebrow { color: var(--gold-dark); }

.bg-cream h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--charcoal);
  margin-bottom: 0;
  margin-top: 16px;
}

/* Partner Carousel */
.partner-carousel {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 56px;
}
.partner-prev, .partner-next {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.partner-prev:hover, .partner-next:hover { background: var(--gold-dark); }

.partner-track-wrap { overflow: hidden; flex: 1; }

.partner-track {
  list-style: none;
  display: flex;
  gap: 32px;
  transition: transform 0.35s ease;
}

.partner-slide {
  flex: 0 0 calc(20% - 26px);
  text-align: center;
  padding: 32px 20px;
  
  background: #fff;
}
.partner-slide img {
  max-height: 70px;
  max-width: 180px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
}
.partner-slide h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--charcoal);
}
.partner-btn-link {
  display: inline-block;
  background: var(--gold);
  color: #fff !important;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  transition: background 0.2s;
}
.partner-btn-link:hover { background: var(--gold-dark); }

/* ====== PAGE HERO (interior pages) ====== */
.page-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,18,14,0.4);
}
.page-hero .wrap { position: relative; z-index: 2; width: 100%; }
.page-hero-content { max-width: 640px; }
.page-hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  margin-bottom: 24px;
}
.page-hero-content p {
  font-weight: 300;
  font-size: 1.15rem;
  margin-bottom: 30px;
}

/* ====== OVERLAY SECTION (full-width bg image + text) ====== */
.overlay-section {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.overlay-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30,24,40,0.45);
}
.overlay-section .wrap { position: relative; z-index: 2; width: 100%; }
.overlay-content { max-width: 680px; }
.overlay-content h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 28px;
}
.overlay-content p {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.75;
}

/* ====== TWO-COLUMN FEATURE SPLIT ====== */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: center;
}
.feature-split h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
}
.feature-split img { width: 100%; }

/* ====== LOCATIONS ====== */
.location-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.location-row:first-of-type { padding-top: 0; }
.location-row:last-of-type { border-bottom: none; }
.location-row img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.location-row h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.7rem; margin-bottom: 10px; }
.location-row p { color: var(--grey); font-weight: 300; }

/* ====== EVENTS ====== */
.event-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.event-date { text-align: center; font-family: 'Fraunces', serif; }
.event-date .month {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  display: block;
}
.event-date .day { font-size: 2.4rem; line-height: 1; }
.event-row h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.4rem; margin-bottom: 6px; }
.event-row .meta { color: var(--grey); font-size: 0.95rem; font-weight: 300; }
.event-links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  margin-right: 14px;
}

/* ====== CONTACT ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.contact-info h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 2.4rem; margin-bottom: 20px; }
.contact-info > p { color: var(--grey); margin-bottom: 28px; font-weight: 300; }
.contact-detail { margin-bottom: 22px; }
.contact-detail .label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.contact-info img { width: 100%; }

/* ====== DONATE ====== */
.donate-hero { text-align: center; padding: 120px 0 80px; }
.donate-hero h1 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 18px; }
.donate-hero p { color: var(--grey); margin-bottom: 36px; font-size: 1.15rem; font-weight: 300; }
.donate-photo img { width: 100%; max-height: 560px; object-fit: cover; }

/* ====== PASSIONS page generic section headings ====== */
.section h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 24px;
  color: var(--charcoal);
}
.section p.lead {
  font-size: 1.15rem;
  color: var(--grey);
  font-weight: 300;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .feature-split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .location-row { grid-template-columns: 1fr; }
  .logo img { height: 72px; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 24px; }
  .main-nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20,18,14,0.97);
    flex-direction: column; justify-content: center;
    display: none; z-index: 200;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 28px; align-items: center; }
  .main-nav a { color: #fff !important; font-size: 20px; }
  .nav-toggle { display: block; position: relative; z-index: 300; }
  .grid { grid-template-columns: 1fr; }
  .partner-slide { flex: 0 0 calc(100% - 22px); }
  .event-row { grid-template-columns: 70px 1fr; }
  .event-links { grid-column: 1 / -1; }
  .logo img { height: 48px; }
  .logo img { height: 56px; }
  .section { padding: 72px 0; }
}

/* ====== PASSIONS PAGE SPECIFIC ====== */

/* Two-column split (replaces generic feature-split for passions) */
.passion-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.passion-split--reverse {
  grid-template-columns: 1fr 1fr;
}

.passion-split__text .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.passion-split__text h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--charcoal);
  margin-bottom: 0;
}

.passion-split__text p {
  color: var(--grey);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.passion-split__text p:last-child { margin-bottom: 0; }

.passion-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.passion-split__heading h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--charcoal);
}

/* Passion page cards — LANDSCAPE (4:3) instead of portrait */
.passion-card-img {
  aspect-ratio: 4 / 3 !important;
  overflow: hidden;
  margin-bottom: 22px;
}

.passion-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card text on white background (passions page, NOT gold section) */
.passion-card h3 {
  color: var(--charcoal) !important;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.passion-card p {
  color: var(--grey) !important;
}

@media (max-width: 760px) {
  .passion-split,
  .passion-split--reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ====== LOCATIONS PAGE ====== */
.loc-section { padding-top: 80px; }

.loc-section h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--charcoal);
  margin-bottom: 0;
}

.loc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.loc-card { text-align: center; }

.loc-card__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 28px;
}

.loc-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loc-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 14px;
  line-height: 1.3;
}

.loc-card p {
  color: var(--grey);
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .loc-grid { grid-template-columns: 1fr; }
}

/* ====== DONATE PAGE ====== */
.donate-split {
  background: var(--gold);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 140px; /* clear the transparent header */
}

.donate-split__text {
  padding: 80px 64px 80px 10vw;
  color: #fff;
}

.donate-split__text h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.15;
}

.donate-split__text p {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
}

/* White outline button for donate page */
.btn-donate-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid #fff;
  padding: 16px 44px;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-donate-outline:hover {
  background: #fff;
  color: var(--gold-dark) !important;
}

/* Donate header button also outline on gold bg */
.donate-btn--outline {
  background: transparent !important;
  border: 2px solid #fff;
}
.donate-btn--outline:hover {
  background: #fff !important;
  color: var(--gold-dark) !important;
}

.donate-split__img {
  height: 100vh;
  overflow: hidden;
}

.donate-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 760px) {
  .donate-split {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
  }
  .donate-split__text {
    padding: 48px 24px;
  }
  .donate-split__img {
    height: 60vw;
  }
}

/* ====== FOOTER ====== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 48px;
}

.footer-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: start;
}

.footer-logo img {
  height: 56px;
  width: auto;
  margin-bottom: 20px;
  display: block;
  /* filter to make logo visible on dark bg if needed */
}

.footer-copy {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.6);
  background: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, color 0.2s;
  padding: 0 !important;
}

.footer-social a:hover {
  color: var(--gold) !important;
  border-color: var(--gold);
  background: none !important;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.footer-nav ul li a {
  font-size: 14px;
  color: var(--gold);
  background: none !important;
  padding: 0 !important;
  border: none !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 400;
  opacity: 0.9;
  transition: opacity 0.2s;
  display: inline;
}

.footer-nav ul li a:hover {
  opacity: 1;
  background: none !important;
}

@media (max-width: 760px) {
  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 24px;
  }
  .footer-nav ul {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
  }
}