:root {
  --color-bg: #f8fafc;
  --color-text: #374151;
  --color-heading: #1a4d2e;
  --color-primary: var(--dynamic-primary, #2d9d67);
  --color-accent: var(--dynamic-accent, #d86a3f);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.15);
  --transition-fast: .3s ease;
  --max-width: 1280px;
  --section-gap: 4.5rem;
  --gradient-hero: linear-gradient(160deg,#1a4d2e 0%,#2d9d67 50%, #1a4d2e 100%);
}

body { background: var(--color-bg); color: var(--color-text); transition: background .3s ease, color .3s ease; font-feature-settings: "liga" on; }

/* Utility */
.fade-in { animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px);} to { opacity:1; transform:translateY(0);} }
.section { padding: var(--section-gap) 0; position: relative; }
.section + .section { margin-top: 0; }
.section:nth-child(even) { background: rgba(240,249,244,.35); }
.section-title { font-family:'Playfair Display',serif; font-size:2.25rem; letter-spacing:-.02em; position:relative; margin:0 0 2rem; color: var(--color-heading); }
.section-title:after { content:''; position:absolute; left:0; bottom:-.6rem; width:120px; height:4px; background:linear-gradient(90deg,var(--color-primary), var(--color-accent)); border-radius:2px; }

/* Container */
.container { max-width: var(--max-width); margin:0 auto; padding:0 2rem; }

/* Cards */
.card { background:rgba(255,255,255,.96); border:1px solid rgba(26,77,46,.12); border-radius:16px; padding:2rem; box-shadow:0 2px 10px rgba(0,0,0,.05); backdrop-filter:blur(8px); transition:.35s cubic-bezier(.4,0,.2,1); }
.card:hover { box-shadow:0 12px 34px rgba(0,0,0,.12); transform:translateY(-4px); border-color:rgba(45,157,103,.35); }
.card-title { font-size:1.35rem; margin:0 0 .75rem; font-family:'Playfair Display',serif; letter-spacing:-.5px; }
.card-text { font-size:.95rem; line-height:1.55; color:#4a5b64; }

/* Announcement */
.announcement-title { font-size:1.5rem; margin:0 0 .5rem; font-family:'Playfair Display',serif; letter-spacing:-.5px; }
.announcement-date { font-size:.75rem; text-transform:uppercase; letter-spacing:.15em; color:#6b7280; }
.announcement-header { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:1rem; }

/* Event cards */
.event-title { font-size:1.25rem; margin:0 0 .75rem; font-family:'Playfair Display',serif; }
.event-details { display:flex; flex-direction:column; gap:.4rem; font-size:.85rem; }
.event-detail { display:flex; align-items:center; gap:.5rem; color:#44545e; }
.event-icon { font-size:1rem; }

/* Grid helpers */
.grid { display:grid; gap:1.75rem; }
.grid-3 { grid-template-columns:1fr; }
@media (min-width:768px){ .grid-3 { grid-template-columns:repeat(3,1fr); } }
.grid-4 { grid-template-columns:1fr; }
@media (min-width:900px){ .grid-4 { grid-template-columns:repeat(4,1fr); } }

/* Buttons */
.btn { display:inline-block; padding:.8rem 1.4rem; border-radius:8px; font-size:.85rem; font-weight:600; cursor:pointer; border:none; background:linear-gradient(135deg,#d86a3f,#c95434); color:#fff; box-shadow:0 2px 10px rgba(216,106,63,.25); transition:.3s; }
.btn:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(216,106,63,.35); }
.btn-secondary { background:linear-gradient(135deg,#2d9d67,#1f7d52); box-shadow:0 2px 10px rgba(45,157,103,.25); }
.btn-secondary:hover { box-shadow:0 6px 18px rgba(45,157,103,.35); }

/* Badges */
.badge { display:inline-block; padding:.35rem .75rem; border-radius:999px; font-size:.65rem; font-weight:600; background:linear-gradient(135deg,#daf2e4,#c8ead6); color:#1a6444; letter-spacing:.05em; }
.badge-primary { background:linear-gradient(135deg,#2d9d67,#1f7d52); color:#fff; }

/* Footer */
.footer { background:linear-gradient(135deg,#1a4d2e,#1f7d52); color:#e8f5ef; padding:3.5rem 0 0; margin-top:5rem; position:relative; } 
.footer-container { max-width:var(--max-width); margin:0 auto; padding:0 2rem; }
.footer-grid { display:grid; gap:2.5rem; grid-template-columns:1fr; }
@media (min-width:900px){ .footer-grid { grid-template-columns:2fr 1fr 1fr; } }
.footer-heading { font-family:'Playfair Display',serif; font-size:1.3rem; margin:0 0 1rem; letter-spacing:-.5px; }
.footer-text { font-size:.85rem; line-height:1.6; }
.footer-links { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.5rem; }
.footer-links a { color:#daf2e4; font-size:.8rem; }
.footer-links a:hover { color:#fff; }
.footer-contact { font-size:.8rem; line-height:1.5; }
.contact-label { font-size:.65rem; text-transform:uppercase; letter-spacing:.15em; color:#b7e4cd; margin:0 0 .25rem; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.15); margin-top:3rem; padding:1.25rem 0; display:flex; flex-direction:column; gap:.75rem; align-items:center; font-size:.65rem; letter-spacing:.05em; }
@media (min-width:700px){ .footer-bottom { flex-direction:row; justify-content:space-between; } }
.footer-bottom-links { display:flex; gap:1rem; }
.footer-bottom-links a { color:#b7e4cd; font-size:.65rem; }
.footer-bottom-links a:hover { color:#fff; }

/* Hero adjustments (when not overridden by inline) */
.hero-title { font-family:'Playfair Display',serif; font-size:3.25rem; letter-spacing:-.03em; margin:0 0 1.2rem; }
.hero-subtitle { font-size:1.15rem; max-width:720px; margin:0 auto; line-height:1.7; color:#4a5b64; }
.hero-wordmark { font-family:'Playfair Display',serif; font-size:1.5rem; margin:0; line-height:1.1; letter-spacing:-.035em; }
.hero-wordmark span { display:block; }
.hero-wordmark .line-2 { font-size:1.25rem; letter-spacing:.2em; font-weight:400; opacity:.9; }
@media (min-width:480px) { .hero-wordmark { font-size:2rem; } .hero-wordmark .line-2 { font-size:1.65rem; } }
@media (min-width:768px) { .hero-wordmark { font-size:3.5rem; } .hero-wordmark .line-2 { font-size:2.8rem; letter-spacing:.25em; } }
@media (min-width:1024px) { .hero-wordmark { font-size:4rem; } .hero-wordmark .line-2 { font-size:3.2rem; } }

/* Accessibility & motion */
@media (prefers-reduced-motion: reduce) {
  .card, .btn, .hero-title, .hero-wordmark { transition:none !important; animation:none !important; }
}

/* Scroll Reveal */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal-visible { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay:.1s; }
.reveal-delay-2 { transition-delay:.2s; }
.reveal-delay-3 { transition-delay:.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1 !important; transform:none !important; }
}
