/* Events page – builds on css/style.css (variables, footer, .reveal); header lives in css/header.css */
.ev-hero{background:var(--forest-dark); color:var(--cream); padding:84px 0 72px; position:relative; overflow:hidden;}
.ev-hero::before,.ev-hero::after{content:''; position:absolute; border:1px solid rgba(212,162,76,.25); border-radius:50%; animation:floatSlow 9s ease-in-out infinite;}
.ev-hero::before{width:360px; height:360px; right:-80px; top:-120px;}
.ev-hero::after{width:200px; height:200px; right:140px; bottom:-90px; animation-delay:-4s;}
.ev-hero .wrap{position:relative; z-index:1;}
.ev-hero .eyebrow{color:var(--gold-light); font-size:.95rem; opacity:0; animation:fadeInUp .8s cubic-bezier(.16,.84,.44,1) .1s forwards;}
.ev-hero h1{font-size:clamp(2.4rem,5.4vw,4.2rem); max-width:760px; margin:16px 0 20px; opacity:0; animation:fadeInUp .9s cubic-bezier(.16,.84,.44,1) .25s forwards;}
.ev-hero p{max-width:540px; color:rgba(251,246,236,.8); font-size:1.05rem; line-height:1.7; opacity:0; animation:fadeInUp .9s cubic-bezier(.16,.84,.44,1) .4s forwards;}

/* featured */
.featured{background:var(--gold); color:var(--forest-dark); padding:56px 0;}
.featured-grid{display:grid; grid-template-columns:1.3fr 1fr; gap:48px; align-items:center;}
.featured .tag{display:inline-block; background:var(--forest-dark); color:var(--gold-light); font-family:'Space Mono',monospace; font-size:.72rem; padding:6px 12px; border-radius:100px; margin-bottom:16px;}
.featured h2{font-size:clamp(1.7rem,3vw,2.5rem); margin-bottom:14px;}
.featured p{line-height:1.7; max-width:520px; margin-bottom:22px;}
.meta{display:flex; flex-wrap:wrap; gap:8px 22px; font-size:.92rem; font-weight:500; margin-bottom:26px;}
.meta i{margin-right:8px; width:14px; text-align:center;}
.featured .btn-primary{background:var(--forest-dark); color:var(--cream);}
.featured .btn-primary:hover{background:#173a2e;}
.countdown{display:grid; grid-template-columns:repeat(4,1fr); gap:12px;}
.cd-box{background:var(--forest-dark); color:var(--cream); border-radius:var(--radius); padding:22px 8px; text-align:center;}
.cd-box b{display:block; font-family:'Fraunces',serif; font-size:2.2rem; font-variant-numeric:tabular-nums; color:var(--gold-light); line-height:1;}
.cd-box span{display:block; font-size:.8rem; margin-top:8px; color:rgba(251,246,236,.7);}
.cd-note{text-align:center; margin-top:14px; font-size:.85rem; font-weight:500;}

/* filters */
.events{padding:80px 0 40px;}
.section-head{display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:24px; margin-bottom:36px;}
.section-head h2{font-size:clamp(1.8rem,3vw,2.5rem); color:var(--forest);}
.filters{display:flex; gap:8px; flex-wrap:wrap;}
.filters button{background:transparent; border:1px solid var(--line); color:var(--ink-soft); padding:10px 18px; border-radius:100px; font-size:.88rem; font-weight:500; transition:all .25s ease;}
.filters button:hover{border-color:var(--forest); color:var(--forest);}
.filters button.active{background:var(--forest); border-color:var(--forest); color:var(--cream);}
.filters button:focus-visible,.ev-card a:focus-visible,.btn:focus-visible{outline:3px solid var(--clay); outline-offset:2px;}

/* cards */
.ev-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
.ev-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; transition:transform .3s ease, box-shadow .3s ease;}
.ev-card:hover{transform:translateY(-6px); box-shadow:0 18px 36px rgba(21,50,40,.14);}
.ev-card.show{animation:scaleIn .5s cubic-bezier(.16,.84,.44,1) both;}
.ev-card.hide{display:none;}
.ev-top{background:var(--forest); color:var(--cream); padding:24px; display:flex; align-items:center; gap:18px; position:relative;}
.ev-date{background:var(--gold); color:var(--forest-dark); border-radius:6px; padding:8px 14px; text-align:center; min-width:68px;}
.ev-date b{display:block; font-family:'Fraunces',serif; font-size:1.9rem; line-height:1;}
.ev-date span{font-family:'Space Mono',monospace; font-size:.72rem;}
.ev-cat{font-family:'Space Mono',monospace; font-size:.74rem; color:var(--gold-light);}
.ev-body{padding:24px; display:flex; flex-direction:column; flex:1;}
.ev-body h3{font-size:1.25rem; line-height:1.25; margin-bottom:12px; color:var(--forest);}
.ev-body p{color:var(--ink-soft); font-size:.93rem; line-height:1.65; margin-bottom:18px;}
.ev-info{list-style:none; font-size:.86rem; color:var(--ink-soft); margin-top:auto; padding-top:16px; border-top:1px solid var(--line); display:grid; gap:8px;}
.ev-info i{color:var(--clay); width:18px;}
.ev-link{display:inline-block; margin-top:18px; align-self:flex-start; color:var(--forest); font-weight:600; font-size:.9rem; border-bottom:2px solid var(--gold); padding-bottom:2px; transition:padding-left .25s ease, color .25s;}
.ev-link:hover{padding-left:8px; color:var(--clay);}
.empty{text-align:center; padding:48px 0; color:var(--ink-soft); display:none;}

