/* css/styles.css */
:root {
  /* Colors */
  --base: #ffffff;
  --mist: #f6f6fb;
  --ink: #14151a;
  --indigo: #4f46e5;
  --indigo-deep: #312e81;
  --indigo-tint: #eef0ff;
  --scarlet: #ff3b30;
  --scarlet-hover: #e11d12;
  --scarlet-deep: #b91710;
  --scarlet-tint: #ffeae8;
  --slate: #5a6072;
  --border: #e4e4ed;

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Roboto", sans-serif;
  --font-mono: "Roboto Mono", monospace;

  /* Spacing & Layout */
  --spacing-base: 8px;
  --max-width: 1140px;
  --radius: 12px;
  --section-padding-desktop: 96px;
  --section-padding-mobile: 56px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--base);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: var(--indigo);
  transition: all 0.2s ease;
}
a:hover {
  color: var(--indigo-deep);
  text-decoration: underline;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--ink);
}
h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
}
h2 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}
h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--indigo);
  margin-bottom: 16px;
  display: block;
  text-transform: lowercase;
}
.eyebrow.scarlet {
  color: var(--scarlet);
}
.text-slate {
  color: var(--slate);
}
.text-small {
  font-size: 14px;
  font-weight: 500;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-padding-desktop) 0;
}
.bg-mist {
  background-color: var(--mist);
}
.bg-ink {
  background-color: var(--ink);
  color: var(--base);
}
.bg-ink h2,
.bg-ink h3,
.bg-ink .text-slate,
.bg-ink .eyebrow {
  color: var(--base);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  border: none;
  text-decoration: none;
  font-size: 16px;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background-color: var(--scarlet);
  color: var(--base);
}
.btn-primary:hover {
  background-color: var(--scarlet-hover);
  color: var(--base);
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: transparent;
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
}
.btn-secondary:hover {
  background-color: var(--indigo-tint);
  color: var(--indigo);
}
.btn-ink {
  background-color: var(--base);
  color: var(--ink);
}
.btn-ink:hover {
  background-color: var(--mist);
  color: var(--ink);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--indigo);
}

/* Sticky Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.logo:hover {
  text-decoration: none;
  color: var(--ink);
}
.logo .dot {
  color: var(--scarlet);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--indigo);
  text-decoration: none;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 1. Hero */
.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-top: 120px;
  padding-bottom: 120px;
}
.hero-content {
  flex: 1;
}
.hero-image {
  flex: 0 0 40%;
}
.hero-image img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  align-items: center;
}
.trust-strip {
  margin-top: 48px;
  font-size: 14px;
  color: var(--slate);
  font-weight: 500;
}

/* 2. Trusted By */
.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}
.trusted-logos span {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--slate);
  filter: grayscale(100%);
  opacity: 0.7;
}
.trusted-logos span:hover {
  cursor: pointer;
  color: var(--scarlet-hover);
  filter: grayscale(0%);
  opacity: 1;
  transition: all 0.3s ease;
}

/* 3. Results */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.result-card {
  text-align: center;
  padding: 24px;
}
.result-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1;
  margin-bottom: 8px;
}
.result-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.results-secondary {
  text-align: center;
  font-size: 16px;
  color: var(--slate);
  max-width: 800px;
  margin: 0 auto;
}

/* 4. Students Wall */
.students-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.student-card {
  text-align: center;
}
.student-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--indigo);
  padding: 4px;
  margin: 0 auto 16px;
}
.student-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.student-name {
  font-size: 18px;
  margin-bottom: 4px;
}
.student-position {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 8px;
}
.student-company {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--indigo);
}

/* 5. Testimonials */
.testimonials-layout {
  margin-top: 48px;
}
.testimonial-slider {
  position: relative;
  margin-bottom: 64px;
  background: var(--base);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 48px;
}
.slide {
  display: none;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
}
.slide.active {
  display: block;
  animation: fadeIn 0.5s;
}
.slide-author {
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  margin-top: 24px;
  color: var(--indigo);
}
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.slider-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--indigo);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.slider-btn:hover {
  background: var(--indigo-tint);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.gallery-item {
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--indigo);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 21, 26, 0.95);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  padding: 0 10px;
}

