:root {
    --primary-color: #aa0013;
    --secondary-color: #131518;
    --third-color: #807e7e;
    --fourth-color: #4d4d4d;
    /* --third-color: #657d8a; */
    /* --fourth-color: #435158; */
    --white-color: #ede7e3;
    --black-color: #000000;
    --bg-color: #dad3cd;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

#space {
    background-color: transparent;
    margin-bottom: 5rem;
}

.grid-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
}


.link-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding-right: 1rem;
}


li {
    list-style-type: none;
}


main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}


main-header.is-sticky header {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    padding: 0.5rem 1rem;
    border: none;
}


header {
    justify-content: space-between;
    align-items: center;
    background-color: var(--white-color);
    padding: .75rem;
    box-shadow: none;
    transition: all ease-in-out 0.3s;
}


.header-buttons {
    padding: .5rem 1rem;
    display: block;
    background-color: var(--white-color);
    color: var(--black-color);
    text-decoration: none;
    transition: all ease-in-out 0.3s;
}


.call-button {
    padding: .75rem 1.5rem;
    border: 2px solid var(--black-color);
    border-radius: 24px;
    display: block;
    background-color: var(--white-color);
    color: var(--black-color);
    text-decoration: none;
    transition: all ease-in-out 0.3s;
}


.call-button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.05);
}


.header-buttons:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}


header nav a img {
    padding-left: 1rem;
    width: 175px;
    height: 57.75px;
    mix-blend-mode: multiply;
}


main {
    flex: 1;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background-color: var(--bg-color);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}


.hero {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 50px 0 0 0;
    margin-left: 10%;
}


.hero h1 {
    margin-top: 15px;
    font-size: 45px;
}


.hero hr {
    border: none;
    width: 175px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 10px;
    margin-bottom: 20px;
}


.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
}


footer nav img {
    mix-blend-mode: normal;
    width: 175px;
    height: 57.75px;
    grid-column: 1 / 5;
    background: none;
    margin-bottom: 2rem;
}


#first {
    grid-column: 1 / 6;
    width: 100%;
}


.about-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--white-color);
    align-self: start;
}


.about-section > a {
    text-decoration: none;
    padding-bottom: 25px;
    font-weight: bold;
    color: var(--gray-color);
}


.about-section li {
    margin-bottom: 0.5rem;
}


.about-section li a {
    text-decoration: none;
    color: var(--white-color);
}


.services-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--white-color);
    align-self: start;
}


.services-section > a {
    padding-bottom: 25px;
    text-decoration: none;
    font-weight: bold;
    color: var(--gray-color);
}


.services-section li {
    margin-bottom: 0.5rem;
}


.services-section li a {
    text-decoration: none;
    color: var(--white-color);
}


.location-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--white-color);
    align-self: start;
}


.location-section > a {
    padding-bottom: 25px;
    text-decoration: none;
    font-weight: bold;
    color: var(--gray-color);
}

.location-section li {
    margin-bottom: 0.5rem;
}


.location-section li a {
    text-decoration: none;
    color: var(--white-color);
}


#location {
    font-weight: bold;
}


#last {
    grid-column: 1 / 6;
    width: 100%;
}


.copyright-section {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    padding-top: 3rem;
    color: var(--white-color);
    grid-column: 1 / 3;
    font-size: smaller;
}


.copyright-section a {
    text-decoration: none;
    color: var(--white-color);
}


.social-media {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding-top: 3rem;
    color: var(--white-color);
    grid-column: 3/ 6;
}


.social-media a {
    text-decoration: none;
    color: var(--white-color);
    padding: 0.5rem;
    display: inline-block;
}


.social-media a.facebook:hover {
    color: #1877F2;
}


