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

:root {
    /* Primary Colors - Teal/Turquoise */
    --primary-color: #06b6d4;
    --primary-dark: #0891b2;
    --primary-light: #22d3ee;
    --primary-lighter: #a5f3fc;
    
    /* Secondary Colors - Deep Blue */
    --secondary-color: #0f172a;
    --secondary-light: #1e293b;
    --secondary-lighter: #334155;
    
    /* Accent Colors - Coral/Orange */
    --accent-color: #f97316;
    --accent-dark: #ea580c;
    --accent-light: #fb923c;
    
    /* Success/Trust Color */
    --success-color: #10b981;
    --success-light: #34d399;
    
    /* Text Colors */
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #64748b;
    
    /* Background Colors */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-gradient-1: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --bg-gradient-2: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --bg-gradient-hero: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    
    /* Border & Shadows */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-color: 0 10px 30px -5px rgba(6, 182, 212, 0.3);
}

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

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

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-button-nav {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    background: var(--bg-gradient-hero);
    color: white;
    padding: 5rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1511895426328-dc8714191300?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button-large {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 3rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    display: inline-block;
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Trust Badge */
.trust-badge {
    background: var(--bg-white);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.trust-text {
    font-size: 1.25rem;
    color: var(--text-medium);
}

.trust-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Testimonials */
.testimonials {
    background: var(--bg-light);
    padding: 5rem 0;
}

.testimonials .section-title {
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

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

.stars {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    font-style: italic;
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    display: none;
}

/* Stats Section */
.stats-section {
    background: var(--bg-white);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: start;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Trust Logos Section */
.trust-logos {
    background: var(--bg-light);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-logos-title {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-weight: 500;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.logo-badge {
    background: var(--bg-white);
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-dark);
    border: 2px solid var(--primary-lighter);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.logo-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg-white);
}

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

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.step-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--bg-gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-color);
}

.step-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* About Section */
.about {
    background: var(--bg-light);
    padding: 5rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.25rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    background: var(--bg-gradient-2);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.cta-section .cta-button-large {
    background: white;
    color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* Form Styles */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

/* Legal Page Styles */
.legal-hero {
    background: var(--bg-gradient-hero);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.legal-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.legal-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

.legal-content {
    background: var(--bg-white);
    padding: 4rem 0;
}

.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.legal-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.legal-text p {
    margin-bottom: 1.5rem;
}

.legal-list {
    margin: 1.5rem 0 1.5rem 2rem;
    line-height: 1.8;
}

.legal-list li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.legal-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 4rem 0;
}

.legal-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.legal-nav-link {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-lighter);
}

.legal-nav-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

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

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

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

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

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }

    .hero-quote {
        font-size: 1.125rem;
        line-height: 1.4;
        margin-bottom: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1.5rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

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

    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
        margin: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .trust-badge,
    .stats-section,
    .trust-logos {
        padding: 2.5rem 0;
    }

    .testimonials,
    .how-it-works,
    .about,
    .cta-section {
        padding: 3.5rem 0;
    }

    .nav-wrapper {
        gap: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .cta-button-nav {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Legal page mobile styles */
    .legal-hero {
        padding: 3rem 0;
    }

    .legal-hero-title {
        font-size: 2rem;
    }

    .legal-hero-subtitle {
        font-size: 1.125rem;
    }

    .legal-content {
        padding: 3rem 0;
    }

    .legal-title {
        font-size: 2rem;
    }

    .legal-subtitle {
        font-size: 1.25rem;
    }

    .legal-text {
        font-size: 0.9375rem;
    }

    .legal-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .legal-nav-link {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 3rem 0 4rem;
        min-height: 450px;
    }

    .hero-title {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }

    .hero-quote {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.9375rem;
    }

    .cta-button-large {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

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

    .trust-text {
        font-size: 1.125rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .stat-label {
        font-size: 0.9375rem;
    }

    .logos-grid {
        grid-template-columns: 1fr;
    }

    .logo-badge {
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.9375rem;
    }

    .step-icon {
        width: 70px;
        height: 70px;
    }

    .step-icon svg {
        width: 35px;
        height: 35px;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .step-description {
        font-size: 0.9375rem;
    }

    .about-text {
        font-size: 1.125rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-subtitle {
        font-size: 1.375rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    .quote-form {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .hero {
        padding: 2.5rem 0 3.5rem;
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.625rem;
        letter-spacing: -0.5px;
    }

    .hero-quote {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .hero-description {
        font-size: 0.875rem;
    }

    .cta-button-large {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .nav-wrapper {
        padding: 0;
    }

    .logo {
        font-size: 1.375rem;
    }

    .cta-button-nav {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .trust-text {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .stats-grid {
        gap: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    .trust-logos-title {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .stars {
        font-size: 1.125rem;
    }

    .testimonial-text {
        font-size: 0.875rem;
    }

    .testimonial-author {
        font-size: 0.875rem;
    }

    .step-card {
        padding: 1.5rem 1rem;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .step-icon svg {
        width: 30px;
        height: 30px;
    }

    .step-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .step-description {
        font-size: 0.875rem;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1.25rem;
    }

    .cta-text {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .modal-content {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }

    .modal-title {
        font-size: 1.375rem;
    }

    .modal-close {
        font-size: 1.75rem;
        width: 36px;
        height: 36px;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer-text {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .footer-links {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }

    .footer-link {
        font-size: 0.875rem;
    }

    .trust-badge,
    .stats-section,
    .trust-logos {
        padding: 2rem 0;
    }

    .testimonials,
    .how-it-works,
    .about,
    .cta-section {
        padding: 3rem 0;
    }

    /* Legal page mobile styles */
    .legal-hero {
        padding: 2.5rem 0;
    }

    .legal-hero-title {
        font-size: 1.5rem;
    }

    .legal-hero-subtitle {
        font-size: 1rem;
    }

    .legal-content {
        padding: 2.5rem 0;
    }

    .legal-title {
        font-size: 1.75rem;
    }

    .legal-subtitle {
        font-size: 1.125rem;
    }

    .legal-text {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .legal-list {
        margin-left: 1.5rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-quote br {
        display: none;
    }

    .cta-button-large {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}

/* Improve touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .cta-button-nav,
    .cta-button-large,
    .modal-close,
    .footer-link {
        min-height: 44px;
        min-width: 44px;
    }

    .form-group input,
    .form-group select,
    button[type="submit"] {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
