@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ---------- Global Styles ---------- */
body {
    font-family: 'Poppins', sans-serif;
    padding-top: 64px;
    transition: padding-top 0.3s ease;
    background-color: #FFFFFF;
    color: #4A4A4A;
}

* {
    font-family: 'Poppins', sans-serif;
}

/* ---------- Color Variables ---------- */
:root {
    /* Primary Colors */
    --color-primary-header: #0F4C5C;
    --color-primary-button: #2E8B57;
    --color-logo-accent: #4CAF50;
    
    /* Secondary Colors */
    --color-section-bg: #E6F2F5;
    --color-card-bg: #F3FAF7;
    --color-link-icon: #3BAFDA;
    
    /* Neutral Colors */
    --color-bg-main: #FFFFFF;
    --color-border: #E0E0E0;
    --color-footer-bg: #2F3E46;
    
    /* Text Colors */
    --color-text-heading: #1F2933;
    --color-text-body: #4A4A4A;
    --color-text-light: #F9FAFB;
}

/* ---------- Header & Navigation Styles ---------- */


/* Mobile Menu Animation */
.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

/* Dropdown Menu Animation */
.dropdown-menu {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}


/* Header Scroll Behavior */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky-nav {
    position: relative;
    z-index: 99;
    transition: all 0.3s ease;
    background: var(--color-primary-header);
}

body.scrolled .top-nav {
    transform: translateY(-100%);
}

body.scrolled .sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 98;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.scrolled {
    padding-top: 64px;
}

/* Animation for smooth slide down */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Mobile Dropdown */
.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.open {
    max-height: 400px;
}

/* Hamburger Menu Animation */
.hamburger {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 3px 0;
    background-color: #0F4C5C;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay for mobile menu */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Treatment dropdown styling */
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* Ensure mobile menu items are clickable */
.mobile-menu a,
.mobile-menu button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Improve touch targets */
@media (max-width: 768px) {
    .mobile-menu a,
    .mobile-menu button {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .treatment-grid {
        grid-template-columns: 1fr;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Fix for sticky nav on mobile when menu is open */
body.menu-open .sticky-nav {
    z-index: 101;
}

/* Mobile menu close button */
.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

/* ---------- Custom animations ---------- */
@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-left-right {
    animation: slideInLeft 1s ease forwards;
}

.animate-scale {
    animation: scaleIn 1s ease forwards;
}

.animate-up {
    animation: fadeInUp 1s ease forwards;
}

.animation-delay-08 {
    animation-delay: 0.3s;
    opacity: 0;
}

.animation-delay-1 {
    animation-delay: 0.5s;
    opacity: 0;
}

.animation-delay-12 {
    animation-delay: 0.7s;
    opacity: 0;
}

/* ---------- Carousel Styles ---------- */
.carousel-slide {
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide:not(.active) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* ---------- Button Styles ---------- */
button.primary {
    background-color: var(--color-primary-button);
    color: var(--color-text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

.booking-button {
    background-color: #3D6B89 !important;
}

/* ---------- Card Styles ---------- */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-image {
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* ---------- Form Styles ---------- */
.form-container {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    overflow: hidden;
}

.input-focus:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
}

/* ---------- Social Media Widget ---------- */
.social-widget {
    position: fixed;
    right: 4px;
    top: 60%;
    transform: translateY(-50%);
    z-index: 1000;
}

.social-icons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    transform: translateX(-10px);
}

.icon-label {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 30px;
    margin-right: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.social-icon:hover .icon-label {
    opacity: 1;
    transform: translateX(0);
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 24px;
    color: white;
}

.whatsapp {
    background: #25D366;
}

.facebook {
    background: #3b5998;
}

.instagram {
    background: #E1306C;
}

.twitter {
    background: #1DA1F2;
}

.linkedin {
    background: #0077B5;
}

.social-icon:hover .icon-box {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ---------- WhatsApp Widget ---------- */
#whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
}

#whatsapp-widget .whatsapp-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#whatsapp-widget .whatsapp-icon:hover {
    transform: scale(1.1);
}

#whatsapp-widget img {
    width: 35px;
    height: 35px;
}

/* ---------- Utility Classes ---------- */
.bg-accent {
    background-color: #3D6B89 !important;
}

.border-accent {
    border-color: #3D6B89 !important;
}

.text-accent {
    color: #3D6B89 !important;
}

.bg-box {
    background: #ebf3f5 !important;
}

.wavy-bg {
    background: linear-gradient(135deg, #a3e4b7 0%, #4ecdc4 100%);
    background-size: 200% 200%;
    animation: wave 5s ease infinite;
}

@keyframes wave {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ---------- FAQ Styles ---------- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* ---------- Marquee Styles ---------- */
.marquee-outer {
    width: 100%;
    overflow: hidden;
    background-color: #fff;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}

.marquee-inner {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}

.marquee-inner img {
    height: 50px;
    margin-right: 20px;
    object-fit: contain;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 768px) {
    .social-widget {
        right: 10px;
    }

    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .icon-label {
        font-size: 14px;
        padding: 6px 12px;
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .social-widget {
        position: static;
        transform: none;
        margin-top: 30px;
    }

    .social-icons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-icon {
        flex-direction: column;
    }

    .icon-label {
        margin-right: 0;
        margin-top: 8px;
        opacity: 1;
        transform: none;
        font-size: 12px;
    }

    .social-icon:hover {
        transform: translateY(-5px);
    }
}

/* ---------- Swiper Styles ---------- */
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
    content: '' !important;
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
    content: '' !important;
}

.swiper-button-next svg,
.swiper-button-prev svg {
    width: 24px !important;
    height: 24px !important;
}

.swiper-button-next,
.swiper-button-prev {
    position: relative !important;
    margin-top: 32px;
}

.swiper-slide.swiper-slide-active {
    border-color: rgb(79 70 229) !important;
}

.swiper-slide.swiper-slide-active>.swiper-slide-active\:text-indigo-600 {
    color: rgb(79 70 229);
}

.swiper-pagination-bullet-active {
    background: #4F46E5 !important;
}

/* Additional Swiper styles for horizontal layout */
.mySwiper {
    width: 100%;
    height: auto;
}

.swiper-slide {
    width: 350px !important;
    display: inline-block;
    vertical-align: top;
}

.swiper-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

@media (max-width: 768px) {
    .swiper-slide {
        width: 100% !important;
    }
    .swiper-wrapper {
        gap: 10px;
    }
}

/* ---------- Cleanup ---------- */
/* Removed redundant/dark mode styles, gradient borders, bounce animations, 
   pulse animations, and other unused styles to keep CSS clean and focused */