/* ==========================================================
   Violets' Giving Circle - site styles
   ----------------------------------------------------------
   TO CHANGE COLORS: edit the values in the :root block below.
   Every page uses these, so one change updates the whole site.
   ========================================================== */

:root {
  --periwinkle: #C3CDF1;   /* header bands, soft backgrounds */
  --mist:       #EEE8F7;   /* page background: palest tint of the flower violet */
  --lavender:   #DDD1F0;   /* tinted bands and boxes */
  --purple:     #5E4492;   /* panels, buttons (deep violet from the flower petals) */
  --indigo:     #34245C;   /* headings, links, strong accents (darkest flower violet) */
  --ink:        #231F20;   /* body text */
  --white:      #FFFFFF;
  --magenta:    #D6336C;   /* small accent only (flower center) */
  --aqua:       #D3EEF0;   /* photo borders */

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --radius: 0;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--mist);
}

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

a { color: var(--indigo); }
a:hover { color: var(--magenta); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--indigo);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.45rem; margin: 0 0 0.5rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--indigo);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header & navigation ---------- */

.site-header { background: var(--white); border-bottom: 1px solid var(--periwinkle); }

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo { width: 110px; height: 110px; object-fit: contain; }

.brand-name {
  font-family: var(--font-heading);
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: clamp(1.45rem, 4.4vw, 3.3rem);
}

.nav-toggle {
  display: none;
  background: var(--indigo);
  color: var(--white);
  border: 0;
  border-radius: 0;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 1rem 0.7rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.6rem;
}

.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--indigo); border-bottom-color: var(--purple); }
.site-nav a[aria-current="page"] { color: var(--indigo); border-bottom-color: var(--indigo); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 0.6rem; padding-top: 0.5rem; }
}

/* ---------- Carousel (home page) ---------- */

.carousel {
  position: relative;
  max-width: var(--max-width);
  margin: 1rem auto 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--periwinkle);
}

.carousel-track { position: relative; aspect-ratio: 16 / 9; }

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: var(--indigo);
  border: 0;
  border-radius: 0;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
}
.carousel-btn:hover { background: var(--white); }
.carousel-btn.prev { left: 0.75rem; }
.carousel-btn.next { right: 0.75rem; }

.carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.carousel-dots button {
  width: 11px;
  height: 11px;
  border-radius: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active { background: var(--white); }

/* ---------- Page sections ---------- */

main { padding-bottom: 0; }

.section { padding: 1.75rem 0; }

.page-banner {
  background: var(--periwinkle);
  text-align: center;
  padding: 1.5rem 1rem;
}
.page-banner h1 { margin: 0; }

.lead {
  font-size: 1.15rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.panel {
  background: var(--purple);
  color: var(--white);
  border-radius: 0;
  padding: 1.6rem 1.75rem;
}
.panel h2, .panel h3 { color: var(--white); text-transform: uppercase; }
.panel a { color: var(--white); }
.panel .btn { margin-top: 0.5rem; }

.card {
  background: var(--lavender);
  border-radius: 0;
  padding: 1.75rem;
}

.save-the-date {
  background: var(--lavender);
  text-align: center;
  padding: 1.75rem 1rem;
}
.save-the-date h2 { text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.save-the-date p { font-size: 1.15rem; margin: 0 0 1rem; }

.stat { text-align: center; padding: 1.5rem 1rem; }
.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--indigo);
}

.btn {
  display: inline-block;
  background: var(--indigo);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.6rem;
  border-radius: 0;
}
.btn:hover { background: var(--magenta); color: var(--white); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.photo-frame {
  border: 8px solid var(--aqua);
  border-radius: 0;
  overflow: hidden;
  background: var(--aqua);
}

.caption {
  background: var(--periwinkle);
  border-radius: 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

.text-narrow { max-width: 760px; margin: 0 auto; }

/* Visible reminder boxes for content that still needs to be filled in.
   Delete the whole <div class="placeholder-note"> once the real content is in. */
.placeholder-note {
  border: 2px dashed var(--magenta);
  background: #fff5f9;
  color: var(--ink);
  border-radius: 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.placeholder-note strong { color: var(--magenta); }

/* ---------- Co-chairs (Who We Are page) ---------- */

.chair-feature {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.chair-feature img {
  width: 180px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
}
.chair-name {
  font-family: var(--font-heading);
  color: var(--indigo);
  font-weight: 700;
  margin: 0 0 0.5rem;
}
blockquote.quote { margin: 0; font-style: italic; }
@media (max-width: 520px) {
  .chair-feature { grid-template-columns: 1fr; }
  .chair-feature img { width: 150px; }
}

/* Collapsible "Past Co-Chairs" section (uses the built-in HTML <details> tag, no JavaScript) */
details.past-chairs,
details.collapse-box {
  background: var(--lavender);
  border-radius: 0;
  padding: 0.5rem 1.25rem 1.25rem;
}
details.past-chairs > summary,
details.collapse-box > summary {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--indigo);
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.9rem 0;
}
.chair-year {
  background: var(--white);
  border-radius: 0;
  padding: 1rem 1.25rem 1.25rem;
  margin-bottom: 1rem;
}
.chair-year h3 { margin: 0 0 0.75rem; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.05em; }
.chair-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 760px) { .chair-pair { grid-template-columns: 1fr; } }
.chair-person {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: start;
}
.chair-person img {
  width: 96px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
  background: var(--periwinkle);
}
.chair-person blockquote { font-size: 0.95rem; }
.chair-person .chair-name { margin-bottom: 0.35rem; }
.quote-pending { color: #777; }

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background: var(--ink);
  margin-top: 1rem;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Contact form ---------- */

.insta-card {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--periwinkle);
  border-radius: 0;
  padding: 1.25rem 1.75rem;
  margin: 0.5rem 0 1.5rem;
  text-align: left;
}
.insta-card img { width: 72px; height: 72px; object-fit: contain; }
.insta-handle { font-family: var(--font-heading); color: var(--indigo); font-size: 1.4rem; margin: 0 0 0.6rem; }
@media (max-width: 480px) { .insta-card { flex-direction: column; text-align: center; } }

.insta-feed { max-width: var(--max-width); margin: 0 auto; }

/* ---------- Donate hero ---------- */

.donate-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
  background:
    linear-gradient(rgba(35, 31, 32, 0.35), rgba(35, 31, 32, 0.35)),
    var(--indigo) url("../images/donate-hero.jpg") center / cover no-repeat;
}
.donate-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.btn-light { background: var(--white); color: var(--ink); font-size: 1.1rem; padding: 0.9rem 2.4rem; }
.btn-light:hover { background: var(--lavender); color: var(--indigo); }

/* ---------- Past Events ---------- */

.event {
  max-width: 940px;
  margin: 0 auto;
  padding: 1.5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--periwinkle);
}
.event h2 { margin: 1.5rem 0 0.75rem; }
.event-text h2 { margin-top: 0; font-size: 1.5rem; }
.event .judges { font-size: 0.95rem; }
.event-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}
.event-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  background: var(--periwinkle);
}
details.collapse-box .event:last-child { border-bottom: 0; }

/* ---------- Grant Partners grid ---------- */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--periwinkle);
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(68, 64, 130, 0.18);
  color: var(--ink);
}

/* Every photo tile is the same size. If a photo file is missing, the flower tile shows instead. */
.partner-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--periwinkle) url("../images/logo-flower.png") center / 34% no-repeat;
}
.partner-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-info {
  padding: 1rem 1.1rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 6.5rem;
}
.partner-info h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.partner-link { font-size: 0.85rem; font-weight: 700; color: var(--indigo); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Our Process (What We Do page) ---------- */

.process-photos img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
}

.process-steps {
  list-style: none;
  counter-reset: step;
  max-width: 760px;
  margin: 1.5rem auto 0;
  padding: 0;
}
.process-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.5rem 4rem;
}
.process-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0;
  background: var(--indigo);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-steps li::after {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 2.8rem;
  bottom: 0.2rem;
  width: 2px;
  background: var(--periwinkle);
}
.process-steps li:last-child::after { display: none; }
.process-steps h3 { margin: 0.3rem 0 0.35rem; }
.process-steps p { margin: 0; }

.history { text-align: center; }
.news-link { text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--periwinkle);
  padding: 1.75rem 0;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  text-align: center;
}
.site-footer a { color: var(--indigo); font-weight: 700; }


