/* ═══════════════════════════════════════════════════════
   NetScan Prep Hub — Main Stylesheet
   Colors: 
     --navy:   #1a3a5c  (primary brand)
     --sky:    #0ea5e9  (accent blue)
     --green:  #10b981  (success / highlight)
     --light:  #f0f7ff  (alt background)
     --white:  #ffffff
     --text:   #1e293b  (body text)
     --muted:  #64748b  (secondary text)
═══════════════════════════════════════════════════════ */

/* ─── RESET & BASE ────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:   #1a3a5c;
  --sky:    #0ea5e9;
  --green:  #10b981;
  --light:  #f0f7ff;
  --white:  #ffffff;
  --text:   #1e293b;
  --muted:  #64748b;
  --border: #dde6f0;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(26,58,92,.09);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
address { font-style: normal; }

/* ─── TYPOGRAPHY ─────────────────────────────────── */
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; font-weight: 800; color: var(--navy); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.2;  font-weight: 700; color: var(--navy); }
h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }

/* ─── UTILITIES ──────────────────────────────────── */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section-pad { padding-block: 80px; }

.bg-alt { background: var(--light); }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 10px;
}
.section-title {
  margin-bottom: 14px;
  text-wrap: balance;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-inline: auto;
  text-wrap: pretty;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sky);
  color: var(--white);
  border-color: var(--sky);
}
.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-product {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  display: block;
  text-align: center;
  padding: 12px 20px;
}

/* ─── PHOTO PLACEHOLDERS ─────────────────────────── */
.photo-placeholder {
  background: var(--border);
  border: 2px dashed #b0c4d8;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .85rem;
  font-style: italic;
  text-align: center;
  padding: 16px;
}

/* ─── HEADER ─────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
}

/* ─── BRAND ──────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo  { width: 42px; height: 42px; flex-shrink: 0; }
.brand-logo-sm { width: 32px; height: 32px; }
.brand-name  { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.brand-accent { color: var(--sky); }

/* ─── HERO ───────────────────────────────────────── */
.hero { padding-block: 90px 70px; }
.hero-flex {
  display: flex;
  align-items: center;
  gap: 56px;
  justify-content: space-between;
}
.hero-text { flex: 1; min-width: 0; }
.hero-eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 16px;
}
.hero-title { margin-bottom: 22px; }
.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 34px;
  max-width: 520px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { flex: 1; min-width: 200px; display: flex; align-items: center; justify-content: center; }
.hero-image { width: 100%; max-width: 400px; height: auto; border-radius: 14px; }

