/* Anointed Pages Publishing - Main Stylesheet */

/* CSS Variables for Brand Colors - Anointed Pages Publishing Core Palette */
:root {
    /* Primary Colors - Brand Authority & Trust */
    --royal-navy: #0B1C2D;
    --metallic-gold: #C9A24D;
    
    /* Secondary Colors - Spiritual Warmth & Creativity */
    --deep-purple: #4B2C5E;
    --parchment-cream: #F6F1E7;
    
    /* Accent Colors - Energy & Guidance */
    --rich-burgundy: #7A1F2B;
    --soft-light-gold: #E6D8A3;
    
    /* Gradients */
    --gradient-divine-authority: linear-gradient(135deg, #0B1C2D, #4B2C5E);
    --gradient-anointing: linear-gradient(135deg, #C9A24D, #E6D8A3);
    
    /* Legacy compatibility variables mapped to new palette */
    --primary-black: #0B1C2D;
    --primary-navy: #0B1C2D;
    --primary-purple: #4B2C5E;
    --secondary-gold: #C9A24D;
    --secondary-ivory: #F6F1E7;
    --accent-grey: #666666;
    --text-dark: #0B1C2D;
    --text-light: #F6F1E7;
    --shadow: rgba(11, 28, 45, 0.3);
    
    /* Background colors */
    --page-bg: #F6F1E7;
    --card-bg: rgba(246, 241, 231, 0.9);
    --surface-0: rgba(11, 28, 45, 0.95);
}

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

/* Mobile-First Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure images don't overflow containers */
.container img,
.section img,
.card img,
.hero img {
    max-width: 100%;
    height: auto;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Parallax container */
.parallax-section {
    position: relative;
    overflow: hidden;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
    background-color: var(--parchment-cream);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(201, 162, 77, 0.08), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(75, 44, 94, 0.06), transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    position: relative; /* Establish positioning context */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--deep-purple);
}

/* Mobile-First Typography - Base styles for mobile */
h1 {
    font-size: 2rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

h5, h6 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Header and Navigation */
header {
    background-color: var(--royal-navy);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(11, 28, 45, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--metallic-gold);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    width: 100%;
    position: relative;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 80px;
    width: auto;
    max-width: 100%;
}

.tagline {
    font-size: 1rem;
    color: var(--secondary-gold);
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Mobile-First Navigation */
@media screen and (max-width: 767px) {
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
        height: 100vh !important;
        position: relative !important;
    }
    
    html.menu-open {
        overflow: hidden !important;
        height: 100vh !important;
    }
    
    /* Mobile menu overlay - behind menu but above content, below header */
    body::before {
        content: '';
        position: fixed;
        top: 80px; /* Start below header */
        left: 0;
        width: 100%;
        height: calc(100% - 80px);
        background: rgba(0, 0, 0, 0.6);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }
    
    body.menu-open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Ensure header stays above overlay and menu, but below toggle */
    header {
        z-index: 10001 !important;
        position: relative !important;
        /* backdrop-filter creates stacking context, but menu breaks out with fixed position */
    }
    
    /* When menu is open, ensure header doesn't trap menu */
    body.menu-open header {
        z-index: 10001 !important;
        backdrop-filter: none !important; /* Remove backdrop-filter to prevent stacking context trap */
        isolation: auto !important; /* Don't create stacking context */
    }
    
    /* Mobile menu toggle button - must be above menu */
    .mobile-menu-toggle {
        z-index: 9999999 !important; /* Even higher than menu */
        position: relative !important;
    }
    
    /* Remove any overflow restrictions on parent containers */
    header .header-right {
        position: static !important;
        z-index: auto !important;
        overflow: visible !important;
    }
    
    header .header-container {
        position: relative !important;
        z-index: auto !important;
        overflow: visible !important;
    }
    
    /* CRITICAL: Override ALL base nav styles for mobile - hide by default */
    header .header-right nav,
    header nav,
    body nav,
    nav {
        display: none !important;
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: auto !important;
        margin: 0 !important;
    }
    
    /* Mobile menu ACTIVE state - must override everything with highest specificity */
    header .header-right nav.active,
    header nav.active,
    body nav.active,
    body.menu-open nav.active,
    body.menu-open header nav.active,
    body.menu-open header .header-right nav.active,
    nav.active {
        display: block !important;
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-color: var(--royal-navy) !important;
        background: var(--royal-navy) !important;
        padding: 1.5rem 1rem !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        height: calc(100vh - 80px) !important;
        min-height: calc(100vh - 80px) !important;
        max-height: calc(100vh - 80px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        z-index: 999999 !important; /* Extremely high to break out of any stacking context */
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0 !important;
        pointer-events: auto !important;
        border-top: 2px solid var(--metallic-gold) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        transform: translateZ(0) !important; /* Force hardware acceleration and new stacking context */
        will-change: transform, opacity !important; /* Hint to browser for optimization */
        isolation: isolate !important; /* Create new stacking context for menu */
    }
    
    /* Ensure all page content stays below menu when open */
    body.menu-open section,
    body.menu-open .section,
    body.menu-open .container,
    body.menu-open .hero,
    body.menu-open main,
    body.menu-open footer,
    body.menu-open .hero-content,
    body.menu-open .hero-slide,
    body.menu-open .hero-overlay {
        position: relative !important;
        z-index: 1 !important; /* Stay below menu (999999) */
    }
    
    /* Menu inner container */
    nav ul {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 1.5rem 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    nav li {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        pointer-events: auto !important;
        margin: 0 !important;
    }
    
    nav a {
        position: relative !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: var(--parchment-cream) !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(201, 162, 77, 0.3) !important;
        padding: 1rem 1.5rem !important;
        text-decoration: none !important;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        border-bottom: 1px solid rgba(201, 162, 77, 0.1) !important;
        transition: background-color 0.2s ease, color 0.2s ease !important;
        z-index: 1 !important;
    }
    
    nav a:hover,
    nav a:active,
    nav a:focus {
        background-color: rgba(201, 162, 77, 0.15) !important;
        color: var(--metallic-gold) !important;
    }
    
    nav a.active {
        background-color: rgba(201, 162, 77, 0.2) !important;
        color: var(--metallic-gold) !important;
        font-weight: 600 !important;
    }
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--parchment-cream);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-size: 1rem;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

nav a:hover,
nav a.active {
    color: var(--metallic-gold);
    background-color: rgba(201, 162, 77, 0.1);
}

nav a:hover,
nav a.active {
    color: var(--metallic-gold);
}

.header-tagline {
    font-size: 1rem; /* Increased from 0.875rem for better clarity */
    font-weight: 700; /* Increased from 600 for better visibility */
    color: var(--metallic-gold);
    font-style: italic;
    margin: 0;
    letter-spacing: 0.1em; /* Increased from 0.05em for better readability */
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
    display: none; /* Hidden on mobile */
    line-height: 1.4; /* Added for better line spacing */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* Mobile Menu Toggle - Visible on mobile by default */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--parchment-cream);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100000;
    position: relative;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--metallic-gold);
    outline-offset: 2px;
}

/* Hero Block Section - Modern Block Format */
.hero-block {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-purple) 100%);
    padding: 3rem 1rem;
    width: 100%;
}

.hero-block-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-block-text {
    flex: 1;
}

.hero-block-text h1 {
    color: var(--parchment-cream);
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.hero-block-text .sub-headline {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--metallic-gold);
    font-weight: 600;
    line-height: 1.5;
}

.hero-block-text .hero-body {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--parchment-cream);
}

