/* Campus By — prototype stylesheet v2. Tokens per design-system/MASTER.md
   v2 restructure: persistent numbered sidebar nav, chunky black-outlined
   components, hard offset shadows, auto-scroll logo marquee — structural
   patterns pulled from the units.gr reference, recolored to our brand. */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800&display=swap');

:root {
  --brand-orange: #F5820A;
  --brand-orange-ink: #C2570A;
  --brand-teal: #0F9B8E;
  --brand-green: #2FA84F;
  --brand-gold: #C68A1E;
  --ink: #1C1815;
  --ink-muted: #6B6259;
  --surface: #FFFFFF;
  --bg: #FAF8F6;
  --bg-contrast: #171310;
  --border: #E8E2DB;
  --danger: #DC2626;
  --gradient-brand: linear-gradient(135deg, var(--brand-teal), var(--brand-green));

  --font-display: 'Alexandria', sans-serif;
  --font-body: 'Alexandria', sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 100px;
  --hard-shadow: 5px 5px 0 var(--ink);
  --hard-shadow-sm: 3px 3px 0 var(--ink);
  --shadow-card: 0 4px 20px rgba(28, 24, 21, 0.06);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --sidebar-w: 260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: clamp(36px, 5.2vw, 68px); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }

p { margin: 0; color: var(--ink-muted); }
a { color: inherit; text-decoration: none; }

.container { max-width: 1080px; margin-inline: auto; padding-inline: var(--space-3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--ink);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), background 0.15s, color 0.15s;
  min-height: 44px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--hard-shadow-sm);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--brand-teal); outline-offset: 2px; }
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--brand-orange); color: #fff; border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; }

/* ---------- Shell layout: persistent sidebar (right, RTL) ---------- */
/* Grid tracks follow inline-start under dir=rtl, so the first track (and
   first DOM child, the sidebar) lands on the right — which is what we want. */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-inline-start: 1px solid var(--border);
  background: var(--bg);
  overflow-y: auto;
}

.sidebar-topbar { display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 19px; font-weight: 800;
  margin-bottom: var(--space-2);
}
.logo img { width: 36px; height: 36px; border-radius: 9px; }

