/*
 * Session Landing Page — Ali Abdaal-inspired redesign
 * Warm cream palette, serif headlines, hand-drawn accents
 * This file overrides style.css when loaded after it
 */

/* ===== Design Tokens ===== */
:root {
  --bg-cream: #F6F6F4;
  --bg-card: #EDE8E3;
  --bg-white: #FFFFFF;
  --text-dark: #0A3428;
  --text-body: #0A3428;
  --text-muted: #6B6B7B;
  --primary: #EB7D41;
  --primary-hover: rgba(235, 125, 65, 0.85);
  --accent-coral: #EB7D41;
  --accent-yellow: #F5B731;
  --accent-blue-light: #FDE8DF;
  --radius-card: 16px;
  --radius-btn: 50px;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', sans-serif;
}

/* ===== Global Overrides ===== */
body {
  background-color: var(--bg-cream);
  color: var(--text-body);
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  font-weight: 400;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-dark);
  font-size: 36px;
}

/* ===== Header ===== */
.site-header {
  background-color: var(--bg-cream);
  top: 0;
}

.site-header.scrolled {
  background-color: var(--bg-cream);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary);
}

/* ===== Buttons ===== */
.btn-primary {
  background-color: var(--primary);
  border-radius: var(--radius-btn);
  padding: 14px 32px;
  font-weight: 600;
  font-size: 16px;
}

.btn-primary {
  color: var(--text-dark);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-dark);
}

/* ===== Hero Section ===== */
.hero-section {
  background-color: var(--bg-cream);
  padding: 140px 16px 80px 16px;
}

.hero-content {
  max-width: 1280px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
  align-items: center;
}

.hero-photo-wrapper {
  max-width: 400px;
  margin: 0 auto;
}

.hero-photo-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}

.hero-text {
  text-align: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-dark);
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title .blue-highlight {
  color: var(--primary);
  position: relative;
  display: inline;
}

/* Hand-drawn underline for hero highlight */
.hero-title .underline-deco {
  position: relative;
  display: inline-block;
}

.hero-title .underline-deco::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 C50 2, 100 12, 198 4' stroke='%23EB7D41' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
}

.hero-description {
  font-size: 20px;
  color: var(--text-body);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta {
  padding: 16px 40px;
  font-size: 18px;
}

/* ===== Problem Section (stats-section override) ===== */
.stats-section {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  padding: 60px 16px;
}

.stats-container {
  max-width: none;
}

.stats-section .section-title {
  color: var(--text-dark);
}

.stats-item {
  color: var(--text-body);
}

.stats-item-icon {
  color: var(--primary);
}

.stats-conclusion {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
}

/* ===== Problem Cards ===== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.problem-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 32px;
}

.problem-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.problem-card-icon {
  flex-shrink: 0;
}

.problem-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.problem-icon-img.icon-lg {
  width: 84px;
  height: 84px;
}

.problem-card-title {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-dark);
  font-size: 28px;
}

.problem-card-description {
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 16px;
}

@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Steps Section ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-dark);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step-connector {
  display: none;
}

.step-title {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-dark);
  font-size: 28px;
  margin-bottom: 8px;
}

.step-description {
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 16px;
  max-width: 280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .step-connector {
    display: block;
    position: absolute;
    top: 28px;
    left: calc(50% + 36px);
    width: calc(100% - 72px);
    height: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 6'%3E%3Cpath d='M0 3 C40 0, 80 6, 120 3 C160 0, 200 6, 200 3' stroke='%23EB7D41' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
    background-size: 200px 6px;
    z-index: 0;
  }

  .step-card:last-child .step-connector {
    display: none;
  }
}

/* ===== Figma Embed ===== */
.figma-embed-wrapper {
  margin: 32px 0 48px;
}

/* ===== Feature / Deliverable Section ===== */
.feature-section {
  background-color: var(--bg-white);
  padding: 80px 16px;
}

.feature-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 32px;
}

.feature-grid {
  max-width: none;
}

.feature-title {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-dark);
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-description {
  color: var(--text-body);
  line-height: 1.6;
}

/* ===== Testimonial Section ===== */
.testimonial-section {
  background-color: var(--bg-cream);
  padding: 80px 16px;
}

.testimonial-section .section-title {
  color: var(--text-dark);
}

.testimonial-card {
  background-color: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-card);
}

.testimonial-content {
  color: var(--text-body);
}

.testimonial-author-name {
  color: var(--text-dark);
}

.testimonial-author-role {
  color: var(--text-muted);
}

.testimonial-avatar {
  border: 2px solid var(--accent-yellow);
}

/* Splide arrows override for light theme */
.testimonial-splide .splide__arrow,
.project-splide .splide__arrow {
  background-color: var(--bg-white) !important;
  border: 1px solid var(--primary) !important;
}

.testimonial-splide .splide__arrow svg,
.project-splide .splide__arrow svg {
  fill: var(--primary) !important;
}

.google-rating-link .google-rating {
  color: var(--text-dark) !important;
}

/* ===== About Section ===== */
.about-section {
  background-color: var(--bg-cream);
  padding: 80px 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin: 0 auto;
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius-card);
  display: block;
}

