/* ============================================================
   Σχολή Μπαλέτου Φλώρας Μουστάκη — Flora's Ballet
   ------------------------------------------------------------
   Minimal, photography-led, classic-feminine theme. Cormorant
   Garamond display + Inter body. Palette: plum, rose, soft pink,
   cream, greige, hairline. Quiet, smooth motion throughout.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #FFF7FA;          /* warm near-white page background */
  --surface: #FFFFFF;
  --cream: #FBEAEF;       /* soft pink wash for dark-on-light blocks */

  /* Ink (plum family) — headings & body */
  --ink: #43232F;         /* plum: headings, body, dark sections */
  --ink-soft: #5A3340;    /* softened plum for long-form body text */
  --muted: #7E6A66;       /* greige, darkened to AA for body meta */
  --muted-2: #6F5B57;     /* darker still for small UPPERCASE meta */

  /* Lines */
  --line: #E6D6DA;        /* hairline borders / dividers */
  --line-soft: #F0E4E8;

  /* Accent (rose family) */
  --accent: #A8506C;      /* deep rose: links/CTAs (WCAG AA on white) */
  --accent-hover: #8A3A55;
  --rose: #C77E92;        /* bright rose: underlines, dots — decoration only */
  --soft-pink: #E7A6B7;   /* hovers, chips, decorative */

  /* Type */
  --font-serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(67, 35, 47, 0.05);
  --shadow-md: 0 10px 30px rgba(67, 35, 47, 0.08);
  --shadow-lg: 0 28px 64px rgba(67, 35, 47, 0.14);

  --container: 1140px;
  --transition: 240ms cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  z-index: 200;
  padding: 9px 16px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 160ms ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
html, body { margin: 0; padding: 0; }
/* Always reserve the scrollbar gutter so the centered layout doesn't shift
   horizontally when navigating between tall (scrollbar) and short (no
   scrollbar) pages. */
html { scrollbar-gutter: stable; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-serif); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 247, 250, 0.82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.brand-logo {
  height: 70px;
  width: auto;
  display: block;
}

/* ----- Desktop nav ----- */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link,
.nav-dropdown-trigger {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  padding: 8px 0;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition);
}
.nav-link:hover,
.nav-dropdown-trigger:hover { color: var(--ink); }
.nav-link.active,
.nav-dropdown.active .nav-dropdown-trigger { color: var(--ink); }
.nav-link.active::after,
.nav-dropdown.active .nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
}
.nav-dropdown-trigger .chev { transition: transform var(--transition); }
.nav-dropdown[data-open="true"] .nav-dropdown-trigger .chev { transform: rotate(180deg); }

/* ----- Dropdown ----- */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 90;
}
.dropdown-menu::before {
  /* hover bridge so the menu doesn't close in the gap below the trigger */
  content: "";
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
}
.nav-dropdown[data-open="true"] .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: var(--cream);
  color: var(--accent);
}

.nav-cta {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

/* ----- Hamburger ----- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--cream); }

/* ----- Mobile menu ----- */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(67, 35, 47, 0.42);
  backdrop-filter: blur(2px);
  animation: fade-in 200ms ease;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 96;
  width: min(86vw, 360px);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  animation: slide-in 280ms cubic-bezier(.2, .7, .2, 1);
}
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-head img { height: 52px; width: auto; }
.mobile-close {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.mobile-close:hover { background: var(--cream); }
.mobile-link,
.mobile-sub-trigger {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 13px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-link:hover,
.mobile-sub-trigger:hover { color: var(--accent); background: var(--cream); }
.mobile-link.active { color: var(--accent); }
.mobile-sub-trigger .chev { transition: transform var(--transition); }
.mobile-sub-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mobile-sub {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 320ms cubic-bezier(.2, .7, .2, 1);
}
.mobile-sub.open { max-height: 200px; }
.mobile-sub a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 11px 8px;
}
.mobile-sub a:hover { color: var(--accent); }
.mobile-cta {
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 13px;
  border-radius: 999px;
}
.mobile-cta:hover { background: var(--accent-hover); color: #fff; }

/* ===== Layout shell ===== */
main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px 24px;
}
#main-content:focus { outline: none; }
.page { animation: fade-up 380ms cubic-bezier(.2, .7, .2, 1); }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(.2, .7, .2, 1),
              transform 700ms cubic-bezier(.2, .7, .2, 1),
              border-color 200ms ease,
              box-shadow 200ms ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Section primitives ===== */
section.block {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
section.block:first-of-type { border-top: none; }
.section-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 36px;
}
.section-kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-label h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
}
.section-label-action { margin-left: auto; align-self: center; }
.section-center { text-align: center; flex-direction: column; align-items: center; gap: 0; }
.section-center .section-kicker { margin-bottom: 10px; }
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: color var(--transition), gap var(--transition);
}
.view-all:hover { gap: 9px; color: var(--accent-hover); }
.view-all svg { transition: transform var(--transition); }
.view-all:hover svg { transform: translateX(2px); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ===== Hero carousel ===== */
.carousel {
  position: relative;
  margin-top: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream);
  isolation: isolate;
}
.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1000ms cubic-bezier(.4, 0, .2, 1);
  will-change: opacity;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img,
