/* =================================
   Southend Auto Repair - Styles
   ================================= */

/* CSS Variables - Professional Automotive Theme */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #2563eb;
    --accent-orange: #f97316;
    --dark-gray: #1f2937;
    --medium-gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --text-dark: #111827;
    --text-light: #6b7280;
    --success-green: #10b981;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-blue);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-label {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white) !important;
    text-transform: uppercase;
}

.navbar-brand i {
    color: var(--accent-orange);
    font-size: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
}

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

/* Buttons */
.btn-cta {
    background: var(--accent-orange);
    color: var(--white);
    border: 2px solid var(--accent-orange);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-cta:hover {
    background: transparent;
    color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    background-image:
        linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%),
        url('https://images.unsplash.com/photo-1619642751034-765dfdf7c58e?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(37, 99, 235, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 50px 0;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(249, 115, 22, 0.2);
    border: 2px solid var(--accent-orange);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 25px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-weight: 500;
}

.feature-item i {
    color: var(--accent-orange);
    font-size: 1.25rem;
}

/* Trust Bar */
.trust-bar {
    background: var(--white);
    padding: 3rem 0;
    box-shadow: var(--shadow);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    text-align: left;
}

.trust-icon {
    width: 70px;
    height: 70px;
    background: var(--light-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.trust-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
}

.trust-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

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

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--accent-orange);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.about-badge i {
    font-size: 2rem;
}

.about-badge strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.about-badge span {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
}

.about-list {
    margin: 2rem 0;
}

.about-list-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.about-list-item i {
    color: var(--success-green);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-list-item strong {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.about-list-item span {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.service-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 15px;
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-orange);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-features i {
    color: var(--success-green);
    font-size: 1rem;
}

/* Why Section */
.why-section {
    background: var(--light-gray);
}

.why-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ea580c 100%);
    transform: scale(1.1);
}

.why-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.why-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.why-card p {
    color: var(--text-light);
    margin: 0;
}

.trust-badges {
    margin-top: 4rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.trust-badge:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.1);
}

.trust-badge i {
    font-size: 2.5rem;
    color: var(--accent-orange);
}

.trust-badge-text {
    text-align: left;
}

.trust-badge-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.trust-badge-text span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Testimonials Section */
.testimonials-section {
    background: var(--white);
}

.testimonial-card {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    margin-bottom: 1.5rem;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-right: 0.25rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar i {
    font-size: 1.75rem;
    color: var(--white);
}

.author-info strong {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-light);
}

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

.contact-card {
    background: var(--white);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 90px;
    height: 90px;
    background: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.contact-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-link {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-link:hover {
    color: var(--accent-orange);
}

.contact-address {
    color: var(--text-light);
    margin: 0;
}

.map-section {
    margin-top: 4rem;
}

.map-placeholder {
    background: var(--white);
    border: 3px dashed var(--light-gray);
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.map-placeholder p {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-placeholder small {
    color: var(--text-light);
}

.opening-hours {
    margin-top: 3rem;
}

.hours-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.hours-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.hours-card h3 i {
    color: var(--accent-orange);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item .day {
    font-weight: 600;
    color: var(--text-dark);
}

.hours-item .time {
    font-weight: 700;
    color: var(--primary-blue);
}

.hours-item .time.closed {
    color: var(--medium-gray);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 5rem 0;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

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

/* Footer */
.footer {
    background: var(--dark-gray);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-brand i {
    color: var(--accent-orange);
    font-size: 1.5rem;
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.footer-contact i {
    color: var(--accent-orange);
    width: 20px;
}

.footer h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.footer-hours {
    list-style: none;
    padding: 0;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer a[href*="owntimestudios"] {
    color: var(--accent-orange);
    font-weight: 600;
}

.footer a[href*="owntimestudios"]:hover {
    text-decoration: underline;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4);
}

.scroll-top:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4);
}

.scroll-top.show {
    display: flex;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .trust-item {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

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

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

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

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .service-card,
    .why-card,
    .testimonial-card,
    .contact-card {
        margin-bottom: 1.5rem;
    }

    .trust-item {
        flex-direction: column;
        text-align: center;
    }

    .trust-badge {
        flex-direction: column;
        text-align: center;
    }

    .trust-badge-text {
        text-align: center;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .navbar-brand span {
        font-size: 1rem;
    }

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

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

    .about-badge {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .about-badge i {
        font-size: 1.5rem;
    }
}
