/* =====================================================================
   HOMEPAGE STYLES (index.html)
   ===================================================================== */

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 64px 0 0; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; filter: saturate(1.1); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,36,24,.3) 0%, var(--ink) 92%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-bottom: 56px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(200,241,105,.12); color: var(--lime); font-weight: 700; font-size: 14px; margin-bottom: 22px; }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200,241,105,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200,241,105,0); } 100% { box-shadow: 0 0 0 0 rgba(200,241,105,0); } }
.hero h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 800; letter-spacing: -0.045em; line-height: .95; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-copy > p { font-size: 18px; color: rgba(255,255,255,.78); max-width: 54ch; margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }   /* buttons under the headline */
.hero-actions .btn { padding: 15px 26px; font-size: 16px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.14); font: 600 14px var(--font-body); cursor: pointer; text-decoration: none; transition: background .15s; }
.chip:hover { background: rgba(255,255,255,.16); }

/* stacked event cards on the right of the hero */
.hero-stack { position: relative; height: 480px; }
.stack-card { position: absolute; width: 78%; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.4); text-decoration: none; color: #fff; transition: transform .35s ease; }
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.82)); }
.stack-card .sc-body { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.stack-card .sc-date { display: inline-block; background: var(--lime); color: var(--ink); font: 800 12px var(--font-body); padding: 5px 10px; border-radius: 8px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.stack-card h3 { font-size: 22px; margin: 0; }
.stack-card:nth-child(1) { right: 0; top: 0; transform: rotate(4deg); z-index: 1; }
.stack-card:nth-child(2) { left: 0; top: 40px; transform: rotate(-5deg); z-index: 2; }
.stack-card:nth-child(3) { right: 8%; top: 90px; transform: rotate(1deg); z-index: 3; }
.hero-stack:hover .stack-card:nth-child(1) { transform: rotate(7deg) translateX(14px); }
.hero-stack:hover .stack-card:nth-child(2) { transform: rotate(-8deg) translateX(-14px); }
.hero-stack .skeleton { inset: 0; width: 100%; opacity: .1; }

.hero-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats div { padding: 26px 0; display: flex; flex-direction: column; }
.hero-stats div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.12); }
.hero-stats strong { font: 800 clamp(26px, 3vw, 38px) var(--font-display); color: #fff; letter-spacing: -0.03em; }
.hero-stats span { color: rgba(255,255,255,.6); font-size: 14px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stack { height: 340px; max-width: 420px; }
}
@media (max-width: 640px) {
  .hero-actions .btn { flex: 1; padding: 14px 18px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .hero-stack { display: none; }
}

/* ---------- Ticker ---------- */

/* ---------- Featured row (horizontal scroll) ---------- */
.feature-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.feature-row > * { scroll-snap-align: start; }
.scroller-btns { display: flex; gap: 8px; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.round-btn:hover { border-color: var(--ink); }
.round-btn svg { width: 20px; height: 20px; }

/* ---------- Event card ---------- */
.ecard { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.ecard:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(12,36,24,.06), 0 18px 40px rgba(12,36,24,.14); }
.ecard-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--c, var(--ink)); }
.ecard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ecard:hover .ecard-img img { transform: scale(1.05); }
.ecard-date { position: absolute; top: 14px; left: 14px; background: #fff; border-radius: 12px; padding: 6px 10px; text-align: center; line-height: 1; box-shadow: var(--shadow); }
.ecard-date b { display: block; font: 800 22px var(--font-display); color: var(--ink); }
.ecard-date small { font: 700 11px var(--font-body); text-transform: uppercase; color: var(--c, var(--clay)); letter-spacing: .06em; }
.ecard-cat { position: absolute; top: 14px; right: 14px; background: rgba(12,36,24,.78); color: #fff; font: 700 12px var(--font-body); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.ecard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ecard h3 { font-size: 21px; margin-bottom: 6px; color: var(--ink); }
.ecard-meta { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ecard-meta svg { width: 16px; height: 16px; flex: none; }
.ecard-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ecard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ecard-go { font: 800 14px var(--font-body); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.ecard-go svg { width: 16px; height: 16px; transition: transform .2s; }
.ecard:hover .ecard-go svg { transform: translateX(3px); }
.ecard-spaces { font-size: 12px; color: var(--muted); font-weight: 600; }

/* big feature card variant */
.ecard.big .ecard-img { aspect-ratio: 4/3; }

/* ---------- Categories ---------- */
.categories { background: #fff; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { position: relative; aspect-ratio: 1/1.05; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; display: flex; align-items: end; padding: 18px; cursor: pointer; border: 0; text-align: left; font: inherit; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(8,24,16,.85)); }
.cat:hover img { transform: scale(1.06); }
.cat-body { position: relative; z-index: 1; }
.cat h3 { font-size: 19px; margin: 0 0 4px; }
.cat small { color: var(--lime); font-weight: 700; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- All events + filters ---------- */
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 10px; margin-bottom: 28px; }
.filters label { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; }
.filters label:focus-within { border-color: var(--ink); }
.filters svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.filters input, .filters select { border: 0; outline: 0; background: transparent; font: 600 14.5px var(--font-body); padding: 13px 0; width: 100%; color: var(--text); min-width: 0; }
.f-reset { border: 0; background: none; font: 700 14px var(--font-body); color: var(--muted); cursor: pointer; padding: 0 10px; }
.f-reset:hover { color: var(--ink); }
@media (max-width: 1000px) { .filters { grid-template-columns: 1fr 1fr; } .f-search { grid-column: 1 / -1; } }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .event-grid { grid-template-columns: 1fr; } }
.more { text-align: center; margin-top: 36px; }

/* ---------- About ---------- */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-grid h2 { font-size: clamp(30px, 4vw, 46px); }
.about-grid > div > p { color: var(--muted); font-size: 17px; }
.about-photo { aspect-ratio: 4/5; border-radius: 28px; background-size: cover; background-position: center; position: relative; }
.about-photo::after { content: ''; position: absolute; right: -18px; bottom: -18px; width: 45%; height: 40%; border-radius: 24px; background: var(--lime); z-index: -1; }
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.aud-card { padding: 22px; border-radius: var(--radius); background: var(--cream); }
.aud-card h3 { font-size: 19px; }
.aud-card ul { margin: 0 0 14px; padding-left: 18px; color: var(--muted); }
.aud-dark { background: var(--ink); color: #fff; }
.aud-dark ul { color: rgba(255,255,255,.75); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-height: 360px; aspect-ratio: auto; height: 360px; } }
@media (max-width: 520px) { .audience { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; border: 1.5px solid var(--line); }
.steps span { font: 800 46px var(--font-display); color: var(--clay); letter-spacing: -0.04em; }
.steps h3 { font-size: 22px; margin-top: 10px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Announcements ---------- */
.news { background: var(--ink); color: #fff; }
.news .eyebrow { color: rgba(255,255,255,.6); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-item { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.news-item time { color: var(--lime); font-weight: 700; font-size: 13px; }
.news-item h3 { font-size: 20px; margin: 8px 0; }
.news-item p { color: rgba(255,255,255,.7); margin: 0; font-size: 15px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Past events ---------- */
.past-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.past-card { display: grid; grid-template-columns: 200px 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); }
.past-card img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; filter: saturate(.85); }
.past-card div { padding: 20px; }
.past-card time { font-size: 13px; color: var(--muted); font-weight: 700; }
.past-card h3 { font-size: 20px; margin: 6px 0 8px; }
.past-card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.past-card .count { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 13px; color: var(--ink); background: var(--lime); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 800px) { .past-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .past-card { grid-template-columns: 1fr; } .past-card img { height: 180px; } }

/* ---------- Contact ---------- */
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); }
.contact-card h2 { font-size: clamp(28px, 3.5vw, 42px); }
.contact-card p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list b { font-weight: 700; text-align: right; text-decoration: none; }
@media (max-width: 800px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- Partners: "Organised with" + sliding logos ---------- */
.partners { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0 30px; }
.partners-label { margin: 0 0 18px; text-align: center; font: 700 12px var(--font-body); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.partners-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track { display: flex; width: max-content; animation: partners-slide var(--slide-time, 40s) linear infinite; }
.partners-marquee:hover .partners-track, .partners-marquee:focus-within .partners-track { animation-play-state: paused; }
.partners-set { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.partner { flex: none; height: 56px; display: flex; align-items: center; }
.partner img { height: 48px; width: auto; display: block; opacity: .92; transition: opacity .25s, transform .25s; }
.partner:hover img { opacity: 1; transform: scale(1.05); }
.partner-name { font: 800 18px var(--font-display); color: #8a948d; white-space: nowrap; }
@keyframes partners-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; width: auto; justify-content: center; }
  .partners-set { flex-wrap: wrap; justify-content: center; padding: 0 16px; gap: 24px 40px; }
  .partners-set[aria-hidden] { display: none; }
}

/* ---------- "Happening now" badge on cards ---------- */
.ecard-live { position: absolute; bottom: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px; background: #e5322d; color: #fff; font: 800 11.5px var(--font-body); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; }
.ecard-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blinkdot 1.2s infinite; }
@keyframes blinkdot { 50% { opacity: .25; } }

/* ---------- Organiser call to action ---------- */
.cta-band { padding: 0 0 88px; }
.cta-inner { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  background: radial-gradient(120% 140% at 100% 0%, #2a6b3f 0%, var(--ink) 55%); color: #fff; border-radius: 32px; padding: clamp(32px, 5vw, 64px); }
.cta-inner::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(200,241,105,.12); }
.cta-inner .eyebrow { color: var(--lime); }
.cta-inner h2 { font-size: clamp(28px, 3.6vw, 46px); max-width: 18ch; }
.cta-inner p { color: rgba(255,255,255,.75); max-width: 52ch; margin: 0; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* =====================================================================
   PHONES (homepage): shorter page, no cut-off rows, no stray scrollbars
   ===================================================================== */
@media (max-width: 640px) {
  /* hero */
  .has-overlay-nav .hero { padding-top: 92px; }
  .hero-grid { gap: 0; padding-bottom: 24px; }
  .hero-kicker { margin-bottom: 14px; font-size: 13px; }
  .hero h1 { font-size: 42px; margin-bottom: 14px; }
  .hero-copy > p { font-size: 16px; margin-bottom: 20px; }
  .hero-chips { flex-wrap: nowrap; overflow-x: auto; margin: 16px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
  .hero-chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: none; }
  .hero-stats div { padding: 14px 0; }
  .hero-stats div + div { padding-left: 14px; }
  .hero-stats div:nth-child(3) { padding-left: 0; }

  /* partners */
  .partners { padding: 18px 0 20px; }
  .partners-label { margin-bottom: 12px; }
  .partners-set { gap: 36px; padding-right: 36px; }
  .partner { height: 44px; }
  .partner img { height: 38px; }

  /* featured: swipe without a visible scrollbar */
  .feature-row { grid-auto-columns: 84%; gap: 12px; padding-bottom: 0; scrollbar-width: none; }
  .feature-row::-webkit-scrollbar { display: none; }
  .scroller-btns { display: none; }

  /* categories */
  .cat-grid { gap: 10px; }
  .cat { aspect-ratio: 4 / 3; padding: 12px; }
  .cat h3 { font-size: 15px; }
  .cat small { font-size: 12px; }

  /* event list */
  .filters { gap: 8px; margin-bottom: 16px; }
  .filters input, .filters select { padding: 11px 0; }
  .event-grid { gap: 14px; }
  .ecard-body { padding: 14px 16px 16px; }
  .ecard h3 { font-size: 19px; }
  .ecard-desc { margin-bottom: 12px; }
  .more { margin-top: 22px; }
  .more .btn { width: 100%; }

  /* about */
  .about-grid { gap: 20px; }
  .about-photo { height: 200px; }
  .about-photo::after { display: none; }   /* the shape that pushed the page sideways */
  .about-grid > div > p { font-size: 15.5px; }
  .audience { margin-top: 16px; gap: 10px; }
  .aud-card { padding: 16px; }

  /* how it works */
  .steps { gap: 10px; }
  .steps li { padding: 18px; }
  .steps span { font-size: 30px; }
  .steps h3 { font-size: 19px; margin-top: 4px; }

  /* notices, past events, call to action, contact */
  .news-grid { gap: 10px; }
  .news-item { padding: 18px; }
  .past-grid { gap: 12px; }
  .past-card img { height: 150px; min-height: 0; }
  .past-card div { padding: 14px 16px; }
  .cta-band { padding: 0 0 40px; }
  .cta-inner { padding: 26px 20px; border-radius: 22px; gap: 18px; }
  .cta-inner::after { display: none; }
  .cta-actions .btn { flex: 1; }
  .contact-card { padding: 22px 18px; gap: 14px; border-radius: 22px; }
  .contact-list li { padding: 12px 0; }
  .contact-list a, .contact-list b { word-break: break-word; }
}
@media (max-width: 960px) {
  /* let columns shrink to the screen: swipe rows (chips, partners, featured) scroll instead of widening the page */
  .hero-grid, .about-grid, .contact-card { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > *, .about-grid > *, .contact-card > * { min-width: 0; max-width: 100%; }
}

/* ---------- Official partner (MinaPro Ultra Consulting) ---------- */
.partner-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 14px; padding: 20px 22px; border-radius: var(--radius); background: #f1fbdc; box-shadow: inset 4px 0 0 #4d7a12; }
.partner-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); font: 800 18px var(--font-display); }
.partner-kicker { display: block; font: 700 12px var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: #3c5f0e; margin-bottom: 4px; }
.partner-card h3 { font-size: 19px; margin: 0 0 4px; }
.partner-card p { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.partner-link { font-weight: 800; color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 520px) { .partner-card { padding: 16px; } .partner-mark { width: 42px; height: 42px; font-size: 15px; } }
