/* TangoXchange — site styles */
:root {
  --red: #b82830;
  --red-dark: #8f1d24;
  --ink: #1f1c1d;
  --ink-soft: #4a4446;
  --paper: #faf6f1;
  --paper-2: #f1e9df;
  --white: #ffffff;
  --line: #e4d9cc;
  --night: #161314;
  --night-2: #221d1f;
  --cream: #f3ebe1;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow {
  font: 600 .78rem/1 var(--body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--ink); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 760px) {
  .site-header .wrap { height: 64px; }
  .logo img { height: 44px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font: 600 .95rem/1 var(--body); text-decoration: none;
  border: 2px solid var(--red); background: var(--red); color: var(--white);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn.ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn.outline { background: transparent; color: var(--red); }
.btn.outline:hover { background: var(--red); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  position: relative; color: var(--white);
  min-height: min(82vh, 760px);
  display: flex; align-items: flex-end;
  background: var(--night);
  overflow: hidden;
}
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,19,20,.15) 0%, rgba(22,19,20,.35) 45%, rgba(22,19,20,.88) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 64px; }
.hero .eyebrow { color: #f0b9bc; }
.hero h1 { max-width: 12ch; }
.hero p.lead { font-size: 1.15rem; max-width: 46ch; color: rgba(255,255,255,.88); margin-bottom: 28px; }

/* Page hero (inner pages) */
.page-hero { background: var(--night); color: var(--white); padding: 72px 0 56px; }
.page-hero .eyebrow { color: #f0b9bc; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 58ch; font-size: 1.1rem; margin: 0; }

/* Sections */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.band { background: var(--paper-2); }
.dark { background: var(--night); color: var(--cream); }
.dark h2, .dark h3 { color: var(--white); }
.dark .eyebrow { color: #f0b9bc; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); }
.dark .section-head p { color: rgba(243,235,225,.75); }

/* Class card */
.class-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(31,28,29,.35);
}
.class-card .body { padding: 40px; }
.class-card .art { background: var(--night); }
.class-card .art img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.facts svg { width: 20px; height: 20px; color: var(--red); margin-top: 3px; }
.facts strong { display: block; font-weight: 600; }
.facts span { color: var(--ink-soft); font-size: .95rem; }
.next-date {
  display: inline-block; background: #fbe9ea; color: var(--red-dark);
  font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
}
.next-date:empty { display: none; }
@media (max-width: 820px) {
  .class-card { grid-template-columns: 1fr; }
  .class-card .body { padding: 28px 22px; }
  .class-card .art { max-height: 420px; }
}

/* Teachers */
.teachers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.teacher { text-decoration: none; color: inherit; }
.teacher .photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.teacher .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.teacher:hover .photo img { transform: scale(1.04); }
.teacher h3 { font-size: 1.4rem; margin: 14px 0 2px; }
.teacher .role { font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 640px) { .teachers { grid-template-columns: 1fr; max-width: 420px; } }

.bio { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; padding: 48px 0; border-top: 1px solid var(--line); }
.bio:first-child { border-top: 0; padding-top: 0; }
.bio .photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.bio .photo img { width: 100%; height: 100%; object-fit: cover; }
.bio h2 { margin-bottom: 4px; }
.bio .role { color: var(--red); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.bio p { font-size: 1.08rem; max-width: 56ch; }
@media (max-width: 820px) { .bio { grid-template-columns: 1fr; gap: 20px; } .bio .photo { max-width: 420px; } }

/* Gallery */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; break-inside: avoid; border-radius: 6px; overflow: hidden; }
.gallery img { width: 100%; transition: opacity .2s; }
.gallery a:hover img { opacity: .88; }

.flyers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.flyers a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(31,28,29,.5); }
@media (max-width: 640px) { .flyers { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px; }
.pillars div { border-top: 2px solid var(--red); padding-top: 18px; }
.pillars h3 { font-size: 1.7rem; margin-bottom: 8px; }
.pillars p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* Calendar */
.notices { display: grid; gap: 14px; margin-top: 8px; }
.notice {
  display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: 18px 22px;
  box-shadow: 0 1px 0 var(--line);
}
.notice .date { text-align: center; font-family: var(--display); line-height: 1; }
.notice .date .m { font: 600 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.notice .date .d { font-size: 2.4rem; font-weight: 600; margin-top: 4px; }
.notice h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 600; margin: 0 0 2px; }
.notice p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.notice.cancel h3 { color: var(--red-dark); }
.empty { color: var(--ink-soft); font-style: italic; }

/* Contact */
.contact-card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: 0 1px 0 var(--line); }
.contact-card .email {
  font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 600;
  color: var(--ink); text-decoration: none; word-break: break-all;
  border-bottom: 2px solid var(--red);
}
.contact-card .email:hover { color: var(--red); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.social a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.social a:hover { border-color: var(--red); color: var(--red); }
.social svg { width: 18px; height: 18px; }

/* CTA band */
.cta { background: var(--red); color: var(--white); text-align: center; }
.cta h2 { color: var(--white); }
.cta p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 28px; font-size: 1.1rem; }
.cta .btn { background: var(--white); color: var(--red); border-color: var(--white); }
.cta .btn:hover { background: var(--night); color: var(--white); border-color: var(--night); }

/* Footer */
.site-footer { background: var(--night); color: rgba(243,235,225,.75); padding: 56px 0 40px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--white); font: 600 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: #f0b9bc; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .tag { font-family: var(--display); font-size: 1.8rem; color: var(--white); line-height: 1.1; margin-bottom: 10px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .82rem; color: rgba(243,235,225,.5); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.btn svg { width: 18px; height: 18px; }
