/* === Root Colors === */
:root {
    --dark-bg: #0b0b0b;
    --dark-panel: #1c1c1c;
    --gold: #c9b985;
    /* --gold: #99b8fa; */
    --text-light: #f5f5f5;
    --text-muted: #b3b3b3;
    --btn-bg: #d4af37;
    --btn-hover: #b8952b;
}

/* === Body & Main Layout === */
body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Playfair Display SC', serif;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('{{ url_for("static", filename="main/images/detroit-skyline-2.png") }}') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* === HERO SLIDESHOW === */
.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* behind content */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right:0;
    bottom:0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--gold);
    letter-spacing: 4px;
    margin: 0;
}

.hero-info {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    margin: 1rem 0 2rem;
    color: var(--text-light);
}




.btn-hero {
    padding: 1rem 2rem;
    background-color: var(--gold);
    color: var(--dark-bg);
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: var(--btn-hover);
    transform: translateY(-3px);
}

/* === SERVICES SECTION === */
.serv-section {
    background: linear-gradient(to bottom, #111 0%, #1a1a1a 100%);
    text-align: center;
    padding: 6rem 1rem;
}

.serv-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold);
    margin-bottom: 3rem;
}

.serv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: stretch;
}

.serv-card {
    background-color: #000;
    border-radius: 12px;
    padding: 2rem 1rem;
    max-width: 500px;
    color: var(--text-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.serv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.serv-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;  /* fills card top nicely */
    border-radius: 12px; /* matches card corners */
    margin-bottom: 1.5rem;
}

.serv-card h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--gold);
    margin-bottom: 1rem;
}

.serv-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.serv-btn {
    margin-top: 3rem;
}

/* Intro text above service cards */
.serv-intro {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Optional: tagline below each service card */
.serv-card small {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Wrapper for intro text with large logos */
.serv-intro-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem; /* space between logos and text */
    margin-bottom: 3rem;
    flex-wrap: wrap; /* allow wrapping on small screens */
}

.serv-intro-text {
    max-width: 700px; /* keeps text from being too wide */
    text-align: center;
}

.serv-intro-wrapper h2 {
    font-size: clamp(2.5rem, 6vw, 4rem); /* larger heading */
    color: var(--gold);
    margin-bottom: 1rem;
}

.serv-intro-wrapper .serv-intro {
    font-size: clamp(1.25rem, 2vw, 1.5rem); /* larger paragraph */
    line-height: 1.6;
    color: var(--text-light);
}

/* Large logos */
.serv-logo-large {
    width: 300px; /* make larger */
    height: auto;
    object-fit: contain;
}



/* === CTA SECTION === */
.cta-section {
    background-color: #111;
    text-align: center;
    padding: 4rem 1rem;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold);
    margin-bottom: 2rem;
}

.btn-cta {
    padding: 1rem 2rem;
    background-color: var(--gold);
    color: var(--dark-bg);
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: var(--btn-hover);
    transform: translateY(-3px);
}

/* === FLEET LOGOS SECTION === */
.fleet-logos-section {
    background-color: #111;
    padding: 3rem 1rem;
    text-align: center;
}

.fleet-heading {
    font-family: 'Playfair Display SC', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #c9b985; /* gold */
    margin-bottom: 2rem;
}

.fleet-logos-container {
    display: flex;
    justify-content: center; /* center items on small screens */
    align-items: center;
    flex-wrap: wrap; /* wrap on small screens */
    max-width: 1700px; /* constrain width */
    margin: 0 auto;
    gap: 2rem;
}

/* Individual logo cards */
.fleet-logo {
    background-color: #1c1c1c;
    color: #c9b985; /* gold accent */
    font-family: 'Playfair Display SC', serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.2vw, 1.2rem); /* scale font on smaller screens */
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex: 1 1 150px; /* flexible width */
    min-width: 120px;
    max-width: 220px;
}

.fleet-logo:hover {
    transform: scale(1.05);
    background-color: #222; /* subtle hover effect */
}

/* ==============================
   MEDIA QUERIES
   ============================== */

/* Tablet view (width <= 1024px) */
@media (max-width: 1024px) {
    .fleet-logos-container {
        gap: 1.5rem;
    }
    .fleet-logo {
        flex: 1 1 140px;
        font-size: clamp(0.9rem, 1.5vw, 1.3rem);
        padding: 0.8rem 1.2rem;
    }
}

/* Mobile view (width <= 768px) */
@media (max-width: 768px) {
    .fleet-logos-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .fleet-logo {
        width: 100%;
        max-width: 350px;
        box-sizing: border-box;   /* ✅ prevents overflow */
        flex: none;
        font-size: clamp(0.9rem, 2vw, 1.2rem);
        padding: 0.8rem 1rem;
    }
}



