/* =====================================================================
   Vision Drive — Landing Page Design Refresh
   Loaded last on index.html only. Brand-consistent modernization:
   refined tokens, typography scale, soft layered shadows, modern cards,
   hero trust signals, accessibility (focus-visible + reduced-motion).
   ===================================================================== */

:root {
  /* Brand (kept) */
  --vd-navy: #1a237e;
  --vd-navy-deep: #141a5e;
  --vd-orange: #ff6f00;
  --vd-orange-grad: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);

  /* Refined neutrals */
  --vd-bg: #f6f8fc;
  --vd-surface: #ffffff;
  --vd-ink: #0f172a;
  --vd-muted: #475569;
  --vd-border: #e2e8f0;

  /* Soft layered shadows */
  --vd-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --vd-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
  --vd-shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.10), 0 24px 48px rgba(15, 23, 42, 0.10);

  /* Radius scale */
  --vd-radius: 16px;
  --vd-radius-sm: 10px;
}

body {
  background-color: var(--vd-bg);
  color: var(--vd-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------------------------------------------------------------
   Header — cleaner, subtle border, blur on sticky
   --------------------------------------------------------------------- */
header {
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--vd-border);
  box-shadow: none;
  margin-bottom: 0;
}
header.sticky {
  box-shadow: var(--vd-shadow-sm);
}
nav ul li a {
  color: var(--vd-muted);
  font-weight: 500;
  position: relative;
}
nav ul li a:hover,
nav ul li a.active {
  color: var(--vd-navy);
}
/* underline accent for active/hover nav (skip the CTA pill) */
nav ul li a:not(.cta-button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--vd-orange);
  transition: width 0.25s ease;
}
nav ul li a:not(.cta-button):hover::after,
nav ul li a:not(.cta-button).active::after {
  width: 100%;
}

/* ---------------------------------------------------------------------
   Hero — stronger type scale + eyebrow + trust bar
   --------------------------------------------------------------------- */
.hero .container {
  max-width: 920px;
}
.hero h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* match hero fade-in choreography */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-buttons {
  flex-wrap: wrap;
}

/* Make the secondary (outline) button visible & polished on the dark hero */
.hero .secondary-button {
  padding: 14px 30px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 16px;
  backdrop-filter: blur(2px);
  transition: background-color 0.25s ease, border-color 0.25s ease,
    color 0.25s ease, transform 0.25s ease;
}
.hero .secondary-button:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--vd-navy);
  transform: translateY(-2px);
}

/* Trust bar under the CTAs */
.hero-trust {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 28px;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.7s;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
}
.hero-trust-item strong {
  font-weight: 700;
  color: #fff;
}
.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: #4ade80;
  flex-shrink: 0;
}
.hero-stars {
  color: #ffc107;
  letter-spacing: 1px;
  font-size: 1rem;
}
/* thin separators between trust items on wide screens */
@media (min-width: 700px) {
  .hero-trust-item:not(:last-child)::after {
    content: "";
    width: 1px;
    height: 18px;
    margin-left: 28px;
    background: rgba(255, 255, 255, 0.25);
  }
  .hero-trust {
    gap: 0;
  }
  .hero-trust-item {
    margin: 0;
  }
}

/* ---------------------------------------------------------------------
   Section rhythm + titles + eyebrow
   --------------------------------------------------------------------- */
.features,
.courses {
  padding: 88px 0;
}
.features {
  background-color: var(--vd-surface);
}
.courses {
  background-color: var(--vd-bg);
}
.section-title {
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--vd-navy);
  line-height: 1.15;
}
.section-title p {
  color: var(--vd-muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 640px;
}

/* ---------------------------------------------------------------------
   Feature cards — gradient icon chip, accent border, lift
   --------------------------------------------------------------------- */
.feature-card {
  border-radius: var(--vd-radius);
  border: 1px solid var(--vd-border);
  box-shadow: var(--vd-shadow-sm);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--vd-shadow-lg);
  border-color: transparent;
}
.feature-card h3 {
  color: var(--vd-navy);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--vd-muted);
  line-height: 1.65;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--vd-orange-grad);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.28);
}

/* ---------------------------------------------------------------------
   Course cards — modern surface, price emphasis
   --------------------------------------------------------------------- */