.topbar-actions { display: none; align-items: center; gap: 10px; }
.topbar-whatsapp { padding: 10px 16px; font-size: 14px; min-height: 40px; }
.topbar-whatsapp svg { width: 16px; height: 16px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-panel { display: flex; flex-direction: column; gap: 10px; }

.nav-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
  background: var(--surface);
  color: var(--ink);
}
.nav-card:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-shadow-sm); }
.nav-card .n { font-size: 12px; font-weight: 800; opacity: 0.6; display: inline; margin-inline-end: 8px; }
.nav-card svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-card.c1 { background: var(--brand-orange); color: #fff; }
.nav-card.c2 { background: var(--brand-teal); color: #fff; }
.nav-card.c3 { background: var(--brand-green); color: #fff; }
.nav-card.c4 { background: var(--ink); color: #fff; }
.nav-card.c5 { background: var(--brand-gold); color: #fff; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  border: 2px solid var(--ink); border-radius: var(--radius-pill);
  padding: 3px; margin-top: 4px;
}
.lang-switch a {
  flex: 1; text-align: center;
  padding: 7px 10px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; color: var(--ink-muted);
  transition: background 0.15s, color 0.15s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { background: var(--ink); color: #fff; }
.lang-switch a.is-active:hover { color: #fff; }

.sidebar-cta { margin-top: 8px; justify-content: center; }
.sidebar-contact {
  margin-top: auto;
  display: flex; gap: 10px;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  transition: transform 0.15s;
}
.icon-btn:hover { transform: scale(1.08); }
.icon-btn svg { width: 18px; height: 18px; }

.main-content { min-width: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-6) var(--space-5); }
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-5); align-items: center; }
.hero-copy p.lede { font-size: 18px; max-width: 46ch; margin-block: var(--space-2) var(--space-4); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: var(--hard-shadow);
}

/* ---------- Slider (real students, cycling) ----------
   Crossfade rather than a translating track: avoids RTL/flex width math
   entirely and is just as valid a reading of "keep sliding" (auto-cycling). */
.slider { position: relative; width: 100%; height: 100%; }
.slider-track { position: relative; width: 100%; height: 100%; }
.slider-track img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.slider-track img.active { opacity: 1; }
.slider-track img:first-child { opacity: 1; } /* CSS-only fallback if JS is delayed/blocked */
.slider-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
  background: rgba(28, 24, 21, 0.5);
  padding: 8px 10px; border-radius: var(--radius-pill);
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active { background: #fff; transform: scale(1.25); }

/* ---------- Path selector (Kick/Boost/Flex/Vibe pattern) ---------- */
.path-selector { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--space-4); }
.path-option {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--surface);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.path-option strong { display: block; font-size: 15px; }
.path-option span.sub { font-size: 13px; color: var(--ink-muted); }
.path-option.active { background: var(--ink); color: #fff; }
.path-option.active span.sub { color: rgba(255,255,255,0.7); }
.path-option:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-shadow-sm); }

/* ---------- Proof strip + marquee ---------- */
.proof-strip { background: var(--bg-contrast); color: #fff; padding-block: var(--space-4); overflow: hidden; }
.proof-strip .container { display: flex; align-items: center; gap: var(--space-4); }
.proof-stat { text-align: center; flex-shrink: 0; padding-inline-end: var(--space-4); border-inline-end: 1px solid rgba(255,255,255,0.15); }
.proof-stat strong { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--brand-orange); }
.proof-stat span { font-size: 12px; color: rgba(255,255,255,0.6); }

.marquee { flex: 1 1 0% !important; width: 100% !important; min-width: 0 !important; overflow: hidden !important; display: block !important; direction: ltr; }
.marquee-track { display: flex !important; align-items: center; gap: var(--space-3); width: max-content !important; will-change: transform; }
.marquee-chip {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  padding: 10px 22px; height: 64px;
  flex-shrink: 0;
}
.marquee-chip img { height: 100%; width: auto; max-width: 120px; object-fit: contain; }

/* ---------- Countries strip ---------- */
.countries-strip { padding-block: var(--space-3) var(--space-4); }
.countries-label { text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-muted); margin-bottom: var(--space-2); }
.countries-strip .marquee-track { gap: var(--space-2); }
.flag-chip {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 15px; font-weight: 600;
  flex-shrink: 0;
  background: var(--surface);
}
.flag-chip .flag { width: 22px; height: 15px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(28,24,21,0.08); }
/* .marquee forces direction:ltr on itself for the scroll-distance math; restore
   Arabic text order/shaping inside each chip specifically on the Arabic page. */
html[dir="rtl"] .flag-chip { direction: rtl; }

/* ---------- Highlight band (units.gr-style ticker divider: solid color, black text, no shadow) ---------- */
.highlight-band { padding-block: 16px; overflow: hidden; background: var(--brand-green); border-block: 2px solid var(--ink); }
.highlight-band .marquee-track { gap: var(--space-3); }
.highlight-chip {
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  color: var(--ink); white-space: nowrap; flex-shrink: 0;
}
.highlight-dot { color: var(--ink); opacity: 0.45; font-size: 13px; flex-shrink: 0; }

/* ---------- Sections ---------- */
section { padding-block: var(--space-6); }
.section-head { max-width: 640px; margin-bottom: var(--space-5); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 10px; font-size: 17px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }

.card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--hard-shadow); }

.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  margin-bottom: var(--space-2);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.service-item {
  display: flex; align-items: center; gap: 12px;
  padding: var(--space-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: transform 0.15s, box-shadow 0.15s;
}
.service-item:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-shadow-sm); }
.service-item .card-icon { width: 38px; height: 38px; margin-bottom: 0; border-radius: 10px; }
.service-item .card-icon svg { width: 18px; height: 18px; }
.service-item span { font-size: 14px; font-weight: 600; }

/* ---------- Journey ---------- */
.journey { background: var(--surface); border: 2px solid var(--ink); border-radius: 28px; padding: var(--space-5); }
.journey-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }

.journey-step {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 18px var(--space-2) var(--space-2);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.journey-step:hover { transform: translate(-3px, -3px); box-shadow: var(--hard-shadow-sm); }
.journey-step::before {
  content: attr(data-step);
  position: absolute; top: -18px; inset-inline-end: -4px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 68px; line-height: 1;
  color: var(--ink); opacity: 0.06;
  pointer-events: none;
}
.journey-step::after { content: ""; position: absolute; top: 0; inset-inline: 0; height: 5px; }
.journey-step:nth-child(4n+1)::after { background: var(--brand-orange); }
.journey-step:nth-child(4n+2)::after { background: var(--brand-teal); }
.journey-step:nth-child(4n+3)::after { background: var(--brand-green); }
.journey-step:nth-child(4n+4)::after { background: var(--ink); }

.journey-step-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.journey-step .num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  direction: ltr;
  color: #fff; flex-shrink: 0;
}
.journey-step:nth-child(4n+1) .num { background: var(--brand-orange); }
.journey-step:nth-child(4n+2) .num { background: var(--brand-teal); }
.journey-step:nth-child(4n+3) .num { background: var(--brand-green); }
.journey-step:nth-child(4n+4) .num { background: var(--ink); }
.journey-step .step-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1.5px solid var(--border); color: var(--ink);
  flex-shrink: 0;
}
.journey-step .step-icon svg { width: 17px; height: 17px; }
.journey-step h4 { position: relative; z-index: 1; margin: 0 0 4px; }
.journey-step p { position: relative; z-index: 1; font-size: 13px; }

