/* Xplora Summer Centres – shared stylesheet
   Design system matched to xplorainternational.org */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/archivo-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Fragment Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fragment-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "TikTok Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/tiktok-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "TikTok Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/tiktok-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #F3F3F0;
  --ink: #010103;
  --lime: #ECFE54;
  --purple: #AE54FB;
  --pink: #FF6CF1;
  --blue: #89B5E8;
  --line: rgba(1, 1, 3, 0.15);
  --font-display: "Archivo", "Arial Black", Impact, sans-serif;
  --font-mono: "Fragment Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --font-body: "TikTok Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 80px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Typography ---------- */
h1, .h1 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.92; margin: 0; font-size: clamp(2.6rem, 8vw, 7.5rem); }
h2, .h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.95; margin: 0 0 0.6em; font-size: clamp(2rem, 5vw, 4.25rem); }
h3, .h3, .label { font-family: var(--font-mono); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.875rem; line-height: 1.4; margin: 0 0 0.75em; }
.label { display: block; margin-bottom: 1.25rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.4; max-width: 60ch; }
.mono { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.875rem; }

/* Placeholder text that must be replaced before launch */
.ph { background: rgba(255, 108, 241, 0.25); outline: 1px dashed var(--pink); padding: 0 0.25em; border-radius: 3px; font-family: var(--font-mono); font-size: 0.85em; text-transform: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(56px, 8vw, 120px) 0; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.section--dark { background: var(--ink); color: var(--bg); }
.section--lime { background: var(--lime); color: var(--ink); }
.section--blue { background: var(--blue); color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2--wide { grid-template-columns: 1.3fr 1fr; } }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.95em 1.75em; border-radius: 999px; background: var(--lime); color: var(--ink); font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; font-size: 1rem; text-decoration: none; border: 2px solid var(--lime); transition: transform .15s ease, background .15s ease, color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); background: var(--ink); color: var(--lime); border-color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--dark:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--sm { font-size: 0.8rem; padding: 0.7em 1.3em; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.logo svg, .logo img { height: 22px; width: auto; }
.site-header--onphoto .logo { color: #fff; }
.nav { display: none; }
.nav-pill { display: flex; align-items: center; background: var(--ink); border-radius: 999px; padding: 6px; }
.nav-pill a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 10px 16px; border-radius: 999px; }
.nav-pill a:hover, .nav-pill a[aria-current="page"] { background: rgba(255,255,255,0.14); }
.header-right { display: flex; align-items: center; gap: 10px; }
.btn-contact { display: none; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; background: var(--ink); color: #fff; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 84px; background: var(--ink); color: #fff; border-radius: 24px; padding: 12px; z-index: 60; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.1rem; padding: 14px 18px; border-radius: 16px; }
.mobile-nav a:hover { background: rgba(255,255,255,0.12); }
.mobile-nav .btn { margin: 8px 6px 6px; width: calc(100% - 12px); }
@media (min-width: 900px) {
  .nav { display: block; }
  .btn-contact { display: inline-flex; background: var(--ink); color: #fff; border-color: var(--ink); font-family: var(--font-body); font-weight: 600; text-transform: none; font-size: 0.95rem; padding: 12px 20px; }
  .btn-contact:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Hero (campus pages) ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1,1,3,0.35) 0%, rgba(1,1,3,0.05) 35%, rgba(1,1,3,0.75) 100%); }
.hero .wrap { padding-top: 140px; padding-bottom: clamp(40px, 6vw, 80px); }
.hero__place { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.95rem; margin-top: 1.25rem; }
.hero__kicker { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.875rem; margin-bottom: 1rem; }

/* ---------- Hero (index) ---------- */
.hero-index { background: var(--lime); color: var(--ink); padding-top: 160px; padding-bottom: clamp(56px, 8vw, 120px); text-align: center; }
.hero-index .lede { margin: 1.5rem auto 0; }

/* ---------- Key facts ---------- */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.fact svg { width: 32px; height: 32px; }
.fact dt { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.8rem; margin: 0 0 4px; }
.fact dd { margin: 0; font-weight: 600; font-size: 1.05rem; }
@media (min-width: 700px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1100px) { .facts--3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- Dates table ---------- */
.dates { width: 100%; border-collapse: collapse; margin-top: 8px; }
.dates th { font-family: var(--font-mono); text-transform: uppercase; font-weight: 400; font-size: 0.8rem; text-align: left; padding: 12px 12px; background: var(--ink); color: var(--bg); }
.dates td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
.dates tr:nth-child(even) td { background: rgba(1,1,3,0.03); }
.note { font-size: 0.9rem; opacity: 0.8; margin-top: 12px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 85%; scroll-snap-align: start; border-radius: 20px; overflow: hidden; background: #d9d9d4; aspect-ratio: 4 / 3; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .carousel__slide { flex-basis: calc(50% - 8px); } }
@media (min-width: 1100px) { .carousel__slide { flex-basis: calc(33.333% - 11px); aspect-ratio: 3 / 2; } }
.carousel__nav { display: none; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.carousel__btn { width: 52px; height: 52px; border-radius: 999px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.carousel__btn:hover { background: var(--lime); color: var(--ink); }
.carousel__btn svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .carousel__nav { display: flex; } }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--font-mono); text-transform: uppercase; font-size: 0.95rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .acc__icon { width: 28px; height: 28px; border-radius: 999px; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; font-family: var(--font-mono); font-size: 1.1rem; line-height: 1; }
.acc summary .acc__icon::before { content: "+"; }
.acc details[open] summary .acc__icon::before { content: "–"; }
.acc__body { padding: 0 0 24px; }
.acc__body dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.acc__body dt { font-weight: 600; }
.acc__body dd { margin: 0 0 6px; }
.acc__body ul { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 600px) { .acc__body ul { grid-template-columns: 1fr 1fr; } }
.acc__body li { padding-left: 1.4em; position: relative; }
.acc__body li::before { content: "↗"; position: absolute; left: 0; font-family: var(--font-mono); }

/* ---------- Photo layouts ---------- */
.photo { border-radius: 20px; overflow: hidden; background: #d9d9d4; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .grid-2--about { align-items: stretch; } .grid-2--about .photo--tall { aspect-ratio: auto; height: 100%; min-height: 420px; } }
.photo--wide { aspect-ratio: 16 / 10; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery .photo { aspect-ratio: 1 / 1; }
.gallery .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 700px) { .gallery { gap: 16px; } }
.placeholder-img { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #dcdcd6 0 12px, #d2d2cc 12px 24px); color: #55555a; font-family: var(--font-mono); text-transform: uppercase; font-size: 0.75rem; }

/* ---------- Map ---------- */
.map { border-radius: 20px; overflow: hidden; background: #d9d9d4; aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); }

/* ---------- Included list ---------- */
.included { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .included { grid-template-columns: 1fr 1fr; gap: 16px 32px; } }
.included li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 1.02rem; }
.included .tick { width: 28px; height: 28px; border-radius: 999px; background: var(--lime); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; margin-top: 1px; }
.included .tick svg { width: 14px; height: 14px; }
.section--dark .included .tick { background: var(--lime); }
.excursions { margin-top: 40px; }
.excursions h3 { margin-bottom: 1em; }
.excursions ul { display: grid; gap: 10px; }
.excursions li { padding-left: 1.4em; position: relative; }
.excursions li::before { content: "↗"; position: absolute; left: 0; font-family: var(--font-mono); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 14ch; margin-left: auto; margin-right: auto; }
.cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 2rem; }
.cta .btn { min-width: min(100%, 280px); }
.back { display: inline-block; margin-top: 2.5rem; font-family: var(--font-mono); text-transform: uppercase; font-size: 0.85rem; text-decoration: none; border-bottom: 1px solid currentColor; }
.back:hover { border-bottom-color: transparent; }

/* ---------- Index campus blocks ---------- */
.country { padding-top: clamp(48px, 7vw, 100px); }
.country__heading { display: flex; align-items: baseline; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 5vw, 64px); }
.country__heading h2 { margin: 0; }
.campus { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-bottom: clamp(40px, 6vw, 96px); }
.campus .photo { aspect-ratio: 4 / 3; }
.campus__city { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1rem; display: block; }
.campus h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.95; font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 0 0 0.6em; }
.campus p { max-width: 52ch; }
@media (min-width: 900px) {
  .campus { grid-template-columns: 1fr 1fr; }
  .campus--flip .photo { order: 2; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--bg); padding: clamp(64px, 8vw, 120px) 0 40px; }
.footer__tagline { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 400; max-width: 14ch; margin: 0 0 clamp(48px, 8vw, 120px); }
.footer__cols { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 640px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__cols { grid-template-columns: repeat(5, 1fr); } }
.footer h3 { color: var(--bg); margin-bottom: 1.2em; font-size: 0.8rem; }
.footer li { margin-bottom: 0.6em; font-size: 1.05rem; }
.footer a { color: var(--bg); text-decoration: underline; text-underline-offset: 0.2em; }
.footer a:hover { color: var(--lime); }
.footer a.btn { color: var(--ink); text-decoration: none; }
.footer a.btn:hover { color: var(--lime); }
.footer .social { display: flex; gap: 14px; margin-top: 24px; }
.footer .social a { display: inline-flex; width: 24px; height: 24px; }
.footer .social svg { width: 24px; height: 24px; fill: currentColor; }
.footer__wordmark { margin-top: clamp(56px, 8vw, 120px); color: var(--bg); }
.footer__wordmark svg { width: min(100%, 720px); height: auto; }
.footer__credits { margin-top: 32px; font-size: 0.78rem; opacity: 0.7; max-width: 90ch; }
.footer__credits a { text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; font-family: var(--font-mono); text-transform: uppercase; font-size: 0.75rem; opacity: 0.7; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
