@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playwrite+CU:wght@400&display=swap');

:root {
    --primary-blue: #005A9C;
    --secondary-teal: #00A99D;
    --light-gray-bg: #f8f9fa;
    --dark-text: #333;
    --light-text: #555;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --black: #324047;
    --background: #EFEFEF;
    --primary: #00cece;
    --secondary: #00a8a8;
    --grey: #757575;
}

body {
    background-color: var(--background);
    font-family: var(--font-body);
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Image Hover Effect (Grayscale) */
img {
    transition: all 0.4s ease-in-out !important;
}

img:hover {
    filter: grayscale(100%);
    transform: scale(1.03);
}

.navbar-brand img:hover,
.speciality-card img:hover {
    filter: none !important;
    transform: none !important;
}

/* Base Styles */
h1 {
    font-weight: 700 !important;
    font-size: 4rem !important; /* Changed from 80px to rem for better scalability */
    line-height: 1.1 !important;
    color: var(--black);
}

h2 {
    font-weight: 700 !important;
    font-size: 2.5rem !important;
    color: var(--black);
}

h5 {
    color: var(--black) !important;
    font-weight: 600;
}

p {
    color: var(rgba(255, 255, 255, 0.873));
    font-family: var(--font-body);
}

.navbar-nav .nav-link {
    font-family: var(--font-body);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-teal) !important;
}

span {
    font-family: inherit;
    color: var(--secondary);
}

nav {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-family: inherit;
    padding: 0;
    margin-right: 3.5rem;
}

.navbar-nav {
    align-items: center;
}

@media (min-width: 992px) {
    .navbar-nav {
        margin-left: 1.5rem;
    }
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.primary-button {
    background-color: var(--secondary);
    border: none;
    border-radius: 5px;
    color: white;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    white-space: nowrap;
}

.primary-button:hover {
    transform: translateY(-3px);
    background-color: #008a7f;
    box-shadow: 0 4px 8px rgba(0, 169, 157, 0.3);
}

.secondary-button {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    text-decoration: none;
}

.secondary-button:hover {
    background-color: var(--secondary);
    color: white;
}

.small-badge {
    padding: 2px 10px;
    width: 230px;
    text-align: center;
    border: 1px solid var(--secondary);
    border-radius: 40px;
    color: var(--secondary);
}

.bg-primary {
    background-color: var(--secondary) !important;
}

/* --- ABOUT CARDS --- */
.about-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    min-height: 150px;
    height: auto;
}

.about-icon i {
    font-size: 80px;
    color: var(--secondary);
}

