/* css/style.css (Luxury Redesign) */

/* --- Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Montserrat:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-purple: #5c5470;
    --dark-purple: #352f44;
    --accent-gold: #bca07d;
    --background-cream: #f4f4f9; /* A slightly cooler off-white */
    --text-dark: #2d283e;
    --text-light: #f1f1f1;
    --border-light: #dbd8e3;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- General Styling & Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: var(--font-body);
    margin: 0;
    background-color: var(--background-cream);
    /* Subtle background pattern for texture */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--dark-purple);
    font-weight: 700;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--dark-purple);
    }

/* --- Header & Navigation --- */
header {
    background: rgba(244, 244, 249, 0.85); /* Semi-transparent background */
    backdrop-filter: blur(8px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header #branding h1 {
        margin: 0;
        font-size: 1.8em;
        color: var(--dark-purple);
    }

    header nav ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    header nav li {
        display: inline;
        padding: 0 15px;
        font-weight: 500;
    }

    header nav a {
        color: var(--primary-purple);
        font-size: 1em;
        position: relative;
        padding-bottom: 5px;
    }

        header nav a:hover, header nav a.active {
            color: var(--accent-gold);
        }

        header nav a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: var(--accent-gold);
            transition: width 0.3s ease;
        }

        header nav a:hover::after {
            width: 100%;
        }


/* --- Hero Section --- */
.hero {
    /* New high-quality background image */
    background: url('https://images.unsplash.com/photo-1544161515-cfd656dba18e?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1740&q=80') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

    .hero::before { /* Dark overlay for text readability */
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(45, 40, 62, 0.5);
    }

.hero-content {
    position: relative; /* To appear above the overlay */
    padding: 40px;
    animation: fadeIn 1.5s ease-out;
}

.hero h2 {
    font-size: 3.5em;
    color: #fff;
    margin: 0 0 10px 0;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3em;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Page Sections --- */
.page-section {
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

    .page-section h2.section-title {
        font-size: 2.8em;
        margin-bottom: 50px;
        position: relative;
        display: inline-block;
    }

        .page-section h2.section-title::after {
            content: '';
            width: 70px;
            height: 3px;
            background: var(--accent-gold);
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
        }

/* --- Card Designs --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
}

.card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.08);
        border-color: var(--accent-gold);
    }

.card-image-wrapper {
    height: 250px;
    overflow: hidden;
}

    .card-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

    .card-content h3 {
        margin-top: 0;
        font-size: 1.5em;
    }

    .card-content p {
        color: #555;
        flex-grow: 1;
    }

/* Service Cards */
.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-weight: 500;
}

.service-price {
    font-size: 1.4em;
    color: var(--dark-purple);
    font-family: var(--font-heading);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 35px;
    background: var(--primary-purple);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .btn-primary:hover {
        background: var(--accent-gold);
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 7px 20px rgba(0,0,0,0.15);
    }


/* --- Footer --- */
footer {
    padding: 50px 0;
    margin-top: 60px;
    color: var(--text-light);
    background-color: var(--dark-purple);
    text-align: center;
}

/* --- Masseur Detail Page Styles (NEW) --- */
/* Add these rules to the bottom of your existing style.css file */

.detail-grid {
    display: grid;
    grid-template-columns: 350px 1fr; /* Fixed width for the left column */
    gap: 50px;
    text-align: left;
    align-items: start;
}

.attribute-box {
    margin-top: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

    .attribute-box h3 {
        margin-top: 0;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-light);
        font-size: 1.4em;
    }

    .attribute-box ul {
        list-style: none;
        padding: 0;
        line-height: 2.2;
        font-size: 1.05em;
    }

        .attribute-box ul li strong {
            color: var(--primary-purple);
        }

.detail-right h2.masseur-name {
    font-size: 3.5em;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.detail-right .masseur-bio {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
}

.service-section {
    margin-top: 40px;
}

    .service-section h3 {
        font-size: 2em;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid var(--border-light);
    }

/* Refined personal service item */
.personal-service-list {
    display: grid;
    grid-template-columns: 1fr; /* Reverting to single column for this cleaner style */
    gap: 0;
}

.personal-service-item {
    background-color: transparent;
    padding: 20px 10px;
    border-radius: 0;
    border-left: none;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.3s ease;
}

    .personal-service-item:hover {
        background-color: rgba(219, 216, 227, 0.2);
    }

    .personal-service-item:last-child {
        border-bottom: none;
    }

/* --- Carousel Styles --- */
.carousel {
    position: relative;
    width: 100%;
    height: 250px; /* Or your desired height */
    overflow: hidden; /* This is the key part that hides the other images */
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #eee;
}

.carousel-inner {
    display: flex; /* This makes the images line up side-by-side */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%; /* Ensures each image takes the full width of the container */
    height: 100%;
}

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.admin-login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-cream);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border-top: 4px solid var(--accent-gold);
}

    .login-box h2 {
        margin-top: 0;
        margin-bottom: 30px;
        font-size: 2em;
        color: var(--dark-purple);
    }

    .login-box .form-group {
        text-align: left;
        margin-bottom: 20px;
    }

    .login-box input[type="text"],
    .login-box input[type="password"] {
        background: #f9f9f9;
        border: 1px solid var(--border-light);
        transition: all 0.2s ease-in-out;
    }

        .login-box input[type="text"]:focus,
        .login-box input[type="password"]:focus {
            background: #fff;
            border-color: var(--accent-gold);
            box-shadow: 0 0 0 2px rgba(188, 160, 125, 0.2);
        }

    .login-box button {
        width: 100%;
        background-color: var(--primary-purple);
        font-weight: 500;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        padding: 12px;
        transition: all 0.3s ease;
    }

        .login-box button:hover {
            background-color: var(--dark-purple);
            transform: translateY(-2px);
        }

/* --- Admin Dashboard Styles (NEW) --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-dark);
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        border-color: var(--accent-gold);
    }

    .dashboard-card .icon {
        color: var(--accent-gold);
        margin-bottom: 20px;
    }

        .dashboard-card .icon svg {
            width: 48px;
            height: 48px;
        }

    .dashboard-card h3 {
        margin: 0 0 10px 0;
        font-size: 1.4em;
        color: var(--dark-purple);
    }

    .dashboard-card p {
        color: #666;
        font-size: 0.95em;
        line-height: 1.5;
    }

    .dashboard-card.logout-card {
        background-color: #fff5f5;
        border-color: #e53e3e;
    }

        .dashboard-card.logout-card:hover {
            background-color: #fed7d7;
        }

        .dashboard-card.logout-card .icon,
        .dashboard-card.logout-card h3 {
            color: #c53030;
        }
/* --- Admin Manage Page Styles (NEW) --- */
/* Add these rules to the bottom of your existing style.css file */

.admin-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    border: 1px solid var(--border-light);
}

    .admin-form-container h3 {
        border-bottom: 2px solid var(--border-light);
        padding-bottom: 15px;
        margin-bottom: 25px;
        font-size: 1.8em;
    }

    .admin-form-container h4 {
        font-size: 1.3em;
        color: var(--primary-purple);
        margin-top: 30px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px dashed var(--border-light);
    }

        .admin-form-container h4:first-of-type {
            margin-top: 0;
        }

.form-grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.admin-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.admin-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .admin-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border-color: var(--accent-gold);
    }

    .admin-card img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto 15px auto;
        border: 3px solid #f0f0f0;
    }

    .admin-card h4 {
        margin: 0 0 15px 0;
        color: var(--text-dark);
        font-size: 1.1em;
    }

    .admin-card .edit-btn {
        display: inline-block;
        width: 100%;
        padding: 10px 16px;
        background-color: var(--primary-purple);
        color: #fff;
        border-radius: 5px;
        text-decoration: none;
        font-size: 0.9em;
        transition: background-color 0.3s ease;
    }

        .admin-card .edit-btn:hover {
            background-color: var(--dark-purple);
            color: #fff;
        }