.social-media a.instagram:hover {
    background: linear-gradient(to right,#833ab4,#fd1d1d,#fcb045);
    color: transparent;
    background-clip: text;
}


.social-media a.x-twitter:hover {
    color:#5a5a5a;
}


.social-media a.linkedin:hover {
    color: #0077B5;
}


.social-media a.youtube:hover {
    color: #FF0000;
}


footer nav ul li a:not(.social-media li a):hover {
    color: var(--gray-color)
}


footer {
    background: var(--black-color);
    border: none;
    padding: 5rem 12.5rem;
}

/* --- HAMBURGER MENU STYLES --- */
.hamburger {
    display: none; /* Hidden on desktop */
    padding: 15px;
    cursor: pointer;
    transition-timing-function: linear;
    transition-duration: .15s;
    transition-property: opacity,filter;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
}
.hamburger-box {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 24px;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    position: absolute;
    width: 30px;
    height: 3px;
    transition-timing-function: ease;
    transition-duration: .15s;
    transition-property: transform;
    border-radius: 4px;
    background-color: var(--black-color);
}
.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}
.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}
.hamburger-inner::before {
    top: -10px;
}
.hamburger-inner::after {
    bottom: -10px;
}

/* --- MOBILE NAVIGATION PANEL --- */
.mobile-nav {
    display: none; /* Hidden on desktop */
}

/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 960px) {
    /* --- Header & Navigation --- */
    .top-header .grid-row {
        grid-template-columns: auto 1fr; /* Keep logo and nav on one line */
        justify-content: space-between; /* Push logo and hamburger apart */
    }

    /* Hide desktop nav and show hamburger */
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: block;
        /* Add these two lines to make it the back button */
        position: relative;
        z-index: 1002;
    }

    /* Style the mobile nav panel */
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* Updated for transparency and blur effect */
        background-color: rgba(237, 231, 227, 0.9); /* --bg-color with transparency */
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        z-index: 1001; /* Changed from 999 to appear over the header */
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 100px; /* Space for header */
    }

    /* When menu is open */
    body.nav-open .mobile-nav {
        transform: translateX(0);
    }
    body.nav-open {
        overflow: hidden; /* Prevent scrolling when menu is open */
    }

    /* Style links inside mobile nav */
    .mobile-nav-links {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        width: 100%;
        padding: 0;
    }
    .mobile-nav-links .header-buttons,
    .mobile-nav-links .call-button {
        font-size: 1.5rem;
        background-color: transparent; /* Add this line */
    }

    /* Animate hamburger to an "X" */
    body.nav-open .hamburger-inner {
        transform: translate3d(0,0,0) rotate(45deg);
    }
    body.nav-open .hamburger-inner::before {
        transform: translate3d(0,-10px,0) rotate(-45deg) scaleX(0.7);
        opacity: 0;
    }
    body.nav-open .hamburger-inner::after {
        transform: translate3d(0,-10px,0) rotate(-90deg);
    }

    /* --- Hero Section --- */
    .hero {
        align-items: center; /* Center content on mobile */
        margin-left: 0;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem; /* Smaller font size for mobile */
    }

    .hero hr {
        width: 120px;
        margin-left: auto;
        margin-right: auto;
    }

    /* --- Footer --- */
    footer {
        padding: 3rem 1.5rem; /* Reduce footer padding */
    }

    .footer-nav {
        grid-template-columns: 1fr; /* Stack columns vertically */
        gap: 2rem;
        text-align: center;
    }

    footer nav img {
        grid-column: 1 / -1; /* Make logo span the full width */
        margin: 0 auto 2rem auto; /* Center the logo */
    }

    #first, #last {
        grid-column: 1 / -1;
    }

    .footer-column, .about-section, .services-section, .location-section {
        align-items: center; /* Center content within each footer column */
    }

    .copyright-section {
        grid-column: 1 / -1;
        flex-direction: column; /* Stack copyright info */
        align-items: center;
        gap: 0.5rem;
        padding-top: 2rem;
    }

    .social-media {
        grid-column: 1 / -1;
        justify-content: center; /* Center social icons */
        padding-top: 1rem;
    }
}
