/* LearnDrive AI — "The Path" Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=JetBrains+Mono:wght@500&family=Outfit:wght@600;700&display=swap');

:root {
  --spruce: #08161A;
  --teal: #103038;
  --haze: #EAF1F0;
  --electric: #17C3B2;
  --apricot: #FF9E4A;
  --slate: #7C8A8C;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --section-pad: clamp(4rem, 8vw, 8.75rem);
  --max-width: 72rem;
  --header-h: 4.5rem;
  --transition: 0.35s ease;
  --shadow-deep: 0 24px 64px rgba(8, 22, 26, 0.35);
  --shadow-card: 0 8px 32px rgba(8, 22, 26, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--spruce);
  background: var(--haze);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { opacity: 0.85; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 1.25rem; }

ul, ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }

/* Surface system — paired bg+text only */
.surface-spruce { background: var(--spruce); color: var(--haze); }
.surface-haze { background: var(--haze); color: var(--spruce); }
.surface-teal { background: var(--teal); color: var(--haze); }
.surface-tealpop { background: var(--electric); color: var(--spruce); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 0.75rem;
}

.surface-spruce .eyebrow,
.surface-teal .eyebrow { color: var(--electric); }

.surface-haze .eyebrow { color: var(--electric); }

.text-apricot { color: var(--apricot); }
.text-slate { color: var(--slate); }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-transparent {
  background: transparent;
  color: var(--haze);
}

.site-header.is-sticky {
  background: var(--haze);
  color: var(--spruce);
  box-shadow: 0 1px 0 rgba(8, 22, 26, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.main-nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-card);
  opacity: 1;
}

.btn-primary {
  background: var(--electric);
  color: var(--spruce);
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Hero — THE MOMENTUM */
.hero-momentum {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-momentum__bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/learndriveai-01-hero-studio.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-momentum__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 22, 26, 0.88) 0%, rgba(8, 22, 26, 0.55) 50%, rgba(8, 22, 26, 0.75) 100%);
  z-index: 1;
}

.hero-momentum__glow {
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 40%;
  height: 30%;
  background: radial-gradient(ellipse, rgba(23, 195, 178, 0.15) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.hero-momentum__path {
  position: absolute;
  bottom: 18%;
  left: 5%;
  right: 5%;
  height: 2px;
  z-index: 3;
}

.hero-momentum__path-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: rgba(234, 241, 240, 0.2);
}

.hero-momentum__path-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--electric);
  transition: width 1.2s ease;
}

.js .hero-momentum__path-fill.is-drawn { width: 72%; }

.hero-momentum__nodes {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 2%;
}

.path-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(234, 241, 240, 0.4);
  background: var(--spruce);
}

.path-node.is-reached {
  background: var(--electric);
  border-color: var(--electric);
  box-shadow: 0 0 12px rgba(23, 195, 178, 0.5);
}

.hero-momentum__topbar {
  position: relative;
  z-index: 10;
  padding-top: calc(var(--header-h) + 1rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(234, 241, 240, 0.15);
}

.hero-momentum__topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--electric);
}

.hero-momentum__content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
}

.hero-momentum__headline {
  font-size: clamp(2.875rem, 7vw, 5.25rem);
  max-width: 14ch;
  line-height: 1.05;
}

.hero-momentum__sub {
  max-width: 34rem;
  font-size: 1.0625rem;
  opacity: 0.85;
  margin-top: 1.25rem;
}

.hero-momentum__trust {
  position: relative;
  z-index: 10;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(124, 138, 140, 0.3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
  letter-spacing: 0.04em;
}

/* Page hero (inner pages) */
.page-hero {
  padding-top: calc(var(--header-h) + var(--section-pad));
  padding-bottom: var(--section-pad);
}

.page-hero--compact {
  padding-bottom: 3rem;
}

.hairline {
  border: none;
  border-top: 1px solid rgba(234, 241, 240, 0.15);
  margin: 2rem 0;
}

.surface-haze .hairline { border-top-color: rgba(8, 22, 26, 0.12); }

/* Sections */
.section {
  padding-block: var(--section-pad);
}

.section-header {
  max-width: 42rem;
  margin-bottom: 3rem;
}

/* Metrics */
.metric-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-item__num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--electric);
  line-height: 1;
}

