/*
========================================================================
   Luna Beauty Salon - Main Stylesheet
   Created with a modern, elegant, and responsive design structure.
========================================================================
*/

/* --- CSS Variables / Design Tokens --- */
:root {
    /* Color Palette */
    --color-bg-primary: #FFFDF9;     /* Warm cream background */
    --color-bg-secondary: #FAF4ED;   /* Soft warm background variation */
    --color-accent: #E5A99E;         /* Soft dusty rose / soft pink accent */
    --color-accent-hover: #D49387;   /* Slightly darker pink for interactive elements */
    --color-text-dark: #2C2623;      /* Deep chocolate charcoal for elegant text readability */
    --color-text-muted: #6B5E59;     /* Lighter brown/gray for secondary text */
    --color-white: #FFFFFF;
    --color-shadow: rgba(44, 38, 35, 0.08);
    --color-shadow-hover: rgba(44, 38, 35, 0.15);
    --color-border: #EFE6DC;
    --color-error: #D9534F;
    --color-success: #5CB85C;

    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', Helvetica, Arial, sans-serif;

    /* Layout & Spacing */
    --header-height: 80px;
    --border-radius-sm: 4px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    --border-radius-full: 50px;
    --transition-speed: 0.3s;
}

/* --- Base & Reset Rules --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography Defaults --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 16px auto 0 auto;
    border-radius: var(--border-radius-sm);
}

.divider.align-left {
    margin-left: 0;
}

.hidden {
    display: none !important;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: var(--border-radius-full);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(229, 169, 158, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-accent-hover);
    box-shadow: 0 6px 16px rgba(229, 169, 158, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-dark);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-block {
    display: width;
    width: 100%;
}

/* --- Header & Navigation --- */
.header {
    background-color: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-text-dark);
}

.logo a:hover {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-dark);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-book-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Mobile Toggle Hamburger button */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-dark);
    position: relative;
    transition: background 0.2s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text-dark);
    transition: transform 0.25s ease-in-out, top 0.25s ease-in-out;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

/* Hamburger active transformation */
.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(255, 253, 249, 0.45), rgba(255, 253, 249, 0.45)),
                url('images/gallery5.jpg') no-repeat center center/cover;
    padding-top: var(--header-height);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 0 24px;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Summer Special Section --- */
.summer-special {
    padding: 80px 0;
    background-color: var(--color-bg-primary);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.special-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.special-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.special-offer {
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-accent-hover);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.special-text {
    font-size: 1.2rem;
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-style: italic;
    margin: 30px auto;
    max-width: 600px;
    line-height: 1.6;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-text-dark);
}

/* --- Services Section --- */
.services {
    padding: 100px 0;
    background-color: var(--color-bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-shadow);
    transition: transform var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--color-shadow-hover);
}

.service-img-wrapper {
    position: relative;
    padding-top: 66.67%; /* 3:2 Aspect Ratio */
    overflow: hidden;
}

.service-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-name {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.service-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-accent-hover);
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background-color: var(--color-bg-primary);
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-content .section-title {
    margin-top: 4px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin: 30px 0;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    color: var(--color-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.highlight-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image-stack {
    position: relative;
    width: 100%;
    max-width: 450px;
    padding-bottom: 110%; /* Elegant vertical block aspect */
}

.about-img-main {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 35px var(--color-shadow-hover);
}

/* --- Gallery Section --- */
.gallery {
    padding: 100px 0;
    background-color: var(--color-bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    padding-top: 100%; /* Square placeholder */
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--color-shadow);
    background-color: #EEE;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease-in-out;
}

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

/* --- Booking & Contact Grid Section --- */
.contact-booking-wrapper {
    padding: 100px 0;
    background-color: var(--color-bg-primary);
}

.grid-two-cols {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

/* Booking Card & Form styling */
.booking-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 40px var(--color-shadow);
    border: 1px solid var(--color-border);
}

.card-title {
    font-size: 1.8rem;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.form-group .required {
    color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-dark);
    outline: none;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(229, 169, 158, 0.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: var(--color-error);
    background-color: #FFFDFD;
}

.error-msg {
    color: var(--color-error);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

/* Success & Alert Elements */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: #EDF7ED;
    color: #1E4620;
    border: 1px solid #C2E0C4;
}

.alert-success i {
    font-size: 1.2rem;
    color: var(--color-success);
}

/* Contact Details */
.contact-details {
    padding-top: 10px;
}

.contact-brand {
    font-size: 2.2rem;
    color: var(--color-text-dark);
    margin-top: 4px;
}

.contact-info-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    color: var(--color-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

.contact-text h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--color-text-dark);
}

.contact-text p,
.contact-text a {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.contact-link:hover {
    color: var(--color-accent);
}

.hours-list {
    list-style: none;
    margin-top: 4px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    width: 280px;
    padding: 4px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.hours-list li:last-child {
    border-bottom: none;
}

/* --- Footer --- */
.footer {
    background-color: #2C2623; /* Dark chocolate for elegant contrast */
    color: #F5EFEB;
    padding: 60px 0 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 40px;
}

.footer-brand a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFDF9;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 4px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #FFFDF9;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*
========================================================================
   Media Queries for Seamless Responsiveness
========================================================================
*/

/* --- Tablet / Smaller Desktop (Max 1024px) --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .about-visual {
        width: 100%;
    }

    .about-image-stack {
        max-width: 100%;
        padding-bottom: 60%; /* Re-adjust layout height */
    }

    .grid-two-cols {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* --- Mobile / Tablet (Max 768px) --- */
@media (max-width: 768px) {
    /* Navbar Hamburger Setup */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 100%; /* Off screen initially */
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        box-shadow: 0 10px 15px var(--color-shadow);
        z-index: 999;
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .nav-book-btn {
        width: 80%;
        font-size: 1rem;
        padding: 14px 0;
    }

    /* Hero Text Adjustments */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    /* Sections */
    .summer-special {
        padding: 60px 0;
    }

    .special-title {
        font-size: 2.2rem;
    }

    .special-offer {
        font-size: 1.25rem;
    }

    .special-text {
        font-size: 1.05rem;
        margin: 20px auto;
    }

    .services {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 24px;
    }

    .gallery {
        padding: 80px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile/tablet */
        gap: 12px;
    }

    .contact-booking-wrapper {
        padding: 80px 0;
    }

    .form-grid {
        grid-template-columns: 1fr; /* Forms fit the screen vertically */
        gap: 0;
    }

    .booking-card {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

/* --- Small Mobile Devices (Max 480px) --- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .special-title {
        font-size: 1.8rem;
    }

    .special-offer {
        font-size: 1.1rem;
    }

    .special-text {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Single column on tiny screens */
    }

    .hours-list li {
        width: 100%;
    }
}
