/* ============================================================
   AVANTA INSTITUTE OF AVIATION EXCELLENCE
   Design System — main.css
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Alata&family=Inter:wght@300;400;500;600;700;800&family=Rajdhani:wght@400;500;600;700&display=swap");



/* ─── CSS Custom Properties ─── */
:root {
  /* Brand Colors */
  --navy: #371515;
  --navy-mid: #440808;
  --navy-light: #1a3f70;
  --navy-dark: #371515;
  --gold: #d4af37;
  --gold-light: #f0d060;
  --gold-pale: #fdf6d8;
  --gold-dark: #a8891f;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --cream: #fefcf3;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #eef1f7;
  --gray-200: #dde2ee;
  --gray-300: #c4cce0;
  --gray-400: #8f9ec0;
  --gray-500: #371515;
  --gray-600: #371515;
  --gray-700: #2e3a5c;
  --gray-800: #1b2540;
  --gray-900: #0a0f1e;

  /* Semantic */
  --text-primary: #071b3b;
  --text-secondary: #371515;
  --text-muted: #371515;
  --text-light: rgba(255, 255, 255, 0.85);
  --text-gold: #d4af37;

  /* Glass */
  --glass-white: rgba(255, 255, 255, 0.08);
  --glass-white-md: rgba(255, 255, 255, 0.12);
  --glass-navy: rgba(7, 27, 59, 0.85);
  --glass-gold: rgba(212, 175, 55, 0.15);

  /* Borders */
  --border-light: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-navy: rgba(7, 27, 59, 0.15);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(7, 27, 59, 0.08), 0 1px 2px rgba(7, 27, 59, 0.06);
  --shadow-md:
    0 4px 16px rgba(7, 27, 59, 0.12), 0 2px 6px rgba(7, 27, 59, 0.08);
  --shadow-lg:
    0 10px 40px rgba(7, 27, 59, 0.15), 0 4px 16px rgba(7, 27, 59, 0.1);
  --shadow-xl:
    0 20px 60px rgba(7, 27, 59, 0.2), 0 8px 24px rgba(7, 27, 59, 0.12);
  --shadow-gold: 0 4px 24px rgba(212, 175, 55, 0.25);
  --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.2);

  /* Typography */
  --font-display: "Alata", Georgia, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: "Rajdhani", sans-serif;

  /* Spacing */
  --section-py: 100px;
  --section-py-sm: 60px;
  --container: 1280px;
  --container-md: 960px;
  --container-sm: 720px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 280ms;
  --duration-slow: 500ms;

  /* Z-index */
  --z-sticky: 100;
  --z-modal: 500;
  --z-toast: 600;
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-md {
  width: 100%;
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Section Utilities ─── */
.section {
  padding: var(--section-py) 0;
}

.section-sm {
  padding: 60px 0;
}

.section-label {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-label::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 20px;
}

.section-title em {
  font-style: normal;
  color: var(--gold);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
}

.section-header {
  margin-bottom: 64px;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-label {
  justify-content: center;
}

.section-header--center .section-subtitle {
  margin: 0 auto;
}

/* ─── Typography Scale ─── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
}

.text-display {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
}

.text-hero {
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
}

.text-xl {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
}

.text-lg {
  font-size: 1.25rem;
  font-weight: 600;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-gold {
  color: var(--gold);
}
.text-navy {
  color: var(--navy);
}
.text-white {
  color: var(--white);
}
.text-muted {
  color: var(--text-muted);
}
.text-center {
  text-align: center;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.btn-primary::before {
  background: rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 14px 0;
  border-radius: 0;
}

.btn-ghost:hover {
  gap: 14px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8125rem;
}

/* ─── Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge-gold {
  background: var(--gold-pale);
  color: var(--gold-dark);
  border: 1px solid var(--border-gold);
}

.badge-navy {
  background: var(--navy);
  color: var(--white);
}

.badge-glass {
  background: var(--glass-white);
  color: var(--white);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

/* ─── Cards ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.card-glass {
  background: var(--glass-white);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.card-navy {
  background: var(--navy-mid);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Grid System ─── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  border: none;
  margin: 0;
}

.divider-gold {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ─── Backgrounds ─── */
.bg-navy {
  background-color: var(--navy);
}
.bg-navy-mid {
  background-color: var(--navy-mid);
}
.bg-off-white {
  background-color: var(--off-white);
}
.bg-cream {
  background-color: var(--cream);
}
.bg-gold {
  background-color: var(--gold);
}
.bg-dark {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.bg-navy-gradient {
  background: linear-gradient(
    135deg,
    var(--navy-dark) 0%,
    var(--navy) 50%,
    var(--navy-mid) 100%
  );
}

.bg-section-alt {
  background: var(--off-white);
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Delay utilities */
.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 200ms;
}
.delay-300 {
  transition-delay: 300ms;
}
.delay-400 {
  transition-delay: 400ms;
}
.delay-500 {
  transition-delay: 500ms;
}
.delay-600 {
  transition-delay: 600ms;
}
.delay-700 {
  transition-delay: 700ms;
}
.delay-800 {
  transition-delay: 800ms;
}

/* ─── Gold Line ─── */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.gold-line--center {
  margin: 0 auto 24px;
}

/* ─── Page Hero ─── */
.page-hero {
  background: var(--bg-navy-gradient);
  background: linear-gradient(
    135deg,
    var(--navy-dark) 0%,
    var(--navy) 60%,
    var(--navy-mid) 100%
  );
  padding: 50px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color:var(--navy-dark);
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero__title em {
  color: var(--gold);
  font-style: normal;
}

.page-hero__sub {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 560px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast);
}

.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb span {
  color: var(--gold);
}
.breadcrumb .sep {
  opacity: 0.4;
}

/* ─── Decorative ─── */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.12) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--gray-50);
}
::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ─── Selection ─── */
::selection {
  background: rgba(212, 175, 55, 0.25);
  color: var(--navy);
}

/* ─── Focus ─── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ─── Print ─── */
@media print {
  .no-print {
    display: none !important;
  }
}

/* ─── Responsive Breakpoints ─── */
@media (max-width: 1200px) {
  :root {
    --section-py: 80px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  :root {
    --section-py: 70px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 56px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-py: 48px;
  }
  .btn {
    padding: 13px 24px;
    font-size: 0.875rem;
  }
  .btn-lg {
    padding: 16px 28px;
    font-size: 0.9375rem;
  }
}
