/* HTDC InsuranceEngine Marketing Site — Styles */
/* Brand Colour Palette (from ThemeColors.cs / app.css) */

:root {
    --primary-color: #F7941D;
    --primary-dark: #E67E22;
    --primary-light: #FFA94D;
    --accent-green: #A4C639;
    --accent-green-dark: #8FB824;
    --text-dark: #2D2D2D;
    --text-light: #666666;
    --text-on-primary: #FFFFFF;
    --background-light: #F5F5F5;
    --background-white: #FFFFFF;
    --border-color: #DDDDDD;
    --primary-alpha-30: rgba(247, 148, 29, 0.3);
    --overlay-white-15: rgba(255, 255, 255, 0.15);
    --overlay-white-80: rgba(255, 255, 255, 0.8);
}

/* ========== Reset & Base ========== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========== Header / Navigation ========== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary-color);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 12px var(--primary-alpha-30);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    color: var(--text-on-primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-on-primary);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    display: inline-block;
    background: var(--accent-green);
    color: var(--text-on-primary) !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600 !important;
    opacity: 1 !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--accent-green-dark);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-on-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ========== Hero Section ========== */

.hero-section {
    background: var(--primary-color);
    color: var(--text-on-primary);
    padding: 140px 24px 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-headline {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subheadline {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    background: var(--accent-green);
    color: var(--text-on-primary);
    padding: 16px 48px;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: var(--accent-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--overlay-white-15);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.trust-badge i {
    font-size: 1.1rem;
}

/* ========== Section Base ========== */

.section {
    padding: 80px 24px;
}

.section-alt {
    padding: 80px 24px;
    background: var(--background-light);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-inner-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 48px;
}

/* ========== Why Choose Us (Feature Cards) ========== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--background-white);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== How It Works (Steps) ========== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: var(--text-on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px var(--primary-alpha-30);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.step-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* ========== Coverage Section ========== */

.coverage-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 1rem;
}

.coverage-card {
    background: var(--background-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
}

.coverage-list {
    list-style: none;
}

.coverage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.coverage-item i {
    color: var(--accent-green);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.coverage-limits {
    text-align: center;
    color: var(--text-light);
    margin-top: 24px;
    font-size: 0.95rem;
}

/* ========== FAQ Section ========== */

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--background-white);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--background-light);
}

.faq-chevron {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 24px 18px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========== Final CTA Section ========== */

.final-cta-section {
    background: var(--primary-color);
    color: var(--text-on-primary);
    padding: 80px 24px;
    text-align: center;
}

.final-cta-headline {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.final-cta-subheadline {
    font-size: 1.125rem;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Footer ========== */

.site-footer {
    background: var(--text-dark);
    color: var(--overlay-white-80);
    padding: 48px 24px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--overlay-white-80);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    text-align: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.footer-contact a {
    color: var(--primary-color);
    transition: opacity 0.2s ease;
}

.footer-contact a:hover {
    opacity: 0.8;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 6px;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--overlay-white-15);
    margin: 24px 0;
}

.footer-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 16px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ========== Responsive ========== */

@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-subheadline {
        font-size: 1.1rem;
    }

    .trust-badges {
        gap: 16px;
    }

    .trust-badge {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .section,
    .section-alt {
        padding: 48px 16px;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }

    .final-cta-section {
        padding: 48px 16px;
    }

    .final-cta-headline {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    /* Mobile navigation */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 16px 24px 24px;
        gap: 16px;
        box-shadow: 0 4px 12px var(--primary-alpha-30);
    }

    .nav-links.open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: 120px 16px 60px;
    }

    .hero-headline {
        font-size: 1.75rem;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .coverage-card {
        padding: 24px 20px;
    }
}
