/*
Theme Name: Gold Thread 120926-3
Theme URI: https://goldthreadllc.com
Author: Julie Averill
Author URI: https://goldthreadllc.com
Description: A warm, creative, and uplifting design for Julie Averill - Book-forward leadership site. Enhanced contrast throughout for optimal readability. Complete theme with all content and images included.
Version: 3.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: goldthread-120926-3
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   CSS VARIABLES & FOUNDATION
   ============================================ */

:root {
    /* Brand Colors - Warm & Energetic */
    --color-deep-blue: #0d1b2a;
    --color-navy: #1b263b;
    --color-warm-terracotta: #e07a5f;
    --color-coral: #f4a261;
    --color-sunshine: #f2cc8f;
    --color-cream: #fdf6e3;
    --color-soft-cream: #fef9f0;
    --color-warm-white: #ffffff;
    --color-sage: #81b29a;
    --color-text-dark: #2d3142;
    --color-text-medium: #4f5d75;
    --color-text-light: #8b95a8;
    
    /* Legacy color aliases for template compatibility */
    --color-charcoal: #0d1b2a;
    --color-charcoal-light: #1b263b;
    --color-charcoal-dark: #080f16;
    --color-gold: #e07a5f;
    --color-gold-light: #f4a261;
    --color-gold-dark: #c96850;
    --color-warm-gray: #4f5d75;
    --color-warm-gray-light: #8b95a8;
    
    /* Typography - Distinctive & Warm */
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Crimson Pro', Georgia, serif;
    --font-accent: 'DM Serif Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(224, 122, 95, 0.08);
    --shadow-md: 0 8px 24px rgba(224, 122, 95, 0.12);
    --shadow-lg: 0 16px 48px rgba(224, 122, 95, 0.16);
    --shadow-book: 0 20px 60px rgba(224, 122, 95, 0.25), 0 8px 16px rgba(224, 122, 95, 0.15);
}

/* ============================================
   RESET & BASE
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Serif+Display:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

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

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

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-dark);
    background-color: var(--color-soft-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--color-coral);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-deep-blue);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

strong {
    font-weight: 600;
}

.text-accent {
    color: var(--color-warm-terracotta);
}

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 246, 227, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(224, 122, 95, 0.12);
    transition: all var(--transition-medium);
}

.site-header.scrolled {
    background: rgba(253, 246, 227, 0.98);
    box-shadow: var(--shadow-sm);
    border-bottom-color: rgba(224, 122, 95, 0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: var(--container-max);
    margin: 0 auto;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-deep-blue);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform var(--transition-fast);
}

.site-logo:hover {
    transform: translateY(-2px);
}

.site-logo .thread-icon {
    width: 32px;
    height: 32px;
    stroke: var(--color-warm-terracotta);
    stroke-width: 2.5;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.main-nav a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-warm-terracotta), var(--color-coral));
    transition: width var(--transition-fast), left var(--transition-fast);
    border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
    left: 0;
}

.main-nav a:hover {
    color: var(--color-warm-terracotta);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-deep-blue);
    margin: 5px 0;
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION - ENERGETIC & BOOK-FORWARD
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--color-soft-cream) 0%, #fff5e1 50%, var(--color-cream) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.08) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '📚';
    position: absolute;
    font-size: 15rem;
    opacity: 0.03;
    bottom: -5%;
    left: -5%;
    animation: rotate-slow 30s linear infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-compact {
    min-height: 85vh;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-message-first {
    grid-template-columns: 1.2fr 0.8fr;
}

.hero-text {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-tagline {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-warm-terracotta);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.02em;
    position: relative;
    display: inline-block;
}

.hero-tagline::before {
    content: '✨';
    margin-right: 0.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.hero h1 {
    margin-bottom: var(--spacing-md);
    line-height: 1.05;
}

.hero h1 span {
    color: var(--color-warm-terracotta);
    position: relative;
    display: inline-block;
}

.hero h1 strong {
    color: var(--color-coral);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-warm-terracotta), var(--color-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.hero-image-small {
    position: relative;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-image-small img {
    width: 100%;
    max-width: 350px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-medium);
}

.hero-image-small:hover img {
    transform: scale(1.02) rotate(-1deg);
}

.hero-image-small::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px dashed var(--color-warm-terracotta);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.5;
}

/* ============================================
   BUTTONS - PLAYFUL & DISTINCTIVE
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1.1rem 2.25rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-warm-terracotta), var(--color-coral));
    color: var(--color-warm-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--color-warm-terracotta);
    color: var(--color-warm-white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.4rem 3rem;
    font-size: 1.05rem;
}

/* ============================================
   BOOK SECTION - STAR OF THE SHOW
   ============================================ */

