/* Landing Page Styles for Contractor Invoices */

/* Smooth scrolling with fixed header offset */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

:target {
    scroll-margin-top: 90px;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #059669;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --bg-gradient-start: #f0f9ff;
    --bg-gradient-end: #ffffff;
}
body {
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.btn-primary-cta:focus,
.btn-secondary-cta:focus,
.landing-nav .btn-nav-cta:focus,
.landing-nav .nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.20);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 5rem 0 4rem;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-headline {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-subhead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.beta-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn-primary-cta {
    background: var(--primary-color);
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #fff;
    display: inline-block;
}

.btn-primary-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    color: #fff;
}

.btn-secondary-cta {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-cta:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Trust Strip */
.trust-strip {
    background: var(--bg-light);
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.trust-item {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.trust-item svg {
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.75rem;
    height: 100%;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.coming-soon-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

/* How It Works */
.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-connector {
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: #e5e7eb;
}

@media (max-width: 767px) {
    .step-connector::after {
        display: none;
    }
}

/* FAQ Accordion */
.faq-section .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-section .accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    background: #fff;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--bg-light);
    color: var(--primary-color);
    box-shadow: none;
}

.faq-section .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
}

.faq-section .accordion-body {
    padding: 1rem 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Final CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    color: #fff;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-banner .btn-primary-cta {
    background: #fff;
    color: var(--primary-color);
}

.cta-banner .btn-primary-cta:hover {
    background: #f8fafc;
    color: var(--primary-dark);
}

/* Navbar Customization */
.landing-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.landing-nav .navbar-brand {
    font-weight: 700;
    color: var(--text-dark) !important;
    font-size: 1.25rem;
}

.landing-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.landing-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.landing-nav .btn-nav-cta {
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 0.375rem;
    padding: 0.5rem 1.25rem !important;
    font-weight: 600;
    margin-left: 0.5rem;
}

.landing-nav .btn-nav-cta:hover {
    background: var(--primary-dark);
}

/* Mobile navbar toggler */
.landing-nav .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.75rem;
}

.landing-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile nav menu styles */
@media (max-width: 991px) {
    .landing-nav .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .landing-nav .navbar-nav {
        gap: 0.5rem;
    }
    
    .landing-nav .btn-nav-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* Footer */
.landing-footer {
    background: var(--text-dark);
    color: #9ca3af;
    padding: 2rem 0;
}

.landing-footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.landing-footer a:hover {
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0 2.5rem;
        text-align: center;
    }
    
    .hero-headline {
        font-size: 1.875rem;
    }
    
    .hero-subhead {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    @media (max-width: 767px) {
        .cta-buttons a {
            width: 100%;
            text-align: center;
            justify-content: center;
        }
    }
    
    .trust-strip .row > div {
        margin-bottom: 0.75rem;
    }
    
    .trust-strip .row > div:last-child {
        margin-bottom: 0;
    }

    .feature-card:hover {
        transform: translateY(-2px);
    }
    .hero-subhead {
        max-width: 42rem;
    }

}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
