/* =========================
   Global Styles
========================= */

/* Apply Poppins font */
body {
    font-family: 'Poppins', sans-serif;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Links with hover underline effect */
.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #14b8a6; /* teal */
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Footer links hover */
.footer-link {
    transition: color 0.3s;
}

.footer-link:hover {
    color: #14b8a6;
}

/* Social icons hover */
.social-icon:hover {
    color: #14b8a6;
}

/* Optional: style list icons for benefits section */
ul li i {
    flex-shrink: 0;
}

/* Hero overlays, if using custom classes */
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Buttons global transition */
button, .btn {
    transition: all 0.3s ease;
}

/* =========================
   Animations
========================= */

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fade-in 1s ease-out 0.5s forwards;
}

.animate-fade-in-delay-2 {
    animation: fade-in 1s ease-out 1s forwards;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* =========================
   Navbar Styles
========================= */

.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.15);
}

.logo-text {
    position: relative;
    transition: all 0.3s ease;
}

.logo-text::after {
    display: none;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover {
    color: #0d9488;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #0d9488;
}

.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

/* =========================
   Mobile Menu Styles
========================= */

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

.mobile-link {
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.open .mobile-link {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.open .mobile-link:nth-child(7) { transition-delay: 0.4s; }

/* Hamburger Animation */
.hamburger-line {
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =========================
   Cart Button Styles
========================= */

.cart-button {
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

.cart-button:active {
    transform: scale(0.95);
}

.cart-badge {
    animation: badge-pop 0.3s ease;
}

@keyframes badge-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* =========================
   Cart Drawer Styles
========================= */

.cart-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cart-drawer.open {
    transform: translateX(0);
}

/* Cart drawer header shadow on scroll */
.cart-drawer-header {
    position: relative;
    z-index: 10;
}

/* Cart close button hover effect */
.cart-close:hover {
    background-color: rgba(240, 253, 250, 1);
}

/* =========================
   Cart Tabs Styles
========================= */

.cart-tab {
    position: relative;
    transition: all 0.3s ease;
}

.cart-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background 0.3s ease;
}

.cart-tab:hover {
    background-color: rgba(240, 253, 250, 0.5);
}

/* =========================
   Cart Content Styles
========================= */

.cart-content {
    scrollbar-width: thin;
    scrollbar-color: #14b8a6 #f0fdfa;
}

.cart-content::-webkit-scrollbar {
    width: 6px;
}

.cart-content::-webkit-scrollbar-track {
    background: #f0fdfa;
}

.cart-content::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 3px;
}

.cart-content::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Tab content transitions */
.tab-content {
    animation: tab-fade-in 0.3s ease;
}

@keyframes tab-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Let Vagaro widget fill the space and handle its own scroll */
.vagaro-widget-container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.vagaro-widget-container iframe {
    flex: 1;
    height: 100% !important;
    min-height: 500px;
}

/* Placeholder styles */
.placeholder-content {
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
    border-radius: 1rem;
    border: 2px dashed #99f6e4;
}

/* Hide cart drawer by default */
.cart-drawer {
    transform: translateX(100%);
    visibility: hidden;
}

.cart-drawer.open {
    transform: translateX(0);
    visibility: visible;
}

/* Hide overlay by default */
.cart-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================
   Cart Footer Styles
========================= */

.cart-drawer-footer {
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

/* =========================
   Mobile Responsive - Cart
========================= */

@media (max-width: 480px) {
    .cart-drawer {
        max-width: 100%;
    }
    
    .cart-drawer-header h2 {
        font-size: 1.125rem;
    }
    
    .cart-tab {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .cart-content {
        padding: 1rem;
    }
}

/* =========================
   Service Card Styles (from services.html)
========================= */

.gradient-text {
    background: linear-gradient(135deg, #0d9488 0%, #115e59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-image {
    transition: transform 0.6s ease;
}

.btn-book {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-book::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-book:hover::before {
    left: 100%;
}

.btn-book:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUp {
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.benefit-tag {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
}

/* =========================
   Mobile Fixes (Services)
========================= */

@media (max-width: 1023px) {
    /* Remove fixed height on mobile */
    .service-card .flex {
        height: auto !important;
    }
    
    /* Make video taller on mobile */
    .service-card .h-48 {
        height: 300px !important;
    }
    
    /* Reduce padding on mobile */
    .service-card .p-8 {
        padding: 1.5rem !important;
    }
    
    /* Smaller text on mobile */
    .service-card h2 {
        font-size: 1.4rem !important;
    }
    
    .service-card p {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Smaller benefit tags */
    .benefit-tag {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Less margin between tags */
    .flex-wrap.gap-3 {
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Smaller button */
    .btn-book {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
}
