/* CSS Variables and Base Styles */
:root {
    /* New Premium Palette */
    --primary-red: #DD3347;
    --charcoal: #1A1A1A;
    --warm-white: #F8F6F4;
    --champagne-gold: #D6A756;
    --slate-blue: #526471;

    /* Supporting Colors */
    --white: #ffffff;
    --dark-green: #2E7D32;
    --light-gray: #e2e8f0;
    --border-light: #EAE8E4;
    --red-x: #dc3545;
    --gold-star: #ffc107;

    /* New Font Families */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--warm-white);
    color: var(--charcoal);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 { font-size: 3rem; color: var(--primary-red); margin-bottom: 1rem; line-height: 1.2; }
h2 { font-size: 2.5rem; color: var(--charcoal); margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.5rem; color: var(--charcoal); margin-bottom: 1rem; }

section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-light);
}

section:last-of-type {
    border-bottom: none;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    background-color: #c02a3a;
}

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

.btn-outline:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-inverted {
    background-color: var(--white);
    color: var(--primary-red);
}

.btn-inverted:hover {
    background-color: var(--warm-white);
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* Header and Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(248, 246, 244, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.main-nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; width: auto; }
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { text-decoration: none; color: var(--slate-blue); font-weight: 600; position: relative; padding-bottom: 5px; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-red); transition: width 0.3s ease; }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-links a.btn {
    color: var(--white);
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding-top: 10px;    
    padding-bottom: 10px;
}
.nav-links a.btn:hover {
    color: var(--white);
}

/* Mobile Nav */
.hamburger { display: none; cursor: pointer; border: none; background: none; padding: 0;}
.hamburger div { width: 25px; height: 3px; background-color: var(--charcoal); margin: 5px; transition: all 0.3s ease; }

/* Hero Section */
#hero { padding-top: 180px; text-align: center; border-bottom: none; }
.hero-story h1 {
    font-size: 3.2rem;
    line-height: 1.3;
}
.h1-subline {
    font-size: 2rem;
    color: var(--slate-blue);
    font-weight: 700;
}
.hero-story .tagline { font-family: var(--font-body); font-size: 1.2rem; color: var(--slate-blue); margin: 2rem auto; max-width: 700px; }

/* Plan Section */
ol.timeline { display: flex; justify-content: space-between; margin-top: 4rem; position: relative; list-style: none; padding: 0; }
ol.timeline::before { content: ''; position: absolute; top: 29px; left: 5%; width: 90%; height: 2px; background-color: var(--border-light); z-index: 0; }
.timeline-step { flex: 1; text-align: center; position: relative; padding: 0 20px; }
.timeline-step .step-number { width: 60px; height: 60px; background-color: var(--primary-red); color: var(--white); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin: 0 auto 1rem; border: 4px solid var(--warm-white); z-index: 1; position: relative; }

/* Testimonials Section */
.testimonial-slider { position: relative; max-width: 800px; margin: 4rem auto 0; overflow: hidden; border-radius: 10px; }
.slides-container { display: flex; transition: transform 0.5s ease-in-out; }
.testimonial-slide { flex: 0 0 100%; background-color: var(--white); padding: 2.5rem; text-align: center; border: 1px solid var(--border-light); }
.stars { color: var(--gold-star); font-size: 1.2rem; margin-bottom: 1rem; }
.testimonial-slide p { font-style: italic; font-size: 1.1rem; }
.testimonial-author { margin-top: 1.5rem; font-weight: 600; color: var(--slate-blue); }
.slider-nav { position: absolute; top: 50%; width: calc(100% + 40px); left: -20px; display: flex; justify-content: space-between; transform: translateY(-50%); z-index: 2; }
.slider-nav button { background-color: rgba(255, 255, 255, 0.7); border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.5rem; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.2s, background-color 0.2s; color: var(--charcoal); }
.slider-nav button:hover { transform: scale(1.1); background-color: var(--white); }

/* Pricing Section */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; align-items: stretch; }
.pricing-card { border: 1px solid var(--border-light); border-radius: 10px; padding: 2rem; text-align: center; transition: transform 0.3s, box-shadow 0.3s; background-color: var(--white); display: flex; flex-direction: column; height: 100%; }
.pricing-card ul { list-style: none; margin: 2rem 0; padding: 0; text-align: left; flex-grow: 1; }
.pricing-card ul li { margin-bottom: 1rem; display: flex; align-items: center; }
.pricing-card ul li span { margin-right: 10px; font-size: 1.2rem; line-height: 1; }
.pricing-card.popular { border-color: var(--primary-red); transform: scale(1.05); box-shadow: 0 10px 30px rgba(221, 51, 71, 0.15); z-index: 1; }
.pricing-card .price { font-size: 2.5rem; font-weight: 700; font-family: var(--font-heading); color: var(--primary-red); margin: 1rem 0; }
.pricing-card .price span { font-size: 1rem; color: var(--slate-blue); font-weight: 400; font-family: var(--font-body); }
.check { color: var(--champagne-gold); }
.cross { color: var(--red-x); }

