@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0c7d8b; /* Mentok Teal */
    --primary-dark: #0a6470; /* Mentok Darker Teal */
    --secondary-color: #00142c; /* Mentok Navy Blue */
    --text-color: #4a4a4a; /* Mentok Body Text */
    --light-bg: #f4f5f6; /* Mentok Light Gray */
    --accent-color: #1cc0d5; /* Mentok Bright Cyan/Teal for buttons */
    --accent-green: #63b336; /* Mentok Accent Green for icons/success */
    --subtitle-color: #f9004d; /* Mentok Subtitle Pink-Red */
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

html, body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Utilities */
.section-padding { padding: 80px 0; }
.bg-black { background-color: var(--secondary-color) !important; }
.bg-gold { background-color: var(--primary-color) !important; }
.text-gold { color: var(--primary-color) !important; }

/* Buttons */
.btn-premium {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--accent-color);
    transition: var(--transition);
    display: inline-block;
}

.btn-premium:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-outline-premium {
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    display: inline-block;
}

.btn-outline-premium:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.header-top {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.header-top a {
    color: var(--white);
    margin-right: 15px;
}

.header-top a:hover {
    color: var(--accent-color);
}

.navbar-brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color) !important;
}

.navbar-brand span {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 600;
    color: var(--secondary-color) !important;
    text-transform: uppercase;
    font-size: 15px;
    padding: 15px 20px !important;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 40px);
}

/* PC Desktop Responsive Optimizations (prevents menu overlap) */
@media (min-width: 992px) {
    .navbar-brand {
        font-size: 20px;
        white-space: nowrap;
    }
    .nav-link {
        padding: 15px 12px !important;
        font-size: 14px;
    }
    .nav-link::after {
        left: 12px;
    }
    .nav-link:hover::after, .nav-link.active::after {
        width: calc(100% - 24px);
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-brand {
        font-size: 17px;
    }
    .nav-link {
        padding: 15px 8px !important;
        font-size: 13px;
    }
    .nav-link::after {
        left: 8px !important;
    }
    .nav-link:hover::after, .nav-link.active::after {
        width: calc(100% - 16px) !important;
    }
}


/* Hero Slider */
.hero-slider {
    margin-top: 148px; /* offset for header */
}
@media (max-width: 991px) {
    .hero-slider {
        margin-top: 70px;
    }
}
.hero-slide {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 44, 0.6);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content p {
    margin-bottom: 40px !important;
}


/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    margin-bottom: 30px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-card .img-wrapper {
    overflow: hidden;
}

.product-card-body {
    padding: 20px;
    text-align: center;
}

.product-card-body h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Stats */
.stats-section {
    background-color: var(--white);
    color: var(--secondary-color);
    padding: 80px 0;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
}

.stat-item h5 {
    color: var(--secondary-color) !important;
}

/* Process */
.process-box {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    transition: var(--transition);
}

.process-box:hover {
    background: var(--primary-color);
    color: var(--white);
}

.process-box:hover h4, .process-box:hover p {
    color: var(--white) !important;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.process-box:hover .process-icon {
    background: var(--white);
}

/* Floating Buttons */
@keyframes pulse-shake {
    0% { transform: scale(1); }
    15% { transform: scale(1.08) rotate(-5deg); }
    30% { transform: scale(1.08) rotate(5deg); }
    45% { transform: scale(1.08) rotate(-3deg); }
    60% { transform: scale(1.08) rotate(3deg); }
    75% { transform: scale(1.08) rotate(0deg); }
    100% { transform: scale(1); }
}

.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse-shake 3s infinite ease-in-out;
}

.floating-whatsapp:hover {
    color: white;
    transform: scale(1.1);
    animation: none;
}

.floating-call {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse-shake 3s infinite ease-in-out;
    animation-delay: 0.5s;
}

.floating-call:hover {
    color: white;
    transform: scale(1.1);
    animation: none;
}

/* Scroll To Top */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    border: none;
    outline: none;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}


/* Footer */
.footer {
    background-color: var(--white);
    color: var(--secondary-color);
    padding: 60px 0 20px;
    border-top: 1px solid #eef1f6;
    text-align: center;
}

.footer h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--secondary-color);
    opacity: 0.8;
}

.footer ul li a:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #eef1f6;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: var(--secondary-color);
    opacity: 0.8;
}

.footer .btn-outline-light {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.footer .btn-outline-light:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-link { padding: 10px !important; }
}

