﻿body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #222222;
}

h2 {
    color: #777;
}

h3 {
    color: #777;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2rem 2rem;
    background: #222;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.logo {
    height: auto;
    max-height: 150px;
    width: auto;
    max-width: 320px;
    transition: all 0.3s ease;
}

.main-header {
    background: #f7f7f7;
    padding: 6rem 1rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
    margin-top: 100px; /* adjust to navbar height */
}

    .main-header h1 {
        color: #FF4500;
        font-size: 2.5rem;
    }

    .main-header p {
        color: #555;
        font-size: 1.1rem;
    }

/* Make the logo smaller on very small screens */
.nav-links a {
    text-decoration: none;
    color: white;
    margin: 0 15px;
    font-weight: 700;
    transition: color 0.3s ease;
}

    .nav-links a:hover {
        color: #FF4500;
    }

.section {
    padding: 4rem 10%;
    text-align: center;
    background: white;
}

.callUsTodaySection {
    padding: 4rem 30%;
}

    .callUsTodaySection h2 {
        padding-bottom: 20px;
        font-weight: 500;
    }

    .callUsTodaySection p {
        padding-bottom: 20px;
    }

.socialMediaSection {
    background: #FF4500;
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#SocialMediaImage {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

#socialMediaSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

    #socialMediaSection h2 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1rem;
        color: #333;
    }

    #socialMediaSection p {
        font-size: 1rem;
        text-align: center;
        line-height: 1.5;
        color: #555;
        max-width: 600px;
        margin-bottom: 2rem;
    }

.product {
    flex: 1 1 250px;
    text-align: center;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
/* Animate in when scrolled */
.product.show {
    opacity: 1;
    transform: translateY(0);
}

.product img {
    /*width: 100%;*/
    border-radius: 10px;
    height: 100px;
    width: 100px;
}

.product h3 {
    color: #777;
}

.gallery-section h2 {
    text-align: center;
    color: #FF4500;
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

    .gallery img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .gallery img:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
        }

.gallery-item {
    text-align: center;
}

.view-more-button {
    display: inline-block;
    margin-top: 10px;
    padding: 0.5rem 1.2rem;
    background-color: #FF4500;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    .view-more-button:hover {
        background-color: #e03e00;
        transform: scale(1.05);
    }

.footer {
    background: #222;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-phone {
    text-decoration: none;
    color: white;
}

    .footer-phone:hover {
        color: #FF4500;
    }

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer .sitemap {
    margin: 1rem 0;
}

    .footer .sitemap a {
        color: white;
        margin: 0 10px;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .footer .sitemap a:hover {
            color: #FF4500;
        }

.footer .social-media {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #FF4500;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
}

    .social-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .social-icon:hover {
        animation: bounce 0.6s;
        background: #e03e00;
    }

        .social-icon:hover img {
            transform: rotate(15deg);
        }
/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

/* Mobile Nav Styles */

/* Hamburger Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100;
}

    .hamburger span {
        height: 3px;
        width: 25px;
        background: white;
        margin: 4px 0;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

/* Slide-in menu & overlay */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    width: 100vw;
    height: 100vh;
    z-index: 900;
    transition: opacity 0.3s ease;
}

.contact-contact-card {
    display: flex;
    align-content: center;
    align-items: center;
    color: #555;
}

    .contact-contact-card a {
        text-decoration: none;
        color: #555;
    }

        .contact-contact-card a:hover {
            cursor: pointer;
            color: #FF4500;
        }

/* Active menu styles */
.nav-links.active {
    position: fixed;
    top: 70px;
    right: 0;
    background: #222;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    width: 70%;
    max-width: 150px;
    height: calc(100vh - 70px);
    z-index: 1000;
    transform: translateX(0);
    box-shadow: -4px 0 10px rgba(0,0,0,0.3);
}

.overlay.active {
    display: block;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.about-us-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.about-text {
    flex: 1 1 300px;
    max-width: 600px;
    text-align: left;
    line-height: 1.6;
}

.about-image {
    flex: 1 1 250px;
    max-width: 400px;
}

    .about-image img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

.about-us {
    background: #ffffff;
    color: #222;
    padding: 4rem 10%;
    border-top: 4px solid #FF4500;
    border-bottom: 1px solid #eee;
}

    .about-us h2 {
        color: #FF4500;
    }

.about-text p {
    color: #555;
}

.lazy-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

    .lazy-section.visible {
        opacity: 1;
        transform: translateY(0);
    }

.hero {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    background: url('./Images/Cadwell2.webp') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-overlay {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1rem;
    animation: fadeInUp 1.2s ease-out forwards;
}

    .hero-text h1 {
        font-size: 3.5rem;
        font-weight: 900;
        margin-bottom: 1rem;
        line-height: 1.2;
        color: #ffffff;
    }

        .hero-text h1 .highlight {
            color: #FF4500;
        }

    .hero-text p {
        font-size: 1.4rem;
        margin-bottom: 2rem;
        color: #dddddd;
    }

.cta-button {
    background: #FF4500;
    color: #fff;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

    .cta-button:hover {
        background: #e03e00;
        transform: translateY(-3px) scale(1.05);
    }

.contact-info {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #ddd;
}

    .contact-item span {
        font-size: 1rem;
        color: #fff;
    }


@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}



@media (max-width: 768px) {
    .hero {
        height: 500px;
        background-position: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 420px;
    }

    .navbar {
        padding: 2rem 0rem;
    }

    .logo {
        max-width: 280px;
    }

    .socialMediaSection {
        flex-direction: column;
    }

    #SocialMediaImage {
        padding-top: 40px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    #socialMediaSection {
        flex-direction: row;
        justify-content: space-between;
        padding: 3rem;
    }

        #socialMediaSection h2, #socialMediaSection p {
            text-align: left;
        }

    #socialMediaContent {
        flex: 1;
        padding-right: 2rem;
    }

    #socialMediaImage {
        flex: 1;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        background: #222;
        height: 100vh;
        width: 250px;
        justify-content: center;
        gap: 2rem;
        transform: translateX(0);
        transition: right 0.3s ease;
        z-index: 1001;
    }

        .nav-links.open {
            right: 0;
        }

    .menu-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
    }
}