.hero-block-text .hero-body p {
    margin-bottom: 1.2rem;
    color: rgba(246, 241, 231, 0.95);
}

.hero-tagline-text {
    color: var(--metallic-gold) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    margin-top: 1.5rem !important;
}

.hero-block-text .cta-buttons {
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-block-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--metallic-gold);
}

.hero-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 400px;
}

/* Hero Section with Carousel - Mobile First */
.hero {
    position: relative;
    color: var(--parchment-cream);
    padding: 2rem 1rem;
    text-align: center;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: kenBurns 20s ease-in-out infinite;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 28, 45, 0.85), rgba(75, 44, 94, 0.75));
    z-index: 2;
}

.hero-content {
    max-width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--metallic-gold);
    font-style: italic;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    animation: fadeInDown 1s ease-out;
}

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

.hero-carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 4;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--metallic-gold);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(201, 162, 77, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: var(--metallic-gold);
    transform: scale(1.3);
}

/* Hero Typography - Mobile First */
.hero h1 {
    color: var(--parchment-cream);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(11, 28, 45, 0.5);
    line-height: 1.2;
}

.hero .sub-headline {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--metallic-gold);
    font-weight: 500;
    line-height: 1.4;
}

.hero-body {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: var(--metallic-gold);
    color: var(--royal-navy);
    border: 2px solid var(--metallic-gold);
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-anointing);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: var(--royal-navy);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 162, 77, 0.6);
    border-color: var(--soft-light-gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--parchment-cream);
    border: 2px solid var(--rich-burgundy);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--rich-burgundy);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: var(--metallic-gold);
    border-color: var(--metallic-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(122, 31, 43, 0.6);
}

