/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --astel-purple: #602060;
  --astel-purple-deep: #4a184a;
  --astel-gold: #d2a95a;
  --astel-ink: #222222;
  --astel-paper: #f7f4fb;
  --astel-paper-soft: #faf8ff;
  --astel-border: #e1d8f0;
  --astel-muted: #7d6f9a;
  --astel-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.07);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --transition-fast: 0.18s ease-out;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--astel-ink);
  background: radial-gradient(circle at top left, #fdfbff 0, #f3ecff 40%, #f8f3ff 100%);
  line-height: 1.6;
}

/* ---------- Layout ---------- */

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ---------- Container ---------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Top Bar ---------- */

.top-bar {
  background: #ffffffcc;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--astel-muted);
}

.top-bar-inner span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--astel-gold);
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: #ffffffee;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(34, 12, 44, 0.06);
  position: sticky;
  top: 1.4rem;
  margin: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  z-index: 40;
}

@media (max-width: 768px) {
  .site-header {
    margin: 0;
    border-radius: 0 0 18px 18px;
    top: 0;
  }
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1.2rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--astel-purple);
  background: var(--astel-paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--astel-purple-deep);
}

.brand-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--astel-muted);
}

/* Nav */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-link {
  position: relative;
  padding-bottom: 0.15rem;
  color: var(--astel-muted);
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--astel-purple), var(--astel-gold));
  border-radius: 999px;
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--astel-purple-deep);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--astel-purple-deep);
}

.nav-link.active::after {
  width: 100%;
}

/* Enroll Button */

.btn-enroll {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  background: radial-gradient(circle at top left, var(--astel-gold), #fbe8b8);
  color: #3b2205;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 20px rgba(154, 99, 22, 0.23);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-enroll span.icon {
  font-size: 1.05rem;
}

.btn-enroll:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(154, 99, 22, 0.3);
  background: radial-gradient(circle at top left, #f9d47d, var(--astel-gold));
}

/* Mobile nav */

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--astel-purple-deep);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
    align-items: flex-start;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .btn-enroll {
    width: 100%;
    justify-content: center;
  }

  .menu-toggle {
    display: inline-block;
  }
}

/* ---------- Hero / Page headers ---------- */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.23em;
  font-size: 0.72rem;
  color: var(--astel-muted);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--astel-purple-deep);
  margin: 0 0 0.75rem;
}

.hero-title span.highlight {
  background: linear-gradient(120deg, var(--astel-purple), var(--astel-gold));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 0.98rem;
  color: var(--astel-muted);
  max-width: 32rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--astel-muted);
}

.hero-meta strong {
  color: var(--astel-purple-deep);
}

/* Hero card */

.hero-card {
  background: linear-gradient(145deg, #ffffff, var(--astel-paper-soft));
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--astel-shadow-soft);
  border: 1px solid var(--astel-border);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.75rem;
}

.hero-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--astel-muted);
}

.hero-card-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.1rem;
  color: var(--astel-purple-deep);
}

.hero-card-detail {
  font-size: 0.86rem;
  color: var(--astel-muted);
}

.hero-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.pill {
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(96, 32, 96, 0.15);
  font-size: 0.74rem;
  color: var(--astel-purple);
  background: rgba(250, 245, 255, 0.65);
}

.hero-card-aside {
  border-radius: 18px;
  background: radial-gradient(circle at top, #f9f3ff, #f6f1ff);
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-badge {
  font-size: 0.78rem;
  color: var(--astel-purple);
}

.hero-badge span.year {
  font-weight: 600;
}

.hero-mini {
  font-size: 0.78rem;
  color: var(--astel-muted);
  margin-top: 0.35rem;
}

.hero-card-aside .btn-enroll {
  margin-top: 0.75rem;
  justify-content: center;
  width: 100%;
}

/* Hero image */

.hero-figure {
  position: relative;
}

.hero-photo-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(38, 11, 58, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-chip {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--astel-purple-deep);
}

/* ---------- Sections / Cards ---------- */

.section {
  padding: 2.75rem 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 1.75rem;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--astel-muted);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.7rem;
  margin: 0 0 0.3rem;
  color: var(--astel-purple-deep);
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--astel-muted);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tile-grid {
    grid-template-columns: 1fr;
  }
}

.tile {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--astel-border);
  box-shadow: 0 14px 30px rgba(33, 7, 52, 0.04);
}

.tile-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--astel-muted);
  margin-bottom: 0.35rem;
}

.tile-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--astel-purple-deep);
  margin-bottom: 0.35rem;
}

.tile-body {
  font-size: 0.86rem;
  color: var(--astel-muted);
}

/* Academics / sports highlight rows */

.highlight-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .highlight-row {
    grid-template-columns: 1fr;
  }
}

.highlight-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  border: 1px solid var(--astel-border);
  box-shadow: var(--astel-shadow-soft);
}

/* ---------- Enrolment form ---------- */

.enroll-shell {
  padding: 3rem 0 3.5rem;
}

.enroll-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .enroll-layout {
    grid-template-columns: 1fr;
  }
}

.enroll-intro-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  color: var(--astel-muted);
  margin-bottom: 0.7rem;
}

.enroll-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 2rem;
  color: var(--astel-purple-deep);
  margin: 0 0 0.6rem;
}

.enroll-blurb {
  font-size: 0.95rem;
  color: var(--astel-muted);
  margin-bottom: 1rem;
  max-width: 26rem;
}

.enroll-note {
  font-size: 0.82rem;
  color: var(--astel-muted);
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(96, 32, 96, 0.03);
  border: 1px dashed rgba(96, 32, 96, 0.18);
}

/* Form card */

.form-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 1.3rem 1.4rem 1.4rem;
  border: 1px solid var(--astel-border);
  box-shadow: var(--astel-shadow-soft);
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.25rem;
  color: var(--astel-purple-deep);
  margin: 0;
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--astel-muted);
}

.form-tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 32, 96, 0.18);
  background: rgba(247, 239, 255, 0.7);
  color: var(--astel-purple);
}

/* Groups */

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group legend {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--astel-muted);
  margin-bottom: 0.35rem;
}

.label {
  display: block;
  font-size: 0.8rem;
  color: var(--astel-muted);
  margin-bottom: 0.2rem;
}

.required::after {
  content: " *";
  color: #b3261e;
}

.input,
.select,
.textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--astel-border);
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast);
}

.textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 80px;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(96, 32, 96, 0.6);
  box-shadow: 0 0 0 1px rgba(96, 32, 96, 0.18);
  background: #ffffff;
}

.helper {
  font-size: 0.75rem;
  color: var(--astel-muted);
  margin-top: 0.15rem;
}

/* Form footer */

.form-footer {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(120deg, var(--astel-purple), var(--astel-purple-deep));
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(45, 10, 72, 0.38);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(45, 10, 72, 0.45);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(45, 10, 72, 0.3);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(210, 201, 232, 0.8);
  background: #fbf9ff;
  margin-top: 2.5rem;
}

.footer-inner {
  padding: 1.6rem 0 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--astel-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--astel-muted);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ---------- Utility ---------- */

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  background: rgba(247, 239, 255, 0.8);
  border: 1px solid rgba(96, 32, 96, 0.12);
  font-size: 0.78rem;
  color: var(--astel-purple);
}

.text-small {
  font-size: 0.82rem;
}

.mt-1 {
  margin-top: 0.4rem;
}

.mt-2 {
  margin-top: 0.8rem;
}

.mt-3 {
  margin-top: 1.2rem;
}
