﻿:root {
    --elite-blue: #1e3852;
    --elite-gold: #DAA520;
    --elite-gold-bright: #FFC107;
    --elite-teal: #0f8a8a; /* accent color for the light hero style */
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d; /* true gray, used for light-section body text */
    --deep-blue: #1e3852; /* was accidentally overwriting --dark-gray before */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================
   HERO BANNER (light, faded-image style)
   ============================ */
.hero-banner {
    position: relative;
    height: 85vh;
    background-image: url("/images/hero-banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* White fades in from the left and disappears by ~60% across, so the
   photo shows clearly on the right while staying readable behind the text */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.90) 30%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.10) 65%, rgba(255, 255, 255, 0) 80% );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin-left: 6%;
    color: var(--elite-blue);
}

.hero-subtitle {
    color: var(--elite-gold-bright);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 14px;
    text-transform: uppercase;
}

.hero-banner h1 {
    margin-top: 14px;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--elite-blue);
}

    .hero-banner h1 span {
        color: var(--elite-blue);
        display: block;
    }

.hero-banner p {
    margin: 22px 0 30px;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 480px;
    color: #4a5a68;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

    .hero-buttons .btn {
        padding: 13px 30px;
        border-radius: 6px;
        font-weight: 600;
    }

    .hero-buttons .btn-warning {
        background-color: var(--elite-teal);
        border-color: var(--elite-teal);
        color: #fff;
    }

        .hero-buttons .btn-warning:hover {
            background-color: #0c7373;
            border-color: #0c7373;
        }

    .hero-buttons .btn-outline-light {
        color: var(--elite-blue);
        border-color: #c8d1d8;
        background-color: rgba(255, 255, 255, 0.6);
    }

        .hero-buttons .btn-outline-light:hover {
            background-color: #fff;
            color: var(--elite-blue);
            border-color: var(--elite-teal);
        }

@media (max-width: 768px) {
    .hero-banner {
        height: auto;
        min-height: 70vh;
        padding: 60px 0;
    }

    /* On narrow screens the side-fade gradient doesn't leave enough
       readable space, so fade the whole photo behind a near-solid wash */
    .hero-overlay {
        background: rgba(255, 255, 255, 0.88);
    }

    .hero-content {
        padding: 20px;
        margin-left: 0;
        max-width: 100%;
    }

    .hero-banner h1 {
        font-size: 2.2rem;
    }

    .hero-banner p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================
   GENERIC SECTION STYLES
   ============================ */
.elite-header {
    background-color: var(--elite-blue);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

    .elite-header h1 {
        font-size: 3.5rem;
        font-weight: 700;
        color: var(--elite-gold);
    }

    .elite-header p {
        font-size: 1.5rem;
    }

.section {
    padding: 4rem 0;
}

.section-dark {
    background-color: var(--deep-blue);
    color: white;
}

.section-light {
    background-color: var(--light-gray);
    color: #212529;
}

.section h2 {
    font-weight: 600;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--elite-gold);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.3s ease-in-out;
}

    .card:hover {
        transform: translateY(-10px);
    }

/* ============================
   CORE VALUES LIST
   (markup uses <dl class="core-values-list"><dt>/<dd>,
   previous CSS targeted a nonexistent ".core-values li")
   ============================ */
.core-values-list dt {
    font-weight: 700;
    color: var(--elite-gold-bright);
    margin-top: 1rem;
    padding-left: 30px;
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFC107'%3e%3cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3e%3c/svg%3e") no-repeat left center;
    background-size: 20px 20px;
}

.core-values-list dd {
    margin-left: 30px;
    margin-bottom: 0.25rem;
}

/* Inside a background-image section, force readable white text */
.section-with-image .core-values-list dd {
    color: #ffffff !important;
}

.elite-expertise li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card {
    border-left: 5px solid var(--elite-gold);
}

/* ============================
   PROJECTS / GALLERY
   (self-contained scroll-snap gallery — no Bootstrap JS carousel,
   so there's no fight over .carousel-control-* default widths)
   ============================ */
.gallery-wrapper {
    position: relative;
    margin-top: 3rem;
}

.gallery-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 55px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .gallery-track::-webkit-scrollbar {
        display: none;
    }

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 320px;
    max-width: 320px;
    scroll-snap-align: start;
}

    .project-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.project-item:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 56, 82, 0.85);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

    .gallery-nav:hover {
        background: rgba(0, 0, 0, 0.85);
    }

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

@media (max-width: 768px) {
    .gallery-nav {
        display: none; /* mobile users can just swipe the track */
    }

    .gallery-track {
        padding: 1rem 10px;
    }
}

/* ============================
   SECTION BACKGROUND IMAGES
   (About / Quality / Contact)
   ============================ */
.section-with-image {
    position: relative;
    color: white !important;
    background-color: transparent !important;
}

    .section-with-image h2,
    .section-with-image h3,
    .section-with-image p,
    .section-with-image li,
    .section-with-image .card {
        color: white !important;
    }

    .section-with-image .card {
        background-color: rgba(30, 56, 82, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

.about-bg-image {
    background-image: linear-gradient(rgba(10, 28, 60, 0.7), rgba(10, 28, 60, 0.7)), url('/images/about-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.quality-bg-image {
    background-image: linear-gradient(rgba(10, 28, 60, 0.7), rgba(10, 28, 60, 0.7)), url('/images/quality-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-bg-image {
    background-image: linear-gradient(rgba(10, 28, 60, 0.7), rgba(10, 28, 60, 0.7)), url('/images/contact-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Quality section list items */
.quality-bg-image .list-group-item {
    background-color: rgba(10, 28, 60, 0.85);
    color: #FFFFFF;
    border: none;
    margin-bottom: 5px;
    border-radius: 5px;
}

    /* Was #4A90E2 (medium blue) on a dark-blue card = poor contrast.
       Use the gold accent instead, consistent with the rest of the brand. */
    .quality-bg-image .list-group-item strong {
        color: var(--elite-gold-bright);
    }

.quality-bg-image h3 {
    color: #FFFFFF;
}

/* ============================
   RESPONSIVE HELPERS
   ============================ */
@media (max-width: 991px) {
    .hero-banner h1 {
        font-size: 2.6rem;
    }
}
