/* ==========================================================================
   Pompilius — shared stylesheet
   Design tokens and base components come from the original homepage mockup.
   ========================================================================== */

/* --------------------------------------------------------------------------
   PALETTE — everything colour-related is in this one block.
   Token names describe the ROLE, not the hue, so a new palette only needs
   these values changed. Nothing below this block hardcodes a colour.

   Current palette: purple #660099 + gold #FF9900
   Previous palette (teal/sky/antique-gold), kept so it is easy to switch back:
     --brand:#2B4C59  --brand-deep:#1B333D  --brand-soft:#7CB4C4
     --brand-pale:#E4F0F3  --on-brand-soft:#B9CBD1
     --cta:#A9812F  --cta-deep:#7A5C1F  --cta-pale:#F6EFE0  --cta-line:#EADFC5
     --on-cta:#FFFFFF
     --bg:#F7F6F2  --ink:#22292C  --ink-soft:#4C555A  --gray:#6E6B63
     --line:#E1DED4
   -------------------------------------------------------------------------- */
:root{
  /* Brand — purple. Structure: headings, primary buttons, the dark band. */
  --brand:#660099;        /* 9.8:1 on --bg  ·  10.4:1 against white */
  --brand-deep:#3D0059;   /* text sitting on --cta (7.3:1) */
  --brand-soft:#8B2FC9;   /* accent text: eyebrows, tags, icons (5.9:1 on --bg) */
  --brand-pale:#F3E9FB;   /* tinted panels, icon chips, photo backdrops */
  --on-brand:#FFFFFF;     /* text on --brand */
  --on-brand-soft:#D9BFEA;/* muted text on --brand (6.2:1) */

  /* Call to action — gold. Fills and highlights, never white text on top. */
  --cta:#FF9900;          /* fills only: 2.1:1 with white, so it cannot carry it */
  --cta-deep:#8A4B00;     /* the gold used AS TEXT on light backgrounds (6.4:1) */
  --cta-pale:#FFF1DB;     /* date chips, highlight panels */
  --cta-line:#F5DDB0;     /* borders inside gold panels */
  --on-cta:#3D0059;       /* text on --cta (7.3:1) */

  /* Neutrals */
  --bg:#FAF7FB;
  --ink:#26202E;
  --ink-soft:#554B60;     /* 7.7:1 on --bg */
  --gray:#6B6474;         /* 5.3:1 on --bg — safe at 13px */
  --line:#E6E0EA;
  --white:#FFFFFF;
}

*{box-sizing:border-box; margin:0; padding:0;}

body{
  font-family:'Public Sans', sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
}
h1,h2,h3{
  font-family:'Fraunces', serif;
  font-weight:500;
  color:var(--brand);
  line-height:1.15;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1120px; margin:0 auto; padding:0 32px;}
.section{padding:80px 0;}
.section-tight{padding:56px 0;}
.section-alt{background:var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}

/* Hide content until the language layer has painted, to avoid a flash of keys */
body[data-i18n-state="pending"]{visibility:hidden;}

/* --------------------------------------------------------------- NAV ---- */
header{
  border-bottom:1px solid var(--line);
  background:var(--bg);
  position:sticky; top:0; z-index:10;
}
nav.wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:20px; padding-bottom:20px;
}
.brand{display:flex; align-items:center; gap:10px;}
.brand img{width:52px; height:52px; object-fit:contain;}
.brand-name{
  font-family:'Fraunces', serif; font-size:19px; font-weight:600;
  color:var(--brand); letter-spacing:0.3px;
}
.nav-links{display:flex; gap:30px; font-size:15px; color:var(--ink-soft);}
.nav-links a:hover{color:var(--brand);}
.nav-links a.current{color:var(--brand); border-bottom:1px solid var(--brand-soft);}
.nav-right{display:flex; align-items:center; gap:18px;}
.lang-toggle{
  display:flex; border:1px solid var(--line); border-radius:20px; overflow:hidden;
  font-size:13px;
}
.lang-toggle button{
  padding:6px 14px; cursor:pointer; color:var(--ink-soft);
  background:transparent; border:0; font:inherit; font-size:13px; line-height:1.6;
}
.lang-toggle button.active{background:var(--brand); color:var(--on-brand);}
.btn-donate{
  background:var(--cta); color:var(--on-cta); padding:10px 22px;
  border-radius:24px; font-size:14px; font-weight:600;
}
.nav-toggle{
  display:none; background:transparent; border:1px solid var(--line);
  border-radius:8px; padding:6px 10px; font-size:16px; cursor:pointer; color:var(--brand);
}