.book-section {
    background: linear-gradient(135deg, var(--color-deep-blue) 0%, #243447 100%);
    color: var(--color-cream);
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.book-section::before {
    content: '⭐';
    position: absolute;
    font-size: 20rem;
    opacity: 0.05;
    top: -10%;
    right: -5%;
    animation: rotate-slow 40s linear infinite;
}

.book-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--color-soft-cream), transparent);
    pointer-events: none;
}

.book-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.book-cover-featured {
    position: relative;
    animation: book-float 3s ease-in-out infinite;
}

@keyframes book-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.book-cover-featured img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: var(--shadow-book);
    transition: transform var(--transition-medium);
}

.book-cover-featured:hover img {
    transform: scale(1.05) rotate(0deg);
}

.book-cover-featured::before {
    content: '📖';
    position: absolute;
    font-size: 4rem;
    top: -30px;
    right: -30px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.book-info h2 {
    color: var(--color-cream);
    margin-bottom: var(--spacing-sm);
}

.book-info h2 span {
    background: linear-gradient(135deg, var(--color-coral), var(--color-sunshine));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.book-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-sunshine);
    margin-bottom: var(--spacing-xs);
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(242, 204, 143, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(242, 204, 143, 0.3);
}

.book-subtitle {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(253, 246, 227, 0.85);
    margin-bottom: var(--spacing-md);
}

.book-description {
    font-size: 1.2rem;
    color: rgba(253, 246, 227, 0.9);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.book-release {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-sunshine);
    margin-bottom: var(--spacing-md);
}

/* ============================================
   SIGNUP FORMS - ENERGETIC
   ============================================ */

.signup-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.signup-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1.2rem 1.75rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid rgba(253, 246, 227, 0.3);
    border-radius: 50px;
    background: rgba(253, 246, 227, 0.1);
    color: var(--color-cream);
    transition: all var(--transition-fast);
}

.signup-form input[type="email"]::placeholder {
    color: rgba(253, 246, 227, 0.5);
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-coral);
    background: rgba(253, 246, 227, 0.15);
    box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.2);
}

.signup-privacy {
    font-size: 0.9rem;
    color: rgba(253, 246, 227, 0.6);
    font-style: italic;
}

/* ============================================
   SERVICE CARDS - PLAYFUL
   ============================================ */

.services-overview {
    background: var(--color-soft-cream);
}

.services-row {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.service-card-compact {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--color-warm-white);
    border: 2px solid transparent;
    border-radius: 16px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.service-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.05), rgba(244, 162, 97, 0.05));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.service-card-compact:hover {
    border-color: var(--color-warm-terracotta);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.service-card-compact:hover::before {
    opacity: 1;
}

.service-icon-small {
    width: 48px;
    height: 48px;
    stroke: var(--color-warm-terracotta);
    flex-shrink: 0;
    transition: transform var(--transition-bounce);
}

.service-card-compact:hover .service-icon-small {
    transform: scale(1.1) rotate(5deg);
}

.service-card-content {
    flex: 1;
}

.service-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-deep-blue);
}

.service-card-content p {
    font-size: 1rem;
    color: var(--color-text-medium);
    margin-bottom: 0;
    line-height: 1.6;
}

.service-arrow {
    font-size: 1.5rem;
    color: var(--color-warm-terracotta);
    transition: transform var(--transition-fast);
}

.service-card-compact:hover .service-arrow {
    transform: translateX(5px);
}

/* ============================================
   EXCERPTS - ENGAGING
   ============================================ */

.excerpts-section {
    background: var(--color-cream);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-text-medium);
}

.excerpts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.excerpt-card {
    background: var(--color-warm-white);
    padding: var(--spacing-md);
    border-radius: 12px;
    border-left: 4px solid var(--color-warm-terracotta);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    position: relative;
}

.excerpt-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 5rem;
    font-family: var(--font-accent);
    color: rgba(224, 122, 95, 0.08);
    line-height: 1;
}

.excerpt-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
}

.excerpt-chapter {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-warm-terracotta);
    margin-bottom: var(--spacing-sm);
}

