/* Mac-optimized CSS while maintaining Windows compatibility */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: montserrat;
    src: url('Montserrat/static/Montserrat-Light.ttf');
    font-display: swap;
}

/* Mac-specific media query for better rendering */
@media screen and (-webkit-min-device-pixel-ratio: 1.5) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

body {
    font-family: montserrat, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .promo-title {
        padding-left: 15px;
        padding-top: -20px;
    }
    .top-description{
        padding-left: 13px;
        font-size: 80%;
    }
    .para-banner {    
        background-image: url("images/istock-brownplant.jpg");
        min-height: 400px;
        background-attachment: scroll;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

/* Desktop - Safari-specific fix for Mac */
@media(min-width: 769px) and (-webkit-min-device-pixel-ratio: 1) {
    .para-banner {    
        background-image: url("images/istock-brownplant.jpg");
        min-height: 400px;
        /* Use scroll for Safari on Mac, fixed for others */
        background-attachment: scroll;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        /* Add parallax effect for Mac Safari */
        transform: translate3d(0, 0, 0);
        will-change: transform;
    }
}

/* Non-Safari browsers (mainly Windows) */
@media(min-width: 769px) and (not (-webkit-min-device-pixel-ratio: 1)) {
    .para-banner {    
        background-image: url("images/istock-brownplant.jpg");
        min-height: 400px;
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

/* Fallback for all other browsers */
@media(min-width: 769px) {
    .para-banner {    
        background-image: url("images/istock-brownplant.jpg");
        min-height: 400px;
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

.bg {
    transform: scaleX(-1);
}

.para-services {
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Safari-specific fix for para-services */
@supports (-webkit-appearance: none) {
    .para-services {
        background-attachment: scroll;
        transform: translate3d(0, 0, 0);
    }
}

/*--------------Nav----------------*/
#nav-bar {
    position: sticky;
    position: -webkit-sticky; /* Safari support */
    top: 0;
    z-index: 10;
}
    
.navbar {
    background-color: rgba(255, 255, 255, 0.3);
    background-blend-mode: lighten;
    padding: 0 !important;
    /* Enhanced backdrop blur for Mac */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    height: 40px;
    padding-left: 40px;
}

.navbar-nav li {
    padding: 0 10px;
}

.navbar-nav li a {
    color: black !important;
    font-weight: 400;
    float: right;
    text-align: right !important;
    font-family: montserrat;
    font-size: 25px;
    /* Conditional text shadow - lighter for Mac retina displays */
    text-shadow: 1px 1px 2px black;
}

/* Mac retina display optimization */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .navbar-nav li a {
        text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.8);
        font-weight: 350; /* Slightly heavier for better readability */
    }
}

.fa-bars {
    color: #fff;
    font-size: 30px !important;
}

.navbar-toggler {
    outline: none !important;
}

.nav li a {
    font-weight: 300;
    text-shadow: 1px 1px 2px black;
}

/* Mac-specific nav link optimization */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .nav li a {
        text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.8);
    }
}

.navbar-nav li a.special {
    background-color: white;
    
    
    color: black !important;
    padding: 3px 18px;
    margin-top: 5px;
    border-radius: 10px;
    font-weight: 400;
}

.navbar {
    transition: all 0.5s;
}

.navbar-scrolled {
    background-color: #e8e0d1;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/*@media (min-width: 1000px) {*/
/*    .dropdown:hover .dropdown-menu {*/
/*        display: block;*/
/*        opacity: 1;*/
/*        transition: all 0.2s;*/
/*    }*/
/*}*/

.dropdown-menu {
    display: block;
    margin-top: 40px;
    opacity: 0;
    width: 10px;
    border: none;
    background-color: rgba(255,255,255,0.5);
    /* Enhanced backdrop for Mac */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.dropdown-menu li a {
    font-size: 15px;
}

.dropdown-menu li a:hover {
    border: none;
    background-color: rgba(255,255,255,0.3);
}



 /* Mobile specific fixes */
    @media (max-width: 999px) {
        .dropdown-menu {
            position: static !important;
            float: none;
            width: auto;
            margin-top: 0;
            background-color: rgba(255,255,255,0.5);
            border: none;
            box-shadow: none;
            opacity: 1;
        }
        
    }

/* Show dropdown when Bootstrap's show class is applied */
        .dropdown-menu.show {
            opacity: 1;
        }

/*-----------------------Banner----------------------*/
#banner {
    background-color: rgba(255, 255, 255, 0.15);
    background-blend-mode: lighten;
    width: 100%;
    color: white;
    padding-top: 5%;
    height: 450px;
    /* Hardware acceleration for smoother performance on Mac */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.promo-title {
    font-size: 40px;
    font-weight: 600;
    margin-top: 100px;
}

.play-btn {
    width: 45px;
    margin: 20px;
}

#banner a {
    color: #fff;
    text-decoration: none;
}

.bottom-img {
    width: 100%;
}

.logo-img {
    width: 150px;
    height: 150px;
    padding-top: -20px;
}

.top-description {
    padding-top: 20px;
    font-family: montserrat;
    text-shadow: 2px 1px rgba(8, 7, 7, 0.3);
    font-size: 21px;
}

/* Mac-specific text shadow optimization */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .top-description {
        text-shadow: 1px 0.5px rgba(8, 7, 7, 0.4);
    }
}


/* Stop sideways overflow in custom containers */
.container-text-center {
  width: 100%;
  overflow-x: hidden; /* clip if you’re on BS5 */
}

.container-text-center .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.container-text-center .row[class*="row-cols-"] {
  --bs-gutter-x: 0; /* Bootstrap 5: remove gutter spacing */
}

.container-text-center .row > [class^="col-"],
.container-text-center .row > [class*=" col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}













/* Clean body section styles */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: #f8f9fa;
}

.section-highlight {
    background: linear-gradient(135deg, rgba(159, 96, 72, 0.9), rgba(158, 173, 147, 0.9)),
                url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80");
    background-position: center;
    background-size: cover;
    color: white;
    /* Safari-specific handling */
    background-attachment: fixed;
}

/* Safari fix for section-highlight */
@supports (-webkit-appearance: none) {
    .section-highlight {
        background-attachment: scroll;
        transform: translate3d(0, 0, 0);
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.section-highlight .section-title {
    color: white;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a6c7d;
    margin-bottom: 2rem;
}

.section-highlight .section-text {
    color: rgba(255, 255, 255, 0.95);
}

.team-section-header {
    background: linear-gradient(135deg, #9f6048, #bd725b);
    padding: 60px 0;
    text-align: center;
    color: white;
    position: relative;
}

.team-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.team-section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.team-member {
    padding: 60px 0;
}

.team-member:nth-child(even) {
    background-color: #f8f9fa;
}

.team-member img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-height: 400px;
    object-fit: cover;
    /* Better image rendering on Mac */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.team-member img:hover {
    transform: translateY(-5px);
}

.team-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.team-name {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 3px solid #9f6048;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.team-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a6c7d;
}

.intro-section {
    background: linear-gradient(135deg, #f5f2eb, #e8e0d1);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(159, 96, 72, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    /* Optimize animation for Mac */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.mission-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .team-name {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .team-content {
        padding: 1rem;
        margin-top: 2rem;
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*------------------------Social media section-------------------*/
#social-media {
    background: #f5f2eb;
    padding: 100px 0;
    /* Smooth scrolling for Mac */
    -webkit-overflow-scrolling: touch;
}

#social-media p {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 30px;
}

.social-icons img {
    width: 60px;
    transition: 0.5s;
    /* Hardware acceleration for smoother hover on Mac */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.social-icons a:hover img {
    transform: translateY(-10px);
    -webkit-transform: translateY(-10px) translate3d(0, 0, 0);
}

/*------------footer section---------------*/
#footer {
    background-image: linear-gradient(to right, #9ead93 ,#e8e0d1);
    color: black;
    font-size: 20px;
}

.footer-img {
    width: 100%;
}

#footer .dir-btn {
    margin-top: 5px;
    margin-bottom: 20px;
}

.footer-box {
    padding: 40px;
}

.footer-box img {
    width: 120px;
    margin-bottom: 20px;
}

.footer-box .fa {
    margin-right: 8px;
    font-size: 25px;
    height: 40px;
    width: 40px;
    text-align: center;
    padding-top: 7px;
    border-radius: 2px;
    background-image: linear-gradient(to right, #91928cc1, #d9e7705c);
}

.footer-box .form-control {
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin-top: 25px;
    max-width: 250px;
    /* Better form styling on Mac Safari */
    -webkit-appearance: none;
    appearance: none;
}

.footer-box .btn-primary {
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin-top: 30px;
    background-image: linear-gradient(to right, #bd725b, #9f6048);
    border-radius: 50px;
    /* Better button appearance on Mac */
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.footer-box .form-control {
    border-radius: 50px;
}

hr {
    background-color: #fff;
}

.copyright {
    margin-bottom: 0;
    padding-bottom: 20px;
    text-align: center;
}

.priv-btn {
    box-shadow: none;
    border: none;
    text-decoration: none;
    color: black;
    padding: 10px;
    font-size: 18px;
}

.messaging-disclaimer{
    font-size: 10px;
    padding-top: 30px;

}