/* ===================================
   PROFESSIONAL BOOK LAUNCH WEBSITE
   Phase 1: Static Foundation CSS
   ================================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: calc(10px + 2rem);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-neutral);
    overflow-x: hidden;
}

:root {
    /* Updated lighter gradient palette */
    --color-primary: #D4C4B0;        /* Lighter warm beige (was #8B7355) */
    --color-secondary: #E8DDD4;      /* Very light taupe */
    --color-accent: #B8860B;         /* Gold accent (replaces muted purple) */
    --color-neutral: #F5F4F0;        /* Keep the warm white */
    --color-text: #2D2926;           /* Keep dark brown text for readability */
    --color-text-light: #5D5A54;     /* Keep lighter text */
    --color-light-grey: #E5E5E5;     /* Light grey for headers/CTA */
    --color-medium-grey: #CCCCCC;    /* Medium grey */
    --color-gold: #DAA520;           /* Primary gold */
    --color-gold-light: #F4E4BC;     /* Light gold */
    --color-gold-dark: #B8860B;      /* Dark gold */
    --color-cream: #FAF7F2;          /* Lighter cream */
    --color-moss: #A8B89A;           /* Lighter moss green */
}


/* ===================================
   TYPOGRAPHY SYSTEM
   ================================== */
h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
}

p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: var(--color-text-light);
}

/* ===================================
   UTILITY CLASSES
   ================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

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

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   NAVIGATION
   ================================== */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    padding: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.navbar {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    margin: 3px 0;
    transition: 0.3s;
}

/* ===================================
   HERO SECTION
   ================================== */
.hero {
    min-height: 65vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f6ecdc 100%);
    color: var(--color-text);
    overflow: hidden;
    padding-bottom: 2rem;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 3rem;
} 

.hero p {
    margin-bottom: 0.5rem;
}

.hero h1 {
    margin-bottom: 2rem;
    transition: all 0.5s ease-in-out;
    border: none;
    border-radius: 8px;
    font-size: 4rem;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
}

.hero h1:hover {
    transform: translateY(-12px);
}

.hero h2 {
    margin-bottom: 1.5rem;
}

.cta-button {
    background-color: var(--color-primary);
    color: var(--color-neutral);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 2.5rem;
    text-decoration: none;
    display: inline-block;
    max-width: 200px;
}