/* --- SPECIALITY CARD STYLES --- */
.speciality-card {
    min-height: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.speciality-card .card-description {
    font-size: 0.9rem;
    flex-grow: 1;
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
}

.speciality-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.speciality-card .button-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.speciality-card .btn-contact {
    flex: 1;
    padding: 10px 5px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.speciality-card .btn-contact.whatsapp {
    background-color: #25d366;
    color: white;
    animation: pulse-whatsapp 2s infinite;
}

.speciality-card .btn-contact.call {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.speciality-card .btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* --- FLOATING WHATSAPP AND POPUP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.notification-popup {
    position: fixed;
    bottom: 110px;
    right: 40px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border-left: 5px solid #25d366;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 101;
    max-width: 280px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
    visibility: hidden;
}

.notification-popup.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.popup-content {
    position: relative;
    text-align: left;
}

.popup-content p {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;
}

.close-popup {
    position: absolute;
    top: -20px;
    right: -28px;
    background: #f1f1f1;
    color: #777;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-popup:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

/* --- FOOTER & COPYRIGHT --- */
.footer li {
    list-style: none;
    padding-top: 10px;
}

.footer a,
address {
    text-decoration: none;
    color: var(--grey);
}

.copyright {
    background-color: var(--secondary);
}

.icon-btn-whatsapp {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 0;
    transition: all .5s;
    border: 2px solid var(--secondary);
    background-color: transparent;
    color: var(--secondary);
}

.icon-btn-whatsapp:hover {
    background-color: var(--secondary);
    color: white;
}


/* --- CTA SECTION --- */
.cta-animated {
    background: linear-gradient(-45deg, #00a8a8, #00cece, #008f8f, #00a8a8);
    background-size: 400% 400%;
    animation: gradient-flow 15s ease infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cta-animated .btn-whatsapp {
    animation: pulse-whatsapp-cta 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

@keyframes pulse-whatsapp-cta {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* --- RESPONSIVENESS --- */
@media only screen and (max-width: 767.98px) {
    h1 {
        font-size: 50px !important;
        line-height: 55px !important;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 20px;
        font-size: 25px;
    }

    .notification-popup {
        bottom: 80px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* --- BATCH BUTTON STYLES --- */
.quantity-btn {
    transition: all 0.3s ease;
    min-height: 70px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    border: 2px solid #007bff !important;
    background-color: white !important;
}

.quantity-btn .fw-bold {
    font-size: 1.15rem;
    line-height: 1.3;
    color: #007bff !important;
    font-weight: 600 !important;
}

/* --- MOBILE NAVBAR OPTIMIZATION --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav {
        gap: 15px !important;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 10px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-item:last-child,
    .nav-item:nth-last-child(2) {
        margin-top: 10px;
    }

    /* Make buttons full width on mobile for better touch targets */
    .primary-button,
    .secondary-button {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 12px;
        margin: 5px 0;
    }
}

.quantity-btn:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 206, 206, 0.3);
}

.quantity-btn:hover .fw-bold {
    color: white !important;
    font-weight: 700 !important;
}

.quantity-btn.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.quantity-btn.active .fw-bold {
    color: white !important;
    font-weight: 700 !important;
}

/* --- Mobile Bottom Navigation --- */
.mobile-bottom-nav {
    display: none;
    /* Hidden by default (Desktop) */
}

@media (max-width: 991.98px) {

    /* Hide the standard navbar toggler since we have a menu button in bottom nav */
    .navbar-toggler {
        display: none !important;
    }

    /* Add padding to body so content isn't hidden behind fixed bottom nav */
    body {
        padding-bottom: 70px;
    }

    /* Bottom Nav Container */
    .mobile-bottom-nav {
        display: flex;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100%;
        height: 60px;
        /* Slightly taller for better touch targets */
        background-color: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999 !important;
        /* Ensure it stays on top */
        justify-content: space-around;
        align-items: center;
        padding: 0 5px;
        padding-bottom: env(safe-area-inset-bottom);
        /* iOS Safe Area */
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        transform: translateZ(0);
        /* Force GPU acceleration to prevent jitter */
        -webkit-transform: translateZ(0);
    }

    /* Nav Items */
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #888;
        /* Muted text color */
        font-size: 0.7rem;
        /* Reduced font size */
        flex: 1;
        /* Distribute space evenly */
        height: 100%;
        position: relative;
        transition: color 0.3s ease;
        background: none;
        border: none;
        padding: 0;
    }

    .bottom-nav-item i {
        font-size: 1.2rem;
        /* Reduced icon size */
        margin-bottom: 2px;
        transition: transform 0.2s ease;
    }

    /* Active State */
    .bottom-nav-item.active,
    .bottom-nav-item:hover,
    .bottom-nav-item:active {
        color: var(--secondary-teal);
    }

    .bottom-nav-item.active i {
        transform: translateY(-2px);
    }
}

/* --- RESPONSIVE OVERRIDES --- */
@media (max-width: 767.98px) {
    h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .category-title {
        font-size: 1.5rem !important;
        margin-bottom: 2rem !important;
    }

    /* Footer Fixes */
    .footer {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        text-align: center;
    }

    .footer .row {
        gap: 2rem;
    }

    .footer .navbar-brand img {
        width: 140px !important;
    }

    .footer .d-flex {
        justify-content: center;
    }

    .footer address {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.6;
    }

    /* Hero Section Spacing */
    .hero-carousel .carousel-caption h2 {
        font-size: 1.5rem !important;
    }

    .hero-carousel .carousel-caption p {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Specialty Card Fixes */
    .speciality-card {
        min-height: auto;
        padding: 1.5rem !important;
    }

    /* Section Padding */
    section {
        padding: 3rem 0 !important;
    }
}

/* Disable scale on hover for mobile to prevent accidental zooms */
@media (hover: none) {
    img:hover, 
    .product-card:hover, 
    .speciality-card:hover {
        transform: none !important;
    }
}