/* Container and Sections */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.section {
    padding: 2.5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-dark);
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--gradient-anointing);
    margin: 1rem auto;
    animation: expandLine 1s ease-out;
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(11, 28, 45, 0.15);
    border: 2px solid rgba(201, 162, 77, 0.3);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 77, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(11, 28, 45, 0.25), 0 0 30px rgba(201, 162, 77, 0.2);
    border-color: var(--metallic-gold);
    background: rgba(246, 241, 231, 1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--metallic-gold);
    margin-bottom: 1rem;
}

/* Package Cards */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.package-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(11, 28, 45, 0.2);
    border: 2px solid rgba(201, 162, 77, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.package-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 162, 77, 0.05), rgba(75, 44, 94, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.package-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(11, 28, 45, 0.3), 0 0 40px rgba(201, 162, 77, 0.3);
    border-color: var(--metallic-gold);
}

.package-card:hover::after {
    opacity: 1;
}

.package-header {
    background: var(--gradient-divine-authority);
    color: var(--parchment-cream);
    padding: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--metallic-gold);
}

.package-header h3 {
    color: var(--metallic-gold);
    margin-bottom: 0.5rem;
}

.package-tagline {
    font-size: 0.95rem;
    font-style: italic;
}

.package-body {
    padding: 2rem;
}

.package-body ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.package-body li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.package-body li::before {
    content: '✓ ';
    color: var(--metallic-gold);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--deep-purple);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(201, 162, 77, 0.3);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background-color: rgba(246, 241, 231, 0.9);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--metallic-gold);
}

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

/* Steps Section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(139, 0, 255, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    color: var(--text-light);
}

.step-card p,
.step-card li,
.step-card ul {
    color: var(--text-light);
}

.step-card strong {
    color: var(--metallic-gold);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--royal-navy);
    color: var(--metallic-gold);
    border-radius: 50%;
    border: 2px solid var(--metallic-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1;
}

.step-card h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary-gold);
    font-size: 1.4rem;
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(11, 28, 45, 0.15);
    border: 2px solid rgba(201, 162, 77, 0.3);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(11, 28, 45, 0.2);
    border-color: var(--metallic-gold);
    transform: translateX(5px);
}

.faq-question {
    background: var(--royal-navy);
    color: var(--metallic-gold);
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(201, 162, 77, 0.3);
}

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

.faq-answer {
    padding: 1.5rem;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(11, 28, 45, 0.15);
    border: 2px solid rgba(201, 162, 77, 0.3);
    font-style: italic;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    color: rgba(201, 162, 77, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(11, 28, 45, 0.25), 0 0 30px rgba(201, 162, 77, 0.2);
    border-color: var(--metallic-gold);
}

.testimonial-card:hover::before {
    color: rgba(201, 162, 77, 0.2);
    transform: scale(1.1);
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--metallic-gold);
    font-style: normal;
}

/* Books Gallery */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(11, 28, 45, 0.15);
    border: 2px solid rgba(201, 162, 77, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.book-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(201, 162, 77, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(11, 28, 45, 0.3), 0 0 40px rgba(201, 162, 77, 0.3);
    border-color: var(--metallic-gold);
}

.book-card:hover::after {
    opacity: 1;
}

.book-card:hover .book-cover {
    transform: scale(1.05);
}

.book-cover {
    width: 100%;
    height: 350px;
    background: var(--gradient-divine-authority);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    color: var(--metallic-gold);
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--metallic-gold);
}

