﻿/* CSS Reset & Variables */
:root {
    --primary-color: #8E44AD;
    /* Purple */
    --secondary-color: #333333;
    /* Dark Grey */
    --text-color: #555555;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Transitions & Spacing */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 15px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: auto;
    /* Changed from 100% to allow scroll */
    min-height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
    /* Allow global scroll */
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* UI Elements */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4);
}

.btn-primary:hover {
    background-color: #732d91;
    transform: translateY(-2px);
}

/* Sidebar & Menu */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2000;
    display: flex;
    align-items: center;
    pointer-events: none;
    /* Let clicks pass */
    transition: background-color 0.3s ease;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

#main-header.scrolled .top-utility {
    color: var(--text-color);
    text-shadow: none;
}

#main-header.scrolled .lang-link.active {
    border-bottom-color: var(--primary-color);
}

.burger-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 2000;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    pointer-events: auto;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    .burger-btn {
        top: 10px;
        /* Align with top-utility on mobile */
        left: 15px;
    }
}

.brand-overlay {
    position: absolute;
    top: 20px;
    left: 80px;
    z-index: 1000;
    pointer-events: auto;
}

/* Top Utility (Phone & Language) */
.top-utility {
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: 1500;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 0.85rem;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hotline {
    text-decoration: none;
    color: inherit;
    opacity: 0.8;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    /* Touch target */
    padding: 0 5px;
}

.hotline:hover {
    opacity: 1;
    color: var(--primary-color);
}

.lang-switcher {
    display: flex;
    gap: 15px;
}

.lang-link {
    text-decoration: none;
    color: inherit;
    opacity: 0.6;
    transition: 0.3s;
    font-weight: normal;
    min-width: 44px;
    /* Touch target */
    min-height: 44px;
    /* Touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-link:hover {
    opacity: 1;
}

.lang-link.active {
    opacity: 1;
    font-weight: bold;
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
}

@media screen and (max-width: 768px) {
    .top-utility {
        top: 10px;
        right: 15px;
        flex-direction: row;
        /* Keep horizontal but compact */
        align-items: center;
        gap: 15px;
        font-size: 0.7rem;
    }

    .hotline span {
        display: none;
        /* Hide emoji to save space */
    }

    .brand-overlay {
        display: none;
        /* Hide redundant logo on very small screens to clear space */
    }
}

.brand-overlay img {
    height: 50px;
    width: auto;
    /* Smooth rendering */
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    /* Force GPU */
    backface-visibility: hidden;
    /* White border/glow effect for transparent PNG */
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9));
}

.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    /* Hidden */
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 3000;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2500;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.sidebar-logo img {
    max-width: 180px;
    margin-bottom: 20px;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav li {
    margin-bottom: 20px;
}

.sidebar nav a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.sidebar nav a.active,
.sidebar nav a:hover {
    color: var(--primary-color);
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 0.9rem;
}

.sidebar-footer p {
    margin-top: 10px;
}

/* Fullscreen Layout & Single-Page View */
.fullscreen-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(20, 20, 20, 0.7), rgba(20, 20, 20, 0.7)), url('assets/margaret-beauty-salon-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Removed overflow: hidden to allow child flow if needed, though Hero should stay contained */
}

/* Home Section Styles */
.home-section {
    padding: 60px 5%;
    background: var(--white);
    position: relative;
    z-index: 50;
}

.home-section:nth-child(even) {
    background: var(--light-bg);
}

.section-content {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 400;
}

.section-header p {
    font-size: 1.1rem;
    color: #888;
    font-style: italic;
}

/* About Section Specifics */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Services Grid for Homepage */
.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.service-overview-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 4px;
    transition: 0.3s;
    border: 1px solid #f0f0f0;
}

.service-overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    line-height: 1;
}

.service-icon svg {
    width: 60px;
    height: 60px;
    vertical-align: middle;
    color: var(--primary-color);
}

.service-overview-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon-small {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-text h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Reviews Styling */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    border-top: 3px solid var(--primary-color);
}

/* Gift Card Styles */
.gift-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.gift-card-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    text-align: center;
    padding-bottom: 20px;
}

.gift-card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gift-card-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gift-card-item h4 {
    margin: 20px 0 10px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.gift-card-item p {
    color: #666;
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.review-author {
    font-weight: bold;
    font-size: 0.85rem;
    color: #999;
}

/* Gallery Styling */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Home Section */
.contact-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-details h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

@media screen and (max-width: 768px) {

    .about-grid,
    .contact-home-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 250px;
    /* Space for dock */
}

.hero-center-content {
    /* This class now primarily acts as a container for the main heading and paragraph */
    text-align: center;
}

.hero-about {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Subtler divider */
    padding-top: 30px;
    /* More breathing room */
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
}

.hero-about .section-badge {
    color: #E8DAEF;
    /* Softer purple tint */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    /* Wider tracking for "luxury" feel */
    margin-bottom: 15px;
    font-weight: 600;
    display: block;
}

.hero-about h4 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-about p {
    font-size: 1rem;
    line-height: 1.8;
    /* Relaxed reading rhythm */
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 600px;
    /* Tighter measure for readability */
    margin-left: auto;
    margin-right: auto;
}

.hero-goals ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-goals li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.hero-center-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    /* Lighter weight for elegance */
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    /* Tighter tracking for display text */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    /* Softer shadow */
}

.hero-center-content p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    font-weight: 300;
    letter-spacing: 0.02em;
    opacity: 0.95;
}