/* Motorsport Section */
.motorsport {
    background: linear-gradient(to right, #111, #333);
    color: white;
    border-top: 4px solid #FF4500;
}

.motorsport-title {
    color: #FF4500;
    margin-bottom: 1rem;
}

.motorsport-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #ddd;
    font-size: 1.1rem;
}

/* Card Grid */
.motorsport-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Individual Card */
.motorsport-card {
    background: #1a1a1a;
    padding: 2rem 1.5rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
}

    .motorsport-card.show {
        opacity: 1;
        transform: translateY(0);
    }

    .motorsport-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    }

    /* Card Content */
    .motorsport-card img {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .motorsport-card h3 {
        color: #FF4500;
        margin-bottom: 0.5rem;
    }

    .motorsport-card p {
        color: #ccc;
        font-size: 0.95rem;
        line-height: 1.5;
    }

/* Millers Oils Section */
.millers {
    border-top: 4px solid #FF4500;
    border-bottom: 4px solid #FF4500;
}

.millers-title {
    color: #FF4500;
    margin-bottom: 1rem;
}

.millers-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #555;
    font-size: 1.1rem;
}

/* Layout */
.millers-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Image */
.millers-image {
    flex: 1 1 300px;
    max-width: 420px;
}

    .millers-image img {
        width: 100%;
        height: auto;
        border-radius: 14px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

/* Text */
.millers-text {
    flex: 1 1 320px;
    max-width: 500px;
    text-align: left;
}

    .millers-text p {
        color: #555;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

/* Dealer Badge */
.millers-badge {
    display: inline-block;
    background: #FF4500;
    color: white;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* List */
.millers-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

    .millers-list li {
        position: relative;
        padding-left: 25px;
        margin-bottom: 0.7rem;
        color: #444;
    }

        .millers-list li::before {
            content: "✔";
            position: absolute;
            left: 0;
            color: #FF4500;
            font-weight: bold;
        }

/* CTA */
.millers-cta {
    font-size: 0.95rem;
    padding: 0.7rem 1.8rem;
}


/* Logo + phone wrapper */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar-phone {
    margin-top: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FF4500;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

h2[id] {
    scroll-margin-top: 120px; /* adjust to navbar height */
}

.navbar-phone-icon {
    height: 16px;
    width: auto;
}

.navbar-phone:hover {
    color: #ffffff;
}

/* CTA inline alignment */
.cta-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Services section */
.services-title {
    color: #FF4500;
    margin-bottom: 1rem;
}

.services-intro {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
}

.product-text {
    margin-top: 10px;
    color: #777;
}

/* About Us */
.our-cars-title {
    margin-bottom: 1rem;
    color: #FF4500;
}

/* Call Us Today */
.callUsTodaySection {
    text-align: center;
    padding: 4rem 10%;
    border-top: 4px solid #FF4500;
    border-bottom: 4px solid #FF4500;
}

.call-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #FF4500;
}

.call-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.call-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Footer icons */
.footer-phone-icon {
    height: 20px;
    margin-right: 10px;
}

.footer-location-icon {
    height: 30px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .lazy-section {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .gallery {
        padding: 1rem;
        gap: 12px;
    }
}

@media (min-width: 1200px) {
    .logo {
        max-width: 420px;
    }
}
