/* ============================================
   HomeownerForeclosureBook.com - Main Stylesheet
   Colors based on book cover: Red, Gold, White, Dark
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
    --primary-red: #C41E3A;
    --primary-red-dark: #9B1B30;
    --primary-red-light: #E63946;
    --gold: #FFD700;
    --gold-dark: #DAA520;
    --gold-light: #FFE55C;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --dark: #1A1A2E;
    --dark-lighter: #2D2D44;
    --gray: #6C757D;
    --gray-light: #ADB5BD;
    --success-green: #28A745;
    --warning-orange: #FF6B35;
    --text-dark: #212529;
    --text-muted: #6C757D;
    
    /* Fonts */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--off-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-red-dark);
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: bold;
}

.logo-text span {
    color: var(--gold);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--white);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

nav ul li a:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 50%, var(--primary-red-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content h1 .highlight {
    color: var(--gold);
    display: block;
    font-size: 3.5rem;
}

.hero-tagline {
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: transform var(--transition-normal);
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-red-light) 0%, var(--primary-red) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--dark);
    box-shadow: var(--shadow-md);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background: var(--gold);
    color: var(--dark);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.feature-card h3 {
    color: var(--dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
}

/* ============================================
   WHY THIS BOOK SECTION
   ============================================ */
.why-book {
    padding: 80px 0;
    background: var(--off-white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-content h2 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.why-list {
    list-style: none;
}

.why-list li {
    padding: 15px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
}

.why-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.why-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
}

.pricing .section-header h2 {
    color: var(--white);
}

.pricing .section-header p {
    color: var(--gray-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.pricing-card {
    background: var(--white);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 3px solid var(--gold);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--gold);
    color: var(--dark);
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: bold;
    transform: rotate(45deg);
}

.pricing-tier {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pricing-price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 5px;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-description {
    color: var(--text-muted);
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

.pricing-features li.disabled {
    color: var(--gray-light);
}

.pricing-features li.disabled::before {
    content: '✕';
    color: var(--gray-light);
}

/* ============================================
   EMAIL CAPTURE SECTION
   ============================================ */
.email-capture {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    text-align: center;
}

.email-capture h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.email-capture p {
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.email-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.email-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.email-form button {
    padding: 16px 30px;
    white-space: nowrap;
}

.discount-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* ============================================
   AI SECTION
   ============================================ */
.ai-section {
    padding: 80px 0;
    background: var(--white);
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-content h2 {
    color: var(--dark);
}

.ai-content h2 span {
    color: var(--primary-red);
}

.ai-features {
    list-style: none;
    margin-top: 2rem;
}

.ai-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.ai-features li .icon {
    width: 40px;
    height: 40px;
    background: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    padding: 80px 0;
    background: var(--off-white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 20px;
    padding-top: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--dark);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-links ul li {
    padding: 8px 0;
}

.footer-links ul li a {
    color: var(--gray-light);
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--dark-lighter);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* ============================================
   BLOG STYLES
   ============================================ */
.blog-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.blog-hero h1 {
    color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-card h3 {
    margin-bottom: 10px;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.blog-card a {
    color: var(--primary-red);
    font-weight: bold;
}

/* Blog Post Page */
.blog-post {
    padding: 60px 0;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.blog-post-content ul, .blog-post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   FAQ STYLES
   ============================================ */
.faq-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--off-white);
}

.faq-question .icon {
    font-size: 1.5rem;
    color: var(--primary-red);
    transition: transform var(--transition-fast);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-answer.open {
    padding: 20px 25px;
    max-height: 500px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

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

/* ============================================
   RESOURCES PAGE
   ============================================ */
.resources-section {
    padding: 80px 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.resource-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--white);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h1 .highlight {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .why-grid,
    .ai-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-open ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        padding: 20px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-red { color: var(--primary-red); }
.bg-dark { background: var(--dark); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }