/* Custom CSS for effects that Tailwind doesn't cover */

/* Reviews Bar - Hidden state */
.reviews-bar.hidden {
    transform: translateY(-100%);
}

/* Navbar - Scrolled state */
.navbar.scrolled {
    background: #F4F0E8 !important;
    border-bottom: 1px solid #C89C6C;
    top: 0;
}

.navbar.scrolled .desktop-nav {
    color: #5a5a4a;
    font-weight: 600;
}

.navbar.scrolled .btn-nav {
    border-color: #C89C6C;
    color: #5a5a4a;
}

.navbar.scrolled .btn-nav:hover {
    background: #A2A37E;
    color: #fff;
    border-color: #A2A37E;
}

/* Hamburger lines - consistent weight */
.hamburger-line {
    height: 3px !important;
}

.navbar.scrolled .hamburger-line {
    background: #A2A37E !important;
}

/* Navbar - Hidden state */
.navbar.hidden {
    transform: translateY(-100%);
}

/* Hamburger active state */
.hamburger.active .hamburger-line:first-child {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hamburger scaling for XL screens */
@media (min-width: 1280px) {
    .hamburger {
        width: 32px !important;
        height: 22px !important;
    }
}

/* Hamburger scaling for 2XL screens */
@media (min-width: 1536px) {
    .hamburger {
        width: 36px !important;
        height: 26px !important;
    }
}

/* Mobile Menu active state */
.mobile-menu.active {
    pointer-events: all;
    opacity: 1;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

/* Mobile Menu scrolled state - adjust top padding */
.mobile-menu.scrolled .mobile-menu-list {
    padding-top: 80px;
}

/* Desktop Nav - Active indicator */
.nav-left a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
}

/* Massage items - Desktop styles */
@media (min-width: 768px) {
    .massages-grid .massage-item {
        z-index: 1;
    }

    .massages-list .massage-title,
    .massages-list .massage-description {
        position: relative;
        z-index: 2;
    }
}

/* Footer accordion - Mobile only */
@media (max-width: 767px) {
    .footer-accordion-content {
        max-height: 0;
        overflow: hidden;
        padding-bottom: 0;
        transition: max-height 0.3s ease, padding-bottom 0.3s ease;
    }

    .footer-accordion.active .footer-accordion-content {
        max-height: 300px;
        padding-bottom: 0.75rem;
    }

    .footer-accordion.active .footer-accordion-icon {
        transform: rotate(45deg);
    }

    .footer-accordion-icon {
        transition: transform 0.3s ease;
    }

    /* Adjust spacing for footer accordions on mobile */
    .footer-content {
        gap: 2rem !important;
    }

    .footer-columns {
        gap: 0rem !important;
        row-gap: 0.5rem !important;
    }

    .footer-accordion {
        margin-bottom: 0 !important;
    }

    .footer-accordion-header {
        margin-bottom: 0.25rem !important;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Massage list adjustments - Mobile only */
@media (max-width: 767px) {
    .massages-grid {
        gap: 1.5rem !important;
    }

    .massage-item {
        padding-bottom: 0 !important;
    }

    .massage-description {
        display: none !important;
    }

    .massages-list .btn-primary {
        margin-top: 3rem !important;
    }
}

/* Massage list width constraint for desktop */
@media (min-width: 768px) {
    .massages-list {
        max-width: 900px !important;
    }
}

/* Massage list width expansion for XL screens */
@media (min-width: 1280px) {
    .massages-list {
        max-width: 1100px !important;
    }
}

/* Massage list width expansion for 2XL screens */
@media (min-width: 1536px) {
    .massages-list {
        max-width: 1300px !important;
    }
}

@media (max-width: 767px) {
    .hamburger {
        display: flex !important;
    }

    .massages-list {
        max-width: calc(100% - 40px) !important;
    }

    /* Gift card section mobile adjustments - match sections 6 & 8 */
    .gift-card-section {
        padding-top: 1.5rem !important;
        padding-bottom: 5rem !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .gift-card-section .promo-card {
        gap: 0rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .gift-card-section .card-image {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: -1.5rem !important;
        margin-bottom: -1.5rem !important;
    }

    .gift-card-section .card-content h2 {
        font-size: 2.25rem !important;
        margin-bottom: 1.5rem !important;
    }

    .gift-card-section .card-content p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
}

/* Image blob shapes for sections 7 & 8 */
.image-blob-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
}

.image-blob-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 80px 80px 8px 8px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-blob-wrapper:hover img {
    transform: scale(1.05);
}

.image-blob-wrapper-2 {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.image-blob-wrapper-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: ellipse(45% 50% at 50% 50%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-blob-wrapper-2:hover img {
    transform: scale(1.05);
}

/* Carousel indicator active state */
.carousel-indicators .indicator.active {
    opacity: 1;
}


/* ============================================
   MOBILE TYPOGRAPHY & SPACING IMPROVEMENTS
   Based on massagehuys.nl patterns
   ============================================ */

@media (max-width: 767px) {
    /* Show massage descriptions on mobile */
    .massage-description {
        display: block !important;
        font-size: 0.875rem !important; /* 14px */
        line-height: 1.6 !important;
        margin-top: 0.75rem !important;
        opacity: 0.9 !important;
    }

    /* Tighter massage grid spacing */
    .massages-grid {
        gap: 3.125rem !important; /* 50px instead of 80px */
    }

    /* Button consistency - 50px height target */
    .btn-primary,
    .btn-outlined,
    .btn-nav {
        min-height: 46px !important;
        font-weight: 600 !important;
        letter-spacing: -0.02em !important;
    }

    /* Hero button specific */
    .btn-hero {
        min-height: 50px !important;
        font-weight: 600 !important;
    }

    /* Typography letter-spacing for headings */
    h1, h2, h3, .section-title, .section-title-small,
    .massage-title, .hours-title {
        letter-spacing: -0.03em !important;
    }

    /* Container side padding reduction */
    .massages-section .massages-intro,
    .about-location,
    .booking-section,
    .opening-hours,
    .social-section,
    .footer {
        padding-left: 1.25rem !important; /* 20px */
        padding-right: 1.25rem !important; /* 20px */
    }

    /* Navbar specific padding */
    .navbar {
        padding-left: 1.25rem !important; /* 20px */
        padding-right: 1.25rem !important; /* 20px */
    }

    /* Hero content max-width for readability */
    .hero-content {
        max-width: calc(100vw - 40px) !important;
    }

    /* Image container heights matching massagehuys */
    .about-location .card-image > div,
    .info-card .card-image > div {
        height: 310px !important;
    }

    /* Tighter vertical rhythm in cards */
    .card-content h3 {
        margin-bottom: 1.875rem !important; /* 30px */
    }

    /* Section vertical spacing adjustments */
    .about-location {
        padding-top: 5.3125rem !important; /* 85px */
        padding-bottom: 5.3125rem !important; /* 85px */
    }

    .booking-section {
        padding-top: 5.3125rem !important; /* 85px */
        padding-bottom: 5.3125rem !important; /* 85px */
    }

    .opening-hours {
        padding-top: 5.3125rem !important; /* 85px */
        padding-bottom: 5.3125rem !important; /* 85px */
    }

    .social-section {
        padding-top: 5.3125rem !important; /* 85px */
        padding-bottom: 5.3125rem !important; /* 85px */
    }

    /* Footer tighter spacing */
    .footer {
        padding-top: 3.75rem !important; /* 60px */
        padding-bottom: 3.75rem !important; /* 60px */
    }

    /* Newsletter input height match */
    .newsletter-input {
        height: 50px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .btn-newsletter {
        height: 50px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Instagram carousel - mobile adjustments */
    .social-section {
        padding-top: 3.75rem !important; /* 60px instead of 85px */
        padding-bottom: 3.75rem !important; /* 60px instead of 85px */
    }

    .instagram-carousel .insta-slide {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important; /* 12px */
        justify-content: center !important;
    }

    .instagram-carousel .insta-photo {
        width: 100% !important;
    }

    .instagram-carousel .insta-photo:nth-child(n+3) {
        display: none !important;
    }

    .carousel-container {
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Position carousel buttons more to the edges on mobile */
    .carousel-btn.carousel-prev {
        left: -15px !important;
        top: calc(50% - 15px) !important; /* Adjust to center with photos, not entire carousel */
    }

    .carousel-btn.carousel-next {
        right: -15px !important;
        top: calc(50% - 15px) !important; /* Adjust to center with photos, not entire carousel */
    }

    /* Make carousel buttons semi-transparent on mobile */
    .carousel-btn {
        background-color: rgba(162, 163, 126, 0.7) !important;
        backdrop-filter: blur(4px);
    }

    .carousel-btn:hover {
        background-color: rgba(200, 156, 108, 0.85) !important;
    }
}

/* Carousel buttons transparency for desktop */
@media (min-width: 768px) {
    .carousel-btn {
        background-color: rgba(162, 163, 126, 0.7) !important;
        backdrop-filter: blur(4px);
    }

    .carousel-btn:hover {
        background-color: rgba(200, 156, 108, 0.85) !important;
    }
}