/* ---------- Universities ---------- */
.uni-card { display: flex; flex-direction: column; gap: var(--space-2); }
.uni-card .top-row { display: flex; align-items: flex-start; justify-content: space-between; }
.uni-card .crest { height: 60px; width: 60px; object-fit: contain; }
.badge-check {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.badge-check svg { width: 16px; height: 16px; }

/* ---------- Story-style cards (diploma proof) ---------- */
.story-card { padding: 0; overflow: hidden; }
.story-card img { height: 220px; width: 100%; object-fit: cover; }
.story-card .body { padding: var(--space-3); }

/* ---------- Diploma equivalence: framed full certificate ---------- */
.diploma-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); align-items: start; }
.diploma-card {
  margin: 0;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--hard-shadow);
  display: flex; flex-direction: column;
}
.diploma-figure {
  /* soft matte "mount" so the whole portrait certificate sits framed, uncropped */
  background: radial-gradient(120% 100% at 50% 0%, #FBF7F1, #EFE8DF);
  padding: var(--space-4);
  display: flex; align-items: center; justify-content: center;
}
.diploma-figure img {
  width: 100%; height: auto;           /* natural aspect ratio → whole degree visible */
  max-height: 620px; object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(28, 24, 21, 0.22);
}
.diploma-caption {
  padding: var(--space-3);
  border-top: 2px solid var(--ink);
  background: var(--surface);
}
.diploma-caption h3 { margin-bottom: 6px; }
.diploma-caption p { font-size: 14px; }

/* ---------- Diploma note banner ---------- */
.note-banner {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-3);
  background: var(--brand-green); color: #fff;
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}
.note-banner .badge-check { flex-shrink: 0; background: var(--ink); }
.note-banner p { color: #fff; font-size: 15px; font-weight: 600; }

/* ---------- Dormitories bento gallery ---------- */
.dorm-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-areas: "big b1 b2" "big b3 b4";
  gap: var(--space-2);
  height: 520px;
}
.dorm-tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--ink);
}
.dorm-tile.big { grid-area: big; border-radius: var(--radius); }
.dorm-tile:nth-of-type(2) { grid-area: b1; }
.dorm-tile:nth-of-type(3) { grid-area: b2; }
.dorm-tile:nth-of-type(4) { grid-area: b3; }
.dorm-tile:nth-of-type(5) { grid-area: b4; }
.dorm-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}
.dorm-tile:hover img { transform: scale(1.06); }
.dorm-tile-label {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(23,19,16,0.85), rgba(23,19,16,0));
}
.dorm-tile-label h4 { color: #fff; margin-bottom: 2px; }
.dorm-tile-label p { color: rgba(255,255,255,0.85); font-size: 12px; }
.dorm-tile.big .dorm-tile-label h4 { font-size: 18px; }

/* ---------- Transparency: description + callout card (Boost Unit pattern) ---------- */
.transparency-layout { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: var(--space-5); align-items: start; }
.transparency-callout {
  background: var(--brand-orange);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: #fff;
  padding: var(--space-4);
  position: relative;
  box-shadow: var(--hard-shadow);
}
.transparency-callout .badge-check { position: absolute; top: -14px; inset-inline-start: -14px; border: 2px solid var(--ink); }
.transparency-callout ul { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: 12px; }
.transparency-callout li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.transparency-callout li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

/* ---------- Pricing (Kick/Boost/Flex/Vibe reference pattern) ---------- */
.pricing-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-4); align-items: start; }

.pricing-card-before {
  display: flex; flex-direction: column; gap: 10px;
}
.price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.price-old { font-size: 16px; color: var(--ink-muted); text-decoration: line-through; }
.price-new { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--brand-green); }
.discount-badge {
  display: inline-flex; align-self: flex-start;
  background: var(--brand-orange); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-pill);
}