.cta-button:hover {
    background-color: var(--color-moss);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* ===================================
   SECTIONS
   ================================== */

/* Book Preview Section */
.book-preview {
    background: linear-gradient(180deg, #f6ecdc 0%, #ffffff 100%);
    padding: 2rem 0;
}

.book-image-and-preview {
    display: flex;
    gap: 2rem;
}  

.book-image {
    flex: 0 0 300px;
}

.book-image img {
    width: 100%;
    height: auto;
}

.actual-preview {
    flex: 1;
}

.actual-preview h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.actual-preview p {
    font-weight: 600;
    margin-bottom: 1.7rem;
    text-align: center;
    line-height: 1.3;
}

/* Book benefits styling */
.book-benefits {
    margin-top: 2rem;
}

.benefit-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(139, 115, 85, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.benefit-item h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.benefit-item p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.5;
}

/* Author Bio Section */
.author-bio {
    background: linear-gradient(180deg, #ffffff 0%, #f6ecdc 100%);
    padding: 2rem 0;
}

.author-bio h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
}

.author-image-and-bio {
    display: flex;
    gap: 2rem;
    flex-direction: row-reverse;
    align-items: flex-start;
}

.author-image {
    margin-top: 0;
    flex: 0 0 300px;
}

.bio {
    flex: 1;
    padding-top: 1rem;
}

.author-image img {
    width: 100%;
    height: auto;
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(180deg, #f6ecdc 0%, #ffffff 100%);
    padding: 2rem 0;
}

.testimonials h2 {
    padding-top: 0;
    margin-bottom: 2rem;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 1rem;
    margin-bottom: 0;
}

.testimonial-card {
    background-color: var(--color-neutral);
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 115, 85, 0.2);
}

/* Call to Action Section */
.call-to-action {
    padding: 2rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f6ecdc 100%);
}

.call-to-action h2 {
    text-align: center;
}

.call-to-action h3 {
    letter-spacing: -0.1rem;
    line-height: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.call-to-action p {
    line-height: 1.3rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Content Grid */
.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-section,
.pricing-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.benefits-section h4,
.pricing-section h4 {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

/* Benefits list styling */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.checkmark {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.benefit-point span:last-child {
    color: var(--color-text);
    line-height: 1.4;
    font-size: 1rem;
}

/* Pricing list styling */
.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-point {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--color-neutral);
    transition: all 0.3s ease;
}

.price-point:hover {
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.price-point.featured {
    border-color: var(--color-primary);
    background: rgba(139, 115, 85, 0.1);
}

.format {
    font-weight: 600;
    color: var(--color-text);
}

.price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.savings {
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 600;
}

.cta-cta-button {
    background-color: var(--color-primary);
    color: var(--color-neutral);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    max-width: 250px;
    width: auto;
}

.cta-cta-button:hover {
    background-color: var(--color-moss);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* ===================================
   FOOTER
   ================================== */
footer {
    text-align: center;
    padding: 1rem 0 2rem;
    background: linear-gradient(180deg, #f6ecdc 0%, #ffffff 100%);
    border-top: 1px solid rgba(139, 115, 85, 0.2);
}

footer h4 {
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02rem;
}

footer p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

footer p:last-child {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===================================
   RESPONSIVE DESIGN
   ================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 2rem 0;
        text-align: center;
        min-height: 50vh;
    }
    
    .hero-content {
        margin-top: 2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    /* CTA Content Mobile */
    .cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .benefits-section,
    .pricing-section {
        padding: 1.5rem;
    }
    
    /* Layout Mobile */
    .book-image-and-preview,
    .author-image-and-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .book-image,
    .author-image {
        flex: none;
        max-width: 250px;
        margin: 0 auto 2rem;
    }
    
    .actual-preview,
    .bio {
        flex: none;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-button,
    .cta-cta-button {
        max-width: 100%;
        width: auto;
        padding: 1rem 2rem;
    }
    
    /* Section spacing mobile */
    .book-preview,
    .author-bio,
    .testimonials,
    .call-to-action {
        padding: 1.5rem 0;
    }
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   ================================== */
.hero,
.btn,
.feature-card {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   FINAL GAP FIXES - ADD TO END OF STYLE.CSS
   ================================== */

/* Force remove all gaps between sections */
.book-preview,
.author-bio,
.testimonials,
.call-to-action {
    padding: 1.5rem 0 !important;
    margin: 0 !important;
}

/* Ensure no overflow or extra space */
.hero {
    margin-bottom: 0 !important;
    padding-bottom: 1rem !important;
}

/* Fix author bio cutoff */
.author-bio .bio {
    padding-top: 0 !important;
}

.author-bio h2 {
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
}

.author-image {
    margin-top: 0 !important;
}

/* Ensure sections stack properly */
section {
    display: block;
    width: 100%;
    clear: both;
}

/* Mobile fixes */
@media (max-width: 768px) {
    .book-preview,
    .author-bio,
    .testimonials,
    .call-to-action {
        padding: 1rem 0 !important;
    }
    
    .author-image-and-bio {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    
    .author-image,
    .book-image {
        max-width: 250px !important;
        margin: 0 auto 1rem !important;
        flex: none !important;
    }
}

/* ===================================
   AGGRESSIVE TEXT CUTOFF FIX
   Add this to the VERY END of style.css
   ================================== */

/* Fix author bio container */
.author-bio {
    padding: 2rem 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f6ecdc 100%) !important;
    overflow: visible !important;
    min-height: auto !important;
}

.author-bio .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    overflow: visible !important;
}

.author-image-and-bio {
    display: flex !important;
    gap: 2rem !important;
    flex-direction: row-reverse !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
}

.author-image {
    flex: 0 0 300px !important;
    margin: 0 !important;
    max-width: 300px !important;
}

.bio {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
}

.bio h2 {
    margin: 0 0 1.5rem 0 !important;
    text-align: left !important;
    width: 100% !important;
}

.bio p {
    margin-bottom: 1.5rem !important;
    line-height: 1.6 !important;
    text-align: justify !important;
    width: 100% !important;
    overflow: visible !important;
    word-wrap: break-word !important;
}

/* Force testimonials to start properly */
.testimonials {
    margin-top: 0 !important;
    padding-top: 2rem !important;
    clear: both !important;
}

/* Mobile fixes */
@media (max-width: 768px) {
    .author-image-and-bio {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
    
    .author-image {
        flex: none !important;
        max-width: 250px !important;
        margin: 0 auto !important;
    }
    
    .bio {
        flex: none !important;
        text-align: center !important;
    }
    
    .bio h2 {
        text-align: center !important;
    }
    
    .bio p {
        text-align: left !important;
    }
}


/* ===================================
   BROWSER CLICK/FOCUS VIEWPORT FIX
   Add this to the VERY END of style.css
   ================================== */

/* Force stable layout regardless of browser focus */
.author-bio {
    padding: 2rem 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f6ecdc 100%) !important;
    overflow: visible !important;
    min-height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.author-bio .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.author-image-and-bio {
    display: flex !important;
    gap: 2rem !important;
    flex-direction: row-reverse !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
}

.author-image {
    flex: 0 0 300px !important;
    margin: 0 !important;
    max-width: 300px !important;
    min-width: 250px !important;
    box-sizing: border-box !important;
}

.bio {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    width: auto !important;
    box-sizing: border-box !important;
}

.bio h2 {
    margin: 0 0 1.5rem 0 !important;
    text-align: left !important;
    width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
}

.bio p {
    margin-bottom: 1.5rem !important;
    line-height: 1.6 !important;
    text-align: justify !important;
    width: 100% !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    display: block !important;
}

/* Prevent responsive breakpoint issues */
@media screen and (min-width: 769px) {
    .author-image-and-bio {
        flex-direction: row-reverse !important;
        flex-wrap: nowrap !important;
    }
    
    .author-image {
        flex: 0 0 300px !important;
        max-width: 300px !important;
    }
    
    .bio {
        flex: 1 !important;
        min-width: 400px !important;
    }
}

/* Fix for browser zoom/focus changes */
@media screen and (max-width: 1199px) and (min-width: 769px) {
    .author-image {
        flex: 0 0 250px !important;
        max-width: 250px !important;
    }
    
    .bio {
        flex: 1 !important;
        min-width: 300px !important;
    }
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .author-image-and-bio {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
    
    .author-image {
        flex: none !important;
        max-width: 250px !important;
        margin: 0 auto !important;
    }
    
    .bio {
        flex: none !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .bio h2 {
        text-align: center !important;
    }
    
    .bio p {
        text-align: left !important;
    }
}

/* ===================================
   SCROLL-TRIGGERED LAYOUT FIX
   Add this to the VERY END of style.css
   ================================== */

/* Prevent scroll-based layout changes */
html {
    scroll-behavior: smooth !important;
}

body {
    overflow-x: hidden !important;
}

/* Force stable layout during scroll */
.author-bio {
    position: relative !important;
    z-index: 1 !important;
    will-change: auto !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
}

.author-bio .container {
    position: relative !important;
    z-index: 2 !important;
    transform: translateZ(0) !important;
}

.author-image-and-bio {
    position: relative !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 2rem !important;
    width: 100% !important;
    min-height: 400px !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    transform: translateZ(0) !important;
}

.bio {
    position: relative !important;
    z-index: 4 !important;
    flex: 1 !important;
    min-width: 300px !important;
    max-width: calc(100% - 320px) !important;
    padding-right: 1rem !important;
    transform: translateZ(0) !important;
}

.author-image {
    position: relative !important;
    z-index: 4 !important;
    flex: 0 0 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
    transform: translateZ(0) !important;
}

/* Prevent scroll-triggered responsive changes */
@media screen and (min-width: 900px) {
    .author-image-and-bio {
        min-height: 350px !important;
    }
    
    .bio {
        min-width: 400px !important;
        max-width: calc(100% - 320px) !important;
    }
}

@media screen and (min-width: 1200px) {
    .bio {
        min-width: 500px !important;
        max-width: calc(100% - 320px) !important;
    }
}

/* Disable problematic CSS properties during scroll */
* {
    -webkit-transform-style: flat !important;
    transform-style: flat !important;
}

/* Force text visibility */
.bio h2,
.bio p {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Mobile scroll fix */
@media screen and (max-width: 768px) {
    .author-image-and-bio {
        flex-direction: column !important;
        min-height: auto !important;
        gap: 1.5rem !important;
    }
    
    .author-image {
        flex: none !important;
        max-width: 250px !important;
        min-width: 200px !important;
        margin: 0 auto !important;
    }
    
    .bio {
        flex: none !important;
        min-width: auto !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }
}

/* ===================================
   Z-INDEX STACKING FIX
   Add this to the VERY END of style.css
   ================================== */

/* Fix section stacking order */
.author-bio {
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 2rem !important;
    padding-bottom: 3rem !important;
}

.testimonials {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 0 !important;
    padding-top: 2rem !important;
    clear: both !important;
}

.call-to-action {
    position: relative !important;
    z-index: 3 !important;
    clear: both !important;
}

/* Remove problematic transforms that cause stacking issues */
.author-bio,
.author-bio .container,
.author-image-and-bio,
.bio,
.author-image {
    transform: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
}

/* Ensure proper spacing between sections */
.author-bio + .testimonials {
    margin-top: 2rem !important;
}

/* Mobile fix */
@media screen and (max-width: 768px) {
    .author-bio {
        padding-bottom: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .testimonials {
        padding-top: 1rem !important;
    }
}


/* ===================================
   TESTIMONIALS SCROLL TRIGGER FIX
   Add this to the VERY END of style.css
   ================================== */

/* Fix testimonials section causing author bio collapse */
.testimonials {
    position: static !important;
    z-index: auto !important;
    display: block !important;
    clear: both !important;
    overflow: visible !important;
    margin-top: 0 !important;
    padding-top: 2rem !important;
}

.testimonials .container {
    position: static !important;
    overflow: visible !important;
    display: block !important;
}

.testimonial-grid {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    overflow: visible !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.testimonial-card {
    position: static !important;
    display: block !important;
    overflow: visible !important;
    margin: 0 !important;
}

/* Prevent testimonials from affecting author bio layout */
.author-bio {
    position: static !important;
    z-index: auto !important;
    display: block !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
    padding-bottom: 2rem !important;
}

.author-bio .container {
    position: static !important;
    overflow: visible !important;
}

.author-image-and-bio {
    position: static !important;
    z-index: auto !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 2rem !important;
    overflow: visible !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bio {
    position: static !important;
    flex: 1 !important;
    overflow: visible !important;
    min-width: 300px !important;
}

.author-image {
    position: static !important;
    flex: 0 0 300px !important;
    overflow: visible !important;
}

/* Remove ALL transforms and hardware acceleration */
.author-bio,
.author-bio *,
.testimonials,
.testimonials * {
    transform: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
}

/* Mobile testimonials fix */
@media screen and (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .author-image-and-bio {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .author-image {
        flex: none !important;
        max-width: 250px !important;
        margin: 0 auto !important;
    }
    
    .bio {
        flex: none !important;
        min-width: auto !important;
    }
}


hero {
    background: linear-gradient(180deg, #ffffff 0%, #F0EBE3 100%) !important;
}

/* .book-preview {
    background: linear-gradient(180deg, #F0EBE3 0%, #ffffff 100%) !important;
} */

/* .author-bio {
    background: linear-gradient(180deg, #ffffff 0%, #F0EBE3 100%) !important;
} */

.testimonials {
    background: linear-gradient(180deg, #F0EBE3 0%, #ffffff 100%) !important;
}
/* 
.call-to-action {
    background: linear-gradient(180deg, #E5E5E5 0%, #F0F0F0 100%) !important;
} */

/* Update button colors */
.cta-button {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%) !important;
    color: white !important;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-accent) 100%) !important;
}

.cta-cta-button {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%) !important;
    color: white !important;
}

.cta-cta-button:hover {
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-accent) 100%) !important;
}

/* Update navigation hover */
.nav-link:hover {
    color: var(--color-gold) !important;
}

.nav-link.active {
    color: var(--color-gold) !important;
}

.nav-link.active::after {
    background: var(--color-gold) !important;
}

/* Update benefit item accents */
.benefit-item {
    border-left: 4px solid var(--color-gold) !important;
}

.benefit-item h4 {
    color: var(--color-gold-dark) !important;
}

.checkmark {
    color: var(--color-gold) !important;
}

/* Update testimonial cards */
.testimonial-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(212, 196, 176, 0.3) !important;
}

/* Update pricing accents */
.price {
    color: var(--color-gold-dark) !important;
}

.price-point.featured {
    border-color: var(--color-gold) !important;
    background: rgba(218, 165, 32, 0.1) !important;
}

.price-point:hover {
    border-color: var(--color-gold) !important;
}

/* Update hero title effect */
.hero h1 {
    color: var(--color-text) !important;
    text-shadow: 1px 2px 6px rgba(218, 165, 32, 0.2) !important;
}

/* Contact and support page hero updates */
.contact-hero,
.support-hero {
    background: linear-gradient(135deg, var(--color-light-grey) 0%, var(--color-medium-grey) 100%) !important;
}

.about-hero {
    background: linear-gradient(135deg, var(--color-neutral) 0%, var(--color-cream) 100%) !important;
}

/* Update footer */
footer {
    background: linear-gradient(180deg, #F0EBE3 0%, #ffffff 100%) !important;
    border-top: 1px solid rgba(212, 196, 176, 0.3) !important;
}

/* Update contact and support buttons */
.support-btn,
.format-btn,
.submit-btn {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%) !important;
}

.support-btn:hover,
.format-btn:hover,
.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-accent) 100%) !important;
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.3) !important;
}

/* Update contact cards and support cards */
.contact-card,
.support-card,
.impact-card,
.learning-card,
.format-card {
    border: 1px solid rgba(212, 196, 176, 0.2) !important;
}

.contact-card:hover,
.support-card:hover,
.impact-card:hover,
.learning-card:hover,
.format-card:hover {
    box-shadow: 0 20px 40px rgba(218, 165, 32, 0.15) !important;
}

/* Update featured cards */
.support-card.featured,
.format-card.featured {
    border: 2px solid var(--color-gold) !important;
}

.support-card.featured::before,
.format-card.featured::before {
    background: var(--color-gold) !important;
}

/* Update copy button and other accent elements */
.copy-btn {
    background: var(--color-gold) !important;
}

.copy-btn:hover {
    background: var(--color-gold-dark) !important;
}

/* Update contact link colors */
.contact-link {
    color: var(--color-gold-dark) !important;
}

.contact-link:hover {
    color: var(--color-gold) !important;
}

.contact-email {
    color: var(--color-gold-dark) !important;
}

.contact-email:hover {
    color: var(--color-gold) !important;
}

/* Update quote styling */
.book-quote {
    background: linear-gradient(135deg, var(--color-cream) 0%, rgba(255,255,255,0.8) 100%) !important;
    border-left: 4px solid var(--color-gold) !important;
}

.book-quote blockquote::before {
    color: var(--color-gold) !important;
}

/* Update form focus states */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-gold) !important;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1) !important;
}

/* Update payment info styling */
.payment-info {
    border-left: 4px solid var(--color-gold) !important;
}

/* Update share buttons */
.share-btn {
    border: 2px solid var(--color-gold) !important;
    color: var(--color-gold-dark) !important;
}

.share-btn:hover {
    background: var(--color-gold) !important;
    color: white !important;
}

