/* Main CSS file for LoulisBeauty */

:root {
    --primary-color: #F4E9E1; /* Soft pink / beige */
    --secondary-color: #FDFBF7; /* Off white */
    --text-color: #333333;
    --accent-color: #D4AF37; /* Gold / soft brown tone for CTA */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #bfa035;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    width: 100%;
    max-width: 300px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(5px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-size: 24px;
    margin: 0;
}

.custom-logo-link img.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Desktop Menu (Hidden on mobile) */
.desktop-menu {
    display: none;
}

/* Mobile Toggle */
.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #FDFBF7;
    z-index: 999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-navigation ul {
    text-align: center;
}

.mobile-navigation li {
    margin: 20px 0;
}

.mobile-navigation a {
    font-size: 24px;
    font-family: var(--font-heading);
}

/* Fixed Action Bar */
.fixed-action-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 90;
}

.action-phone {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;
    color: var(--text-color);
    font-size: 24px;
    padding: 15px 0;
}

.action-btn {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    padding: 15px 0;
}

/* Swiper Slider (Hero Replacement) */
.hero-slider {
    width: 100%;
    height: 70vh;
    min-height: 500px;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

/* Gradient overlay for readability */
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(253, 251, 247, 0.7); /* Soft overlay using secondary color */
}

.slide-content {
    position: relative;
    z-index: 10;
    padding: 20px;
    max-width: 800px;
}

.slide-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.slide-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: #444;
}

/* Fallback static hero style if no slides */
.hero-section-static {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scroll Hint UI */
.scroll-hint {
    display: none;
    text-align: right;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    padding-right: 20px;
}

/* Horizontal Scroll Mobile Setup */
.horizontal-scroll-mobile {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 0 20px 20px 20px; /* Add padding to edge to allow first item centering */
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
}

.horizontal-scroll-mobile::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll-mobile > * {
    scroll-snap-align: center;
}

/* Services */
.services-section {
    padding: 60px 0;
    background: #fff;
}

.services-section .container, .blog-section .container {
    padding: 0; /* Remove padding from container to allow full bleed scrolling */
}
.services-section .section-title, .blog-section .section-title, .services-section .scroll-hint, .blog-section .scroll-hint {
    padding: 0 20px;
}

.service-card {
    flex: 0 0 85%; /* Responsive width for better centering on mobile */
    max-width: 320px;
    background: var(--secondary-color);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.service-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.service-price-tag {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-link {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: 700;
}

/* Why Us */
.why-us-section {
    padding: 60px 0;
    background-color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 20px;
}

.feature-box i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Gallery */
.gallery-section {
    padding: 60px 0;
    background: #fff;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Blog */
.blog-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.blog-card {
    flex: 0 0 85%;
    max-width: 320px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Appointment */
.appointment-section {
    padding: 60px 0 100px; /* Padding bottom to account for fixed action bar */
    background: #fff;
}

.appointment-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px 80px; /* Extra padding bottom for fixed action bar */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.social-icons a {
    font-size: 24px;
    margin-right: 15px;
    color: #fff;
}

.site-info {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
}

/* Desktop Breakpoint */
@media (min-width: 768px) {
    .desktop-menu {
        display: block;
    }

    .desktop-menu ul {
        display: flex;
        gap: 30px;
    }

    .menu-toggle {
        display: none;
    }

    .fixed-action-bar {
        display: none; /* Hide action bar on desktop */
    }

    .appointment-section {
        padding-bottom: 60px;
    }
    .site-footer {
        padding-bottom: 40px;
    }

    .slide-title, .hero-title {
        font-size: 48px;
    }

    .scroll-hint {
        display: none !important; /* Never show on desktop */
    }

    .horizontal-scroll-mobile {
        /* Disable horizontal scroll on desktop, use Grid */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        padding: 0;
    }

    .services-section .container, .blog-section .container {
        padding: 0 20px; /* Restore padding on desktop */
    }

    .service-card, .blog-card {
        flex: none;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}