/* --- Contact Page Styles (NEW) --- */
/* Add these rules to the bottom of your existing style.css file */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    text-align: left;
}

.contact-details h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

    .contact-info-list li {
        margin-bottom: 15px;
        font-size: 1.1em;
    }

    .contact-info-list a {
        color: var(--text-dark);
    }

        .contact-info-list a:hover {
            color: var(--accent-gold);
        }

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--border-light);
}

.contact-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-purple);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    background-color: #fcfcff;
    transition: all 0.2s ease-in-out;
}

    .contact-form input:focus,
    .contact-form textarea:focus {
        outline: none;
        border-color: var(--accent-gold);
        box-shadow: 0 0 0 2px rgba(188, 160, 125, 0.2);
    }
/* --- Mobile Navigation Styles (NEW) --- */
/* Add these rules to the bottom of your existing style.css file */

.mobile-menu-icon {
    display: none; /* Hidden by default */
    cursor: pointer;
}

    .mobile-menu-icon div {
        width: 25px;
        height: 3px;
        background-color: var(--dark-purple);
        margin: 5px 0;
        transition: 0.4s;
    }

/* Styles for the mobile navigation panel */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%; /* Position it right below the header */
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 999;
}

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .mobile-nav ul li {
            display: block;
            text-align: center;
        }

            .mobile-nav ul li a {
                display: block;
                padding: 15px;
                color: var(--dark-purple);
                border-bottom: 1px solid var(--border-light);
            }

                .mobile-nav ul li a:hover {
                    background-color: var(--background-cream);
                    color: var(--accent-gold);
                }


/* Media Query for mobile screens */
@media (max-width: 768px) {
    header nav {
        display: none; /* Hide the desktop navigation */
    }

    .mobile-menu-icon {
        display: block; /* Show the hamburger icon */
    }

    .mobile-nav.active {
        display: block; /* Show the mobile menu when active */
    }
}