/* 6. Training Programs */
.programs-track {
  margin-bottom: 64px;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.program-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.program-card.featured {
  border-top: 4px solid var(--scarlet);
  position: relative;
}
.featured-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--scarlet);
  color: var(--base);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  font-family: var(--font-mono);
}
.program-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  margin: 16px 0;
  line-height: 1.6;
}
.program-details {
  flex-grow: 1;
}
.program-details p {
  margin-bottom: 12px;
  font-size: 15px;
}
.program-details strong {
  color: var(--ink);
  font-weight: 700;
}

.reassurance-strip {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.reassurance-item {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}
.reassurance-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--indigo-tint);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  margin: 0 auto 16px;
  font-size: 16px;
}
.reassurance-desc {
  font-size: 15px;
  font-weight: 500;
}
.logistics-line {
  text-align: center;
  font-size: 15px;
  color: var(--slate);
  margin-top: 48px;
  font-style: italic;
}
.programs-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* 7. Consulting & 8. Selected Work */
.consulting-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.work-card h3 {
  color: var(--indigo);
  font-weight: 700;
}
.work-details p {
  font-size: 15px;
  margin-top: 12px;
}

/* 9. Skills */
.skills-container {
  margin-top: 32px;
}
.skills-category {
  margin-bottom: 24px;
}
.skills-category-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.skill-pill {
  background: var(--indigo-tint);
  color: var(--indigo);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

/* 10. About */
.about-layout {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  margin-top: 32px;
}
.about-story {
  flex: 3;
}
.about-story p {
  margin-bottom: 24px;
}
.about-story strong {
  color: var(--indigo);
}
.about-facts {
  flex: 2;
  background: var(--mist);
  border-color: transparent;
}
.about-facts h3 {
  margin-bottom: 24px;
}
.about-facts ul {
  list-style: none;
}
.about-facts li {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
}
.fact-icon {
  font-size: 20px;
}

/* 11. Final CTA */
.final-cta {
  text-align: center;
  padding: 120px 0;
}
.final-cta h2 {
  font-size: 48px;
  margin-bottom: 16px;
}
.final-cta p {
  font-size: 20px;
  color: var(--mist);
  margin-bottom: 48px;
  opacity: 0.9;
}
.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.final-cta-actions span {
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* 12. Footer */
.footer {
  background: var(--indigo-deep);
  color: var(--indigo-tint);
  padding: 64px 0 32px;
  font-size: 15px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--base);
}
.footer-logo .dot {
  color: var(--scarlet);
}
.footer-tagline {
  margin-top: 8px;
  color: var(--mist);
  opacity: 0.8;
}
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  color: var(--indigo-tint);
}
.footer-links a:hover {
  color: var(--base);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.socials {
  display: flex;
  gap: 16px;
}
.socials a {
  color: var(--indigo-tint);
  font-size: 20px;
  font-weight: 500;
  font-family: var(--font-mono);
}
.socials a:hover {
  color: var(--base);
}

/* Scroll Reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease-out;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  h1 {
    font-size: 48px;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 64px;
  }
  .hero-actions {
    justify-content: center;
  }
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .students-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .about-layout {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile) 0;
  }
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 28px;
  }

  .nav-container {
    position: relative;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: -24px;
    right: -24px;
    background: var(--base);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    align-items: flex-start;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-cta {
    display: flex;
  } /* keep visible */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .programs-grid,
  .consulting-grid {
    grid-template-columns: 1fr;
  }
  .reassurance-strip {
    flex-direction: column;
    gap: 32px;
  }
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .programs-cta {
    flex-direction: column;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .students-grid {
    grid-template-columns: 1fr;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .nav-cta .btn {
    padding: 10px 16px;
    font-size: 14px;
  } /* Smaller button on mobile */
}
