/*
  Medicullum design tokens
  Palette: Deep Navy / White / Gold Accent / Soft Gray
  Type: Playfair Display (headings) + Inter (body)
*/

:root {
  --navy: #0a1f44;
  --navy-deep: #061530;
  --navy-800: #102a54;
  --navy-700: #16336a;
  --gold: #c9a227;
  --gold-light: #e6c65c;
  --white: #fcf5e7;
  --soft-gray: #f7f2e6;
  --ink: #17213b;
  --muted: #5b6478;
  --border: #e4e7ee;
  --success: #1f9d55;

  --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 31, 68, 0.10);
  --shadow-lg: 0 20px 60px rgba(10, 31, 68, 0.16);
  --shadow-gold: 0 10px 30px rgba(201, 162, 39, 0.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--soft-gray);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.font-serif-display {
  font-family: "Playfair Display", "Georgia", serif;
}

/* Layout helpers */
.container-xl {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 68, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(252, 245, 231, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 21, 48, 0.92);
  box-shadow: var(--shadow-md);
}

.nav-link {
  position: relative;
  color: rgba(252, 245, 231, 0.82);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.dropdown-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(201, 162, 39, 0.35);
}

.btn-outline-light {
  border: 1.5px solid rgba(252, 245, 231, 0.55);
  color: #fcf5e7;
  background: rgba(252, 245, 231, 0.04);
}

.btn-outline-light:hover {
  background: rgba(252, 245, 231, 0.14);
  border-color: #fcf5e7;
}

.btn-outline-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: #fcf5e7;
}

.btn-whatsapp {
  background: #21c063;
  color: #fcf5e7;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(33, 192, 99, 0.35);
}

.btn-sm {
  padding: 0.6rem 1.3rem;
  font-size: 0.875rem;
}

/* Glass */
.glass {
  background: rgba(252, 245, 231, 0.65);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(252, 245, 231, 0.5);
}

.glass-dark {
  background: rgba(10, 31, 68, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(252, 245, 231, 0.12);
}

/* Hero */
.hero-gradient {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(201, 162, 39, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(252, 245, 231, 0.06), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-800) 100%);
}

.hero-grid-overlay {
  background-image:
    linear-gradient(rgba(252, 245, 231, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 245, 231, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.badge-gold {
  background: rgba(201, 162, 39, 0.12);
  color: #9a7c1e;
}

.badge-navy {
  background: rgba(10, 31, 68, 0.08);
  color: var(--navy);
}

/* University card image */
.uni-media {
  position: relative;
  height: 12rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(135deg, var(--navy-800), var(--navy));
  overflow: hidden;
}

.uni-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 21, 48, 0) 40%, rgba(6, 21, 48, 0.55));
}

/* Stat counters */
.stat-number {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--navy);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Testimonial star rating */
.stars {
  color: #000000;
  letter-spacing: 0.15em;
}

/* Section dividers */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* Floating WhatsApp button */
.float-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
}

/* Process timeline connector */
.timeline-line {
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
}

/* Form inputs */
.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
  display: block;
}

.field-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  background: #fcf5e7;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

.field-input:invalid.touched {
  border-color: #d9534f;
}

.form-success {
  display: none;
}

.form-success.visible {
  display: flex;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(252, 245, 231, 0.75);
}

.footer-heading {
  color: #fcf5e7;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-link {
  color: rgba(252, 245, 231, 0.65);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(252, 245, 231, 0.08);
  color: #fcf5e7;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
}