.book-info {
    padding: 1.5rem;
}

.book-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.book-author {
    color: var(--accent-grey);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--royal-navy);
    backdrop-filter: blur(10px);
    color: var(--parchment-cream);
    padding: 3rem 2rem 1rem;
    border-top: 2px solid var(--metallic-gold);
    box-shadow: 0 -4px 20px rgba(11, 28, 45, 0.3);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--metallic-gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--parchment-cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--metallic-gold);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-purple);
    color: var(--secondary-gold);
    border-radius: 50%;
    border: 2px solid var(--secondary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-gold);
    color: var(--primary-black);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid rgba(201, 162, 77, 0.3);
    border-radius: 5px;
    background-color: rgba(246, 241, 231, 0.9);
    color: var(--text-dark);
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background-color: var(--metallic-gold);
    color: var(--royal-navy);
    border: 2px solid var(--metallic-gold);
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--gradient-anointing);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 162, 77, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-grey);
}

/* Email Capture Popup Modal */
.email-popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.email-popup-modal.active {
    display: flex;
}

.email-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 28, 45, 0.85);
    backdrop-filter: blur(5px);
}

.email-popup-content {
    position: relative;
    background: linear-gradient(135deg, var(--parchment-cream), rgba(246, 241, 231, 0.95));
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--metallic-gold);
    z-index: 10001;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.email-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(246, 241, 231, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(201, 162, 77, 0.3);
    font-size: 1.75rem;
    color: var(--royal-navy);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10002;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.email-popup-close:hover {
    background-color: rgba(11, 28, 45, 0.1);
    color: var(--rich-burgundy);
    transform: rotate(90deg);
    border-color: var(--metallic-gold);
}

.email-popup-body {
    text-align: center;
    padding-top: 1rem;
}

.email-popup-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

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

.email-popup-body h2 {
    color: var(--deep-purple);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.email-popup-subtitle {
    color: var(--metallic-gold);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.email-popup-description {
    color: var(--royal-navy);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.email-popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.email-popup-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--metallic-gold);
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    color: var(--royal-navy);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-popup-input:focus {
    outline: none;
    border-color: var(--deep-purple);
    box-shadow: 0 0 0 3px rgba(75, 44, 94, 0.1);
}

.email-popup-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.email-popup-privacy {
    font-size: 0.85rem;
    color: #646970;
    margin-top: 1rem;
    font-style: italic;
}

.email-popup-success {
    display: none;
    text-align: center;
    padding: 1rem 0;
}

.email-popup-success.active {
    display: block;
}

.email-popup-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--metallic-gold);
}

.email-popup-success h3 {
    color: var(--deep-purple);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.email-popup-success p {
    color: var(--royal-navy);
    font-size: 1rem;
}

/* Mobile Responsive for Popup */
@media (max-width: 767px) {
    .email-popup-modal {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2vh;
    }

    .email-popup-content {
        padding: 1.5rem 1rem 1rem;
        margin: 0;
        max-width: calc(100% - 1rem);
        max-height: 90vh;
        border-radius: 12px;
    }

    .email-popup-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 2rem;
        height: 2rem;
        font-size: 1.5rem;
        background: rgba(246, 241, 231, 0.98);
        border-width: 2px;
    }

    .email-popup-body {
        padding-top: 0.25rem;
    }

    .email-popup-body h2 {
        font-size: 1.25rem;
        margin-bottom: 0.35rem;
        padding-right: 2rem;
    }

    .email-popup-icon {
        font-size: 2.25rem;
        margin-bottom: 0.5rem;
    }

    .email-popup-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .email-popup-description {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        line-height: 1.5;
    }

    .email-popup-form {
        margin-bottom: 0.5rem;
        gap: 0.75rem;
    }

    .email-popup-input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .email-popup-submit {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .email-popup-privacy {
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }
}

/* Container - Mobile First */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

.section {
    width: 100%;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

/* CTA Buttons - Mobile First */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.cta-buttons .btn {
    width: 100%;
}

/* Grids - Mobile First (Single Column) */
.packages-grid,
.features-grid,
.testimonials-grid,
.books-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

/* Prevent horizontal overflow */
.container,
.section,
.hero,
header,
footer {
    overflow-x: hidden;
    width: 100%;
}

/* ========================================
   TABLET STYLES (768px and up)
   ======================================== */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .header-container {
        padding: 1rem 2rem;
    }

    .logo img {
        height: 100px;
    }

    .mobile-menu-toggle {
        display: none;
    }

    nav {
        display: block !important;
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        width: auto !important;
        box-shadow: none !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        border-top: none !important;
        pointer-events: all !important;
        overflow: visible !important;
        z-index: auto !important;
        height: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    /* Desktop: active state doesn't change positioning */
    nav.active {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    nav ul {
        flex-direction: row;
        gap: 1.5rem;
        pointer-events: all !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    nav li {
        pointer-events: all !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    nav a {
        padding: 0;
        background: transparent;
        pointer-events: all !important;
        cursor: pointer !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    nav a:hover,
    nav a.active {
        background: transparent;
    }

    .header-right {
        width: auto;
        align-items: flex-end;
    }

    .header-tagline {
        display: block;
        font-size: 1.1rem; /* Increased from 1rem for better clarity */
        letter-spacing: 0.12em; /* Increased letter spacing */
    }

    .hero-block {
        padding: 4rem 2rem;
    }

    .hero-block-content {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .hero-block-text h1 {
        font-size: 2.5rem;
        text-align: left;
    }

    .hero-block-text .sub-headline {
        font-size: 1.3rem;
        text-align: left;
    }

    .hero-block-text .hero-body {
        text-align: left;
        font-size: 1.15rem;
    }

    .hero-block-image {
        min-height: 500px;
    }

    .hero-block-image img {
        min-height: 500px;
    }

    .hero {
        padding: 3rem 2rem;
        min-height: 450px;
    }

    .hero-content {
        max-width: 800px;
        padding: 0;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero .sub-headline {
        font-size: 1.2rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
        letter-spacing: 2.5px;
    }

    .container {
        max-width: 750px;
        padding: 1rem 2rem;
    }

    .section {
        padding: 3rem 2rem;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .cta-buttons .btn {
        width: auto;
        min-width: 200px;
    }

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

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

/* ========================================
   DESKTOP STYLES (1024px and up)
   ======================================== */
@media (min-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    body {
        font-size: 1.0625rem;
    }

    .header-container {
        max-width: 1400px;
        padding: 1rem 2rem;
    }

    .logo img {
        height: 120px;
    }

    .header-tagline {
        font-size: 1.2rem; /* Increased from 1.1rem for better clarity */
        letter-spacing: 0.15em; /* Increased letter spacing for desktop */
    }

    nav ul {
        gap: 2rem;
    }

    .hero-block {
        padding: 5rem 2rem;
    }

    .hero-block-content {
        gap: 4rem;
    }

    .hero-block-text h1 {
        font-size: 3rem;
    }

    .hero-block-text .sub-headline {
        font-size: 1.5rem;
    }

    .hero-block-text .hero-body {
        font-size: 1.2rem;
    }

    .hero-block-image {
        min-height: 600px;
    }

    .hero-block-image img {
        min-height: 600px;
    }

    .hero {
        padding: 4rem 2rem;
        min-height: 500px;
    }

    .hero-content {
        max-width: 900px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero .sub-headline {
        font-size: 1.4rem;
    }

    .hero-tagline {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .container {
        max-width: 1200px;
        padding: 2rem;
    }

    .section {
        padding: 4rem 2rem;
    }

    .packages-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   LARGE DESKTOP STYLES (1400px and up)
   ======================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .packages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Calendly Widget Styling */
.calendly-inline-widget {
    border-radius: 10px;
    overflow: hidden;
}

#calendly-container {
    animation: fadeIn 0.3s ease-in;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.bg-white {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
}

.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white p,
.bg-white li {
    color: var(--text-dark);
}

.bg-dark {
    background-color: #1a1a1a;
}

.bg-navy {
    background:
        radial-gradient(circle at 50% 10%, rgba(139, 0, 255, 0.28), transparent 55%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(43, 0, 82, 0.55));
    color: white;
}

.bg-purple {
    background: linear-gradient(135deg, var(--primary-black), var(--primary-purple));
    color: white;
}
