/* Root variables for palette and typography */
:root {
  --midnight: #0b1c2c;
  --charcoal: #101820;
  --teal: #4da1a9;
  --gold: #d8b46b;
  --sand: #f7f3eb;
  --light: #f5f7fb;
  --text: #1f2a36;
  --muted: #5b6773;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 14px;
  --transition: all 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  margin: 0 0 12px;
  color: var(--charcoal);
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section,
.hero {
  scroll-margin-top: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 8px;
}

.lead {
  max-width: 780px;
  margin: 0 auto;
  font-size: 17px;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 21, 33, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.logo-text {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, rgba(11, 28, 44, 0.9), rgba(16, 24, 32, 0.8)), url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 28, 44, 0.85), rgba(77, 161, 169, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 120px 0 100px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
  color: var(--white);
}

.subheadline {
  font-size: 18px;
  color: #dce5ef;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.trust-line {
  color: #e8f0f7;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold), #e6c685);
  color: var(--charcoal);
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: transparent;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* About */
.about {
  background: var(--light);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.icon-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(11, 28, 44, 0.07);
  border: 1px solid #e8edf3;
}

.icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(77, 161, 169, 0.12);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.icon-circle svg {
  width: 22px;
  height: 22px;
}

/* Programs */
.programs {
  background: var(--white);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.program-card {
  background: var(--sand);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid #e3d7c2;
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

/* Experience */
.experience {
  background: linear-gradient(180deg, #f7fafc, #eef3f8);
}

.experience-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.experience-media {
  display: grid;
  gap: 16px;
}

.image-card {
  border-radius: var(--radius);
  min-height: 180px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.primary-image {
  background-image: linear-gradient(135deg, rgba(11, 28, 44, 0.4), rgba(216, 180, 107, 0.35)), url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1000&q=80');
}

.secondary-image {
  background-image: linear-gradient(135deg, rgba(77, 161, 169, 0.35), rgba(11, 28, 44, 0.35)), url('https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1000&q=80');
}

.amenities {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.amenities li {
  background: var(--white);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e7edf3;
  box-shadow: 0 6px 14px rgba(11, 28, 44, 0.05);
}

.timeline {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid #dfe7ef;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f6;
}

.timeline-item:last-child {
  border-bottom: none;
}

.time {
  font-weight: 700;
  color: var(--teal);
}

/* Location */
.location {
  background: var(--white);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.map-embed iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.travel-box {
  margin-top: 18px;
  padding: 16px;
  background: rgba(77, 161, 169, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(77, 161, 169, 0.3);
}

/* Admissions */
.admissions {
  background: var(--light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid #e8edf3;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.step-number {
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 6px;
}

/* Contact */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}

.contact-details p strong {
  color: var(--charcoal);
}

.contact-form {
  background: var(--light);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid #dfe6ee;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-field label {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #cfd8e3;
  background: var(--white);
  font-size: 15px;
  transition: var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(77, 161, 169, 0.2);
}

.contact-form .btn {
  width: 100%;
  margin-top: 4px;
}

.error {
  border-color: #e28c8c;
  background: #fff5f5;
}

.error-message {
  min-height: 16px;
  font-size: 13px;
  color: #b23b3b;
  margin: 6px 0 0;
}

.form-status {
  margin-top: 10px;
  font-weight: 600;
  color: var(--teal);
  min-height: 18px;
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 20px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--white);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
}

/* Responsive nav */
@media (max-width: 840px) {
  .nav-links {
    position: absolute;
    top: 64px;
    right: 16px;
    background: rgba(10, 21, 33, 0.97);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    width: calc(100% - 32px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding: 100px 0 80px;
  }

  .section {
    padding: 64px 0;
  }

  .logo-text {
    display: none;
  }

  .logo-img {
    height: 38px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .footer-content {
    text-align: center;
  }
}