.carousel-slide picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-slide img { transform: scale(1.04); transition: transform 6000ms ease-out; }
.carousel-slide.active img { transform: scale(1); }
.carousel-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(67, 35, 47, 0.30) 0%, rgba(67, 35, 47, 0) 32%),
    linear-gradient(0deg, rgba(67, 35, 47, 0.62) 0%, rgba(67, 35, 47, 0.10) 38%, rgba(67, 35, 47, 0) 60%);
  z-index: 2;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(67, 35, 47, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background var(--transition), transform var(--transition);
}
.carousel-arrow:hover { background: rgba(67, 35, 47, 0.5); }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }
.carousel-arrow.prev:hover { transform: translateY(-50%) translateX(-2px); }
.carousel-arrow.next:hover { transform: translateY(-50%) translateX(2px); }
/* On touch devices, swipe + dots are enough; the arrows only overlap the photo. */
@media (hover: none) {
  .carousel-arrow { display: none; }
}
.carousel-dots {
  position: absolute;
  z-index: 4;
  left: 0; right: 0; bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}
.carousel-dot:hover { background: rgba(255, 255, 255, 0.85); }
.carousel-dot.active {
  background: #fff;
  width: 26px;
  border-radius: 999px;
}

/* ===== Home title block ===== */
.home-intro {
  text-align: center;
  padding: 56px 0 8px;
  max-width: 760px;
  margin: 0 auto;
}
.home-eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.4vw, 12.5px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.home-intro h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.home-intro .sub {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 0;
}

/* ===== «Γιατί εμάς» ===== */
.whyus-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.whyus-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.whyus-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.whyus-point:last-child { border-bottom: none; }
.whyus-point .mark {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  margin-top: 1px;
}
.whyus-point p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.whyus-photos {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr; /* upright frame narrow, wide frame broad */
  gap: 18px;
  align-items: end; /* bottoms align; the taller portrait staggers up for an editorial feel */
}
.whyus-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--cream);
}
.whyus-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.whyus-photo:hover img { transform: scale(1.05); }
.whyus-photo.portrait { aspect-ratio: 3 / 4; }
/* This shot is a cropped landscape; frame it on the foreground skirts. */
.whyus-photo.portrait img { object-position: 70% center; }
.whyus-photo.landscape { aspect-ratio: 3 / 2; }

