@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@700;800;900&display=swap');

:root {
    --primary: #E53935;
    --primary-dark: #C62828;
    --navy: #0A192F;
    --navy-light: #112240;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-body: #475569;
    --border-color: #E2E8F0;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Top Bar (Sub-header) --- */
.top-bar {
    background-color: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.5px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item i {
    color: var(--primary);
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- Main Navbar --- */
.navbar {
    background-color: var(--white);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 5%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -1px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    transform: rotate(-10deg);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
}

.nav-links li a:hover::before,
.nav-links li a.active::before {
    width: 100%;
}

.nav-btn {
    background-color: var(--navy);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    border: none;
    cursor: pointer;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.nav-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-btn span, .nav-btn i {
    position: relative;
    z-index: 2;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    border: 2px solid var(--primary);
}

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

.btn-outline {
    background: transparent;
    color: var(--navy);
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--navy);
}

/* --- Reusable Headers --- */
.text-center {
    text-align: center;
}

.section-header-light {
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header-light h2 {
    font-size: 3.6rem;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.section-header-light p {
    font-size: 1.15rem;
    color: var(--text-body);
}

.section-header-dark {
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header-dark h2 {
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -1px;
}

.section-header-dark p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.tagline::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary);
}

/* --- Footer & CTA --- */
.footer-cta-wrapper {
    padding: 0 5%;
    transform: translateY(50px);
    position: relative;
    z-index: 10;
}

.footer-cta {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--primary);
    border-radius: 24px;
    padding: 50px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(229, 57, 53, 0.2);
    color: var(--white);
    background-image: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent);
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--white);
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

.cta-actions .btn-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    white-space: nowrap;
}

.cta-actions .btn-primary:hover {
    background: transparent;
    color: var(--white);
}

.main-footer {
    background-color: var(--navy);
    color: rgba(255,255,255,0.7);
    padding-top: 120px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 5% 40px;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
    gap: 50px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    background: var(--primary);
}

.brand-col p {
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.links-col ul li {
    margin-bottom: 15px;
}

.links-col ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.links-col ul li a i {
    font-size: 0.7rem;
    color: var(--primary);
    transition: var(--transition);
}

.links-col ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.contact-col ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-col ul li i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 25px 5%;
}

.footer-bottom-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

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

/* --- Header/Footer Responsive --- */
@media (max-width: 1024px) {
    .footer-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--navy);
    cursor: pointer;
    z-index: 1001; /* Stay above the mobile menu */
}

.mobile-quote-btn {
    display: none;
    margin-top: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .hamburger { display: block; }
    
    .nav-btn { display: none; } /* Hide desktop Get a Quote button */
    
    .mobile-quote-btn { display: block; } /* Show mobile Get a Quote button inside menu */
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 8% 40px;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        gap: 25px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links li a {
        font-size: 1.3rem;
        display: block;
        width: 100%;
    }
    
    .nav-links li a::before {
        left: 0;
        transform: translateX(0);
    }
    
    /* Footer Mobile Responsiveness */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
