/* ===========================
   MARKIVA — Styles
   =========================== */

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

:root {
  --cream: #FBF7F2;
  --cream-dark: #F0E8DC;
  --sand: #E8C9A0;
  --terracotta: #C4552A;
  --terracotta-dark: #A83F1A;
  --brown: #2C1A0E;
  --brown-mid: #5C3D2E;
  --gray-text: #6B5447;
  --white: #FFFFFF;
  --border: #DDD0C0;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 12px;
  --shadow: 0 4px 24px rgba(44, 26, 14, 0.08);
  --shadow-lg: 0 8px 40px rgba(44, 26, 14, 0.14);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--brown);
  line-height: 1.65;
}

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

a {
  color: var(--terracotta);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--brown);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p {
  font-size: 1rem;
  color: var(--brown-mid);
  max-width: 68ch;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

/* ===========================
   LAYOUT
   =========================== */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background-color: var(--cream-dark);
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(196, 85, 42, 0.35);
}

.btn-primary:hover {
  background-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 85, 42, 0.45);
  text-decoration: none;
  color: var(--white);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}

.btn-outline:hover {
  background: var(--terracotta);
  color: var(--white);
  text-decoration: none;
}

/* ===========================
   SITE HEADER / NAV
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo span {
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--brown-mid);
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--terracotta);
  text-decoration: none;
}

.nav-cta {
  padding: 0.55rem 1.4rem !important;
  font-size: 0.9rem !important;
}

/* ===========================
   HERO
   =========================== */

.hero {
  padding: 0;
  background: var(--cream);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
  align-items: center;
}

.hero-content {
  padding: 5rem 3rem 5rem 0;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--terracotta);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--brown-mid);
  margin-bottom: 2rem;
  max-width: 50ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  color: var(--brown-mid);
  font-weight: 500;
}

.hero-image {
  height: 90vh;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ===========================
   FOR WHOM
   =========================== */

.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.whom-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.whom-card:hover {
  box-shadow: var(--shadow);
}

.whom-card-icon {
  width: 44px;
  height: 44px;
  background: var(--cream-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.whom-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.whom-card p {
  font-size: 0.93rem;
  max-width: 100%;
}

/* ===========================
   FORMAT / HOW IT WORKS
   =========================== */

.format-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.format-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.format-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.format-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.format-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 2px;
}

.step-body h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--brown);
}

.step-body p {
  font-size: 0.92rem;
  max-width: 100%;
}

/* ===========================
   OUTCOMES
   =========================== */

.outcomes-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.outcomes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.outcomes-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--brown-mid);
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}

.outcomes-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.outcomes-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ===========================
   CURRICULUM
   =========================== */

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.module-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
}

.module-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.module-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.module-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.module-card ul li {
  font-size: 0.88rem;
  color: var(--gray-text);
  padding-left: 1.1rem;
  position: relative;
}

.module-card ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--sand);
}

/* ===========================
   FAQ
   =========================== */

.faq-list {
  max-width: 780px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 1.75rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  gap: 1rem;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--cream);
}

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--terracotta);
  transition: transform 0.25s ease, background 0.2s;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--terracotta);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  padding: 0 1.75rem;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 1.75rem 1.35rem;
}

.faq-answer p {
  font-size: 0.95rem;
  max-width: 100%;
}

/* ===========================
   LEAD FORM
   =========================== */

.form-section {
  background: var(--brown) !important;
  color: var(--white);
}

.form-section h2,
.form-section .section-label {
  color: var(--sand);
}

.form-section .section-label {
  color: var(--sand);
  opacity: 0.75;
}

.form-section p {
  color: rgba(251, 247, 242, 0.75);
}

.form-wrapper {
  max-width: 580px;
  margin: 3rem auto 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(232, 201, 160, 0.25);
  border-radius: 20px;
  padding: 2.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(232, 201, 160, 0.35);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(251, 247, 242, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sand);
  background: rgba(255,255,255,0.1);
}

.form-group select option {
  background: var(--brown);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-consent {
  font-size: 0.8rem;
  color: rgba(251, 247, 242, 0.45);
  margin-top: 1rem;
  max-width: 100%;
}

.form-consent a {
  color: var(--sand);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  font-size: 1.05rem;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  background: var(--brown);
  color: rgba(251, 247, 242, 0.6);
  padding: 3rem 0 2rem;
}

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

.footer-brand .logo {
  color: var(--cream);
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: rgba(251, 247, 242, 0.55);
  font-size: 0.88rem;
  max-width: 100%;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(251, 247, 242, 0.6);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--sand);
  text-decoration: none;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal-text {
  font-size: 0.78rem;
  color: rgba(251, 247, 242, 0.35);
  max-width: 100%;
  line-height: 1.7;
}

/* ===========================
   COOKIE BANNER
   =========================== */

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 560px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
  animation: slideUp 0.3s ease;
}

.cookie-banner.visible {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner p {
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
  max-width: 100%;
  color: var(--brown-mid);
}

.cookie-banner p a {
  color: var(--terracotta);
}

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

.cookie-accept {
  padding: 0.6rem 1.4rem !important;
  font-size: 0.88rem !important;
}

.cookie-decline {
  padding: 0.6rem 1.2rem !important;
  font-size: 0.88rem !important;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  color: var(--gray-text);
  font-family: var(--font-body);
  font-weight: 500;
  transition: background 0.15s;
}

.cookie-decline:hover {
  background: var(--cream-dark);
}

/* ===========================
   LEGAL PAGES
   =========================== */

.legal-page {
  padding: 5rem 0;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--terracotta);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.legal-date {
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.97rem;
  color: var(--brown-mid);
  line-height: 1.75;
  max-width: 70ch;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

/* ===========================
   SUCCESS PAGE
   =========================== */

.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.success-inner {
  max-width: 520px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(196, 85, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.2rem;
}

.success-inner h1 {
  margin-bottom: 1rem;
}

.success-inner p {
  margin: 0 auto 2rem;
  text-align: center;
  max-width: 100%;
}

/* ===========================
   SECTION HEADER
   =========================== */

.section-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-header p {
  margin: 0.75rem auto 0;
  text-align: center;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 3.5rem 0 2rem;
    order: 1;
  }

  .hero-image {
    height: 55vw;
    min-height: 260px;
    order: 0;
  }

  .hero-image img {
    object-position: center 20%;
  }

  .format-wrapper,
  .outcomes-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  section {
    padding: 3.5rem 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .form-wrapper {
    padding: 1.75rem 1.25rem;
  }

  .hero-content {
    padding: 2.5rem 0 1.5rem;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