/* ===== «Τα μαθήματα» ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.course-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ink);
}
.course-media { position: absolute; inset: 0; }
.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 800ms cubic-bezier(.2, .7, .2, 1), filter var(--transition);
}
.course-card:hover .course-media img { transform: scale(1.06); filter: saturate(1.04); }
.course-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
    rgba(40, 18, 26, 0.92) 0%,
    rgba(45, 20, 29, 0.62) 32%,
    rgba(67, 35, 47, 0.15) 64%,
    rgba(67, 35, 47, 0.05) 100%);
  z-index: 1;
}
.course-body {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding: 22px 22px 24px;
  color: #fff;
}
.course-body h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 9px;
  color: #fff;
  letter-spacing: 0.01em;
}
.course-body p {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 460ms cubic-bezier(.2, .7, .2, 1), opacity 360ms ease, margin var(--transition);
}
.course-card:hover .course-body p,
.course-card:focus-within .course-body p { max-height: 220px; opacity: 1; }
.course-body .course-rule {
  width: 34px;
  height: 2px;
  background: var(--soft-pink);
  border-radius: 2px;
  margin: 0 0 12px;
}

/* ===== News (cards / grids) ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  border-color: var(--soft-pink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.news-card .cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--cream) 0%, #f3dfe6 100%);
  position: relative;
  overflow: hidden;
}
.news-card .cover .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }
.news-card:hover .cover img { transform: scale(1.05); }
.news-card .cover.cover-align-top img { object-position: top center; }
.news-card .body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.news-card .meta {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.news-card .meta .meta-loc { color: var(--muted); }
.news-card h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 9px;
  text-wrap: balance;
}
.news-card p {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.news-card .read {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ===== List pages ===== */
.list-page { padding: 28px 0 0; }
.page-head { margin: 0 0 40px; }
.page-head .section-kicker { margin-bottom: 10px; }
.page-head h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
  text-wrap: balance;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 16px;
  max-width: 640px;
  line-height: 1.6;
}
.list-empty { color: var(--muted); font-size: 15px; font-family: var(--font-sans); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 30px;
  transition: gap var(--transition);
}
.back-link:hover { gap: 10px; }

/* ===== School page ===== */
.school-page { padding: 28px 0 0; max-width: 820px; margin: 0 auto; }
.school-block { margin: 0 0 44px; }
.school-block:last-child { margin-bottom: 0; }
.school-lead {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 8px;
  text-wrap: balance;
}
.school-h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.school-h2::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
  flex-shrink: 0;
}
.prose p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.prose p:last-child { margin-bottom: 0; }
@media (min-width: 720px) { .prose p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; } }
.prose strong { color: var(--ink); font-weight: 600; }