/* ------------------------------------------------------------ BUTTONS ---- */
.btn-primary{
  display:inline-block;
  background:var(--brand); color:var(--on-brand); padding:13px 26px;
  border-radius:26px; font-size:15px; font-weight:500;
  border:0; font-family:inherit; cursor:pointer;
}
/* Gold never carries white text — it pairs with deep purple instead. */
.btn-gold{background:var(--cta); color:var(--on-cta); font-weight:600;}
.btn-ghost{
  display:inline-block;
  border:1px solid var(--line); padding:13px 26px; border-radius:26px;
  font-size:15px; color:var(--brand); background:transparent;
  font-family:inherit; cursor:pointer;
}

/* --------------------------------------------------------- HOME HERO ---- */
.hero{padding:76px 0 90px;}
.hero-grid{
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
}
.eyebrow-mark{display:flex; gap:6px; align-items:center; margin-bottom:22px;}
.eyebrow-mark .dot{width:6px; height:6px; border-radius:50%; background:var(--brand-soft);}
.eyebrow-mark span{font-size:13px; color:var(--gray);}
.hero h1{font-size:46px; max-width:520px; margin-bottom:22px;}
.hero p{font-size:17px; color:var(--ink-soft); max-width:460px; margin-bottom:32px;}
.hero-ctas{display:flex; gap:14px; flex-wrap:wrap;}
.hero-photo{
  border-radius:18px; overflow:hidden; aspect-ratio:4/3.1;
  background:var(--brand-pale);
}
.hero-photo img{width:100%; height:100%; object-fit:cover;}

/* -------------------------------------------------- INNER PAGE HEADER ---- */
.page-hero{
  padding:64px 0 56px; border-bottom:1px solid var(--line);
}
.page-hero .eyebrow{font-size:13px; color:var(--brand-soft); font-weight:600; margin-bottom:12px;}
.page-hero h1{font-size:40px; max-width:720px; margin-bottom:18px;}
.page-hero p{font-size:17px; color:var(--ink-soft); max-width:620px;}

/* ------------------------------------------------------ MISSION STRIP ---- */
.mission{padding:52px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.mission-grid{display:grid; grid-template-columns:0.8fr 1.2fr; gap:48px; align-items:start;}
.mission-tag{font-size:13px; color:var(--brand-soft); font-weight:600;}
.mission h2{font-size:26px; margin-top:10px;}
.mission p{color:var(--ink-soft); font-size:16px; max-width:520px;}

/* --------------------------------------------------- SECTION HEADINGS ---- */
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  margin-bottom:36px; gap:24px; flex-wrap:wrap;
}
.section-head h2{font-size:28px;}
.section-head p{color:var(--ink-soft); font-size:16px; max-width:560px; margin-top:10px;}
.section-head a{font-size:14px; color:var(--brand); border-bottom:1px solid var(--brand-soft);}

/* --------------------------------------------------------- TEXT BLOCK ---- */
.prose{max-width:660px;}
.prose h2{font-size:26px; margin-bottom:14px;}
.prose h3{font-size:18px; margin:28px 0 8px;}
.prose p{color:var(--ink-soft); font-size:16px; margin-bottom:16px;}
.split{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start;}
.split-media{border-radius:18px; overflow:hidden; background:var(--brand-pale); aspect-ratio:4/3.1;}
.split-media img{width:100%; height:100%; object-fit:cover;}

/* -------------------------------------------------------------- CARDS ---- */
.card{
  border:1px solid var(--line); border-radius:14px; padding:30px 26px;
  background:var(--white);
}
.card h3{font-size:17px; margin-bottom:8px;}
.card p{font-size:14px; color:var(--ink-soft);}
.card-icon{
  width:42px; height:42px; border-radius:10px; background:var(--brand-pale);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
  color:var(--brand-soft); font-size:18px;
}
.grid-2{display:grid; grid-template-columns:repeat(2,1fr); gap:24px;}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.grid-4{display:grid; grid-template-columns:repeat(4,1fr); gap:24px;}

/* --------------------------------------------------------- EVENT CARD ---- */
.event-card{
  display:grid; grid-template-columns:0.9fr 1.1fr;
  border:1px solid var(--line); border-radius:16px; overflow:hidden;
  background:var(--white);
}
.event-card img{height:100%; width:100%; object-fit:cover;}
.event-info{padding:36px 40px;}
.event-date{
  display:inline-block; font-size:13px; color:var(--cta-deep); font-weight:500;
  background:var(--cta-pale); padding:5px 12px; border-radius:14px; margin-bottom:16px;
}
.event-info h3{font-size:22px; margin-bottom:10px;}
.event-info p{color:var(--ink-soft); font-size:15px; margin-bottom:22px;}
.event-meta{
  display:flex; gap:22px; flex-wrap:wrap; font-size:14px; color:var(--gray);
  margin-bottom:22px;
}