.excerpt-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.excerpt-context {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* ============================================
   CREDENTIALS - CELEBRATORY
   ============================================ */

.credentials-bar {
    background: linear-gradient(135deg, var(--color-warm-terracotta), var(--color-coral));
    color: var(--color-warm-white);
    padding: var(--spacing-md) 0;
}

.credentials-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.credential-chip {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.credential-chip:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.credential-chip strong {
    color: var(--color-sunshine);
}

.credential-divider {
    font-size: 1.5rem;
    opacity: 0.5;
}

/* ============================================
   CONTACT CTA - WARM & INVITING
   ============================================ */

.contact-section {
    background: var(--color-soft-cream);
}

.contact-cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--color-warm-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(224, 122, 95, 0.1);
}

.contact-cta-text h2 {
    margin-bottom: var(--spacing-sm);
}

.contact-cta-text h2 span {
    color: var(--color-warm-terracotta);
}

.contact-cta-text p {
    font-size: 1.2rem;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-sm);
    max-width: 500px;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-warm-terracotta);
    padding: 0.6rem 1.2rem;
    background: rgba(224, 122, 95, 0.1);
    border-radius: 30px;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-warm-terracotta);
    color: var(--color-warm-white);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

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

.site-footer {
    background: var(--color-deep-blue);
    color: rgba(253, 246, 227, 0.8);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-text {
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(253, 246, 227, 0.8);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-sunshine);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.15s; }
.stagger-2 { transition-delay: 0.3s; }
.stagger-3 { transition-delay: 0.45s; }
.stagger-4 { transition-delay: 0.6s; }

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

@media (max-width: 1024px) {
    .hero-content,
    .hero-message-first,
    .book-content,
    .contact-cta-box {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .hero-image-small {
        order: -1;
        text-align: center;
    }
    
    .hero-image-small img {
        margin: 0 auto;
    }
    
    .book-cover-featured {
        text-align: center;
    }
    
    .book-cover-featured img {
        margin: 0 auto;
    }
    
    .services-row {
        flex-direction: column;
    }
    
    .credentials-inline {
        gap: var(--spacing-sm);
    }
    
    .credential-divider {
        display: none;
    }
    
    .contact-cta-box {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-cta-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-soft-cream);
        flex-direction: column;
        padding: var(--spacing-md);
        border-bottom: 2px solid rgba(224, 122, 95, 0.2);
        box-shadow: var(--shadow-sm);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        min-height: auto;
        padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg);
    }
    
    .hero-compact {
        padding: calc(80px + var(--spacing-md)) 0 var(--spacing-lg);
    }
    
    .signup-form {
        flex-direction: column;
    }
    
    .signup-form input[type="email"] {
        min-width: 100%;
    }
    
    .excerpts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .credentials-inline {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

.page-transition {
    animation: pageIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   CONTRAST IMPROVEMENTS FOR ACCESSIBILITY
   ============================================ */

/* Better text contrast on dark backgrounds */
.hero-description {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    opacity: 1 !important;
}

/* Ensure headings are bold and visible on dark backgrounds */
section[style*="background"] h1,
section[style*="background"] h2 {
    font-weight: 700;
}

/* Better contrast for body text on light backgrounds */
.topic-card p,
.service-card-content p,
.excerpt-text,
.book-narrative p {
    color: var(--color-text-dark);
    font-weight: 500;
}

/* Headings with better weight */
.topic-card h4,
.service-card-content h3,
section h3,
section h4 {
    font-weight: 700;
    color: var(--color-text-dark);
}

/* Better visibility for colored text */
.hero-tagline {
    font-weight: 600;
}

/* Improved contrast for links */
a {
    font-weight: 500;
}

/* Better readability for list items */
ul li, ol li {
    color: var(--color-text-dark);
    font-weight: 500;
}

/* Credentials and stats */
.credential-value,
.credential-chip strong {
    font-weight: 700;
}

/* Section subtitles */
.section-subtitle {
    color: var(--color-text-medium);
    font-weight: 500;
}

/* Ensure lists on dark backgrounds are always readable */
section[style*="background: var(--color-charcoal)"] ul li,
section[style*="background: var(--color-deep-blue)"] ul li,
section[style*="background: linear-gradient"] ul li,
.advisory-services li {
    color: var(--color-cream) !important;
    font-weight: 500 !important;
    font-size: 1.1rem;
    line-height: 1.9;
}

/* Paragraphs on dark backgrounds */
section[style*="background: var(--color-charcoal)"] p,
section[style*="background: var(--color-deep-blue)"] p,
section[style*="background: linear-gradient(135deg, var(--color-deep-blue)"] p {
    color: var(--color-cream) !important;
    font-weight: 500 !important;
}

/* Special styling for list containers on dark backgrounds */
.advisory-services {
    list-style-position: outside;
    padding-left: 1.5rem;
}

.advisory-services li::marker {
    color: var(--color-sunshine);
}
