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

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #457b9d;
    --accent: #f4a261;
    --light: #f8f9fa;
    --dark: #1d3557;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

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

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo svg {
    width: 40px;
    height: 40px;
    fill: var(--primary);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
    fill: var(--dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    fill: var(--primary);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

/* CTA Button */
.cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cta-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    padding: 18px 36px;
    box-shadow: var(--shadow-lg);
    border-radius: 50px;
    animation: pulse 2s infinite;
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    fill: var(--primary);
}

.feature-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* How It Works */
.steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
}

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

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* FAQ */
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
}

.faq-question svg {
    width: 24px;
    height: 24px;
    fill: var(--gray);
    transition: transform 0.3s;
}

.faq-question.active svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 1000px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

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

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s, opacity 0.3s;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

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

    .section-title {
        font-size: 1.875rem;
    }

    .cta-floating {
        bottom: 20px;
        right: 20px;
        padding: 16px 28px;
        font-size: 1rem;
    }
}

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

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

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

/* Blog Article */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.blog-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--dark);
}

.blog-content h3 {
    font-size: 1.375rem;
    margin: 2rem 0 1rem;
    color: var(--dark);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary);
}

/* Safety & Trust */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
}

.trust-badge svg {
    width: 32px;
    height: 32px;
    fill: var(--secondary);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--gray);
    font-size: 1rem;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    fill: var(--gray);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--gray);
    font-size: 0.875rem;
}

/* === FIX: Additional styles for inline replacement === */

.blog-content .lead {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.blog-content .article-meta {
    color: var(--gray);
    margin-bottom: 2rem;
}

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

.footer-section p {
    opacity: 0.7;
    line-height: 1.6;
}

.footer-section p a {
    color: var(--primary);
}

.related-section {
    border-top: 1px solid var(--gray-light);
    padding-top: 2rem;
}

.related-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-section a {
    color: var(--primary);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.ml-2 {
    margin-left: 1rem;
}

.m-2 {
    margin: 1rem;
}

.cta-btn--secondary {
    background: var(--secondary);
}

.cta-btn--accent {
    background: var(--accent);
}

.cta-btn--light {
    background: white;
    color: var(--primary);
}

.max-w-600 {
    max-width: 600px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.opacity-90 {
    opacity: 0.9;
}

.text-gray {
    color: var(--gray);
}

.bg-light {
    background: var(--gray-light);
}

.section-padding-sm {
    padding: 60px 0;
}

.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: white;
}

.cta-section .section-title {
    color: white;
}

/* Additional utilities for fix */
.max-w-800 {
    max-width: 800px;
}

.mb-1-5 {
    margin-bottom: 1.5rem;
}

/* Additional utilities for FIX */
.mt-1 {
    margin-top: 1rem;
}

.fw-600 {
    font-weight: 600;
}

.text-primary {
    color: var(--primary);
}

.content-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.cta-section .section-title {
    color: white;
}
