/* M&M Beauty Studio - Design System */
:root {
    /* Color Palette */
    --beauty-bg-dark: #050505;
    /* Deep Black for backgrounds */
    --beauty-bg-olive: #1c2111;
    /* Deep Olive Green */
    --beauty-bg-olive-light: #2c331b;
    /* Lighter Olive for cards */
    --beauty-gold: #d4af37;
    /* Metallic Gold for accents/buttons */
    --beauty-gold-hover: #e5c150;
    --beauty-text-primary: #ffffff;
    /* Bright White for main text */
    --beauty-text-secondary: #a1a1aa;
    /* Muted gray for descriptions */
    --beauty-border: rgba(212, 175, 55, 0.2);
    /* Faded gold border */

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;

    /* Border Radius */
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Z-Index Hierarchy */
    --z-base: 1;
    --z-nav: 100;
    --z-modal: 1000;
    --z-toast: 2000;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--beauty-bg-dark);
    color: var(--beauty-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--beauty-text-primary);
    font-weight: 600;
}

.title-gold {
    color: var(--beauty-gold);
    font-weight: 700;
}

/* Reusable Components */

/* Glass Cards */
.m-card {
    background: rgba(44, 51, 27, 0.4);
    /* Faded olive glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--beauty-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.m-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
    /* Stronger gold on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    font-family: var(--font-display);
}

.m-btn-primary {
    background: linear-gradient(135deg, var(--beauty-gold) 0%, #b8901a 100%);
    color: var(--beauty-bg-dark);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.m-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--beauty-gold-hover) 0%, var(--beauty-gold) 100%);
}

.m-btn-outline {
    background: transparent;
    color: var(--beauty-gold);
    border: 1px solid var(--beauty-gold);
}

.m-btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

.m-btn-whatsapp {
    background: #25D366;
    color: white;
}

.m-btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.text-muted {
    color: var(--beauty-text-secondary);
}

/* Navigation */
.m-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-nav);
    padding: var(--space-4) 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.m-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--beauty-text-primary);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.m-logo span {
    color: var(--beauty-gold);
}

/* Hero Section Split Layout */
.m-split-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 85vh;
    width: 100%;
    background-color: var(--beauty-bg-dark);
}

.m-hero-content {
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 40px 60px 12%;
    /* dynamic left padding */
}

/* Gold Chevron accent */
.m-hero-accent {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 240px;
    overflow: hidden;
    pointer-events: none;
}

.m-hero-accent::before {
    content: '';
    position: absolute;
    left: -85px;
    top: 35px;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    /* Gold border */
    transform: rotate(45deg);
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
}

/* Subtle vertical line */
.m-hero-vertical-line {
    position: absolute;
    left: 40px;
    top: -100vh;
    bottom: -100vh;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.2), transparent);
    z-index: -1;
}

.m-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 5.5vw, 6.5rem);
    color: var(--beauty-gold);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.m-hero-image-wrapper {
    padding: 100px 6% 6% 0;
    /* padding on top to clear nav, right/bottom for margin */
    display: flex;
}

.m-hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: -10px 10px 40px rgba(0, 0, 0, 0.4);
}

/* Filter Pills */
.m-filters {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: var(--space-4);
    scrollbar-width: none;
    /* Firefox */
    position: sticky;
    top: 80px;
    z-index: 90;
    background: linear-gradient(to bottom, var(--beauty-bg-dark) 70%, transparent);
    padding-top: var(--space-4);
}

.m-filters::-webkit-scrollbar {
    display: none;
}

.m-filter-pill {
    padding: var(--space-2) var(--space-6);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--beauty-text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.m-filter-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--beauty-text-primary);
}

.m-filter-pill.active {
    background: var(--beauty-gold);
    color: var(--beauty-bg-dark);
    font-weight: 500;
    border-color: var(--beauty-gold);
}

/* Service Grid */
.m-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.m-service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.m-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--beauty-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.m-service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--beauty-gold);
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gallery Block */
.m-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 300px;
    gap: var(--space-4);
}

.m-gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.m-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.m-gallery-item:hover img {
    transform: scale(1.05);
}

/* Modal */
.m-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--space-4);
}

.m-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.m-modal {
    background: var(--beauty-bg-olive-light);
    border: 1px solid var(--beauty-border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.m-modal-overlay.active .m-modal {
    transform: translateY(0) scale(1);
}

.m-modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.m-modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--beauty-gold);
}

.m-modal-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--beauty-border);
}

.m-modal-content {
    padding: var(--space-6);
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
    margin-bottom: var(--space-4);
    font-family: var(--font-body);
}

.input-field:focus {
    border-color: var(--beauty-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.input-label {
    display: block;
    color: var(--beauty-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Footer & Intercom style sticky btn */
.m-mobile-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--z-nav);
    display: none;
}

@media (max-width: 900px) {
    .m-split-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .m-hero-content {
        padding: 120px 20px 40px 20px;
    }

    .m-hero-accent {
        display: none;
    }

    .m-hero-image-wrapper {
        padding: 0 20px 40px 20px;
        height: 60vh;
    }

    .m-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .m-mobile-fab {
        display: block;
    }

    .m-desktop-cta {
        display: none;
    }

    .m-filters {
        top: 60px;
    }
}