/* Shared by index.html and evento.html - the APF public site. */
:root {
  --blue: #0068b8;
  --blue-deep: #004f8c;
  --blue-soft: #d8ecff;
  --orange: #ffbf4d;
  --pink: #ff77c3;
  --sky: #009efc;
  --green: #68cb40;
  --cyan: #00c2da;
  --ink: #1d2733;
  --ink-soft: #4d5864;
  --rule: #dfe5eb;
  --ground: #f3f6f9;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: Figtree, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(18px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #ffffff; color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.btn-sun { background: var(--orange); color: var(--ink); }
.btn-sun:hover { background: #ffcd70; color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #ffffff; }
.btn-ghost:hover { border-color: #ffffff; color: #ffffff; }
.btn-blue { background: var(--blue); color: #ffffff; }
.btn-blue:hover { background: var(--blue-deep); color: #ffffff; }
.btn-ink { background: var(--ink); color: #ffffff; }
.btn-ink:hover { background: #000000; color: #ffffff; }

/* ---------- Hero ---------- */
.hero { background: var(--blue); color: #ffffff; padding-bottom: clamp(56px, 9vw, 104px); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: clamp(36px, 7vw, 72px); }
.brand { display: flex; align-items: center; gap: 12px; color: #ffffff; text-decoration: none; }
.brand:hover { color: #ffffff; }
.brand-mark { display: inline-flex; padding: 7px; background: #ffffff; border-radius: 14px; }
.brand-mark img { width: 34px; height: auto; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 20px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 16px; }
.nav a { color: #ffffff; text-decoration: none; }
.nav a.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #ffffff; color: var(--blue); }
@media (max-width: 760px) { .nav a:not(.pill) { display: none; } }
/* The smallest phones (320px): name and button must share one line. */
@media (max-width: 360px) {
  .brand { gap: 9px; }
  .brand-name { font-size: 17px; }
  .nav a.pill { padding: 0 14px; }
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; } }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(48px, 8.5vw, 104px); line-height: 0.95; letter-spacing: -0.04em; }
.hero p { margin: 22px 0 0; max-width: 30em; font-size: clamp(18px, 2.2vw, 22px); color: var(--blue-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.petals { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; border-radius: 50%; background: #ffffff; display: grid; place-items: center; }
.petals img { width: 78%; }
@media (max-width: 899px) { .petals { width: min(72%, 320px); order: -1; } }

/* ---------- Sections ---------- */
section.band { padding: clamp(64px, 9vw, 104px) 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; } }
.band h2 { margin: 0; font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1; }

.doing { margin: 0; padding: 0; list-style: none; }
.doing li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-top: 1px solid var(--rule); }
.doing li:last-child { border-bottom: 1px solid var(--rule); }
.leaf { width: 46px; height: 30px; border-radius: 100% 0; margin-top: 6px; }
.doing h3 { margin: 0 0 4px; font-size: 25px; line-height: 1.2; }
.doing p { margin: 0; color: var(--ink-soft); }

/* ---------- Team ---------- */
.lead-soft { margin: 10px 0 0; color: var(--ink-soft); font-size: 19px; }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; margin: 36px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; } }
.member { display: flex; flex-direction: column; align-items: center; text-align: center; }
.member img { width: min(100%, 190px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; padding: 5px; background: var(--ring); }
.member h3 { margin: 14px 0 0; font-size: 21px; line-height: 1.2; }
.member p { margin: 4px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.35; }

/* ---------- Events ---------- */
.events-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.events { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 760px) { .events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .events.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.event { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--ground); }
.event-art { aspect-ratio: 16 / 9; background: var(--c, var(--orange)); display: flex; align-items: flex-end; padding: 18px; }
.event-art img { width: 100%; height: 100%; object-fit: cover; }
.event-art.has-img { padding: 0; }
.event-art .when { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 0.9; color: var(--ink); }
.event-art .when small { display: block; font-size: 18px; letter-spacing: 0; }
.event-body { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 28px; flex: 1; }
.event-date { font-size: 15px; font-weight: 700; color: var(--blue); }
.event h3 { margin: 0; font-size: 28px; line-height: 1.1; }
.event p { margin: 0; color: var(--ink-soft); }
.event .btn { align-self: flex-start; margin-top: auto; }
.event-body .btn { margin-top: 12px; }
.events-empty { padding: 28px; border-radius: 26px; background: var(--ground); color: var(--ink-soft); }
.skeleton { min-height: 360px; border-radius: 26px; background: linear-gradient(90deg, var(--ground), #e9eef3, var(--ground)); }

/* ---------- Membership + directory ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 5vw, 48px); border-radius: 28px; }
.panel h2 { margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.02; }
.panel p { margin: 0; color: var(--ink-soft); }
.panel .btn { align-self: flex-start; }
.panel-sun { background: #fff2d6; }
.panel-sky { background: #e6f4fe; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price strong { font-family: var(--display); font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.price span { color: var(--ink-soft); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
footer { background: var(--blue); color: var(--blue-soft); padding: 48px 0 max(32px, env(safe-area-inset-bottom)); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.motto { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.05; color: #ffffff; letter-spacing: -0.02em; }
.foot p { margin: 8px 0 0; font-size: 15px; }
.foot a { color: #ffffff; }
.credit { padding-top: 22px; font-size: 14px; color: var(--blue-soft); }
.credit a { color: #ffffff; font-weight: 600; }
.event-link { color: inherit; text-decoration: none; }
.event-link:hover { color: var(--blue); }
a.event-art { text-decoration: none; }
.social { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; font-weight: 600; }

/* ---------- Event entry (evento.html) ---------- */
.hero.slim { padding-bottom: 0; }
.hero.slim .top { padding-bottom: 28px; }
.entry { padding: 36px 0 clamp(64px, 9vw, 104px); }
.entry-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 960px) { .entry-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; margin-bottom: 20px; }
.entry-art { border-radius: 28px; overflow: hidden; background: var(--orange); aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 22px; }
.entry-art.has-img { padding: 0; background: var(--ground); }
.entry-art img { width: 100%; height: 100%; object-fit: cover; }
.entry-art .when { font-family: var(--display); font-weight: 800; font-size: 72px; line-height: 0.9; color: var(--ink); }
.entry-art .when small { display: block; font-size: 24px; }
.entry h1 { margin: 26px 0 0; font-weight: 800; font-size: clamp(40px, 6vw, 72px); line-height: 0.98; letter-spacing: -0.035em; }
.entry-when { margin: 14px 0 0; font-weight: 700; color: var(--blue); font-size: 19px; }
.entry-text { margin-top: 24px; max-width: 64ch; }
.entry-text p { margin: 0 0 14px; font-size: 19px; line-height: 1.65; }
.ticket { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 26px; background: var(--ground); }
.ticket h2 { margin: 0; font-size: 28px; line-height: 1.1; }
.ticket .price { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; }
.ticket .btn { width: 100%; }
.ticket .closed { margin: 0; color: var(--ink-soft); }
.sponsors { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule); }
.sponsors h2 { margin: 0 0 22px; font-size: clamp(28px, 3.5vw, 36px); }
.tier { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 26px; }
.sponsor { display: grid; place-items: center; padding: 14px 18px; border-radius: 16px; background: #ffffff; border: 1px solid var(--rule); }
.sponsor img { object-fit: contain; }
.tier-GOLD .sponsor img { width: 190px; height: 96px; }
.tier-SILVER .sponsor img { width: 150px; height: 72px; }
.tier-BRONZE .sponsor img { width: 118px; height: 56px; }
.sponsors.on-color { padding: 32px clamp(20px, 4vw, 40px) 12px; border-top: 0; border-radius: 28px; background: var(--sp-bg); color: var(--sp-ink); }
.sponsors.on-color .sponsor { background: transparent; border-color: transparent; }
.entry-missing { padding: 40px 0; }
