/* Enhanced Carolina Roof Claims Design */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Carolina-inspired color palette */
    --primary-blue: #1e40af;
    --carolina-blue: #4f83cc;
    --storm-gray: #374151;
    --cloud-white: #f8fafc;
    --storm-dark: #111827;
    --accent-red: #dc2626;
    --success-green: #059669;
    --warning-red: #dc2626;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--storm-gray);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-size: 16px;
}

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

/* Enhanced Header */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--carolina-blue) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: var(--space-sm) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="clouds" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="3" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23clouds)"/></svg>');
    opacity: 0.3;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    margin-right: var(--space-xs);
    font-size: 1.8rem;
    color: var(--accent-red);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.nav {
    display: flex;
    gap: var(--space-lg);
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav a:hover::before {
    width: 100%;
}

/* Stunning Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--carolina-blue) 50%, var(--storm-gray) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 8rem 0 var(--space-2xl);
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><radialGradient id="cloud1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:white;stop-opacity:0.3" /><stop offset="100%" style="stop-color:white;stop-opacity:0" /></radialGradient><radialGradient id="cloud2" cx="50%" cy="50%" r="30%"><stop offset="0%" style="stop-color:white;stop-opacity:0.2" /><stop offset="100%" style="stop-color:white;stop-opacity:0" /></radialGradient></defs><circle cx="200" cy="150" r="80" fill="url(%23cloud1)" /><circle cx="800" cy="200" r="60" fill="url(%23cloud2)" /><circle cx="1000" cy="100" r="90" fill="url(%23cloud1)" /><circle cx="400" cy="250" r="50" fill="url(%23cloud2)" /></svg>');
    background-size: 1200px 800px;
    animation: cloudFloat 20s ease-in-out infinite;
}

@keyframes cloudFloat {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(30px) translateY(-10px); }
    50% { transform: translateX(-20px) translateY(-5px); }
    75% { transform: translateX(40px) translateY(-15px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    opacity: 0.95;
    font-weight: 400;
}

.trust-badges {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge i {
    margin-right: var(--space-xs);
    color: var(--accent-red);
    font-size: 1.1rem;
}

.badge span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Form Design */
.assessment-form {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 400px;
    position: relative;
}

.assessment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--carolina-blue), var(--accent-red), var(--carolina-blue));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.form-header h2 {
    font-family: var(--font-heading);
    color: var(--storm-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.form-subtitle {
    color: var(--storm-gray);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--storm-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--carolina-blue);
    box-shadow: 0 0 0 3px rgba(79, 131, 204, 0.1);
    transform: translateY(-1px);
}

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

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-red) 0%, #b91c1c 100%);
    color: white;
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

/* Enhanced Process Section */
#process {
    padding: var(--space-2xl) 0;
    background: white;
    position: relative;
}

#process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--carolina-blue), transparent);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--storm-dark);
    margin-bottom: var(--space-sm);
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--carolina-blue), var(--accent-red));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--storm-gray);
    max-width: 600px;
    margin: 0 auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.step {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(79, 131, 204, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--carolina-blue), var(--accent-red));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

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

.step:hover::before {
    transform: scaleX(1);
}

.step-icon {
    background: linear-gradient(135deg, var(--carolina-blue) 0%, var(--primary-blue) 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.step h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--storm-dark);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.step p {
    color: var(--storm-gray);
    line-height: 1.6;
}

/* Enhanced About Section */
#about {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.inspector-photo {
    text-align: center;
}

.inspector-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

.inspector-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.inspector-title {
    margin-top: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--storm-dark);
    font-size: 1.1rem;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--storm-dark);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--storm-gray);
    margin-bottom: var(--space-md);
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.credential {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--carolina-blue);
    transition: all 0.3s ease;
}

.credential:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.credential i {
    color: var(--carolina-blue);
    margin-right: var(--space-xs);
}

/* Insurance Companies Section */
.insurance-companies {
    padding: var(--space-2xl) 0;
    background: white;
    text-align: center;
}

.insurance-companies h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--storm-dark);
    margin-bottom: var(--space-xl);
    font-weight: 600;
}

.insurance-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.logo-item {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.logo-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--storm-dark) 0%, var(--primary-blue) 100%);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
    text-align: center;
}

.footer-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.footer-content p {
    margin-bottom: var(--space-xs);
}

.footer-content p:last-child {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .assessment-form {
        width: 100%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .nav {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero {
        padding: 6rem 0 var(--space-xl);
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .emergency-alert {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
    }
}