/* Profit AI Skills — profitaiskills.one Brand B */
:root {
  --plum: #4A1942;
  --lime: #A3E635;
  --cream: #FBF7F0;
  --charcoal: #27272A;
  --soft: #FFFCF8;
  --plum-light: #5c2452;
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Sora', system-ui, sans-serif;
  --max-width: 72rem;
  --radius: 0.375rem;
  --shadow: 0 4px 24px rgba(74, 25, 66, 0.14);
  --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(--charcoal);
  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(--plum);
  color: var(--cream);
}

.surface-light {
  background: var(--cream);
  color: var(--charcoal);
}

.surface-accent {
  background: var(--lime);
  color: var(--plum);
}

.surface-soft {
  background: var(--soft);
  color: var(--plum);
}

/* 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(--plum);
  color: var(--cream);
  border-bottom: 1px solid rgba(251, 247, 240, 0.12);
}

.site-header--transparent {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(251, 247, 240, 0.18);
  transition: background var(--transition), border-color var(--transition);
}

.site-header--transparent.is-scrolled {
  background: rgba(74, 25, 66, 0.94);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(251, 247, 240, 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(251, 247, 240, 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 B — Full-bleed Cinematic */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-cinematic__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-cinematic__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cinematic__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(74, 25, 66, 0.94) 0%,
    rgba(74, 25, 66, 0.55) 42%,
    rgba(39, 39, 42, 0.35) 100%
  );
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  top: 5.5rem;
  right: clamp(1rem, 4vw, 3rem);
  z-index: 3;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(163, 230, 53, 0.55);
  border-radius: 999px;
  background: rgba(74, 25, 66, 0.65);
  color: var(--lime);
}

.hero-cinematic__content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 4.5rem;
  width: 100%;
}

.hero-cinematic h1 {
  color: var(--cream);
  max-width: 20ch;
  margin-bottom: 1rem;
}

.hero-cinematic__lead {
  font-size: 1.125rem;
  color: rgba(251, 247, 240, 0.92);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

/* Page hero */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(74, 25, 66, 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(--lime);
  color: var(--plum);
  border-color: var(--lime);
}

.btn--primary:hover { background: #8fcc2a; border-color: #8fcc2a; }

.btn--outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(251, 247, 240, 0.5);
}

.btn--outline:hover {
  border-color: var(--cream);
  background: rgba(251, 247, 240, 0.08);
}

.btn--dark {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
}

.btn--dark:hover { background: var(--plum-light); }

.surface-accent .btn--dark {
  background: var(--plum);
  color: var(--cream);
}

/* 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(74, 25, 66, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.surface-dark .card {
  background: rgba(251, 247, 240, 0.06);
  border-color: rgba(251, 247, 240, 0.15);
  color: var(--cream);
}

.surface-accent .card {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(74, 25, 66, 0.15);
}

.card__number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.surface-light .card__number { color: var(--plum); }

/* 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(--lime);
  margin-bottom: 1.25rem;
}

.program-card h3 { color: inherit; }

.surface-dark .program-card { border-left-color: var(--lime); }

/* FAQ */
.faq-list { list-style: none; padding: 0; margin: 0; }

.faq-item {
  border-bottom: 1px solid rgba(74, 25, 66, 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(--plum);
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--lime);
}

.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; }

.faq-item--no-answer .faq-question { cursor: default; }
.faq-item--no-answer .faq-question::after { content: ''; }

/* 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(74, 25, 66, 0.25);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--charcoal);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.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 */
.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(--lime);
  background: rgba(163, 230, 53, 0.15);
  margin: 2rem 0;
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  background: var(--plum);
  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(--lime);
  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(251, 247, 240, 0.85);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-grid a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(251, 247, 240, 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(--plum);
  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(251, 247, 240, 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 */
.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 & thanks */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-page h1 { margin-bottom: 1rem; }

.thanks-box {
  max-width: 32rem;
  margin: 4rem auto;
  text-align: center;
  padding: 2rem;
}

.text-center { text-align: center; }
.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(--plum);
    padding: 1rem;
    border-bottom: 1px solid rgba(251, 247, 240, 0.12);
  }

  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.75rem; }

  .hero-cinematic { min-height: 75vh; }
  .hero-badge { top: 4.5rem; font-size: 0.65rem; }
  .hero-cinematic h1 { max-width: none; }

  .feature-row,
  .contact-grid { grid-template-columns: 1fr; }
  .feature-row--reverse { direction: ltr; }
}

@media (min-width: 769px) {
  .site-header--transparent + main .hero-cinematic { padding-top: 0; }
}
