/* style.css */

/* --- Color Palette Variables --- */
:root {
    --yp-dark-grey: #4D4D4D; /* From logo background */
    --yp-yellow: #E8C125; /* From logo "YP" and border */
    --yp-white: #FFFFFF;
    --yp-black: #000000;
    --yp-light-grey: #F8F9FA; /* Bootstrap light grey */
    --yp-antler-white: #E0DED8; /* From antlers */
    --yp-deep-forest-green: #38513A; /* Optional accent */
}

/* --- Global Styles & Typography --- */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--yp-black);
    line-height: 1.7;
    padding-top: 70px; /* Adjusted for fixed navbar height */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--yp-dark-grey);
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--yp-dark-grey);
}

    .section-title::after { /* Subtle underline accent */
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background-color: var(--yp-yellow);
        margin: 0.5rem auto 0; /* Center if text-center is on title */
    }

.text-center .section-title::after { /* Ensure centering if title is centered */
    margin-left: auto;
    margin-right: auto;
}

.section-bg-light-grey {
    background-color: var(--yp-light-grey);
}

.section-bg-dark-grey {
    background-color: var(--yp-dark-grey);
}

    .section-bg-dark-grey .section-title,
    .section-bg-dark-grey h1, .section-bg-dark-grey h2, .section-bg-dark-grey h3,
    .section-bg-dark-grey h4, .section-bg-dark-grey h5, .section-bg-dark-grey h6 {
        color: var(--yp-white);
    }

    .section-bg-dark-grey p {
        color: var(--yp-antler-white);
    }