/* Compact list rows used for the past-event archive */
.event-row{
  display:grid; grid-template-columns:150px 1fr auto; gap:24px; align-items:center;
  padding:22px 0; border-bottom:1px solid var(--line);
}
.event-row:first-child{border-top:1px solid var(--line);}
.event-row .when{font-size:14px; color:var(--cta-deep);}
.event-row h3{font-size:17px; margin-bottom:4px;}
.event-row p{font-size:14px; color:var(--ink-soft);}
.event-row .place{font-size:13px; color:var(--gray); white-space:nowrap;}

/* -------------------------------------------------------------- IMPACT --- */
.impact{background:var(--brand); padding:64px 0;}
.impact-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:32px;}
.impact-num{font-family:'Fraunces', serif; font-size:40px; color:var(--cta); font-weight:500;}
.impact-label{color:var(--on-brand-soft); font-size:14px; margin-top:6px;}

/* --------------------------------------------------------------- TEAM ---- */
.team-card{text-align:left;}
.team-photo{
  aspect-ratio:1/1; border-radius:14px; background:var(--brand-pale);
  display:flex; align-items:center; justify-content:center;
  font-family:'Fraunces', serif; font-size:30px; color:var(--brand-soft);
  margin-bottom:14px; overflow:hidden;
}
.team-photo img{width:100%; height:100%; object-fit:cover;}
.team-card h3{font-size:16px; margin-bottom:2px;}
.team-card .role{font-size:14px; color:var(--gray);}

/* ----------------------------------------------------------- PARTNERS ---- */
.partner-tile{
  border:1px solid var(--line); border-radius:12px; background:var(--white);
  padding:24px 20px; min-height:96px;
  display:flex; align-items:center; justify-content:center; text-align:center;
  font-size:14px; color:var(--ink-soft);
}

/* ----------------------------------------------------------- TIMELINE ---- */
.timeline{border-left:2px solid var(--line); margin-left:8px; padding-left:28px;}
.timeline-item{position:relative; padding-bottom:32px;}
.timeline-item:last-child{padding-bottom:0;}
.timeline-item::before{
  content:''; position:absolute; left:-37px; top:6px;
  width:12px; height:12px; border-radius:50%;
  background:var(--brand-soft); border:3px solid var(--bg);
}
.timeline-item .year{font-family:'Fraunces', serif; font-size:20px; color:var(--cta-deep); margin-bottom:4px;}
.timeline-item h3{font-size:17px; margin-bottom:6px;}
.timeline-item p{font-size:15px; color:var(--ink-soft); max-width:560px;}

