:root{
  --white:#ffffff;
  --cream:#fdf6e6;
  --gold:#d99a2b;
  --ink:#565d73;
  --line:#e9e4d8;
  --max-width:1200px;
  --body-max-width:900px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--white)}
body{
  margin:0 auto;
  max-width:var(--body-max-width);
  background:var(--white);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}
.wrap{max-width:var(--max-width);margin:0 auto;padding:0 24px;width:100%;min-width:0}

header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
header nav{
  display:flex;align-items:center;justify-content:space-between;
  height:72px;gap:16px;
}
.brand{height:36px;width:auto;display:block}
header ul{
  display:flex;gap:28px;list-style:none;margin:0;padding:0;
}
header a{
  text-decoration:none;color:var(--ink);font-size:14px;font-weight:600;
  letter-spacing:.04em;text-transform:uppercase;
  padding:4px 0;border-bottom:2px solid transparent;transition:.15s;
}
header a:hover{color:var(--gold);border-color:var(--gold)}

@media(max-width:640px){
  header nav{flex-wrap:wrap;justify-content:center;height:auto;padding:12px 0}
  header ul{flex-wrap:wrap;justify-content:center;gap:16px}
}

.lang{display:flex;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.lang button{
  font:inherit;font-size:12px;font-weight:700;letter-spacing:.06em;
  padding:6px 12px;border:0;background:transparent;color:var(--ink);cursor:pointer;transition:.15s;
}
.lang button[aria-pressed="true"]{background:var(--gold);color:var(--white)}

main{display:flex;flex-direction:column;gap:16px;padding:16px}
section{
  min-height:60vh;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:60px 0;
  border:1px solid var(--line);
  border-radius:16px;
}
section > .wrap{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:40px;
}
#home{background:var(--cream)}
#socials{background:var(--white)}
#classes{background:var(--cream)}
#community{background:var(--white)}

.shead{max-width:640px;text-align:center}
.shead h2{font-size:clamp(1.4rem,4vw,1.9rem);font-weight:800;letter-spacing:-.01em;margin:0 0 10px;color:var(--ink)}
.shead p{margin:0;color:var(--ink);opacity:.85;line-height:1.6;white-space:pre-line}

.group-photo{
  display:block;width:100%;height:auto;
  aspect-ratio:1920/640;object-fit:cover;
  border-radius:14px;
  box-shadow:0 14px 40px -18px rgba(27,32,51,.35);
}

.logo{max-width:420px;width:100%;height:auto}

.poster{
  display:block;max-width:560px;width:100%;height:auto;
  aspect-ratio:1080/1350;
  border-radius:14px;
  box-shadow:0 14px 40px -18px rgba(27,32,51,.35);
}

.poster,.group-photo{cursor:zoom-in}
#lightbox{padding:0;border:0;outline:none;background:transparent;max-width:95vw;max-height:95vh;cursor:zoom-out}
#lightbox::backdrop{background:rgba(27,32,51,.85)}
#lightbox img{display:block;max-width:95vw;max-height:95vh;width:auto;height:auto;border-radius:10px}

/* ---------- community ---------- */
.community-links{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:16px;width:100%;
}
.community-card{
  display:flex;align-items:center;gap:14px;text-decoration:none;
  background:var(--white);border:1px solid var(--line);border-radius:14px;
  padding:18px 20px;transition:.18s;text-align:left;
}
.community-card:hover{border-color:var(--gold);transform:translateY(-2px)}
.community-card svg{flex:none;width:24px;height:24px;fill:var(--gold)}
.community-text strong{display:block;font-size:15px;font-weight:700;color:var(--ink)}
.community-text span{display:block;font-size:13px;color:var(--ink);opacity:.75}

/* Once the embeds load, they replace the page and Instagram cards; the group card stands alone. */
#community.has-embeds .embedded-card{display:none}
#community.has-embeds .community-links{grid-template-columns:1fr}
#community.has-embeds .group-card{justify-content:center;gap:18px;padding:26px 28px}
#community.has-embeds .group-card svg{width:36px;height:36px}
#community.has-embeds .group-card strong{font-size:19px}
#community.has-embeds .group-card span{font-size:14.5px}

.community-embeds{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;width:100%;
}
.embed{
  height:560px;overflow:hidden;
  border:1px solid var(--line);border-radius:14px;background:var(--white);
}
.embed iframe{display:block;width:100%;height:100%;border:0}

/* ---------- cookie banner ---------- */
[hidden]{display:none !important}
.cookie-banner{
  position:fixed;left:16px;right:16px;bottom:16px;z-index:60;
  max-width:640px;margin:0 auto;
  display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;
  padding:14px 18px;background:var(--white);
  border:1px solid var(--line);border-radius:14px;
  box-shadow:0 14px 40px -12px rgba(27,32,51,.35);
}
.cookie-banner p{margin:0;flex:1 1 260px;font-size:14px;line-height:1.5;color:var(--ink)}
.cookie-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-left:auto}
.cookie-actions button{
  font:inherit;font-size:14px;font-weight:700;padding:9px 20px;
  border:0;border-radius:999px;cursor:pointer;color:var(--white);background:var(--ink);
}
.cookie-actions button[data-consent="accepted"]{background:var(--gold)}
.cookie-actions .cookie-more{
  padding:0 6px 0 0;border-radius:0;background:none;color:var(--ink);text-decoration:underline;
}
@media(max-width:640px){
  .cookie-actions{width:100%;margin-left:0}
  .cookie-actions .cookie-more{flex-basis:100%;text-align:left}
  .cookie-actions [data-consent]{flex:1}
}

.cookie-settings{
  font:inherit;font-size:13px;padding:0;border:0;background:none;
  color:var(--gold);cursor:pointer;text-decoration:underline;
}

.policy{
  width:calc(100% - 32px);max-width:560px;max-height:85vh;overflow:auto;
  padding:0;border:0;border-radius:16px;color:var(--ink);
}
.policy::backdrop{background:rgba(27,32,51,.6)}
.policy-body{padding:26px 28px}
.policy h2{margin:0 0 6px;font-size:1.35rem;font-weight:800}
.policy h3{margin:18px 0 6px;font-size:15px;font-weight:700}
.policy p{margin:0 0 8px;font-size:14px;line-height:1.6}
.policy a{color:var(--gold);font-weight:600}
.policy-close{
  margin-top:14px;font:inherit;font-size:14px;font-weight:700;padding:9px 22px;
  border:0;border-radius:999px;cursor:pointer;color:var(--white);background:var(--ink);
}

footer{
  text-align:center;padding:36px 0;background:var(--ink);color:var(--cream);
  margin:0 16px 16px;border-radius:16px;
}
footer p{margin:0 0 8px;font-size:13px}
footer a{color:var(--gold);font-weight:600;text-decoration:none}
footer a:hover{text-decoration:underline}