/* Footer */
.main-footer { background-color: var(--charcoal); color: var(--warm-white); padding: 40px 0; text-align: center; }
.footer-logo img { height: 60px; width: auto; max-width: 100%; margin-bottom: 1rem; opacity: 0.8; }
.footer-links { list-style: none; display: flex; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }
.footer-links li { margin: 5px 15px; }
.footer-links a { color: var(--warm-white); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-red); }
.legal-links { margin: 1rem 0 1.5rem 0; font-size: 0.85rem; }
.legal-links a { color: var(--light-gray); opacity: 0.7; text-decoration: none; transition: opacity 0.3s; }
.legal-links a:hover { opacity: 1; text-decoration: underline; }
.copyright { font-size: 0.9rem; color: var(--light-gray); opacity: 0.7; }

/* Scroll Animations */
.reveal { position: relative; transform: translateY(100px); opacity: 0; transition: 1s all ease; }
.reveal.active { transform: translateY(0); opacity: 1; }

/* StoryBrand Section Styles */
.section-light { background-color: var(--white); }
.section-intro { text-align: center; max-width: 700px; margin: 0 auto 2rem auto; font-size: 1.1rem; color: var(--slate-blue); }
.problem-list { list-style: none; max-width: 700px; margin: 2rem auto 0 auto; padding: 0; text-align: left; }
.problem-list li { background-color: rgba(221, 51, 71, 0.05); border-left: 4px solid var(--primary-red); padding: 1rem; margin-bottom: 1rem; font-size: 1.1rem; }
.roi-example { text-align: center; margin-top: 4rem; padding: 2rem; background-color: var(--white); border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.vision-card { padding: 2rem; border-radius: 8px; }
.vision-card h3 { margin-top: 0; padding-bottom: 1rem; border-bottom: 2px solid; color: var(--charcoal); }
.vision-card ul { list-style: none; padding: 0; }
.vision-card li { margin-top: 1rem; font-size: 1.1rem; }
.vision-card.success { background-color: #f6fff8; border: 1px solid #d4edda; }
.vision-card.success h3 { color: var(--dark-green); border-color: #d4edda; }
.vision-card.failure { background-color: rgba(221, 51, 71, 0.05); border: 1px solid #f8d7da; }
.vision-card.failure h3 { color: var(--primary-red); border-color: #f8d7da; }
.plan-subtitle { font-style: italic; color: var(--slate-blue); min-height: 40px; margin: 1rem 0; }
.section-cta-wrapper { margin-top: 3rem; text-align: center; }
.final-cta { background-color: var(--primary-red); color: white; text-align: center; }
.final-cta h2, .final-cta p { color: white; text-align: center; }
.final-cta h2 { font-size: 2.5rem; }
.final-cta .risk-reversal { font-weight: 600; color: var(--light-gray); margin-top: 1.5rem; }
.btn-large { padding: 15px 30px; font-size: 1.2rem; margin-top: 1rem; }

/* === Responsive Styles === */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .main-nav { padding: 1rem 0; }
    .nav-links { position: fixed; right: 0; top: 80px; background-color: var(--warm-white); width: 100%; height: calc(100vh - 80px); flex-direction: column; justify-content: center; align-items: center; transform: translateX(100%); transition: transform 0.5s ease-in; }
    .nav-links.nav-active { transform: translateX(0%); }
    .nav-links li { margin: 20px 0; }
    .hamburger { display: block; z-index: 2; }
    .hamburger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.toggle .line2 { opacity: 0; }
    .hamburger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    ol.timeline { flex-direction: column; }
    ol.timeline::before { top: 5%; left: 30px; width: 2px; height: 90%; transform: none; }
    .timeline-step { position: relative; padding: 10px 0 30px 80px; text-align: left; }
    .timeline-step .step-number { position: absolute; left: 0; top: 10px; margin: 0; }
    .pricing-card.popular { transform: scale(1); }
    .slider-nav { width: calc(100% - 20px); left: 10px; }
    .hero-story h1 { font-size: 2.2rem; }
    .h1-subline { font-size: 1.5rem; }
    .vision-grid { grid-template-columns: 1fr; }
    .plan-subtitle { min-height: unset; }
}

/* ACCESSIBILITY: Honor user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .btn:hover {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