.school-goals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.goal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 24px 22px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.goal-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--rose);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 360ms cubic-bezier(.2, .7, .2, 1);
}
.goal-card:hover::before { transform: scaleY(1); }
.goal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--soft-pink); }
.goal-card h3 {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.2;
}
.goal-card p {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ===== Teachers page ===== */
.teachers-page { padding: 28px 0 0; }
.teacher-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.teacher-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1072 / 1500;
  background: var(--cream);
  position: sticky;
  top: 108px;
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-name {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 4px;
  line-height: 1.1;
}
.teacher-role {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.teacher-bio p {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
@media (min-width: 720px) {
  .teacher-bio p { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
}
.teacher-highlights {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.teacher-highlights h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
}
.highlight {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.highlight:last-child { margin-bottom: 0; }
.highlight .dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose);
  margin-top: 8px;
}
.highlight p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.highlight p strong { color: var(--ink); font-weight: 600; }

/* ===== Competitions page ===== */
.comp-page { padding: 28px 0 0; }
.comp-intro {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 660px;
  margin: 0 0 44px;
}
@media (min-width: 720px) {
  .comp-intro { text-align: justify; text-justify: inter-word; }
}
.comp-year {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.comp-year:last-of-type { border-bottom: 1px solid var(--line); }
.comp-year-label {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  position: sticky;
  top: 108px;
  align-self: start;
}
.comp-events { display: flex; flex-direction: column; gap: 24px; }
.comp-event-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.comp-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.comp-results li {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.comp-results li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--soft-pink);
  border: 1px solid var(--rose);
}
.comp-note {
  margin-top: 28px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--muted);
}
.comp-note a { color: var(--accent); font-weight: 600; }

/* ===== Article ===== */
.article { max-width: 760px; margin: 0 auto; padding: 28px 0 0; }
.article-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.article-meta .meta-loc { color: var(--muted); }
.article h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 32px;
  color: var(--ink);
  text-wrap: balance;
}
.article-cover {
  margin: 0 0 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cream);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card .cover.cover-align-top img,
.article-cover.cover-align-top img { object-position: top center; }
.article-body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink-soft);
}
@media (min-width: 720px) {
  .article-body { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
}
.article-body p { margin: 0 0 22px; }
.article-body strong { color: var(--ink); font-weight: 600; }

.article-gallery {
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.article-gallery .photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  position: relative;
  cursor: pointer;
  transition: transform var(--transition);
}
.article-gallery .photo:hover { transform: scale(1.01); }
.article-gallery .photo img { width: 100%; height: 100%; object-fit: cover; }
.article-gallery .photo.photo-align-top img { object-position: top center; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(40, 18, 26, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: lightbox-in 180ms ease-out;
}
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: min(100%, 1100px);
  max-height: 100%;
  width: auto; height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-close:focus-visible { outline-color: #fff; }
@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; }
}

.article-share {
  margin-top: 44px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.article-share .share-label {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--muted);
  margin-right: 2px;
}
.article-share a,
.article-share button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: all var(--transition);
}
.article-share a:hover,
.article-share button:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
  background: var(--cream);
}
.article-share button.copied { color: var(--accent); border-color: var(--accent); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.article-sources {
  margin-top: 32px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.article-sources a { color: var(--accent); }

/* ===== Contact ===== */
.contact-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.contact-row .ico-badge {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--cream);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-row .label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 2px 0 3px;
}
.contact-row .value {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
}
.contact-row .value a { color: var(--ink); }
.contact-row .value a:hover { color: var(--accent); }
.contact-row .value .contact-line + .contact-line { margin-top: 2px; }
.hours-line {
  display: flex;
  gap: 14px;
}
.hours-line .day { width: 165px; flex-shrink: 0; }
.hours-line .day,
.hours-line .time { white-space: nowrap; }
.hours-line .time { color: var(--muted); }
.contact-social { display: flex; gap: 10px; margin-top: 6px; }
.contact-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all var(--transition);
}
.contact-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 340px;
  background: var(--cream);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ===== Not found ===== */
.notfound {
  max-width: 560px;
  margin: 0 auto;
  padding: 88px 0 96px;
  text-align: center;
}
.notfound-code {
  font-family: var(--font-serif);
  font-size: clamp(64px, 12vw, 104px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--soft-pink);
  line-height: 1;
  margin-bottom: 12px;
}
.notfound h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
}
.notfound-sub { margin: 0 0 32px; font-family: var(--font-sans); font-size: 16px; color: var(--muted); }
.notfound-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  margin-top: 32px;
}
.site-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 28px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}
.footer-brand img { height: 92px; width: auto; margin-bottom: 18px; border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }
.footer-brand p {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(251, 234, 239, 0.72);
  margin: 0;
  max-width: 30ch;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft-pink);
  margin: 6px 0 16px;
}
.footer-col p, .footer-col a {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(251, 234, 239, 0.82);
  margin: 0 0 6px;
  display: block;
}
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(251, 234, 239, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(251, 234, 239, 0.16);
}
.footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: rgba(251, 234, 239, 0.6);
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .course-body p { max-height: 220px; opacity: 1; } /* always show text on touch */
  .whyus-shell { grid-template-columns: 1fr; gap: 36px; }
  .contact-shell { grid-template-columns: 1fr; gap: 28px; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .teacher-card { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .teacher-photo { position: static; max-width: 360px; }
  .school-goals { grid-template-columns: 1fr; }
  .site-header-inner { padding: 10px 20px; }
  main { padding: 0 20px 16px; }
  .comp-year { grid-template-columns: 1fr; gap: 12px; }
  .comp-year-label { position: static; }
}
@media (max-width: 560px) {
  .courses-grid { grid-template-columns: 1fr; }
  .course-card { aspect-ratio: 16 / 11; }
  .carousel-viewport { aspect-ratio: 4 / 5; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .brand-logo { height: 56px; }
  .carousel-arrow { width: 40px; height: 40px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .carousel-slide img { transform: none !important; }
}