/* Small mobile (width <= 480px) */
@media (max-width: 480px) {
    .fleet-logo {
        width: 100%;
        max-width: 100%; /* full width on very small screens */
        font-size: clamp(0.8rem, 3vw, 1rem);
        padding: 0.6rem 0.8rem;
    }
}




/* === VIDEO SECTION === */
.video-section {
    position: relative;
    padding: 4rem 1rem;
    text-align: center;
    background: linear-gradient(to top, #111 0%, #1a1a1a 100%);
}

.video-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

/* Grid for 3 videos side by side */
.video-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

/* Wrapper for each video to hold overlay */
.video-wrapper {
    position: relative;
    width: 32%;
    min-width: 250px;
    border-radius: 12px;
    overflow: hidden;
}

/* Overlay on videos */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right:0;
    bottom:0;
    background: rgba(0,0,0,0.25); /* subtle dark overlay */
    pointer-events: none;
    z-index: 2;
}

/* Video styling */
.media-player {
    width: 100%;
    height: 650px; /* smaller height */
    object-fit: cover;
    display: block;
}

/* === Responsive === */
@media (max-width: 1400px) {

    .serv-logo-large {
        display: none;
    }
}

/* === Responsive === */
@media (max-width: 992px) {
    .video-wrapper {
        width: 48%;
    }

    .serv-logo-large {
        display: none;
    }
}

@media (max-width: 600px) {
    .video-wrapper {
        width: 100%;
    }
}



/* === GALLERY SECTION === */
.gallery-section {
    background-color: #111;
    padding: 6rem 1rem;
    text-align: center;
}

/* Intro text above gallery images */
.gallery-intro {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    text-align: center;
}

.gallery-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold);
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.gallery-grid img {
    width: 100%;
    height: 300px;          /* same height for all images */
    border-radius: 12px;
    object-fit: cover;      /* crops image nicely without distortion */
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Descriptive text below gallery */
.gallery-note {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: var(--text-light);
    text-align: center;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}



/* === TESTIMONIAL SECTION === */
.testimonial-section {
    background-color: var(--dark-panel);
    padding: 6rem 1rem;
    text-align: center;
}

.testimonial-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold);
    margin-bottom: 3rem;
}

.testimonial-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    color: var(--text-light);
    font-style: italic;
}

.testimonial span {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--gold);
}

/* Make both hero buttons gold */
.hero-buttons a {
    background-color: var(--gold);
    color: var(--dark-bg);
    border: none; /* remove border */
    padding: 1rem 2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

/* Hover effect for both buttons */
.hero-buttons a:hover {
    background-color: var(--btn-hover);
    color: var(--dark-bg);
    transform: translateY(-3px);
}


/* Container for hero buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Call Now button style */
.btn-call {
    padding: 1rem 2rem;
    /* background-color: transparent; */
    color: var(--gold);
    border: 2px solid var(--gold);
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-call:hover {
    background-color: var(--gold);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Adjust buttons on mobile */
@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}




/* === Responsive tweaks === */
@media (max-width: 768px) {
    .video-player {
        max-width: 100%;
    }

    .testimonial-container {
        flex-direction: column;
        gap: 2rem;
    }
}


/* === Mobile Responsive === */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .hero-info {
        font-size: 1rem;
    }

    .hero-slide:first-child {
        background-position: 70% center; /* move focus to the right */
        background-size: cover;         /* ensure it still fills container */
    }

    .hero-buttons {
        flex-direction: column;  /* stack buttons vertically */
        gap: 0.75rem;            /* space between buttons */
        align-items: center;     /* center the buttons horizontally */
    }

    .hero-buttons a {
        width: 90%;           /* nearly full-width */
        max-width: 300px;     /* prevents overly wide buttons */
        text-align: center;   /* centers the text inside the button */
        padding: 1rem 0;      /* vertical padding */
        font-size: 1.1rem;    /* slightly bigger for readability */
    }

    .info-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .info-text h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .info-text p {
        font-size: 1rem;
    }

    .info-img {
        width: 90%;
        height: auto;
    }

    .serv-logo-large {
        display: none;
    }
}

/* Floating Call Button - Mobile Only */
.floating-call-btn-circle {
    display: none !important; /* hidden by default on desktop */
    position: fixed;
    bottom: 18px;
    left: 18px;
    width: 50px;           /* smaller size */
    height: 50px;          /* smaller size */
    background-color: var(--gold);
    color: var(--dark-bg);
    border-radius: 50%;
    text-align: center;
    line-height: 50px;     /* match height */
    font-size: 1.2rem;     /* slightly smaller */
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-call-btn-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

/* Show only on mobile */
@media (max-width: 768px) {
    .floating-call-btn-circle {
        display: block !important;
    }
}

/* Optional: Extra small mobile adjustments */
@media (max-width: 480px) {
    .floating-call-btn-circle {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 1rem;
        bottom: 15px;
        left: 15px;
    }
}