.pricing-callout {
  background: var(--brand-teal);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: #fff;
  padding: var(--space-4);
  position: relative;
  box-shadow: var(--hard-shadow);
}
.pricing-callout .badge-check { position: absolute; top: -14px; inset-inline-start: -14px; background: var(--brand-green); border: 2px solid var(--ink); }
.pricing-callout h3 { color: #fff; margin: 4px 0 14px; }

.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table td { padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,0.25); font-size: 14px; }
.pricing-table td:last-child { width: 28px; text-align: end; }
.pricing-table td svg { width: 16px; height: 16px; }
.pricing-table tfoot td {
  border-bottom: none; border-top: 2px solid rgba(255,255,255,0.5);
  padding-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: 20px;
}

.pricing-note { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 12px; }
.pricing-disclaimer { font-size: 13px; color: var(--ink-muted); margin-top: var(--space-3); text-align: center; }

/* ---------- Partners teaser ---------- */
.partners-teaser {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: var(--space-4) var(--space-5);
  flex-wrap: wrap; gap: var(--space-3);
}

/* ---------- Final CTA ---------- */
.final-cta { background: var(--ink); color: #fff; border-radius: 28px; padding: var(--space-6); text-align: center; }
.final-cta h2 { color: #fff; margin-bottom: var(--space-2); }
.final-cta .btn-primary { margin-top: var(--space-2); }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-5) var(--space-4); border-top: 2px solid var(--ink); margin-top: var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
.footer-grid h4 { font-size: 13px; margin-bottom: var(--space-2); color: var(--ink-muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--ink-muted); padding-top: var(--space-3); border-top: 1px solid var(--border); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    grid-column: 1; grid-row: 1;
    position: sticky; top: 0; height: auto;
    overflow: visible; /* base rule sets overflow-y:auto, which clips .nav-panel's absolute dropdown to almost nothing */
    border-inline-start: none; border-bottom: 2px solid var(--ink);
    z-index: 40; padding: 12px var(--space-2);
    background: var(--bg);
  }
  .sidebar .logo { margin-bottom: 0; }
  .topbar-actions { display: flex; align-items: center; gap: 10px; }
  .topbar-whatsapp { background: var(--brand-teal); }
  .nav-toggle { display: flex; }

  .nav-panel {
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--bg);
    border-bottom: 2px solid var(--ink);
    padding: 0 var(--space-2);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s var(--ease-out), padding 0.3s var(--ease-out);
  }
  .nav-panel.open { max-height: 80vh; overflow-y: auto; padding: var(--space-2); }
  .nav-panel { gap: 8px; }
  .nav-card { padding: 11px 16px; }
  .sidebar-cta { padding: 11px 18px; min-height: auto; }
  .sidebar-contact { display: flex; justify-content: center; padding-top: 4px; margin-top: 4px; }
  .main-content { grid-column: 1; grid-row: 2; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 420px; margin-inline: auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-track { grid-template-columns: repeat(2, 1fr); }
  .transparency-layout { grid-template-columns: 1fr; }
  .pricing-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dorm-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "big big" "b1 b2" "b3 b4";
    height: auto;
  }
  .dorm-gallery .dorm-tile.big { height: 260px; }
  .dorm-gallery .dorm-tile:not(.big) { height: 180px; }
}
@media (max-width: 720px) {
  .diploma-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .diploma-figure img { max-height: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .path-selector { flex-direction: column; }
  .dorm-gallery {
    grid-template-columns: 1fr;
    grid-template-areas: "big" "b1" "b2" "b3" "b4";
  }
  .dorm-gallery .dorm-tile.big { height: 240px; }
  .dorm-gallery .dorm-tile:not(.big) { height: 200px; }

  /* Journey steps: the boxed-card grid gets cramped at phone width (7 items in
     2 columns, ~150px cards). Switch to a vertical timeline instead — a
     borderless list connected by a line, numbered dots doing the work the
     card chrome and ghost-numeral watermark did at desktop width. */
  .journey-track {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    position: relative;
  }
  .journey-track::before {
    content: "";
    position: absolute;
    inset-inline-start: 15px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: var(--border);
  }
  .journey-step {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    padding-inline-start: 44px;
    box-shadow: none !important;
    transform: none !important;
  }
  .journey-step::before,
  .journey-step::after { content: none; }
  .journey-step-top {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    margin-bottom: 0;
  }
  .journey-step .num { box-shadow: 0 0 0 4px var(--bg); }
  .journey-step .step-icon { display: none; }
  .journey-step h4 { font-size: 15px; margin-top: 4px; }
}