/* --- Navigation Bar --- */
.yp-navbar {
    background-color: var(--yp-dark-grey);
    box-shadow: 0 3px 6px rgba(0,0,0,0.18);
    padding-top: 0px !important;
    padding-bottom: 5px !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

    .yp-navbar .navbar-brand {
        color: var(--yp-yellow);
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 1.5rem;
    }

.yp-nav-logo {
    height:80px;
}

.yp-nav-logo-bg {
    display: inline-block;
    background: #e8e8e8;
    border: 1px solid var(--yp-yellow);
    border-radius: 50%;
    padding: 1.0rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}


.yp-navbar .nav-link {
    color: var(--yp-antler-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

    .yp-navbar .nav-link:hover,
    .yp-navbar .nav-link.active {
        color: var(--yp-yellow);
    }

.navbar-toggler {
    border-color: rgba(255,255,255,0.2); /* Lighter border for toggler */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(232, 193, 37, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/*- Hero Gallery --- */
.hero-Gallery {
    background: url('/images/galleryBackDrop.jpg') no-repeat center center;
    background-size: cover;
    min-height: 40vh; /* Reduced slightly to ensure CTA is visible */
    position: relative;
    color: var(--yp-white);
}

    .hero-Gallery::before { /* Dark overlay for text readability */
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .hero-Gallery .container {
        position: relative; /* To sit above the overlay */
        z-index: 2;
    }

    .hero-Gallery h1 {
        color: var(--yp-white);
        font-size: 6rem; /* Responsive font size */
    }




/*- Hero Contact --- */
.hero-Contact {
    background: url('/images/contactBackDrop.jpg') no-repeat center center;
    background-size: cover;
    min-height: 65vh; /* Reduced slightly to ensure CTA is visible */
    position: relative;
    color: var(--yp-white);
}

    .hero-Contact::before { /* Dark overlay for text readability */
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .hero-Contact .container {
        position: relative; /* To sit above the overlay */
        z-index: 2;
    }

    .hero-Contact h1 {
        color: var(--yp-white);
        font-size: 6rem; /* Responsive font size */
    }



/* --- Hero Services --- */
.hero-Services {
    background: url('/images/servicesBackDrop.jpg') no-repeat center center;
    background-size: cover;
    min-height: 60vh; /* Reduced slightly to ensure CTA is visible */
    position: relative;
    color: var(--yp-white);
}

    .hero-Services::before { /* Dark overlay for text readability */
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .hero-Services .container {
        position: relative; /* To sit above the overlay */
        z-index: 2;
    }

    .hero-Services h1 {
        color: var(--yp-white);
        font-size: 6rem; /* Responsive font size */
    }


/* --- Hero Section --- */
.hero-section {
    background: url('/images/mainBackDrop.jpg') no-repeat center center;
    background-size: cover;
    min-height: 90vh; /* Reduced slightly to ensure CTA is visible */
    position: relative;
    color: var(--yp-white);
}

    .hero-section::before { /* Dark overlay for text readability */
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .hero-section .container {
        position: relative; /* To sit above the overlay */
        z-index: 2;
    }

/*.hero-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    border: 3px solid var(--yp-yellow);
    background-color: #E0DED8; 
    padding: 0px;
    border-radius: 80%; 
}*/

.hero-logo-bg {
    display: inline-block;
    background: #e8e8e8;
    border: 3px solid var(--yp-yellow);
    border-radius: 50%;
    padding: 3.4rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.hero-logo {
    display: block;
    max-width: 420px;  Adjust as needed 
    height: auto;
    margin: 0 auto;
}

.hero-section h1 {
    color: var(--yp-white);
    font-size: 3rem; /* Responsive font size */
}


.hero-section .lead {
    color: var(--yp-antler-white);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* --- Buttons --- */
.yp-btn-yellow {
    background-color: var(--yp-yellow);
    color: var(--yp-black);
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .yp-btn-yellow:hover {
        background-color: #d4ac0d; /* Darker yellow */
        color: var(--yp-black);
    }

/* --- About Us Section --- */
#about .lead {
    color: var(--yp-dark-grey);
    font-weight: 600; /* Open Sans semi-bold */
}

#about p {
    color: #555; /* Slightly lighter than primary dark grey */
}

#about img {
    border: 5px solid var(--yp-white); /* Nice frame effect */
}

/* --- Services Section --- */
.yp-card {
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem; /* Slightly rounded cards */
    overflow: hidden; /* Ensure header background doesn't bleed */
}

    .yp-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }

.yp-card-header {
    /*background-color: var(--yp-dark-grey);*/
    background-color: seagreen;
    /*color: var(--yp-yellow);*/
    color: black !important;
    padding: 1.5rem;
    text-align: center;
}

    .yp-card-header h3 {
        /*color: var(--yp-yellow);*/
        color: black !important;
        margin-bottom: 0;
        font-size: 1.5rem;
    }

.yp-icon { /* Icon styling within card header */
    /*color: var(--yp-yellow);*/
    color: black !important;
}

.yp-card .card-body {
    padding: 1.5rem;
    color: #333;
}

/* --- Why Choose Us Section --- */
.feature-icon-yellow {
    color: var(--yp-yellow);
    margin-bottom: 1rem;
}

#why-us h5 {
    color: var(--yp-white); /* Ensure heading color contrasts with dark bg */
    margin-top: 0.5rem;
}


/* --- Gallery Section --- */
.gallery-img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 3px solid var(--yp-white);
}

    .gallery-img:hover {
        transform: scale(1.05);
        opacity: 0.85;
    }

/* --- Contact Section --- */
#contact .form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
}

    #contact .form-control:focus {
        border-color: var(--yp-yellow);
        box-shadow: 0 0 0 0.25rem rgba(232, 193, 37, 0.25);
    }

.yp-text-yellow {
    color: var(--yp-yellow);
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
    border: 2px solid var(--yp-light-grey);
    border-radius: 0.25rem;
}

    .map-responsive iframe {
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        position: absolute;
    }


/* --- Footer --- */
.yp-footer {
    background-color: var(--yp-black);
    color: var(--yp-antler-white);
}

    .yp-footer p {
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }

.yp-social-icon {
    color: var(--yp-antler-white);
    transition: color 0.3s ease;
}

    .yp-social-icon:hover {
        color: var(--yp-yellow);
    }

.ProteinPlatformFooterLogo {
    width: 25%;
    padding-bottom: 1rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    body {
        padding-top: 60px; /* Adjust for potentially smaller navbar */
    }

    .hero-section {
        min-height: 70vh;
    }

        .hero-section h1 {
            font-size: 2.5rem;
        }

        .hero-section .lead {
            font-size: 1.1rem;
        }

    .hero-logo {
        max-width: 150px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .ProteinPlatformFooterLogo {
        width: 30%;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .yp-navbar .nav-link {
        margin-left: 0;
        margin-right: 0;
        padding: 0.5rem 0; /* Adjust padding for collapsed menu */
    }

    .navbar-collapse {
        background-color: var(--yp-dark-grey); /* Background for collapsed menu */
        padding: 1rem;
        border-top: 1px solid var(--yp-yellow);
    }

    .ProteinPlatformFooterLogo {
        width: 40%;
    }
}

@media (max-width: 501px) {
    .ProteinPlatformFooterLogo {
        width: 50%;
        padding-bottom: 1rem;
    }
}

