/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #DC143C;
    --primary-red-dark: #B22222;
    --primary-red-light: #FF6B6B;
    --white: #ffffff;
    --off-white: #f8f8f8;
    --text-dark: #333;
    --text-light: #666;
    --light-gray: #e5e5e5;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--primary-red);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: -30px;
    padding-left: 0;
}

.nav-brand .logo {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-brand h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
}

.nav-brand .tagline {
    font-size: 0.75rem;
    color: var(--white);
    letter-spacing: 0.3px;
    opacity: 0.95;
    margin: 0;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--white);
    opacity: 0.9;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background-color: var(--primary-red); /* Fallback color if video doesn't load */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(220, 20, 60, 0.6), rgba(178, 34, 34, 0.7));
    z-index: 1;
}

.spotlight {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.2) 0%, transparent 70%);
    animation: spotlight 3s ease-in-out infinite;
}

@keyframes spotlight {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

/* If no image is provided, the gradient fallback will show */

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-spanish {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-style: italic;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-call {
    background: #000000;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.btn-call:hover {
    transform: translateY(-2px);
    background: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-red-dark);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* Open Banner */
.open-banner {
    background: #2d2d2d;
    padding: 0.4rem 0;
    text-align: center;
}

.open-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Customer Experience */
.customer-experience {
    background: var(--off-white);
}

.certifications {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.cert-badge {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    min-width: 200px;
}

.cert-badge:hover {
    transform: translateY(-5px);
}

.star-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cert-badge p {
    font-weight: 600;
    color: var(--text-dark);
}

/* Accident Section */
.accident-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
}

.accident-content {
    text-align: center;
}

.accident-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.accident-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.accident-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.accident-actions .btn-outline {
    border: 2px solid var(--white) !important;
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0) !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.accident-actions .btn-outline:hover {
    background: var(--white) !important;
    color: var(--primary-red) !important;
    border: 2px solid var(--white) !important;
    text-shadow: none;
}

/* Accident Advice Section */
.advice-section {
    background: var(--white);
    color: var(--text-dark);
    display: none;
}

.advice-section.active {
    display: block;
}

.advice-content {
    max-width: 1200px;
    margin: 0 auto;
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.advice-item {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
    transition: transform 0.3s;
}

.advice-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.advice-item h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.advice-item p {
    color: var(--text-dark);
    line-height: 1.8;
}

.advice-cta {
    text-align: center;
    padding: 2rem;
    background: var(--off-white);
    border-radius: 10px;
}

.advice-cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Accident Checklist Section */
.checklist-section {
    background: var(--off-white);
    color: var(--text-dark);
    display: none;
}

.checklist-section.active {
    display: block;
}

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

.checklist-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.checklist-items {
    margin-bottom: 3rem;
}

.checklist-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.checklist-item:hover {
    transform: translateX(5px);
}

.checklist-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

.checklist-text {
    flex: 1;
}

.checklist-text h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.checklist-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.checklist-cta {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tow Section */
.tow-section {
    background: var(--primary-red-dark);
    color: var(--white);
}

.tow-content {
    text-align: center;
}

.tow-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--white);
}

.tow-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    background: var(--off-white);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Set background images directly from data attributes using CSS */
.service-card[data-bg-image="images/service-collision.jpg"] {
    background-image: url('images/service-collision.jpg') !important;
}

.service-card[data-bg-image="images/service-body.jpg"] {
    background-image: url('images/service-body.jpg') !important;
}

.service-card[data-bg-image="images/service-frame.jpg"] {
    background-image: url('images/service-frame.jpg') !important;
}

.service-card[data-bg-image="images/service-paint.jpg"] {
    background-image: url('images/service-paint.jpg') !important;
}

.service-card[data-bg-image="images/service-insurance.jpg"] {
    background-image: url('images/service-insurance.jpg') !important;
}

.service-card[data-bg-image="images/service-towing.jpg"] {
    background-image: url('images/service-towing.jpg') !important;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(220, 20, 60, 0.5));
    z-index: 1;
    transition: background 0.3s;
}

.service-card:hover .service-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(220, 20, 60, 0.4));
}

.service-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card p {
    color: var(--white);
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Promise Section */
.promise-section {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
}

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

.promise-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* FAQ Section */
.faq-section {
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
}

.faq-item h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Appointment Section */
.appointment-section {
    background: var(--white);
    color: var(--text-dark);
}

.appointment-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--off-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.appointment-form .form-group label {
    color: var(--text-dark);
}

.appointment-form .form-group input,
.appointment-form .form-group select,
.appointment-form .form-group textarea {
    background: var(--white);
    border: 2px solid var(--light-gray);
    color: var(--text-dark);
}

.appointment-form .form-group input:focus,
.appointment-form .form-group select:focus,
.appointment-form .form-group textarea:focus {
    border-color: var(--primary-red);
}

/* Tow Booking Section */
.tow-booking-section {
    background: var(--off-white);
    color: var(--text-dark);
}

.tow-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tow-form .form-group label {
    color: var(--text-dark);
}

.tow-form .form-group input,
.tow-form .form-group select,
.tow-form .form-group textarea {
    background: var(--off-white);
    border: 2px solid var(--light-gray);
    color: var(--text-dark);
}

.tow-form .form-group input:focus,
.tow-form .form-group select:focus,
.tow-form .form-group textarea:focus {
    border-color: var(--primary-red);
}

/* Estimate Section */
.estimate-section {
    background: var(--primary-red);
    color: var(--white);
}

.estimate-section .section-title {
    color: var(--white);
}

.estimate-section .section-subtitle {
    color: var(--white);
}

.estimate-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--white);
}

.form-group textarea {
    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

/* About Section */
.about-section {
    background: var(--off-white);
}

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

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: justify;
}

/* Contact Section */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h3,
.hours h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.contact-info a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--primary-red-dark);
    text-decoration: underline;
}

.address {
    font-weight: 600;
    color: var(--text-dark);
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--light-gray);
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.map-container {
    margin-top: 2rem;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.map-link-text {
    text-align: center;
    margin-top: 1rem;
}

.map-link-text a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.map-link-text a:hover {
    color: var(--primary-red-dark);
    text-decoration: underline;
}

.map-placeholder {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--primary-red);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: var(--white);
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--primary-red);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .certifications {
        flex-direction: column;
        align-items: center;
    }

    .accident-actions {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .nav-brand {
        margin-left: -5px;
        gap: 0.5rem;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .nav-brand .logo {
        height: 45px;
        width: 45px;
        border-radius: 8px;
    }

    .nav-brand .tagline {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

