/* DigitalMax - Contractor Lead Machine Styles */

:root {
    /* Brand Colors */
    --primary: #1a237e;
    --primary-dark: #0d1642;
    --secondary: #2962ff;
    --accent: #ff6d00;
    --accent-hover: #e65100;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f5f5f5;
    --gray-100: #eeeeee;
    --gray-200: #e0e0e0;
    --gray-600: #757575;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px;
    --grid-gap: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

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

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

.logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    display: block;
    padding: 8px 12px;
    color: var(--gray-800);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

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

.nav-menu .btn {
    margin-left: 8px;
}

/* Dropdown */
.services-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    list-style: none;
}

.services-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 10px 16px;
    font-size: 14px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gray-900);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: 
        linear-gradient(90deg, rgba(13,27,42,0.98) 0%, rgba(13,27,42,0.85) 35%, rgba(13,27,42,0.4) 60%, rgba(13,27,42,0.1) 100%),
        url('images/banners/hero-city-skyline-dusk.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: left;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 40px;
    max-width: 600px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-subheadline {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-ctas .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

.hero-ctas .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

.buyer-filter {
    font-size: 14px;
    opacity: 0.7;
}

/* Section Styles */
section {
    padding: var(--section-padding) 0;
}

.section-gray {
    background-color: var(--gray-50);
}

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

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

h2 {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-dark .section-intro {
    color: rgba(255,255,255,0.8);
}

/* Problem Section */
.lead-leaks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

.lead-leak-card {
    background-color: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.lead-leak-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--accent);
}

.lead-leak-icon svg {
    width: 100%;
    height: 100%;
}

.lead-leak-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.lead-leak-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Solution Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    margin-bottom: 48px;
}

.service-card {
    background-color: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--gray-100);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.service-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

.service-card:hover h3 {
    color: var(--secondary);
}

.solution-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* How It Works Section */
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255,255,255,0.2);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.step-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    color: rgba(255,255,255,0.9);
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

/* Who For Section */
.checklist {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.checklist li {
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
}

.checklist li:last-child {
    border-bottom: none;
}

/* Who Not For Section */
.who-not-for {
    border-top: 4px solid var(--accent);
}

.not-for-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto 24px;
}

.not-for-list li {
    font-size: 16px;
    padding: 12px 0 12px 28px;
    position: relative;
    color: var(--gray-700);
}

.not-for-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.closing-text {
    text-align: center;
    font-size: 16px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Packages Section */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.package-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
}

.package-card.popular {
    border: 2px solid var(--accent);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.package-header {
    margin-bottom: 24px;
}

.package-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.package-best-for {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

.package-features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 24px;
}

.package-features li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-card .btn {
    width: 100%;
}

/* Trust Section */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.trust-card {
    text-align: center;
    padding: 32px 24px;
}

.trust-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--secondary);
}

.trust-icon svg {
    width: 100%;
    height: 100%;
}

.trust-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.trust-card p {
    font-size: 14px;
    color: var(--gray-600);
}

.trust-note {
    text-align: center;
    font-size: 14px;
    color: var(--gray-600);
    font-style: italic;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
}

.trust-line {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 24px;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.faq-item p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

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

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--gray-400);
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 24px;
    height: 24px;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.social-icon:hover {
    color: var(--white);
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray-600);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .lead-leaks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step {
        text-align: left;
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }
    
    .step-number {
        flex-shrink: 0;
        margin: 0;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-card.popular {
        transform: none;
        order: -1;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subheadline {
        font-size: 16px;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .lead-leaks-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .solution-ctas {
        flex-direction: column;
    }
    
    .solution-ctas .btn {
        width: 100%;
    }
}