.metric-item__label {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* Stages */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stage-card {
  padding: 1.75rem;
  border: 1px solid rgba(234, 241, 240, 0.12);
  position: relative;
}

.surface-haze .stage-card {
  border-color: rgba(8, 22, 26, 0.1);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.stage-card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--electric);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

/* Capability cards with faint numerals */
.capability-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.capability-card {
  padding: 2rem 1.75rem;
  background: rgba(234, 241, 240, 0.07);
  border: 1px solid rgba(23, 195, 178, 0.25);
  position: relative;
  overflow: hidden;
}

.capability-card__ghost {
  position: absolute;
  top: -0.5rem;
  right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 500;
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

/* Photo frames */
.photo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 195, 178, 0.3);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.photo-frame--frosted::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(234, 241, 240, 0.07);
  pointer-events: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.photo-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Work cards */
.work-card {
  padding: 2rem;
  border: 1px solid rgba(234, 241, 240, 0.12);
  margin-bottom: 2rem;
}

.surface-haze .work-card {
  background: #fff;
  border-color: rgba(8, 22, 26, 0.08);
  box-shadow: var(--shadow-card);
}

.work-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 0.75rem;
}

/* FAQ */
.faq-list { max-width: 48rem; }

.faq-item {
  border-bottom: 1px solid rgba(8, 22, 26, 0.1);
  padding-block: 1.5rem;
}

.surface-spruce .faq-item,
.surface-teal .faq-item {
  border-bottom-color: rgba(234, 241, 240, 0.12);
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--electric);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item__answer {
  padding-top: 1rem;
  opacity: 0.9;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding-block: var(--section-pad);
}

.cta-band h2 { margin-bottom: 1rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(8, 22, 26, 0.2);
  background: #fff;
  color: var(--spruce);
  border-radius: 0;
}

.form-group input:focus:not([type="checkbox"]):not([type="radio"]),
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--electric);
  outline-offset: 2px;
}

.form-group textarea { min-height: 8rem; resize: vertical; }

.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  max-width: 100%;
}

.form-check input { margin-top: 0.25rem; flex-shrink: 0; width: auto; }

.form-check label {
  flex: 1;
  min-width: 0;
  display: block;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-note {
  font-size: 0.875rem;
  color: var(--slate);
  margin-top: 1rem;
}

/* Legal prose */
.legal-prose {
  max-width: 48rem;
}

.legal-prose h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
}

.legal-prose h3 {
  font-size: 1.125rem;
  margin-top: 1.75rem;
}

/* Service detail */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-block: 2.5rem;
  border-bottom: 1px solid rgba(8, 22, 26, 0.08);
}

.service-block:nth-child(even) { direction: rtl; }
.service-block:nth-child(even) > * { direction: ltr; }

.service-block__price {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--electric);
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  padding-block: 3rem 2rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li { margin-bottom: 0.5rem; }

.footer-nav a { text-decoration: none; font-size: 0.875rem; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(234, 241, 240, 0.12);
  font-size: 0.8125rem;
  opacity: 0.75;
  line-height: 1.6;
}

.surface-haze .footer-bottom { border-top-color: rgba(8, 22, 26, 0.1); }

.disclaimer {
  font-size: 0.8125rem;
  opacity: 0.8;
  line-height: 1.6;
  margin-top: 1.5rem;
  max-width: 52rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1.5rem;
  background: var(--spruce);
  color: var(--haze);
  box-shadow: 0 -8px 32px rgba(8, 22, 26, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9375rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner .btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.cookie-custom-panel {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(234, 241, 240, 0.15);
}

.cookie-custom-panel.is-open { display: block; }

.cookie-custom-panel label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* 404 */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-h);
}

.error-page__code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--electric);
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}

/* Reveal animations — JS only, visible at rest without JS */
.js .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal:not(.is-visible) {
  opacity: 0.001;
  transform: translateY(16px);
}

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

/* Path corner mark */
.path-mark {
  width: 24px;
  height: 24px;
  opacity: 0.4;
}

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-grid > * {
  min-width: 0;
}

.contact-form {
  max-width: 100%;
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(8, 22, 26, 0.1);
}

.contact-info-block {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.contact-info-block strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

/* Legal links grid */
.legal-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.legal-link-card {
  padding: 1.5rem;
  border: 1px solid rgba(8, 22, 26, 0.1);
  text-decoration: none;
  display: block;
  transition: box-shadow var(--transition);
}

.legal-link-card:hover {
  box-shadow: var(--shadow-card);
  opacity: 1;
}

/* Responsive */
@media (max-width: 960px) {
  .stages-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-rail { grid-template-columns: 1fr; }
  .metric-trio { grid-template-columns: 1fr; gap: 1.5rem; }
  .split { grid-template-columns: 1fr; }
  .service-block,
  .service-block:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .photo-grid--3 { grid-template-columns: 1fr; }
  .legal-links { grid-template-columns: 1fr; }
  .cookie-banner__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--haze);
    color: var(--spruce);
    padding: 1.5rem;
    transform: translateY(-120%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-deep);
  }

  .main-nav.is-open { transform: translateY(0); }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-momentum { min-height: 82vh; }
  .stages-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal,
  .js .reveal:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-momentum__path-fill { width: 72% !important; }
}
