/* Reset and basic layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

*::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1f1f1f;
    /* dark background for contrast */
    color: #f0f0f0;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background-color: #2e3b2e;
    /* military green */
    padding: 10px 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    height: 70px;
    /* slightly taller for balance */
}

/* Rugged, military-style site title */
h1 {
    font-family: 'Stencil Std', 'Impact', sans-serif;
    /* bold, military feel */
    font-size: 2rem;
    font-weight: 900;
    color: #d4af37;
    /* gold accent for pop */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 3px #000;
    /* rough, rugged effect */
    margin: 0;
}

/* Primary nav centered */
#primary-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#primary-nav ul {
    display: flex;
    gap: 50px;
    font-family: 'Arial Black', sans-serif;
    /* stronger, blocky nav text */
}

header nav {
    margin-right: 0;
}

header nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

header nav ul li a {
    text-decoration: none;
    color: #f0f0f0;
    /* lighter, readable against green */
    font-weight: bold;
    transition: color 0.3s, text-shadow 0.3s;
}

header nav ul li a:hover {
    color: #d4af37;
    /* gold accent on hover */
    text-shadow: 1px 1px 2px #000;
    /* subtle pop on hover */
}

/* Homepage secondary nav - match services page */
header nav:last-of-type ul {
    display: flex;
    align-items: center;
    gap: 10px;
    /* spacing between items */
    font-size: 0.85rem;
    /* smaller font than primary nav */
    color: #cfcfcf;
    /* subtle text color */
    list-style: none;
    /* remove bullets */
}

header nav:last-of-type ul li.separator {
    color: #cfcfcf;
    /* same subtle color for separator */
    font-weight: bold;
}

header nav:last-of-type ul li a {
    text-decoration: none;
    color: #cfcfcf;
    /* subtle color for links */
    font-weight: bold;
    transition: color 0.3s;
}

header nav:last-of-type ul li a:hover {
    color: #d4af37;
    /* gold accent on hover */
}




/* Hero section */
#top-half {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    width: 100%;
    height: 100vh;
    background-color: #3a4a3a;
    /* olive backdrop for hero */
    box-sizing: border-box;
    gap: 40px;
}

#top-half>div {
    width: 1000px;
}

#top-half h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #d4af37;
    /* gold highlight for military pop */
    text-shadow: 1px 1px 3px #000;
    /* subtle shadow for contrast */
}

#top-half p {
    font-size: 1rem;
    color: #e0e0e0;
    margin: 20px 0;
}

.cropped-image {
    width: 50%;
    max-width: 100%;
    height: 80%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Bottom section (gallery or finishings) */
#bottom-half {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    background-color: #2e3b2e;
    /* matching header */
    flex-wrap: wrap;
    gap: 30px;
}

.finishings {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.finishings:hover {
    transform: scale(1.1);
}

/* Misc text styling */
.em {
    font-style: italic;
    color: #cfcfcf;
}

h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    width: 500px;
    height: 70px;
    border-radius: 5px;
    background-color: #d4af37;
    color: #1f1f1f;
    letter-spacing: 7px;
    text-align: center;
    line-height: 70px;
    /* vertically centers text */
    text-decoration: none;
    transition: transform 0.2s, background-color 0.3s;
    font-size: 1.3rem;
}

.btn:hover {
    background-color: #bfa12d;
    transform: scale(1.05);
}

.hero {
  display: inline-block;  /* shrink to fit image exactly */
  position: relative;
  width: 100%;    /* or 100% for responsive */
  height: 500px;   /* MUST set explicit height for child 100% to work */
}

.cropped-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;         /* remove inline spacing under image */
    width: 100%;
    height: 100%;            /* make it fill the container if needed */
    object-fit: cover;
    object-position: center;
}

.front {
    z-index: 2;
}
.back {
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
}




/* Tablets and small desktops */
@media (min-width: 481px) and (max-width: 1024px) {
    #top-half {
        position: relative;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 40px;
        color: #f0f0f0;

        background: url('https://www.detailedimage.com/photos/guide_home_image.jpg') center/cover no-repeat;
    }

    /* Dark green overlay with warmth & contrast adjustments */
    #top-half::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        /* Step 1: color overlay for contrast */
        background-color: rgba(35, 50, 35, 0.5);
        /* deep green tint */

        /* Step 2: filters apply only to overlay (NOT text) */
        filter: brightness(0.6) contrast(1.2) sepia(0.25);

        z-index: 0;
    }

    /* Make sure text and button stay above the overlay */
    #top-half>* {
        position: relative;
        z-index: 1;
    }


    .cropped-image {
        display: none;
        /* hide the extra img to prevent doubling */
    }


    #top-half h2 {
        font-size: 3rem;
    }

    #top-half p {
        font-size: 1.4rem;
    }



    .btn {
        width: 180px;
        height: 50px;
        font-size: 1.1rem;
        line-height: 50px;
        letter-spacing: normal;
    }
}