/* ─── STATS BAR ──────────────────────────────────── */
.stats-bar { background: var(--navy); padding-block: 40px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
}
.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── FEATURES ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.feature-icon { margin-bottom: 18px; }
.feature-title { margin-bottom: 10px; }
.feature-desc { color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ─── TRACKS ─────────────────────────────────────── */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.track-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
}
.track-card.track-highlight {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.track-badge {
  display: inline-block;
  background: var(--sky);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.track-name { margin-bottom: 10px; }
.track-desc { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.track-topics li {
  font-size: .88rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.track-topics li:last-child { border-bottom: none; }
.track-topics li::before {
  content: "— ";
  color: var(--sky);
}

/* ─── HOW IT WORKS ───────────────────────────────── */
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step-item { flex: 1; text-align: center; padding: 0 20px; }
.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 14px;
}
.step-title { margin-bottom: 10px; }
.step-desc { color: var(--muted); font-size: .92rem; }
.step-divider {
  width: 60px;
  height: 2px;
  background: var(--border);
  align-self: center;
  flex-shrink: 0;
  margin-top: -32px;
}

/* ─── LABS SPOTLIGHT ─────────────────────────────── */
.labs-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}
.labs-text { flex: 1; }
.labs-desc {
  color: var(--muted);
  margin-block: 18px 24px;
  line-height: 1.7;
  text-wrap: pretty;
}
.labs-list { display: flex; flex-direction: column; gap: 10px; }
.labs-list li {
  font-size: .93rem;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}
.labs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.labs-visual { flex: 1; }
.labs-photo { width: 100%; aspect-ratio: 4/3; border-radius: 14px; object-fit: cover; }

/* ─── FLASHCARDS ─────────────────────────────────── */
.cards-showcase {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  position: relative;
  height: 200px;
}
.flash-card {
  width: 340px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: absolute;
}
.flash-card:first-child { left: 50%; transform: translateX(-50%); z-index: 3; }
.flash-card-mid       { left: 50%; transform: translateX(-70%) rotate(-3deg); z-index: 2; opacity: .8; }
.flash-card-back      { left: 50%; transform: translateX(-30%) rotate(3deg);  z-index: 1; opacity: .6; }

.flash-tag {
  display: inline-block;
  background: var(--light);
  color: var(--sky);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.flash-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}
.flashcard-cta-text {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin-top: 48px;
}

/* ─── COURSES / PRODUCTS ──────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-card-featured {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.product-photo-wrap { width: 100%; }
.product-photo { width: 100%; aspect-ratio: 16/9; border-radius: 0; border: none; object-fit: cover; }
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.product-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--light);
  padding: 3px 10px;
  border-radius: 20px;
}
.product-tag-hot { background: var(--sky); color: var(--white); }
.product-name { margin-top: 4px; }
.product-price { 
  font-size: 1.5rem; 
  font-weight: 700; 
  color: var(--sky); 
  margin-top: 10px;
}
.product-desc { color: var(--muted); font-size: .9rem; line-height: 1.6; flex: 1; }
.btn-product { margin-top: 8px; }

/* ─── TESTIMONIALS ───────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testi-photo-wrap { display: flex; }
.testi-photo { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.testi-text { color: var(--text); font-size: .95rem; line-height: 1.7; font-style: italic; flex: 1; }
.testi-footer { display: flex; flex-direction: column; gap: 2px; }
.testi-name { font-weight: 700; font-size: .9rem; color: var(--navy); }
.testi-cert { font-size: .8rem; color: var(--sky); }

/* ─── CONTACTS ───────────────────────────────────── */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon { flex-shrink: 0; margin-top: 2px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 600;
}
a.contact-value:hover { color: var(--sky); }

/* ─── FOOTER ─────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding-block: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand-link .brand-name { font-size: 1.1rem; }
.footer-tagline { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 4px; }

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: .88rem;
  color: rgba(255,255,255,.75);
}
.footer-nav a:hover { color: var(--sky); }

.footer-copy {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  width: 100%;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* Footer brand colours on dark bg */
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-accent { color: var(--sky); }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner,
  .labs-inner   { flex-direction: column; gap: 36px; }
  .hero-visual,
  .labs-visual  { width: 100%; }
  .steps-row    { flex-direction: column; align-items: center; gap: 32px; }
  .step-divider { width: 2px; height: 40px; margin: 0; }
  .flash-card   { position: static; transform: none !important; opacity: 1 !important; }
  .cards-showcase {
    flex-direction: column;
    height: auto;
    gap: 16px;
    align-items: center;
  }
  .flash-card-mid,
  .flash-card-back { display: none; }
}

@media (max-width: 600px) {
  .section-pad   { padding-block: 52px; }
  .hero          { padding-block: 52px 40px; }
  .hero-ctas     { flex-direction: column; }
  .btn           { width: 100%; text-align: center; }
  .footer-inner  { flex-direction: column; align-items: flex-start; }
  .footer-nav    { flex-direction: column; gap: 12px; }
  .footer-copy   { text-align: left; }
  .products-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   CENTER-CONTENT MODIFIER
═══════════════════════════════════════════ */
.center-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ═══════════════════════════════════════════
   COOKIE BANNER
═══════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1a3a5c 0%, #1a3a5c 100%);
  color: #fff;
  padding: 24px 20px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.cookie-banner.hidden {
  display: none;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content {
  flex: 1;
  min-width: 280px;
}

.cookie-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.cookie-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    width: 100%;
  }
  .btn-sm {
    flex: 1;
  }
}

/* ═══════════════════════════════════════════
   COOKIE CUSTOMIZATION MODAL
═══════════════════════════════════════════ */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--navy);
}

.modal-body {
  padding: 28px 32px;
}

.modal-intro {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.cookie-option {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--light);
}

.cookie-option-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.cookie-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--sky);
}

.cookie-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-label {
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  margin: 0;
}

.cookie-description {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-left: 30px;
}

.cookie-link-notice {
  margin-top: 20px;
  padding: 16px;
  background: #f0f8ff;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.cookie-link-notice .link {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
}

.cookie-link-notice .link:hover {
  text-decoration: underline;
}

.modal-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .modal-content {
    max-height: 100vh;
    border-radius: 0;
  }
  .modal-header {
    padding: 20px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
    padding: 16px 20px;
  }
}
