/* AI Profit Pathway — Site A V15 */
:root {
  --navy: #0A1628;
  --gold: #C9A227;
  --pearl: #F5F3EF;
  --steel: #3D5A6C;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --section-pad: 80px;
  --container: 1200px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--pearl);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* Surfaces */
.surface-dark { background: var(--navy); color: var(--pearl); }
.surface-light { background: var(--pearl); color: var(--navy); }
.surface-accent { background: var(--steel); color: var(--pearl); }
.surface-deep { background: var(--steel); color: var(--pearl); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.875rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; }

.eyebrow, .hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead { font-size: 1.125rem; line-height: 1.7; max-width: 720px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
}

.brand-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--pearl);
}

.brand-text span {
  font-size: 0.7rem;
  opacity: 0.85;
  color: var(--pearl);
}

.main-nav { display: flex; align-items: center; gap: 1.75rem; }

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pearl);
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1201;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pearl);
  margin: 5px 0;
  transition: var(--transition);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 243, 239, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--pearl);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color var(--transition), color var(--transition);
}

.nav-close:hover {
  color: var(--gold);
  border-color: var(--gold);
}

body.nav-open {
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--steel);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--pearl);
  border-color: var(--pearl);
}

.btn-outline:hover { background: rgba(245, 243, 239, 0.1); }

/* Hero Pattern B */
.hero-pattern-b {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  padding-top: 100px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.45) 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 48px 0 64px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-pattern-b .hero-eyebrow {
  color: #fff;
}

.hero-content h1 { margin-bottom: 1.25rem; color: var(--pearl); }

.hero-content .sub {
  font-size: 1.125rem;
  color: rgba(245, 243, 239, 0.9);
  margin-bottom: 2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }

.trust-strip {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.7);
}

/* Page hero */
.page-hero {
  padding: 140px 0 64px;
}

.page-hero .lead { opacity: 0.9; margin-top: 1rem; }

/* Sections */
.section { padding: var(--section-pad) 0; }

.section-header { margin-bottom: 3rem; }
.section-header .eyebrow { margin-bottom: 0.75rem; }

/* Stats */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.surface-deep .stat-number,
.surface-deep .stat-label,
.surface-deep h2,
.surface-deep h3,
.surface-deep p,
.surface-deep a,
.surface-deep .eyebrow,
.surface-deep .faq-item h3,
.surface-deep .cta-band h2,
.surface-deep .cta-band p {
  color: #fff;
}

.surface-deep a:hover {
  color: var(--gold);
}

.surface-accent h2,
.surface-accent h3,
.surface-accent p,
.surface-accent .eyebrow,
.surface-accent .method-step .step-num,
.surface-accent .cta-band h2,
.surface-accent .cta-band p {
  color: #fff;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--pearl);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 30px;
  border-bottom: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.surface-dark .card,
.surface-deep .card {
  background: rgba(245, 243, 239, 0.06);
  color: var(--pearl);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.12);
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.card h3 { margin-bottom: 0.75rem; }

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--gold);
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split img { border-radius: var(--radius); }

/* Method steps */
.method-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.method-step {
  position: relative;
  padding-left: 3rem;
}

.method-step .step-num {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
}

/* Programme detail */
.programmes-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.programmes-index a {
  display: block;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.programmes-index a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(10, 22, 40, 0.12);
}

.programmes-index strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.programmes-index span {
  font-size: 0.85rem;
  color: var(--steel);
}

.programme-detail {
  margin-bottom: 3rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(61, 90, 108, 0.12);
  box-shadow: 0 6px 28px rgba(10, 22, 40, 0.08);
}

.programme-detail h2 {
  margin-bottom: 0;
}

.programme-detail img {
  display: block;
  width: 100%;
  max-width: 480px;
  max-height: 280px;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.programme-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.programme-meta span { font-weight: 600; color: var(--gold); }

/* Timeline (about) */
.timeline { position: relative; padding-left: 2rem; border-left: 2px solid var(--gold); }

.timeline-item { margin-bottom: 2.5rem; position: relative; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
}

.timeline-year {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.photo-stack {
  display: grid;
  gap: 1.5rem;
}

.photo-stack img { border-radius: var(--radius); }

/* FAQ grid */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
}

.faq-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  box-shadow: 0 2px 16px rgba(10, 22, 40, 0.06);
}

.faq-item h2 {
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
  color: var(--navy);
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--steel);
  line-height: 1.65;
  margin: 0;
}

.faq-feature-image {
  max-width: 520px;
  margin: 2.5rem auto 0;
}

.faq-feature-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.12);
}

.surface-deep .timeline-year {
  color: var(--gold);
}

.surface-deep .timeline h3,
.surface-deep .timeline p {
  color: #fff;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--steel);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--navy);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-check,
.form-group.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.form-check input[type="checkbox"],
.form-group.form-check input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  padding: 0;
}

.form-group.form-check label {
  display: block;
  flex: 1;
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1.55;
}

.form-group label.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0;
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
}

.form-consent span {
  flex: 1;
  min-width: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success:empty { display: none; }

.form-success.is-shown {
  padding: 1.25rem;
  background: rgba(201, 162, 39, 0.15);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-block p { margin-bottom: 0.5rem; }

.contact-block a:hover { color: var(--gold); }

.contact-image img { border-radius: var(--radius); }

/* Legal prose */
.legal-content { max-width: 800px; }
.legal-content h2 { margin: 2rem 0 1rem; font-size: 1.35rem; }
.legal-content p, .legal-content li { margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }

/* Education note */
.education-note {
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 39, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 600px; margin: 0 auto 2rem; }

/* Footer */
.site-footer { padding: 64px 0 32px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.footer-col a:hover { color: var(--gold); opacity: 1; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 243, 239, 0.15);
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.75;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--navy);
  color: var(--pearl);
  padding: 1.5rem;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-text { flex: 1; min-width: 280px; font-size: 0.9rem; }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.cookie-actions .btn { font-size: 0.85rem; padding: 0.6rem 1.25rem; min-height: 44px; }

.cookie-customise {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245,243,239,0.15);
}

.cookie-customise label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.js .cookie-customise { display: none; }
.js .cookie-customise.is-open { display: block; }

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Mini FAQ on index */
.mini-faq .faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: none;
  border-left: none;
  border-radius: 0;
  box-shadow: none;
}

.mini-faq .faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.mini-faq .faq-item p {
  color: rgba(255, 255, 255, 0.9);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Floating trust card */
.trust-card {
  background: var(--navy);
  color: var(--pearl);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.2);
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
}

.error-page h1 { margin-bottom: 1rem; }
.error-page p { margin-bottom: 2rem; max-width: 500px; margin-inline: auto; }

/* Accent divider */
.accent-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}

/* Responsive */
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --section-pad: 48px; }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 4.5rem 2rem 2rem;
    transform: translateX(-100%);
    transition: transform var(--transition);
    box-shadow: 8px 0 32px rgba(0,0,0,0.3);
  }

  body.nav-open .site-header {
    z-index: 1100;
  }

  .main-nav.is-open { transform: translateX(0); }

  .nav-close { display: inline-flex; }

  .nav-toggle { display: block; }

  .hero-pattern-b { min-height: 75vh; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1280px) {
  h1 { font-size: 3.875rem; }
}
