/* ═══════════════════════════════════════
   fynest.events — Shared Design System
   /style.css
═══════════════════════════════════════ */

:root {
  --cream:    #F5EFEB;
  --cream-d:  #EDE4DC;
  --burg:     #882635;
  --burg-dk:  #611A25;
  --burg-lt:  #A33345;
  --charcoal: #0C0C0C;
  --gray:     #5C5856;
  --gray-lt:  #B0A8A4;
  --white:    #FFFFFF;

  --r-sm: 8px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px;
  --sh:   0 2px 16px rgba(136,38,53,.07), 0 1px 4px rgba(0,0,0,.04);
  --sh-h: 0 12px 40px rgba(136,38,53,.14), 0 4px 12px rgba(0,0,0,.06);
  --ease: cubic-bezier(.4,0,.2,1);
  --font:  'Poppins', sans-serif;
  --serif: 'Playfair Display', serif;
  --max:   1080px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ── STICKY FOOTER ── */
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
main { flex: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

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

/* ── SCROLL REVEAL ── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .52s var(--ease), transform .52s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,239,235,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(136,38,53,.09);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  height: 56px; display: flex; align-items: center; gap: 8px;
}
.logo {
  font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em;
  line-height: 1; flex-shrink: 0; margin-right: auto;
}
.logo .dot { color: var(--burg); }
.logo .ev  { color: var(--burg); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-btn {
  font-size: .78rem; font-weight: 600;
  padding: 7px 14px; border-radius: 100px;
  transition: all .22s var(--ease); white-space: nowrap;
  color: var(--gray);
}
.nav-btn:hover  { background: rgba(136,38,53,.07); color: var(--burg); }
.nav-btn.active { background: var(--burg); color: var(--white); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .75rem; color: var(--gray-lt); margin-bottom: 22px;
}
.breadcrumb a { color: var(--gray); transition: color .2s; }
.breadcrumb a:hover { color: var(--burg); }
.breadcrumb-sep { opacity: .4; }

/* ── BUTTONS ── */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: var(--r-md);
  font-size: .84rem; font-weight: 600;
  background: var(--burg); color: var(--white);
  box-shadow: 0 4px 16px rgba(136,38,53,.24);
  transition: all .22s var(--ease);
}
.btn-primary:hover { background: var(--burg-dk); box-shadow: 0 8px 22px rgba(136,38,53,.34); transform: translateY(-1px); }
.btn-primary.off { background: var(--cream-d); color: var(--gray-lt); box-shadow: none; pointer-events: none; }
.btn-primary svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: var(--r-md);
  font-size: .8rem; font-weight: 500; color: var(--burg);
  border: 1.5px solid rgba(136,38,53,.22);
  transition: all .22s var(--ease);
}
.btn-secondary:hover { background: rgba(136,38,53,.05); border-color: rgba(136,38,53,.4); }
.btn-secondary svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .8; }

/* ── EVENT CARD ── */
.card {
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--sh); border: 1px solid rgba(136,38,53,.06);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-h); }
.card-bar { height: 4px; background: linear-gradient(90deg, var(--burg), var(--burg-lt)); }
.card-body { padding: 20px 22px 18px; flex: 1; display: flex; flex-direction: column; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.badge { font-size: .63rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; }
.b-ok   { background: rgba(34,139,87,.09);  color: #1a7a4a; border: 1px solid rgba(34,139,87,.2); }
.b-out  { background: rgba(136,38,53,.08);  color: var(--burg); border: 1px solid rgba(136,38,53,.18); }
.b-few  { background: rgba(184,108,20,.09); color: #8a4e0a; border: 1px solid rgba(184,108,20,.2); }
.b-new  { background: var(--burg); color: var(--white); }
.b-free { background: rgba(30,100,180,.08); color: #1a50a0; border: 1px solid rgba(30,100,180,.15); }

.card-date { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--burg); margin-bottom: 7px; }
.card-date svg { flex-shrink: 0; opacity: .75; }
.card-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--charcoal); line-height: 1.3; margin-bottom: 8px; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--burg); }
.card-desc  { font-size: .81rem; color: var(--gray); line-height: 1.65; flex: 1; margin-bottom: 12px; }
.card-loc   { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--gray); margin-bottom: 16px; }
.card-loc svg { color: var(--burg); opacity: .65; flex-shrink: 0; }

.card-footer { border-top: 1px solid var(--cream-d); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.price-row  { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2px; }
.price-amt  { font-size: .98rem; font-weight: 700; }
.price-note { font-size: .67rem; color: var(--gray-lt); }

/* ── GROUP LABEL ── */
.group-label { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 13px; border-bottom: 1px solid var(--cream-d); }
.group-title { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.group-count { font-size: .68rem; font-weight: 600; color: var(--burg); background: rgba(136,38,53,.08); padding: 2px 9px; border-radius: 100px; }
.group-line  { flex: 1; height: 1px; background: var(--cream-d); }
.events-group { margin-bottom: 44px; }
.events-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

/* ── INSTAGRAM STRIP ── */
.ig-strip {
  background: linear-gradient(130deg, var(--burg) 0%, var(--burg-dk) 60%, #260b10 100%);
  border-radius: var(--r-xl); padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: relative; overflow: hidden;
}
.ig-strip::before { content: ''; position: absolute; top: -70px; right: -70px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.04); pointer-events: none; }
.ig-text { position: relative; z-index: 1; }
.ig-eyebrow { font-size: .67rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 7px; }
.ig-heading  { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2rem); color: var(--white); line-height: 1.2; margin-bottom: 5px; }
.ig-sub      { font-size: .84rem; color: rgba(255,255,255,.6); }
.ig-btn {
  position: relative; z-index: 1; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); color: var(--burg); font-weight: 700; font-size: .88rem;
  padding: 14px 26px; border-radius: 100px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18); transition: all .25s var(--ease); white-space: nowrap;
}
.ig-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.ig-btn svg { width: 18px; height: 18px; }

/* ── FOOTER ── */
footer { background: var(--charcoal); color: var(--white); padding: 40px 20px 28px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 20px; flex-wrap: wrap; }
.f-logo { font-weight: 700; font-size: 1.18rem; letter-spacing: -.03em; }
.f-logo .dot { color: var(--burg); }
.f-logo .ev  { color: rgba(255,255,255,.5); }
.f-tagline   { font-size: .74rem; color: rgba(255,255,255,.35); margin-top: 4px; font-style: italic; font-family: var(--serif); }
.footer-links { display: flex; gap: 36px; flex-wrap: wrap; }
.flg h4 { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 10px; }
.flg a  { display: block; font-size: .83rem; color: rgba(255,255,255,.65); margin-bottom: 7px; transition: color .2s; }
.flg a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.f-copy { font-size: .74rem; color: rgba(255,255,255,.3); }
.f-social { display: flex; gap: 10px; }
.soc { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); transition: all .22s; }
.soc:hover { border-color: rgba(255,255,255,.4); color: var(--white); transform: translateY(-2px); }
.soc svg { width: 15px; height: 15px; }

/* ── STATES ── */
.no-events { text-align: center; padding: 56px 0; color: var(--gray); font-size: .9rem; }
.no-events span { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.loading { text-align: center; padding: 48px 0; color: var(--gray-lt); font-size: .85rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--cream-d); border-top-color: var(--burg); border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .ig-strip { flex-direction: column; padding: 34px 22px; text-align: center; border-radius: var(--r-lg); }
  .events-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 480px) {
  .nav-btn { padding: 6px 10px; font-size: .72rem; }
}