/* ---------------------------------------------------------- GALLERY ------ */
.gallery{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
.gallery figure{
  border-radius:14px; overflow:hidden; background:var(--brand-pale); aspect-ratio:4/3;
  position:relative;
}
.gallery img{width:100%; height:100%; object-fit:cover;}
.gallery figcaption{
  position:absolute; left:0; right:0; bottom:0;
  background:linear-gradient(to top, rgba(38,32,46,.82), rgba(38,32,46,0));
  color:var(--white); font-size:13px; padding:26px 16px 12px;
}

/* ---------------------------------------------------------- DONATIONS ---- */
.donate-banner{margin:0 auto 80px; max-width:1120px; padding:0 32px;}
.donate-inner{
  background:var(--brand-pale); border-radius:18px; padding:48px 52px;
  display:grid; grid-template-columns:1.3fr 0.7fr; align-items:center; gap:24px;
}
.donate-inner h2{font-size:24px; margin-bottom:8px;}
.donate-inner p{color:var(--ink-soft); font-size:15px;}

.detail-box{
  border:1px solid var(--line); border-radius:16px; background:var(--white);
  padding:32px 34px;
}
.detail-box h3{font-size:18px; margin-bottom:18px;}
.detail-row{
  display:grid; grid-template-columns:150px 1fr; gap:16px;
  padding:12px 0; border-bottom:1px solid var(--line); font-size:15px;
}
.detail-row:last-child{border-bottom:0;}
.detail-row dt{color:var(--gray); font-size:14px;}
.detail-row dd{color:var(--ink); font-weight:500; word-break:break-word;}
.detail-row dd.mono{font-family:ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing:0.4px;}

.highlight-box{
  background:var(--cta-pale); border-radius:16px; padding:32px 34px;
  border:1px solid var(--cta-line);
}
.highlight-box h3{font-size:19px; margin-bottom:10px;}
.highlight-box p{font-size:15px; color:var(--ink-soft); margin-bottom:14px;}

.steps{counter-reset:step; display:grid; gap:20px;}
.step{position:relative; padding-left:48px;}
.step::before{
  counter-increment:step; content:counter(step);
  position:absolute; left:0; top:0;
  width:32px; height:32px; border-radius:50%;
  background:var(--brand); color:var(--on-brand);
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:600;
}
.step h3{font-size:16px; margin-bottom:4px;}
.step p{font-size:14px; color:var(--ink-soft);}

/* --------------------------------------------------------------- FORM ---- */
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:20px;}
.field.full{grid-column:1 / -1;}
.field label{font-size:14px; color:var(--ink-soft);}
.field input, .field select, .field textarea{
  font-family:inherit; font-size:15px; color:var(--ink);
  border:1px solid var(--line); border-radius:10px;
  padding:12px 14px; background:var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:2px solid var(--brand-soft); outline-offset:1px; border-color:var(--brand-soft);
}
.field textarea{min-height:140px; resize:vertical;}
.form-note{font-size:13px; color:var(--gray); margin-top:14px;}
.form-status{
  margin-top:18px; padding:14px 16px; border-radius:10px;
  background:var(--brand-pale); color:var(--brand); font-size:14px;
}
.form-status[hidden]{display:none;}

/* ------------------------------------------------------------ CONTACT ---- */
.map-embed{
  border-radius:16px; overflow:hidden; border:1px solid var(--line);
  background:var(--brand-pale); min-height:320px; height:100%;
}
.map-embed iframe{width:100%; height:100%; min-height:320px; border:0; display:block;}
.social-links{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px;}
.social-links a{
  border:1px solid var(--line); border-radius:22px; padding:8px 18px;
  font-size:14px; color:var(--brand); background:var(--white);
}
.social-links a:hover{border-color:var(--brand-soft);}

/* --------------------------------------------------------------- FAQ ----- */
.faq details{
  border-bottom:1px solid var(--line); padding:18px 0;
}
.faq summary{
  cursor:pointer; font-size:16px; color:var(--brand);
  font-family:'Fraunces', serif; list-style:none;
  display:flex; justify-content:space-between; gap:16px;
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:'+'; color:var(--brand-soft); font-size:20px; line-height:1;}
.faq details[open] summary::after{content:'–';}
.faq details p{font-size:15px; color:var(--ink-soft); margin-top:12px; max-width:720px;}

/* ------------------------------------------------------------- FOOTER ---- */
footer{border-top:1px solid var(--line); padding:48px 0 36px;}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 0.7fr 0.7fr 0.9fr; gap:32px; margin-bottom:36px;
}
.footer-grid h4{font-size:14px; color:var(--brand); margin-bottom:14px; font-weight:600;}
.footer-grid a, .footer-grid p{font-size:14px; color:var(--ink-soft); display:block; margin-bottom:8px;}
.footer-grid a:hover{color:var(--brand);}
.footer-bottom{
  border-top:1px solid var(--line); padding-top:22px; display:flex;
  justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-size:13px; color:var(--gray);
}

/* -------------------------------------------------------- RESPONSIVE ----- */
@media(max-width:860px){
  .hero-grid, .mission-grid, .event-card, .impact-grid,
  .donate-inner, .footer-grid, .split, .grid-2, .grid-3, .grid-4,
  .form-grid, .gallery{
    grid-template-columns:1fr;
  }
  .split{gap:32px;}
  .hero h1{font-size:34px;}
  .page-hero h1{font-size:30px;}
  .section{padding:56px 0;}
  .event-info{padding:28px 26px;}
  .event-row{grid-template-columns:1fr; gap:6px;}
  .nav-toggle{display:block;}
  .nav-links{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0; background:var(--bg);
    border-bottom:1px solid var(--line); padding:8px 32px 20px;
  }
  .nav-links.open{display:flex;}
  .nav-links a{padding:10px 0; border-bottom:1px solid var(--line);}
  header nav.wrap{position:relative;}
}


/* WordPress integration */
.admin-bar header{top:32px}.contact-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important}@media(max-width:782px){.admin-bar header{top:46px}}
