/* =========================================================
   Imagine Foundry — site styles
   One stylesheet for the whole site.
   Brand colors live at the top: change them here and they
   update everywhere.
   ========================================================= */

:root {
  --plum: #1F0B2C;        /* dark background (header/footer) */
  --plum-2: #2E1440;
  --magenta: #DD0097;     /* accent */
  --red: #F43B3B;         /* main buttons */
  --red-dark: #D62828;
  --purple: #8E00B9;      /* "Special Events" tags */
  --green: #4CAF50;       /* "Activities" tags */
  --cyan: #00A5BA;        /* "Exhibits" tags */
  --orange: #E16C0F;
  --ink: #1F1F1F;         /* body text */
  --muted: #555;
  --line: #E6E1EA;
  --soft: #F7F3FA;        /* light section background */
  --radius: 24px;
  --wrap: 1180px;
  --font-display: "Bubblegum Sans", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--plum); }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .5px; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--plum); color: #eee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 760px; }
.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--magenta); margin-bottom: .6rem;
}
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  background: var(--red); color: #fff; transition: transform .15s, background .15s;
}
.btn:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn--dark { background: var(--plum); }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--plum); }
.btn--ghost:hover { background: var(--plum); color: #fff; }
.btn--light { background: #fff; color: var(--plum); }
.btn--light:hover { background: var(--soft); color: var(--plum); }
.btn--sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--plum); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav__item { position: relative; }
.nav__top {
  background: none; border: 0; color: #fff; font: 800 .95rem var(--font-body); letter-spacing: .08em;
  padding: .9rem .9rem; cursor: pointer; display: flex; align-items: center; gap: .35em;
}
.nav__top::after { content: ""; width: .45em; height: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.nav__menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25);
  padding: .6rem; min-width: 230px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transition: opacity .15s;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__item.open .nav__menu { opacity: 1; visibility: visible; }
.nav__menu a { display: block; padding: .6rem .9rem; border-radius: 10px; color: var(--plum); text-decoration: none; font-weight: 600; }
.nav__menu a:hover { background: var(--soft); color: var(--magenta); }
.nav__menu li { margin: 0; }
.header-cta { display: flex; gap: .6rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid rgba(255,255,255,.4); color: #fff; border-radius: 10px; padding: .45rem .7rem; font: 700 .95rem var(--font-body); cursor: pointer; }

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .nav, .header-cta { display: none; }
  .site-header.is-open .wrap { flex-wrap: wrap; padding-bottom: 1rem; }
  .site-header.is-open .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0; order: 3; }
  .site-header.is-open .header-cta { display: flex; width: 100%; order: 4; }
  .site-header.is-open .header-cta .btn { flex: 1; }
  .nav__top { width: 100%; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav__menu { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; background: var(--plum-2); }
  .nav__item.open .nav__menu { display: block; }
  .nav__item:hover .nav__menu { display: none; }
  .nav__item.open:hover .nav__menu { display: block; }
  .nav__menu a { color: #fff; }
  .nav__menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
}

/* ---------- Page hero (top of inner pages) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--plum) center/cover no-repeat;
  min-height: 340px; display: flex; align-items: flex-end;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,11,44,.15) 0%, rgba(31,11,44,.85) 100%); }
.hero .wrap { position: relative; padding: 6rem 0 2.6rem; }
.hero h1 { color: #fff; margin-bottom: .2rem; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero__sub { font-size: 1.25rem; font-weight: 700; margin: 0 0 .4rem; }
.crumbs { font-size: .9rem; font-weight: 600; margin: 0; }
.crumbs a { color: #ff9bd9; text-decoration: none; }

/* Home hero */
.home-hero { min-height: min(78vh, 640px); align-items: center; }
.home-hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: end; padding: 6rem 0 4rem; }
.home-hero h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: 1; }
.hero-card { background: rgba(255,255,255,.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 1.4rem 1.5rem; margin-bottom: 1rem; }
.hero-card h2 { color: #fff; font-size: 1.7rem; margin-bottom: .2rem; }
.hero-card p { margin: 0 0 .9rem; }
@media (max-width: 800px) { .home-hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split--center { align-items: center; }
.split--wide-left { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 860px) { .split, .split--wide-left { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 2rem; }
.photo { border-radius: var(--radius); width: 100%; object-fit: cover; box-shadow: 0 10px 30px rgba(31,11,44,.15); }
.photo--tall { aspect-ratio: 4/5; }
.photo--wide { aspect-ratio: 16/10; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Highlight panel: big photo with text box over it */
.feature {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px;
  background: var(--plum) center/cover no-repeat; display: flex; align-items: center; justify-content: flex-end; padding: 2rem;
}
.feature__box {
  position: relative; max-width: 460px; background: rgba(31,11,44,.82); color: #fff;
  border-radius: 20px; padding: 1.8rem 2rem; backdrop-filter: blur(6px);
}
.feature__box h2 { color: #fff; font-size: 2rem; }
.feature__box p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .feature { padding: 1rem; min-height: 0; padding-top: 220px; } .feature__box { max-width: none; } }

/* Checklist (the "journey" steps) */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2.1rem; margin-bottom: .8rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: .05em; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--magenta); color: #fff; font-size: .85rem; font-weight: 800; display: grid; place-items: center;
}
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--plum); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.callout { background: var(--soft); border-left: 6px solid var(--magenta); border-radius: 16px; padding: 1.5rem 1.8rem; }
.callout > :last-child { margin-bottom: 0; }

/* ---------- Program cards (exhibits / activities / events) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: 0 6px 24px rgba(31,11,44,.1); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(31,11,44,.18); color: inherit; }
.card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--soft); }
.card__body { padding: 1.1rem 1.3rem 1.4rem; }
.card h3 { margin: .5rem 0 .4rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; padding: .25em .8em; border-radius: 999px; background: var(--cyan); }
.tag--event { background: var(--purple); }
.tag--activity { background: var(--green); }
.tag--exhibit { background: var(--cyan); }

/* Tabs on the home page */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.tab { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: .6em 1.3em; font: 700 1rem var(--font-body); color: var(--plum); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.tab-panel[hidden] { display: none; }
.tab-panel > p { text-align: center; color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- Pricing (memberships, parties, sponsors) ---------- */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; align-items: stretch; }
.price {
  display: flex; flex-direction: column; border-radius: var(--radius); padding: 2rem 1.6rem; color: #fff; text-align: center;
  background: linear-gradient(180deg, #EC6FC0, #DD0097);
}
.price--2 { background: linear-gradient(180deg, #B07AD9, #7E36B8); }
.price--3 { background: linear-gradient(180deg, #F3A869, #E16C0F); }
.price--4 { background: linear-gradient(180deg, #4FC9D9, #0089A0); }
.price h3 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin: 0; }
.price__tagline { margin: .2rem 0 1rem; opacity: .95; }
.price__amount { font-size: 3rem; font-weight: 800; line-height: 1; margin: .3rem 0 1.2rem; }
.price__amount small { font-size: 1rem; font-weight: 600; }
.price ul { list-style: none; padding: 0; margin: 0 0 1.5rem; text-align: left; }
.price li { padding: .55rem 0 .55rem 1.7rem; border-top: 1px solid rgba(255,255,255,.3); position: relative; margin: 0; }
.price li::before { content: "✓"; position: absolute; left: .2rem; font-weight: 800; }
.price li.plus { padding-left: 0; text-align: center; font-weight: 700; }
.price li.plus::before { content: none; }
.price .btn { margin-top: auto; background: var(--plum); }
.price .btn:hover { background: #000; }
.fine { font-size: .82rem; color: var(--muted); }

/* ---------- Icon boxes (values, contact) ---------- */
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; }
.box { background: #fff; border-radius: 20px; padding: 1.5rem; box-shadow: 0 6px 24px rgba(31,11,44,.08); }
.box h3 { color: var(--magenta); margin-bottom: .3rem; }
.box p { margin: 0; color: var(--muted); }
.box__icon { font-size: 1.8rem; margin-bottom: .4rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; color: var(--plum); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--magenta); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-top: .7rem; color: var(--muted); }

/* Jump menu on Plan Your Visit */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.jump a { padding: .5em 1.1em; border-radius: 999px; background: #fff; border: 2px solid var(--line); text-decoration: none; color: var(--plum); font-weight: 700; font-size: .92rem; }
.jump a:hover { border-color: var(--magenta); color: var(--magenta); }

/* Embeds (Zeffy, maps, calendar) */
.embed { position: relative; width: 100%; border-radius: 20px; overflow: hidden; background: var(--soft); box-shadow: 0 6px 24px rgba(31,11,44,.1); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--zeffy { height: 620px; }
.embed--map { aspect-ratio: 16/9; }
.embed--calendar { aspect-ratio: 4/3; }
@media (max-width: 600px) { .embed--calendar { aspect-ratio: 3/4; } }

/* ---------- Footer ---------- */
.partners { padding: 3rem 0 2rem; text-align: center; }
.partners h2 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; color: var(--red); letter-spacing: .05em; text-transform: uppercase; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; margin-top: 1.5rem; }
.logos img { height: 56px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(.2); }
.cta-band { background: #EDE7F2; border-radius: var(--radius) var(--radius) 0 0; padding: 2.5rem 1.5rem; text-align: center; }
.cta-band h2 { font-family: var(--font-body); font-weight: 800; font-size: 1.6rem; }
.site-footer { background: var(--plum); color: #d9d2df; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ff9bd9; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-grid h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .6rem; }
.footer-logo img { height: 56px; width: auto; margin-bottom: 1rem; }
.footer-contact li { display: flex; gap: .6rem; }
.footer-contact span[aria-hidden] { color: var(--red); }
.stay h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; }
.stay h3 em { font-style: normal; color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
