/* Academy Step8Up - Digital Growth Academy | Professional Education Theme */
:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --navy-light: #334155;
  --gold: #c9a227;
  --gold-light: #d4af37;
  --gold-dark: #a68520;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.06);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
img[loading="lazy"] { content-visibility: auto; }

a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-top: 0; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.site-logo img { height: 40px; width: auto; }
.site-logo:hover { color: var(--gold-light); }

/* Navigation */
.nav-main {
  display: none;
}
@media (min-width: 992px) {
  .nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .nav-main a {
    color: var(--gray-200);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
  }
  .nav-main a:hover { color: var(--white); background: rgba(201, 162, 39, 0.12); }
  .nav-main a[href="/"] { color: var(--gold-light); }
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--gray-400);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
}
@media (min-width: 992px) { .nav-toggle { display: none; } }

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  z-index: 99;
}
.nav-mobile.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav-mobile a {
  display: block;
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}
.nav-mobile a:hover { background: var(--navy-mid); color: var(--gold-light); }

/* Hero / Banner */
.page-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy-mid) center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
}
.page-banner--home::after { background-image: url('../images/banner-home.jpg'); }
.page-banner--programs::after { background-image: url('../images/banner-programs.jpg'); }
.page-banner--courses::after { background-image: url('../images/banner-courses.jpg'); }
.page-banner--mentorship::after { background-image: url('../images/banner-mentorship.jpg'); }
.page-banner--resources::after { background-image: url('../images/banner-resources.jpg'); }
.page-banner--events::after { background-image: url('../images/banner-events.jpg'); }
.page-banner--insights::after { background-image: url('../images/banner-insights.jpg'); }
.page-banner--contact::after { background-image: url('../images/banner-contact.jpg'); }
.page-banner .container { position: relative; z-index: 1; padding-top: 2rem; padding-bottom: 2rem; }
.page-banner h1 { margin-bottom: 0.5rem; color: var(--white); }
.page-banner .lead { font-size: 1.125rem; opacity: 0.95; margin-bottom: 0; }
.page-banner .breadcrumb {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
}
.page-banner .breadcrumb a { color: var(--gold-light); }

/* Sections */
.section {
  padding: 3rem 0;
}
@media (min-width: 768px) { .section { padding: 4rem 0; } }
.section--alt { background: var(--off-white); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark a { color: var(--gold-light); }
.section--dark h2 { color: var(--white); }

.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { color: var(--gray-500); max-width: 36rem; margin-left: auto; margin-right: auto; }

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card__image { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--gray-200); }
.card__body { padding: 1.25rem; }
.card__body h3 { margin-bottom: 0.5rem; }
.card__body p { font-size: 0.9375rem; color: var(--gray-500); margin-bottom: 1rem; }
.card__body a { font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.btn--primary:hover { background: var(--gold-light); color: var(--navy); }
.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn--outline:hover { background: var(--gold); color: var(--navy); }
.btn--white {
  background: var(--white);
  color: var(--navy);
}
.btn--white:hover { background: var(--gray-100); }

/* Steps / Framework */
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  counter-increment: step;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-list li strong { display: block; margin-bottom: 0.25rem; }

/* FAQ */
.faq-list { max-width: 42rem; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.9375rem; color: var(--gray-500); margin: 0; }

/* Testimonials */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.testimonial p { font-style: italic; margin-bottom: 1rem; }
.testimonial cite { font-size: 0.875rem; color: var(--gray-500); font-style: normal; }

/* Trust */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--gray-500);
}
.trust-bar strong { color: var(--navy); }

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer a { color: var(--gray-400); }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .site-logo { margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9375rem; max-width: 20rem; }
.footer-nav h4 { color: var(--white); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-light);
  font-size: 0.8125rem;
  text-align: center;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.5rem; }
