/* Learn AI For Profit — style.css */
:root {
  --teal: #0F4C5C;
  --cream: #FAFAF7;
  --gold: #D4A853;
  --teal-light: #1a6275;
  --text-on-dark: #FAFAF7;
  --text-on-light: #0F4C5C;
  --text-on-accent: #0F4C5C;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-width: 72rem;
  --radius: 0.375rem;
  --shadow: 0 4px 24px rgba(15, 76, 92, 0.12);
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-on-light);
  background: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

/* Surfaces */
.surface-dark {
  background: var(--teal);
  color: var(--text-on-dark);
}

.surface-light {
  background: var(--cream);
  color: var(--text-on-light);
}

.surface-accent {
  background: var(--gold);
  color: var(--text-on-accent);
}

/* Layout */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section { padding: 4rem 0; }
.section--compact { padding: 2.5rem 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: var(--cream);
  border-bottom: 1px solid rgba(250, 250, 247, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
}

.logo svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(250, 250, 247, 0.3);
  color: var(--cream);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--cream);
  font-size: 0.9375rem;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Hero Pattern A — Editorial Spotlight */
.hero-editorial {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--teal);
  overflow: hidden;
}

.hero-editorial__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-editorial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-editorial__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 76, 92, 0.92) 0%, rgba(15, 76, 92, 0.55) 45%, rgba(15, 76, 92, 0.25) 100%);
}

.hero-editorial__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: 4rem 0;
}

.hero-editorial__spotlight {
  max-width: 38rem;
  padding: 2.5rem;
  background: rgba(15, 76, 92, 0.88);
  border-left: 4px solid var(--gold);
  margin-left: clamp(1rem, 8vw, 6rem);
}

.hero-editorial__eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero-editorial h1 {
  color: var(--cream);
  margin-bottom: 1rem;
}

.hero-editorial__lead {
  font-size: 1.125rem;
  color: rgba(250, 250, 247, 0.92);
  margin-bottom: 1.75rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(15, 76, 92, 0.1);
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero__lead { font-size: 1.125rem; max-width: 42rem; opacity: 0.85; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--gold);
  color: var(--teal);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: #c49a48;
  border-color: #c49a48;
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 250, 247, 0.5);
}

.btn--outline:hover {
  border-color: var(--cream);
  background: rgba(250, 250, 247, 0.08);
}

.btn--dark {
  background: var(--teal);
  color: var(--cream);
  border-color: var(--teal);
}

.btn--dark:hover { background: var(--teal-light); }

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--cream);
  border: 1px solid rgba(15, 76, 92, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.surface-dark .card {
  background: rgba(250, 250, 247, 0.06);
  border-color: rgba(250, 250, 247, 0.15);
  color: var(--cream);
}

.card img {
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.card__number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Feature block */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }

.feature-row img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Program cards */
.program-card {
  padding: 1.75rem;
  border-left: 3px solid var(--gold);
}

.program-card h3 { color: var(--teal); }

/* FAQ */
.faq-list { list-style: none; padding: 0; margin: 0; }

.faq-item {
  border-bottom: 1px solid rgba(15, 76, 92, 0.15);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 2rem 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--gold);
}

.faq-item.is-open .faq-question::after { content: '−'; }

.faq-answer {
  padding: 0 0 1.25rem;
  display: none;
}

.faq-item.is-open .faq-answer { display: block; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(15, 76, 92, 0.25);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--teal);
}

.form-group textarea { min-height: 8rem; resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-details dl {
  margin: 0;
}

.contact-details dt {
  font-weight: 600;
  margin-top: 1rem;
}

.contact-details dt:first-child { margin-top: 0; }

.contact-details dd {
  margin: 0.25rem 0 0;
}

/* Legal prose */
.legal-content h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
}

.disclaimer-box {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--gold);
  background: rgba(212, 168, 83, 0.15);
  margin: 2rem 0;
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  background: var(--teal);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li { margin-bottom: 0.375rem; }

.footer-grid a {
  color: rgba(250, 250, 247, 0.85);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-grid a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(250, 250, 247, 0.15);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--teal);
  color: var(--cream);
  padding: 1.25rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 20rem;
  font-size: 0.9375rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.cookie-customise {
  display: none;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid rgba(250, 250, 247, 0.15);
  margin-top: 0.5rem;
}

.cookie-customise.is-open { display: block; }

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cookie-option label { font-size: 0.9375rem; }

/* Reveal animation — only when JS is active */
.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-page h1 { margin-bottom: 1rem; }

/* Thanks page */
.thanks-box {
  max-width: 32rem;
  margin: 4rem auto;
  text-align: center;
  padding: 2rem;
}

/* Utility */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

.cta-band {
  text-align: center;
  padding: 3rem 2rem;
}

.cta-band h2 { margin-bottom: 0.75rem; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--teal);
    padding: 1rem;
    border-bottom: 1px solid rgba(250, 250, 247, 0.12);
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-editorial__spotlight {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 1.75rem;
  }

  .feature-row,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-row--reverse { direction: ltr; }
}
