/* Reset */
:root {
    --deepblue: #003963;
    --warmbrown: #99734a;
    --calmtan: #e3d1b2;
    --olivegreen: #4f5445;
    --sage: #949480;
    --warmgray: #bfbab2;
    --offwhite: #f2f2f2;
    scroll-behavior: smooth;
}
/* 
html {
    overflow: auto;
} */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rosarivo', sans-serif;
    background-color: #FFFFFF;
    color: #4f5445;
    line-height: 1.6;
    width: 100%;
    /* -ms-overflow-style: none;  
    scrollbar-width: none;   */
}

body::-webkit-scrollbar {
    display: none;
}

img {
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

p {
    font-family: 'Raleway', sans-serif;
    margin: 0px;
    padding: 0px;
}

h2 {
    font-family: "classico-urw", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.gold-text {
    color: var(--warmbrown);
    font-size: 13px;
    font-family: 'Rosarivo', sans-serif;
}

/* Header and Navigation */
header {
    background-color: #ffffff;
    color: #4f5445;
    display: flex;
    align-items: center;
    padding: 100px 20px 50px;
    justify-content: space-around;
    height: 200px;
}

#header-logo {
    height: auto;
    min-height: 100px;
    max-width: 100%;
    /* overflow:hidden; */
    padding-left: 5%;
    z-index: 1;
}

#header-logo img{
    max-height: 110px;
    object-fit: cover;

}

/* Nav bar */

nav {
    flex-basis: 70%;
    display: flex;
    justify-content: flex-end;
    padding-right: 5%;
    align-self: flex-end;
}

nav ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

nav ul li {
    margin: 0 15px;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

nav ul li a {
    color: #303861;
    font-size: 1.1rem;
    font-family: 'Rosarivo', sans-serif;
    text-decoration: none;
    padding: 10px;
    transition: color 0.3s ease;
    display: block;
}

nav ul li a:hover {
    color: #99734a;
}

nav ul li {
    position: relative;
}

nav ul li a.nav-active {
    position: relative;
    color: #99734a; /* Optional: Change text color to match the underline */
}

nav ul li a.nav-active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; 
    width: 100%;
    height: 2px; 
    background-color: #99734a;
}

/* Nav dropdown */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    margin: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 0;
    z-index: 1;

}

.dropdown-menu li {
    padding: 0px 20px;
    white-space: nowrap;
}

.dropdown-menu li a {
    color: #303861;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
    text-align: center;
}

.dropdown-menu li a:hover {
    color: #99734a;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Section Css */

section {
    width: 100%;
    padding: 60px 60px 0px 60px;
    text-align: center;
    min-height: 600px;
}

section h2 {
    font-size: 2.5rem;
    color: #303861;
    margin-bottom: 20px;
}

section p {
    font-size: 1.1rem;
    color: #4f5445;
    /* margin-bottom: 30px; */
    line-height: 1.8;
}

.section-icon {
    margin-bottom: 10px;
    width: 25px;
    height: 25px;
}

/* Welcome Section */

.welcome-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 70vh;
    margin: 0;
    padding-top: 0px;
    flex-wrap: wrap;
    
    
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('/assets/newjonesrender.jpg');
    /* background-position: ;  */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* background-position: bottom;
    background-size: auto 100vh; */
    filter: brightness(90%);
    /* background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, var(--offwhite) 100%); */
}

.welcome-text {
    flex-basis: 50%;
    margin-top: 100px;
    /* background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, var(--offwhite) 100%); */
    /* background: var(--offwhite); */
    max-width: 640px;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}

.welcome-text h2 {
    font-size: 35px;
    margin: 20px;
    text-align: left;
    
    /* color: black; */
    color: white;
    /* color: var(--warmbrown); */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.welcome-text p {
    font-size: 18px;
    line-height: 1.8;
    color: white;
    /* color: var(--warmbrown); */
    margin: 20px;
    text-align: left;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.welcome-graphic {
    flex-basis: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #bfbab2;
    height: 350px;
    border-radius: 10px;
    background-color: #e3d1b2;
    color: #949480;
    text-align: center;
}

.welcome-graphic p {
    font-size: 1.2rem;
}

/* About Us Section */

#about {
    display:flex;
    flex-direction: column;
    /* background-color: #f2f2f2; */
    background-color: white;
    /* background-image: url('assets/concepts.jpg'); */
    min-height: 600px;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

/* Facility Cards */
#facilities {
    /* background-color: white; */
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 100px;
}

.facility-card-wrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
    /* max-width: 1200px; */
    margin: 0;
}

.facility-card {
    /* background: #ffffff; */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    flex-basis: calc(33% - 60px);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.facility-card h3 {
    font-size: 1.5rem;
    color: #303861;
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: var(--calmtan) 2px solid;
    width: 50%; 
    margin: 0 auto 10px; 
}

.facility-card p {
    font-size: 1rem;
    color: #4f5445;
    line-height: 1.7;
}

.pillar-description {
    padding-top: 5px;
    padding-bottom: 5px;
    border-top: 1px solid var(--warmbrown);
    border-bottom: 1px solid var(--warmbrown);
    /* margin-left: -20px;
    margin-right: -20px; */
}

.pillar-description p {
    color: var(--warmbrown);
    font-size: 16px;
}

.pillar-features p{
    color: var(--warmbrown);
    font-size: 14px;
    letter-spacing: 1px;
}

.pillar-intro {
    margin-bottom: 35px;
}

.pillar-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.pillar-image img {
    margin: 20px;
    width: 60%;
    height: 60%;
    object-fit: cover;
}

/* Contact Section */

#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
}
#contact ul {
    list-style-type: none;
    padding: 0;
}

#contact ul li {
    font-size: 1.1rem;
    color: #4f5445;
    margin: 5px 0;
}

#contact a {
    color: #99734a;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #352106;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid white;
}

/* Media Queries */
@media (max-width: 1200px) {
    .welcome-section::before {
        top: 10%;
    }

    .facility-card {
        flex-basis: 55%;
    }
}

@media (max-width: 800px) {
    /* .welcome-section {
        flex-direction: column;
    }

    .welcome-graphic {
        margin-top: 20px;
        height: 250px;
    } */

    header {
        flex-direction: column;
        padding:70px 0 0 0;
        height: 300px;
        padding-bottom: 0;
    }

    #header-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 0 30px 0;
    }

    nav {
        align-self: center;
        padding: 0 0 0 20px;
    }
    
    .facility-card {
        flex-basis: 100%;
    }

    .welcome-section {
        height: 311px;
    }

    .welcome-section::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background-image: url('/assets/newjonesrender.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        filter: brightness(90%);
        /* background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, var(--offwhite) 100%); */
    }

    .welcome-text {
        flex-basis: 100%;
    }
}