.secondary-cta {
    position: absolute;
    bottom: 240px;
    z-index: 10;
    text-align: center;
    color: var(--white);
    font-style: italic;
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Services Dock & Links */
.services-dock {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: transparent;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.view-all-link {
    margin-top: 15px;
    color: var(--white);
    font-size: 0.9rem;
    text-decoration: underline;
    opacity: 0.8;
    transition: 0.3s;
}

.view-all-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

.seo-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    z-index: 5;
    pointer-events: none;
}

.seo-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.dock-title {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dock-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.dock-item {
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.dock-item:hover {
    transform: translateY(-10px);
}

.static-icon {
    font-size: 4rem;
    /* 64px */
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.static-icon svg {
    width: 64px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.dock-item:hover .static-icon {
    transform: scale(1.2);
}

.dock-item span {
    display: block;
    margin-top: 5px;
    color: var(--white);
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========= SPA Styles ========= */

/* The Overlay Container (Hidden by default) */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    /* Dim background */
    z-index: 3500;
    /* Above sidebar */

    visibility: hidden;
    opacity: 0;
    transition: 0.3s;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* When Active */
.page-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* The Content Box inside Overlay */
.content-box {
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: rgba(255, 255, 255, 0.95);
    /* Deep frost */
    backdrop-filter: blur(20px);
    /* Heavy blur for premium smooth look */
    -webkit-backdrop-filter: blur(20px);
    border-radius: 4px;
    /* Minimal radius, architectural feel */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 60px;
    /* Generous padding */
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    /* Deep, soft shadow */

    /* Animation handled by JS (fadeInUp / fadeOutDown) */
    transform: translateY(30px);
    opacity: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Content Box Internals (Reused) */
.content-box h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
    font-size: 2.5rem;
}

.content-box .page-intro {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-style: italic;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.page-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    line-height: 1;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10;
}

.page-close-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.scroll-indicator:hover {
    opacity: 1 !important;
    transform: translateX(-50%) scale(1.1) !important;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Pricing Table */
.price-list {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.price-list tr {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    /* Subtle dashed line */
    transition: 0.2s;
}

.price-list tr:hover {
    background: rgba(142, 68, 173, 0.02);
    /* Very subtle hover tint */
}

.price-list td {
    padding: 20px 0;
    /* More vertical breath */
    vertical-align: top;
}

.price-list td:first-child {
    padding-right: 20px;
}

.price-list strong {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--secondary-color);
    letter-spacing: 0.02em;
}

.price-list span {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #777;
    margin-top: 5px;
    display: block;
    line-height: 1.5;
}

.price-list .price {
    text-align: right;
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    white-space: nowrap;
    width: 130px;
    min-width: 110px;
}

/* Tabs System */
/* Tabs System (Legacy container removed/renamed to .services-menu-column) */
/* .services-tabs-container removed */

.services-tabs {
    display: flex;
    flex-direction: column;
    /* Start with column for mobile list logic, though stacked */
    /* Wait, on mobile user wants horizontal? NO, user asked for limit-5.  */
    /* But with the new div structure, tabs-list is inside services-menu-column. */
    /* Let's keep it simple: Flex row for tags style on mobile, Column on desktop */
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-bottom: 5px;
    /* border-bottom: 1px solid #eee;  Moved to container */
    padding-right: 10px;
    /* Default Mobile: Row flow for horizontal scroll */
    flex-direction: row;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Stability & Common Layout
   ========================================= */
.services-panes {
    min-height: 400px;
    /* Prevent page jump when switching empty/short tabs */
    transition: min-height 0.3s ease;
}

/* =========================================
   Mobile Logic (< 768px)
   - Limit 5
   - Toggle Button
   - Sticky Header Background
   ========================================= */
@media screen and (max-width: 767px) {

    /* Mobile: Horizontal Scroll (App-like) */
    .services-menu-column {
        padding: 10px 0;
        /* Remove side padding to allow full edge scroll */
    }

    .services-tabs {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        /* Prevent wrapping */
        overflow-x: auto;
        /* Enable horizontal scroll */
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll iOS */
        padding-left: 15px;
        /* Edge spacing */
        padding-right: 15px;
        gap: 10px;
        padding-bottom: 5px;
        /* Space for scrollbar if any */
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .services-tabs::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .tab-btn {
        flex: 0 0 auto;
        /* Don't shrink */
        width: auto;
        /* Width by content */
        white-space: nowrap;
        padding: 8px 16px;
        border-radius: 20px;
        /* Pill shape on mobile */
        border-left: none;
        /* Remove desktop border indicator */
        border: 1px solid #ddd;
        background: #fff;
    }

    .tab-btn.active {
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
        padding-left: 16px;
        /* Reset desktop padding shift */
    }

    /* Hide the expand toggle since we scroll now */
    .tabs-toggle-btn {
        display: none !important;
    }

    .services-tabs .tab-btn:nth-child(n+6) {
        display: block;
        /* Show all items */
    }
}

/* Ensure tab pane visibility is robust */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block !important;
    animation: fadeIn 0.3s ease-out;
}

/* =========================================
   Desktop Sidebar Layout (New Request)
   ========================================= */

/* =========================================
   2-Column Layout (Explicit Request)
   ========================================= */

/* Mobile First: Default Stacked */
#services-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.services-menu-column {
    position: relative;
    /* Sticky logic handled by class below if needed, but on mobile it's usually top static or sticky */
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.98);
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.services-content-column {
    min-height: 400px;
}


@media screen and (min-width: 768px) {

    /* Desktop: Row Layout */
    #services-layout-wrapper {
        flex-direction: row;
        align-items: flex-start;
        /* Ensure top alignment */
        gap: 40px;
    }

    /* Div 1: Menu */
    .services-menu-column {
        width: 260px;
        flex-shrink: 0;
        border-bottom: none;
        /* Remove mobile border */
        /* It is already sticky from mobile rule, but let's adjust top */
        top: 20px;
    }

    /* Special Handling: If inside overlay .content-box, adjust spacing */
    .content-box #services-layout-wrapper {
        gap: 20px;
        /* Tighter gap in modal */
    }

    .content-box .services-menu-column {
        width: 220px;
        /* Slightly narrower sidebar in modal */
    }

    /* Div 2: Content */
    .services-content-column {
        flex-grow: 1;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 8px;
        padding: 20px;
    }

    /* 3. Tabs List (Vertical Stack) */
    .services-tabs {
        flex-direction: column;
        gap: 5px;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    /* 4. Tab Buttons (Sidebar Links style) */
    .tab-btn {
        width: 100%;
        text-align: left;
        padding: 12px 15px;
        border-radius: 8px;
        /* Softer look */
        border-left: 3px solid transparent;
        /* Indicator strip */
        transition: all 0.2s ease;
    }

    .tab-btn:hover {
        background: rgba(142, 68, 173, 0.05);
        color: var(--primary-color);
        padding-left: 20px;
        /* Slide effect - might cause jump if width is tight? */
        /* Let's keep the slide, it's nice. The jump might be the bolding below */
    }

    .tab-btn.active {
        background: rgba(142, 68, 173, 0.1);
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        /* font-weight: bold; Removed to prevent layout shift/jump */
        padding-left: 20px;
    }

    /* 5. Disable "Limit 5" and "Toggle" on Desktop */
    .services-tabs:not(.expanded) .tab-btn:nth-child(n+6) {
        display: block !important;
        /* Always show all */
    }

    .tabs-toggle-btn {
        display: none !important;
        /* Hide toggle button */
    }
}

.pricing-category h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* ===========================
   Responsive Design (Mobile)
   =========================== */
@media screen and (max-width: 768px) {

    /* MASTER FIX FOR MOBILE SCROLLING & OVERLAP */
    html,
    body {
        overflow-y: auto !important;
        height: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .fullscreen-hero {
        height: auto !important;
        min-height: 100vh;
        padding-top: 120px;
        /* Increased to prevent overlap */
        padding-bottom: 40px;
        overflow: visible;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Stack flow naturally */
    .services-dock {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        padding-bottom: 40px;
        z-index: 10;
        height: auto;
    }

    .secondary-cta {
        position: relative;
        bottom: auto;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 20px;
        font-size: 0.9rem;
        z-index: 5;
    }

    .seo-text {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        padding-bottom: 30px;
    }

    .hero-content-wrapper {
        margin: 0 auto;
        margin-bottom: 20px;
        /* Minimal spacing so CTA can sit close */
        width: 100%;
    }

    /* Improve Typography */
    .hero-center-content h1 {
        font-size: 2.2rem;
        /* Scaled down for mobile */
        font-weight: 400;
        margin-top: 10px;
        line-height: 1.1;
        letter-spacing: -0.01em;
    }

    .hero-about {
        border-top: none;
        padding-top: 15px;
    }

    .hero-about p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
        font-weight: 300;
    }

    /* Content Box */
    .content-box {
        width: 100%;
        height: 100vh;
        /* Fullscreen on mobile */
        border-radius: 0;
        /* Remove radius */
        padding: 80px 20px 20px;
        /* Top padding for close button */
    }

    .page-close-btn {
        top: 25px;
        right: 25px;
        background: rgba(255, 255, 255, 0.8);
        /* Background visibility */
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        font-size: 2rem;
    }

    /* Services Dock */
    .services-dock {
        height: auto;
        padding: 20px 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    }

    .dock-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .dock-grid {
        flex-wrap: wrap;
        /* Allow wrapping */
        gap: 10px;
        padding: 0 10px;
        justify-content: center;
    }

    .dock-item {
        width: 45%;
        /* 2 items per row looks cleaner than 30% (3 per row) */
        margin-bottom: 10px;
    }

    .static-icon {
        font-size: 2rem;
        /* Smaller icons */
        height: 50px;
        margin-bottom: 5px;
    }

    .static-icon svg {
        width: 36px;
    }

    .dock-item span {
        font-size: 0.8rem;
    }

    /* Column Stacking */
    .content-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .image-col {
        order: -1;
        /* Image first */
    }

    .image-col img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}

/* ===========================
   Booking System Styles
   =========================== */
.booking-box {
    max-width: 800px;
    height: 85vh;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.booking-header {
    padding: 40px 60px 10px 60px;
    flex-shrink: 0;
}

.booking-header h2 {
    margin-bottom: 5px !important;
}

#booking-flow-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px 60px 40px 60px;
}

#booking-footer-container {
    flex-shrink: 0;
    border-top: 1px solid #eee;
    background: rgba(255, 255, 255, 0.98);
}

.booking-sticky-footer {
    display: flex;
    gap: 15px;
    padding: 20px 60px;
    background: transparent;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.03);
}

/* Ensure content doesn't get hidden behind fixed footer */
#booking-flow-container {
    padding-bottom: 80px;
}

@media screen and (max-width: 768px) {
    .booking-sticky-footer {
        position: sticky;
        bottom: -20px;
        /* Counteract smaller mobile padding */
        margin-left: -20px;
        margin-right: -20px;
        padding: 15px 20px;
        z-index: 2005;
    }

    #booking-flow-container {
        padding-bottom: 100px;
    }
}

.booking-progress-container {
    width: 100%;
    height: 4px;
    background: #eee;
    margin-bottom: 30px;
    border-radius: 2px;
    overflow: hidden;
}

.booking-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

#booking-flow-container h3 {
    font-family: var(--font-heading);
    margin-bottom: 25px;
    color: var(--secondary-color);
    text-align: center;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    /* Slightly smaller min-width for mobile */
    gap: 10px;
    margin-bottom: 30px;
}

@media screen and (max-width: 480px) {
    .booking-grid {
        grid-template-columns: 1fr 1fr;
        /* Force 2 columns on very small screens */
    }
}

.booking-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-item.active {
    border-color: var(--primary-color);
    background: rgba(142, 68, 173, 0.05);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.booking-item:hover {
    border-color: var(--primary-color);
    background: rgba(142, 68, 173, 0.05);
    transform: translateY(-3px);
}

.booking-item strong {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.date-picker {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.btn-date {
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-date:hover {
    border-color: var(--primary-color);
}

.btn-date.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
}

.w-100 {
    width: 100%;
}

/* Booking Stepper & Search */
.booking-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.step-item {
    font-size: 0.9rem;
    font-weight: bold;
    color: #ccc;
    position: relative;
    text-transform: uppercase;
}

.step-item.clickable {
    cursor: pointer;
    transition: 0.2s;
}

.step-item.clickable:hover {
    color: var(--primary-color);
}

.step-item.active {
    color: var(--primary-color);
}

.step-item.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

.step-item.completed {
    color: var(--secondary-color);
}

/* Mobile Bottom Navigation (App-style) */
@media screen and (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 4500;
        /* Above overlays (3500) and sidebar */
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
        padding-bottom: env(safe-area-inset-bottom);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
    }

    /* Smart Hide on Scroll class */
    .mobile-bottom-nav.nav-scrolled-down {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }

    /* Hide when specific overlays are active (e.g., Booking with its own sticky footer) */
    body.nav-hidden .mobile-bottom-nav {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }

    .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #888;
        font-size: 0.7rem;
        transition: 0.2s;
        height: 100%;
    }

    .nav-item.active {
        color: var(--primary-color);
    }

    .nav-icon {
        font-size: 1.4rem;
        margin-bottom: 4px;
        line-height: 1;
    }

    .nav-label {
        font-weight: 600;
        font-family: var(--font-body);
    }

    /* Center Action Button (Booking) */
    .nav-action {
        position: relative;
    }

    .nav-action-circle {
        width: 55px;
        height: 55px;
        background: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
        border: 4px solid #fff;
        margin-top: -35px;
        /* Offset to float above the bar */
        margin-bottom: 5px;
        transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-action .nav-icon {
        color: #fff;
        font-size: 1.6rem;
        margin-bottom: 0;
    }

    .nav-action:active .nav-action-circle {
        transform: scale(0.9);
    }
}

@media screen and (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

.booking-search {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

/* Gift Card Purchase Flow Styles */
.selected-plan-summary {
    background: #fdf2f2;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.05);
}

.selected-plan-summary p {
    margin: 5px 0;
    font-size: 1.1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fcfcfc;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.purchase-info-box {
    background: #fff8f0;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #856404;
    border: 1px solid #ffeeba;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.purchase-info-box i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.payment-instructions {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    text-align: left;
}

.payment-instructions h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.bank-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bank-details li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.bank-details li:last-child {
    border-bottom: none;
}

.bank-details .label {
    font-weight: 600;
    color: #666;
}

.bank-details .value {
    font-weight: 700;
    color: var(--secondary-color);
    font-family: monospace;
    font-size: 1.1rem;
}

.payment-reference-box {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.payment-reference-box .ref-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.payment-reference-box .ref-value {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
}

@media screen and (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.booking-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(142, 68, 173, 0.2);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #8E44AD;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 4000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #7D3C98;
    transform: translateY(-5px);
    color: #ffffff;
}

@media screen and (max-width: 768px) {
    .scroll-to-top {
        bottom: 85px;
        /* Lift above the 65px mobile nav */
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ========= Lightbox System ========= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5000;
    display: none;
    /* Controlled by JS */
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    padding: 40px;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 20px;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.2s;
}

.lightbox.active .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

@media screen and (max-width: 768px) {
    .lightbox-close {
        top: -50px;
        right: 0;
    }

    .lightbox {
        padding: 20px;
    }
}

/* Membership System */
#membership .content-box {
    padding: 40px;
    border-radius: 20px;
}

.tier-card {
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-5px);
}

.basic-tier {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #444;
}

.silver-tier {
    background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%);
}

.gold-tier {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.pts-count {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.benefits-summary {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.benefits-summary ul {
    list-style: none;
    padding: 0;
}

.benefits-summary ul li {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.small {
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* Accessibility & Focus States */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* ===== HeroSocialLinks Component ===== */
.hero-social-links {
    margin-top: 20px;
    text-align: center;
}

.hero-social-title {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.hero-social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 17px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.hero-social-link:hover {
    background: rgba(168, 85, 247, 0.22);
    border-color: #a855f7;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
    color: #ffffff;
}

.hero-social-link svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-social-title {
        font-size: 0.72rem;
    }

    .hero-social-link {
        padding: 6px 13px;
        font-size: 0.78rem;
    }

    .hero-social-icons {
        gap: 8px;
    }
}
/* ── Palvelumme: Category header with detail link ── */
.pricing-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pricing-category-header h3 {
    margin: 0;
}

.svc-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a855f7;
    text-decoration: none;
    white-space: nowrap;
    padding: 5px 12px;
    border: 1.5px solid #a855f7;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.svc-detail-link:hover {
    background: #a855f7;
    color: #fff;
}
