/* ==========================================================================
   1. BRAND IDENTITY VARIABLES & CSS RESET
   ========================================================================== */
:root {
    --primary-color: #ebdcd5;     /* Main brand colour: Elegant blush / nude pink */
    --accent-color: #d1b8ae;      /* Darker nude tone for button interactions */
    --dark-color: #111111;        /* Crisp, premium off-black for high contrast */
    --light-bg: #faf6f4;          /* Soft cream background for alternating sections */
    --text-color: #2c2c2c;        /* Soft charcoal black for body prose */
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: var(--dark-color);
    letter-spacing: 0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   2. STICKY HEADER & COMPONENT BUTTONS
   ========================================================================== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px; /* Reduced vertical padding slightly to balance the larger logo */
}

.logo h2 {
    letter-spacing: 3px;
    font-size: 1.6rem;
    font-weight: 600;
}

#salon-logo {
    height: 75px;        /* Increased from 45px to give your logo physical presence */
    width: auto;         /* Automatically calculates width so your text isn't squished */
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Global Button Styles */
.btn-book, .btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    border-radius: 2px;
    will-change: transform;
}

/* Header Booking Button (Blush Theme) */
.btn-book {
    background-color: var(--primary-color);
    color: var(--dark-color) !important;
    border: 1px solid var(--primary-color);
}

.btn-book:hover {
    background-color: var(--dark-color);
    color: var(--white) !important;
    border-color: var(--dark-color);
}

/* Main Call to Action (Crisp Black Theme) */
.btn-primary {
    background-color: var(--dark-color);
    color: var(--white);
    border: 1px solid var(--dark-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-color: var(--primary-color);
}

/* Hero Outline Button (White Theme) */
.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    margin-right: 15px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-color);
}

/* Mobile Menu Burger Trigger */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 22px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: var(--transition);
}

/* ==========================================================================
   3. HERO AREA
   ========================================================================== */
.hero {
    height: calc(100vh - 80px);
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), 
                url('images/window.jpeg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.8rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    font-weight: 300;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   4. SERVICES GRID LAYOUT
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 45px;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.015);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(21, 21, 21, 0.04);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--light-bg);
    padding-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.price-list {
    list-style: none;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.price-list li span:first-child {
    font-weight: 500;
}

.price-list li span:last-child {
    font-weight: 400;
    color: #555;
}

/* ==========================================================================
   5. ABOUT THE SALON
   ========================================================================== */
.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    align-items: center;
}

.about-salon-img {
    width: 100%;
    height: 500px;
    object-fit: cover; /* This stops the photo from stretching or distorting */
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Adds a smooth, soft luxury shadow */
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 22px;
    color: #555;
    font-size: 1rem;
    font-weight: 300;
}

/* ==========================================================================
   6. MEET THE TEAM
   ========================================================================== */
.team-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.team-card {
    background-color: var(--white);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.015);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-image-wrapper {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    background-color: var(--primary-color);
}

.team-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover img {
    transform: scale(1.03);
}

.team-info {
    padding: 30px 25px;
}

.team-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.team-role {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 15px;
    font-weight: 500;
}

.team-info p {
    font-size: 0.95rem;
    color: #555;
    font-weight: 300;
    line-height: 1.5;
}

/* ==========================================================================
   7. CONTACT PANEL & FOOTER
   ========================================================================== */
.contact-section {
    padding: 80px 0;
    background-color: var(--dark-color);
    color: var(--white);
}

.contact-section h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.contact-info p {
    margin-bottom: 18px;
    color: #bbb;
    font-weight: 300;
    font-size: 0.95rem;
}

.contact-info strong {
    color: var(--white);
    font-weight: 500;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #bbb;
    font-weight: 300;
    font-size: 0.95rem;
    border-bottom: 1px dashed #333;
    padding-bottom: 6px;
}

footer {
    background-color: #0a0a0a;
    color: #555;
    text-align: center;
    padding: 25px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-top: 1px solid #151515;
}

/* ==========================================================================
   8. SCROLL ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(2px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                filter 0.6s ease;
    will-change: transform, opacity;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.btn-book:hover, .btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-book:hover, .btn-primary:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS (MOBILE VIEW OPTIMIZATION)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .nav-links {
       #salon-logo {
        height: 60px;    /* Marginally smaller on phones so it stays proportioned */
         }
        position: fixed;
        right: 0px;
        height: calc(100vh - 74px);
        top: 74px;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        width: 75%;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: -10px 10px 30px rgba(0,0,0,0.03);
    }

    .nav-links li {
        margin-left: 0;
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
        padding: 0 20px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .btn-secondary {
        margin-right: 0;
    }

    .about-content .section-title {
        text-align: center;
    }
    
    .services-grid, .team-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .team-image-wrapper {
        height: 380px;
    }
}

.nav-active {
    transform: translateX(0%);
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 5px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* ==========================================================================
   12. TEAM INDIVIDUAL PRICING MODALS (POPUPS)
   ========================================================================== */
.team-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.view-prices-prompt {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
}

.team-card-link:hover .view-prices-prompt {
    color: var(--accent-color);
    transform: translateX(3px);
}

/* Background Dimmer Layer */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6); /* Dims your landing page cleanly */
    z-index: 2000; /* Sits completely on top of navigation bars */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* The White Box Popup Container */
.modal-content {
    background-color: var(--white);
    padding: 50px 40px;
    width: 90%;
    max-width: 550px;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transform: translateY(-30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--light-bg);
    padding-bottom: 15px;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-header p {
    font-size: 0.9rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Close Window "X" Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-color);
}

/* NATIVE BROWSER ACTIVATION ENGINE */
.team-modal:target {
    opacity: 1;
    pointer-events: auto;
}

.team-modal:target .modal-content {
    transform: translateY(0);
}

/* Mobile Tweak for Popup Spacing */
@media screen and (max-width: 768px) {
    .modal-content {
        padding: 40px 20px;
    }
}

/* Fix the modal container width for Lauren's price list */
.team-modal .modal-content {
    max-width: 800px; /* Gives the two columns room to breathe */
    width: 90%;       /* Ensures it stays responsive on smaller screens */
    overflow-y: auto; /* Adds a scrollbar if the price list is taller than the screen */
    max-height: 85vh; /* Prevents the modal from shooting off the bottom of the screen */
    padding: 30px;    /* Gives the inner content clean spacing */
    box-sizing: border-box;
}

/* Ensure the layout table behaves itself */
.team-modal-layout {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Quick fix for mobile screens so the columns stack neatly if the screen is tiny */
@media (max-width: 768px) {
    .team-modal-layout, 
    .team-modal-layout tr, 
    .team-modal-layout td {
        display: block;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}