.about-text p {
  color: var(--text-body);
  line-height: 1.8;
  font-size: 16.8px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

/* ===== Contact Section ===== */
.contact-section {
  background-color: var(--bg-white);
  padding: 80px 16px;
}

.contact-section .section-title {
  color: var(--text-dark);
}

/* ===== FAQ Section ===== */
.faq-section {
  background-color: var(--bg-cream);
  color: var(--text-dark);
}

.faq-grid {
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 20px 0;
}

.faq-question {
  color: var(--text-dark);
  margin-bottom: 0;
}

.faq-answer {
  color: var(--text-body);
}

/* ===== Footer ===== */
.site-footer {
  background-color: #F6F6F4;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0;
}

.footer-single-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0 8px;
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer,
.site-footer .footer-link,
.site-footer .footer-copyright,
.site-footer .social-link {
  color: var(--text-dark);
}

.site-footer .footer-link:hover {
  color: var(--primary);
}

.site-footer .footer-copyright {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  background-color: var(--text-dark);
}

.mobile-nav-link.cta {
  background-color: var(--primary);
  border-radius: var(--radius-btn);
}

/* ===== Decorative Elements ===== */

/* Hand-drawn circle around a word */
.circle-deco {
  position: relative;
  display: inline-block;
}

.circle-deco::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -12px;
  right: -12px;
  bottom: -8px;
  border: 2.5px solid var(--accent-coral);
  border-radius: 50% 45% 55% 48%;
  transform: rotate(-2deg);
  pointer-events: none;
}

/* Hand-drawn arrow (CSS-only, points down-right) */
.arrow-deco {
  display: inline-block;
  position: relative;
}

.arrow-deco::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M5 10 C15 8, 25 15, 35 30 L30 26 M35 30 L32 22' stroke='%23F5B731' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
  background-size: contain;
  top: 100%;
  right: -10px;
}

/* ===== Hand-drawn arrow down ===== */
.arrow-down-deco {
  width: 40px;
  height: 60px;
  margin: 24px auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 60'%3E%3Cpath d='M20 2 C18 15, 22 30, 20 45 M20 45 L14 36 M20 45 L26 36' stroke='%23F5B731' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 64px;
  }

  .hero-text {
    text-align: left;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-photo-wrapper {
    max-width: 100%;
  }

  .section-title {
    font-size: 44px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 60px;
  }
}

@media (max-width: 767px) {
  .hero-photo-wrapper {
    max-width: 280px;
  }

  .hero-title {
    font-size: 32px;
  }
}

/* ===== Section background alternation (header #F6F6F4; sections alternate cream/white) ===== */
main > section:nth-of-type(odd)  { background-color: #F6F6F4 !important; }
main > section:nth-of-type(even) { background-color: #FFFFFF !important; }

/* CTA buttons: forest-green bg, white text */
.btn-primary, .mobile-nav-link.cta { background-color: #0C4132 !important; color: #FFFFFF !important; }
.btn-primary:hover, .mobile-nav-link.cta:hover { background-color: #0A3428 !important; color: #FFFFFF !important; }

/* Titles -> Inter 800 (was DM Serif Display) */
h1, h2, h3,
.section-title, .hero-title, .problem-card-title,
.step-number, .step-title, .feature-title {
  font-family: var(--font-sans) !important;
  font-weight: 800 !important;
}

/* Remove decorative hand-drawn pseudo-elements (underline / circle / arrow) */
.hero-title .underline-deco::after,
.underline-deco::after,
.circle-deco::before,
.arrow-deco::after {
  content: none !important;
  display: none !important;
}

/* Footer: top padding + dark headings */
.site-footer { padding: 64px 0 32px; }
.site-footer .footer-heading { color: var(--text-dark); }

/* Hero bullet list */
.hero-bullets { list-style:none; padding:0; margin:0 0 32px; text-align:left; display:inline-block; }
.hero-bullets li { font-size:18px; color:var(--text-body); margin-bottom:9.6px; line-height:1.5; }
.hero-bullet-mark { color:var(--accent-coral); font-weight:800; margin-right:8px; }

/* Title accent words (#FD976D + Playfair Display italic) */
.title-accent { color:#FD976D !important; font-family:'Playfair Display',Georgia,serif !important; font-style:italic !important; font-weight:700 !important; }
/* Hero title fixed size */
.hero-title { font-size:48px !important; }

/* Logo stack (svg + subtitle in column) */
.logo, .footer-logo { display: flex; flex-direction: column; align-items: flex-start; }

/* ===== Mobile overflow + responsive fixes ===== */
html { overflow-x: hidden; }
/* Off-canvas mobile menu via transform (right:-100% on a fixed el extends the viewport) */
.mobile-menu { right: 0 !important; transform: translateX(100%); transition: transform 0.3s ease; }
.mobile-menu.active { transform: translateX(0) !important; }
/* Smaller hero title on small screens */
@media (max-width: 550px) {
  .hero-title { font-size: 36px !important; }
}

/* hero padding-top mobile */
@media (max-width: 550px) {
  .hero-section { padding-top: 96px !important; }
}

/* mobile full-bleed wrappers */
@media (max-width: 550px) {
  .section-wrapper { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
  .hero-photo-wrapper { max-width: none !important; }
}

/* problem-card-title mobile size */
@media (max-width: 550px) {
  .problem-card-title { font-size: 20px !important; }
}

/* site-footer mobile side padding */
@media (max-width: 550px) {
  .site-footer { padding-left: 16px !important; padding-right: 16px !important; }
}

/* hero video sizing */
@media (min-width: 768px) { .hero-photo-wrapper { max-width: 100% !important; } }

/* fix: hero photo/video wrapper must fill its column (auto-margins were shrinking it to 0) */
.hero-photo-wrapper { width: 100% !important; }

/* mobile hero order: headline, video, bullets, button */
@media (max-width: 767px) {
  .hero-text { display: contents; }
  .hero-title { order: 1; }
  .hero-photo-wrapper { order: 2; }
  .hero-bullets { order: 3; }
  .hero-cta { order: 4; }
}

/* mobile hero even spacing: drop item margins so the grid gap is the only spacer */
@media (max-width: 767px) {
  .hero-title, .hero-bullets, .hero-cta, .hero-photo-wrapper { margin-top: 0 !important; margin-bottom: 0 !important; }
}
