/* Marketing For Roofers - Modern Professional Styling */

:root {
    /* Primary Colors - Industrial + Modern */
    --primary: #1a1a1a;
    --primary-light: #2a2a2a;
    --accent: #ff6b35;
    --accent-dark: #e85a2a;
    --accent-light: #ff8659;
    
    /* Neutrals */
    --background: #ffffff;
    --surface: #f8f9fa;
    --border: #e5e7eb;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(26,26,26,0.95) 0%, rgba(42,42,42,0.95) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 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);
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* =============================================
   HERO SECTION WITH FORM
============================================= */

.hero-form-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--primary);
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #f7931e;
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Navbar */
.navbar {
    position: relative;
    z-index: 10;
    padding: 24px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.logo svg {
    color: var(--accent);
}

.nav-cta .cta-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta .cta-link:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.headline-primary {
    color: white;
}

.headline-secondary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.headline-tertiary {
    color: rgba(255, 255, 255, 0.7);
    font-size: 48px;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    max-width: 540px;
}

.trust-indicators {
    display: flex;
    gap: 48px;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.trust-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Form Container */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

.submit-button {
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.3);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.spinner-circle {
    stroke-dasharray: 50;
    stroke-dashoffset: 25;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dashoffset: 50; }
    50% { stroke-dashoffset: 12.5; }
    100% { stroke-dashoffset: 50; }
}

.form-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Form Messages */
#form-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* =============================================
   CONTENT SECTIONS
============================================= */

.content-section {
    padding: 80px 0;
    background: white;
}

.content-section.bg-surface {
    background: var(--surface);
}

.intro-section {
    padding: 60px 0;
    background: var(--surface);
}

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

.intro-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.content-layout {
    max-width: 900px;
    margin: 0 auto;
}

.content-layout h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.content-layout h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 48px 0 24px 0;
    color: var(--text-primary);
}

.content-layout p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.stat-highlight {
    background: var(--gradient-dark);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 48px 0;
    border: 2px solid var(--accent);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.stat-text {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Breaks */
.cta-break {
    padding: 80px 0;
    background: var(--gradient-primary);
    text-align: center;
}

.cta-break-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-break-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-secondary {
    display: inline-block;
    padding: 18px 40px;
    background: white;
    color: var(--accent);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* =============================================
   SERVICES SECTION
============================================= */

.services-section {
    padding: var(--section-padding) 0;
    background: var(--surface);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.service-card.featured {
    background: var(--gradient-dark);
    color: white;
    border-color: transparent;
}

.service-card.featured .service-icon {
    background: var(--accent);
    color: white;
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured li {
    color: white;
}

.service-card.featured li {
    opacity: 0.9;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* =============================================
   WHY SECTION
============================================= */

.why-section {
    padding: var(--section-padding) 0;
    background: white;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-content {
    max-width: 560px;
}

.why-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.lead-text {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.benefit-item {
    display: flex;
    gap: 20px;
}

.benefit-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.benefit-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.benefit-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.stats-card {
    background: var(--gradient-dark);
    padding: 48px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   PROCESS SECTION
============================================= */

.process-section {
    padding: var(--section-padding) 0;
    background: var(--surface);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.process-step {
    position: relative;
    padding: 40px 32px;
    background: white;
    border-radius: 16px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
}

.process-step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* =============================================
   CTA SECTION
============================================= */

.cta-section {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--primary);
    color: white;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.cta-orb {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    filter: blur(100px);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.cta-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.3);
}

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

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

/* =============================================
   FOOTER
============================================= */

.footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo svg {
    color: var(--accent);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* =============================================
   RESPONSIVE
============================================= */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    h1 {
        font-size: 42px;
    }
    
    .headline-tertiary {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 24px;
    }
    
    .form-container {
        padding: 32px 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
    
    .why-content h2 {
        font-size: 36px;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 36px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 16px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .headline-tertiary {
        font-size: 24px;
    }
    
    .form-container {
        padding: 24px 20px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
}