/* Custom Overrides to Match Mentok Healthcare */
.text-gold {
    color: var(--primary-color) !important;
}

.fa-check-circle, .fa-check {
    color: var(--accent-green) !important;
}

.fa-star {
    color: #ffb400 !important;
}

.fa-star.text-muted {
    color: #e0e0e0 !important;
}

.bg-gray-light-theme {
    background-color: var(--light-bg) !important;
}

.testimonial-section-theme {
    background-color: var(--light-bg) !important;
    color: var(--text-color) !important;
}

.testimonial-section-theme h2 {
    color: var(--secondary-color) !important;
}

.testimonial-section-theme .section-title h2::after {
    background-color: var(--primary-color) !important;
}

.testimonial-section-theme .card.testimonial-google-card {
    background-color: var(--white) !important;
    border: 1px solid #eef1f6 !important;
    color: var(--text-color) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
    border-radius: 12px !important;
}

.testimonial-section-theme .card.testimonial-google-card p {
    color: var(--text-color) !important;
}

.testimonial-section-theme .card.testimonial-google-card h6 {
    color: var(--secondary-color) !important;
}

.testimonial-section-theme .card.testimonial-google-card small {
    color: #888888 !important;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    background-color: #f3f4f6 !important;
    color: var(--secondary-color) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    border: 1px solid #e5e7eb;
}

.google-badge-wrapper {
    background-color: #f8f9fa !important;
    color: var(--primary-color) !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content .btn-outline-premium {
    color: var(--white);
    border-color: var(--white);
}

.hero-content .btn-outline-premium:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

.stat-item h3 {
    color: var(--accent-color) !important;
}

/* Page Top Header Offset for Sibling Elements */
.main-header + section, 
.main-header + div, 
.main-header + .container {
    margin-top: 148px !important;
}

@media (max-width: 991px) {
    .main-header + section, 
    .main-header + div, 
    .main-header + .container {
        margin-top: 70px !important;
    }
    
    .navbar-toggler {
        border: 2px solid var(--primary-color) !important;
        background-color: rgba(12, 125, 139, 0.08) !important;
        padding: 4px 8px !important;
        font-size: 1rem !important;
    }
    
    .navbar-toggler-icon {
        filter: invert(34%) sepia(87%) saturate(389%) hue-rotate(140deg) brightness(91%) contrast(93%);
        width: 1.2rem !important;
        height: 1.2rem !important;
    }

    .navbar-brand {
        font-size: 20px;
    }
}

/* Mobile Responsiveness & Overflow Fixes */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem !important;
    }
    .hero-content p {
        font-size: 1rem !important;
    }
    .hero-content .btn {
        display: inline-block;
        width: auto;
        margin-bottom: 10px;
    }
    .navbar-brand {
        font-size: 18px;
    }
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

/* Header Contact Icons Styles */
.nav-icon-link {
    color: var(--secondary-color);
    font-size: 1.25rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-link:hover {
    color: var(--primary-color);
}

.nav-icon-link.text-success {
    color: #25D366 !important;
}

.nav-icon-link.text-success:hover {
    color: #20ba5a !important;
}

.nav-icon-link.text-email {
    color: #EA4335 !important;
}

.nav-icon-link.text-email:hover {
    color: #d93025 !important;
}

.nav-icon-link.text-phone {
    color: #0078FF !important;
}

.nav-icon-link.text-phone:hover {
    color: #0056b3 !important;
}

@media (max-width: 991px) {
    .nav-contact-icons {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #eef1f6;
        width: 100%;
    }
    
    .nav-contact-icons .btn-premium {
        width: 100%;
        margin-top: 15px;
        margin-left: 0 !important;
        text-align: center;
    }
}

/* Sub-page Hero Slider CSS */
.sub-page-hero {
    position: relative;
    width: 100%;
    margin-top: 148px !important; /* offset for header */
}

@media (max-width: 991px) {
    .sub-page-hero {
        margin-top: 70px !important;
    }
}

.sub-hero-slide {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.sub-hero-swiper {
    height: 350px;
    width: 100%;
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* Pinned Item Badge/Icons */
.pin-star {
    color: #ffb400;
    font-size: 1.15rem;
    margin-right: 5px;
}

/* Product Detail Modal Styles */
.modal-product-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-whatsapp-outline {
    border: 2px solid #25D366;
    color: #25D366;
    background: transparent;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-block;
    border-radius: 4px;
}

.btn-whatsapp-outline:hover {
    background-color: #25D366;
    color: var(--white);
}