.course-card {
  border-radius: var(--vd-radius);
  border: 1px solid var(--vd-border);
  box-shadow: var(--vd-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--vd-shadow-lg);
}
.course-content h3 {
  color: var(--vd-navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.course-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--vd-navy);
}
.course-duration {
  display: inline-flex;
  align-items: center;
  color: var(--vd-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.course-description {
  color: var(--vd-muted);
  line-height: 1.65;
}

/* ---------------------------------------------------------------------
   Enrollment / contact section
   --------------------------------------------------------------------- */
.contact {
  background-color: var(--vd-surface);
}
.enrollment-form {
  border-radius: var(--vd-radius);
  border: 1px solid var(--vd-border);
  box-shadow: var(--vd-shadow-md);
}
.form-group input,
.form-group textarea,
.enrollment-form select {
  border: 1px solid var(--vd-border);
  border-radius: var(--vd-radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.enrollment-form select:focus {
  outline: none;
  border-color: var(--vd-navy);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.12);
}

/* ---------------------------------------------------------------------
   Footer polish
   --------------------------------------------------------------------- */
footer {
  background: linear-gradient(180deg, #161b3d 0%, #0e1230 100%);
}
.footer-links ul li a,
.footer-bottom p {
  color: #c7cbe0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------------------
   Cross-page consistency (team / contact / careers / blog / courses …)
   Brand the inner-page banner to match the hero + the FAQ page banner.
   --------------------------------------------------------------------- */
.page-banner {
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%) !important;
  border-bottom: none !important;
  /* Header is sticky (in-flow), so no clearance padding needed here —
     keep top/bottom balanced for a compact, centered band. */
  padding: 60px 0 48px !important;
  margin-bottom: 0 !important;
  text-align: center !important;
}
.page-banner .container {
  max-width: 760px;
}
.page-banner h2 {
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 2.6rem) !important;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.page-banner p {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto !important;
}

/* "Join Our Team" / closing CTA bands */
.cta-section {
  background-color: var(--vd-surface);
}
.cta-section h2 {
  color: var(--vd-navy);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cta-section p {
  color: var(--vd-muted);
  line-height: 1.65;
}

/* Team / contact / testimonials surfaces inherit the unified card look */
.team,
.testimonials {
  background-color: var(--vd-bg);
}
.team-member,
.testimonial-card {
  background-color: var(--vd-surface);
}
.testimonial-card {
  border-radius: var(--vd-radius);
  border: 1px solid var(--vd-border);
  box-shadow: var(--vd-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--vd-shadow-lg);
}
.team-image {
  border-color: #fff;
  box-shadow: var(--vd-shadow-md);
}
.contact-info h3,
.contact-form h3 {
  color: var(--vd-navy);
}
.contact-icon {
  color: var(--vd-orange);
}

@media (max-width: 768px) {
  .page-banner {
    padding: 44px 0 36px !important;
  }
}

/* ---------------------------------------------------------------------
   Accessibility — visible keyboard focus
   --------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.cta-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid #ffc107;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------------
   Reduced motion — disable shimmer, particle fades, hover lifts
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-eyebrow,
  .hero-trust {
    opacity: 1 !important;
    transform: none !important;
  }
  .feature-card:hover,
  .course-card:hover {
    transform: none;
  }
}

/* ---------------------------------------------------------------------
   Mobile tuning
   --------------------------------------------------------------------- */
@media (max-width: 768px) {
  .features,
  .courses {
    padding: 60px 0;
  }
  .hero-trust {
    margin-top: 30px;
  }
  .hero .secondary-button {
    width: auto;
    min-width: 200px;
    max-width: 280px;
  }
}

/* Mid-width header: tighten nav spacing so the 7 links + Student Login +
   Enroll Now fit on one row between tablet and full-desktop widths. */
@media (min-width: 993px) and (max-width: 1240px) {
  header nav ul {
    flex-wrap: nowrap !important;
  }
  header nav ul li {
    margin-left: 13px !important;
    margin-right: 0 !important;
  }
  header nav ul li a {
    font-size: 14px !important;
  }
  header nav ul li a.login-button {
    padding: 7px 12px !important;
    margin-right: 4px !important;
  }
  header nav ul li a.cta-button {
    padding: 8px 14px !important;
  }
}
