/* CSS Variables */
:root {
    --yellow: #f9c23c;
    --red: #e30613;
    --black: #111111;
    --dark-gray: #2b2b2b;
    --light-gray: #f5f5f5;
}

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

/* Body Styles */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

/* Top Bar */
.top-bar {
    background: var(--yellow);
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
}

/* Navigation */
.nav-main {
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-main img {
    filter: brightness(0) invert(1);
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 20px 16px;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Buttons */
.btn-red {
    background: var(--red);
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-red::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;
}

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

.btn-red:hover {
    background: #c40511;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.4);
}

.btn-yellow {
    background: var(--yellow);
    color: var(--black);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.btn-yellow:hover {
    background: #f7b520;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 194, 60, 0.5);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 80px 20px;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Fallback for missing hero image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #111111 0%, #333333 100%);
    z-index: -1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Zip Code Box */
.zip-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.zip-box h3 {
    color: var(--black);
    font-size: 20px;
    margin-bottom: 20px;
}

.zip-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 16px;
    transition: border 0.3s;
}

.zip-input:focus {
    outline: none;
    border-color: var(--yellow);
}

/* Review Cards */
.review-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.stars {
    color: var(--yellow);
    font-size: 18px;
    margin: 8px 0;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-card-content {
    padding: 24px;
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 20px;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 36px;
    font-weight: 900;
    color: var(--black);
}

/* Small Service Cards */
.small-service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.small-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.small-service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.small-service-card-content {
    padding: 20px;
}

.check-icon {
    width: 60px;
    height: 60px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--black);
}

/* Warranty Section */
.warranty-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/warranty.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 80px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

/* Fallback for missing warranty image */
.warranty-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: -1;
}

.warranty-badge {
    width: 150px;
    height: 150px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 18px;
    font-weight: 900;
    color: var(--black);
    text-align: center;
    padding: 20px;
    border: 5px solid white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background: var(--black);
    color: white;
    padding: 60px 20px 20px;
}

.footer-yellow {
    background: var(--yellow);
    color: var(--black);
    padding: 60px 20px;
    text-align: center;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    background: var(--black);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    color: white;
    padding: 12px;
    text-decoration: none;
    border-bottom: 1px solid #333;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .zip-box {
        padding: 24px;
    }
}