/* past */
.past{padding:40px 0 90px;}
.past h2{font-size:clamp(1.5rem,2.6vw,2rem); color:var(--forest); margin-bottom:28px;}
.timeline{border-left:2px solid var(--gold); padding-left:28px; display:grid; gap:26px; max-width:760px;}
.tl-item{position:relative;}
.tl-item::before{content:''; position:absolute; left:-37px; top:6px; width:14px; height:14px; border-radius:50%; background:var(--cream); border:3px solid var(--clay);}
.tl-item small{font-family:'Space Mono',monospace; color:var(--clay); font-size:.78rem;}
.tl-item h3{font-size:1.15rem; margin:4px 0 6px; color:var(--forest);}
.tl-item p{color:var(--ink-soft); font-size:.93rem; line-height:1.6;}

/* CTA */
.ev-cta{background:var(--forest-dark); color:var(--cream); text-align:center; padding:80px 0;}
.ev-cta h2{font-size:clamp(1.7rem,3vw,2.4rem); margin-bottom:14px;}
.ev-cta p{max-width:520px; margin:0 auto 28px; color:rgba(251,246,236,.75); line-height:1.7;}

@media (max-width:980px){.ev-grid{grid-template-columns:repeat(2,1fr);} .featured-grid{grid-template-columns:1fr; gap:36px;}}
@media (max-width:620px){
  .ev-grid{grid-template-columns:1fr;}
  .ev-hero{padding:60px 0 52px;}
  .events{padding-top:56px;}
  .filters{flex-wrap:nowrap; overflow-x:auto; width:100%; padding-bottom:6px;}
  .filters button{white-space:nowrap;}
  .cd-box b{font-size:1.7rem;}
}

/* empty state */
.no-events{padding:96px 0;}
.no-events-box{max-width:640px; margin:0 auto; text-align:center; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:64px 32px;}
.no-events-icon{width:84px; height:84px; margin:0 auto 24px; border-radius:50%; background:var(--cream-dim); color:var(--clay); display:flex; align-items:center; justify-content:center; font-size:2rem; animation:floatSlow 5s ease-in-out infinite;}
.no-events-box h2{font-size:clamp(1.6rem,3vw,2.2rem); color:var(--forest); margin-bottom:14px;}
.no-events-box p{color:var(--ink-soft); line-height:1.7; max-width:460px; margin:0 auto 28px;}
@media (max-width:620px){.no-events{padding:56px 0;} .no-events-box{padding:44px 22px;}}