/* ==========================================================
   Look & feel details: gradients, faded dots, flower watermark.
   To tone any of it down, delete the block you don't want.
   ========================================================== */

/* Header: a thin violet-to-aqua stripe along the bottom edge */
.site-header { border-bottom: 0; position: relative; }
.site-header::after {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--indigo), var(--purple) 45%, #8FC8D4 100%);
}

/* Page title bands: deep gradient, faded dots, white flower silhouette */
.page-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--indigo) 0%, var(--purple) 100%);
}
.page-banner h1 { position: relative; color: var(--white); }

/* Purple panels: gradient + faded flower in the corner */
.panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--purple) 0%, var(--indigo) 100%);
}
.panel > * { position: relative; }
.panel .btn { background: var(--white); color: var(--indigo); }
.panel .btn:hover { background: var(--lavender); color: var(--indigo); }

/* "Over $500,000" band */
.stat {
  background: linear-gradient(90deg, var(--periwinkle), var(--lavender) 50%, var(--periwinkle));
  margin-top: 1.5rem;
}

/* Save the date: lavender with faded dots and a faded flower */
.save-the-date {
  position: relative;
  overflow: hidden;
  background:
    var(--lavender);
}
.save-the-date > * { position: relative; }

/* Photos and cards get a crisp violet edge instead of rounded corners */
.photo-frame { border-color: var(--aqua); outline: 2px solid var(--purple); outline-offset: -2px; }
.partner-card { border-color: var(--purple); }
.partner-card .partner-info { border-top: 3px solid var(--aqua); }
.chair-year, .card { border: 1px solid var(--periwinkle); }

/* Footer: same gradient family as the header */
.site-footer { background: linear-gradient(120deg, var(--indigo), var(--purple)); color: var(--white); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--aqua); }

/* Phones: keep the big header name to two lines */
@media (max-width: 600px) {
  .brand { gap: 0.6rem; }
  .brand-logo { width: 72px; height: 72px; }
  .brand-name { letter-spacing: 0.06em; font-size: 1.5rem; line-height: 1.1; }
}

/* Who We Are: board intro sits level with the photo, caption runs full width below */
.board-intro { align-items: center; }
.board-intro p { font-size: 1.05rem; }
.board-caption { max-width: 980px; margin: 1.25rem auto 0; }

/* Save the date: big dots frame the sides and leave the middle clear for the text */
.save-the-date::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(94,68,146,0.32) 5px, transparent 5.6px) 0 0 / 38px 38px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 28%, transparent 72%, #000 100%);
          mask-image: linear-gradient(90deg, #000 0%, transparent 28%, transparent 72%, #000 100%);
}
.site-header { background: var(--mist); }

/* Cormorant defaults to old-style numbers (like $5OO,OOO with dropped digits); use standard ones */
h1, h2, h3, .brand-name, .stat strong { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* Our Event page: photo scene + details */
.event-hero { background: #111; }
.event-hero img { width: 100%; height: auto; display: block; }
.event-details { text-align: center; padding: 1.75rem 0 2rem; background: var(--lavender); }
.event-details h2 { margin-bottom: 0.25rem; }
.event-when { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.4rem, 3.5vw, 2rem); color: var(--indigo); margin: 0; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.event-where { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0.25rem 0 0.75rem; }

/* Sticky header: the logo, name, menu, and gradient stripe stay at the top while scrolling.
   After a little scrolling the header shrinks (the "scrolled" class is added by js/main.js). */
html { scroll-padding-top: 130px; }
.site-header { position: sticky; top: 0; z-index: 50; }
.brand-logo, .brand-name, .header-top, .site-nav ul { transition: all 0.2s ease; }
.site-header.scrolled .brand-logo { width: 52px; height: 52px; }
.site-header.scrolled .brand-name { font-size: clamp(1.1rem, 2.6vw, 1.7rem); }
.site-header.scrolled .header-top { padding-top: 0.35rem; padding-bottom: 0.1rem; }
.site-header.scrolled .site-nav ul { padding-bottom: 0.4rem; }
@media (max-width: 760px) {
  .site-header.scrolled .brand-logo { width: 44px; height: 44px; }
  .site-header.scrolled .brand-name { font-size: 1rem; }
  .site-nav.open { max-height: calc(100vh - 110px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo, .brand-name, .header-top, .site-nav ul { transition: none; }
}
