/* ==========================================
   Gileila Unisex Salon — Custom Styles
   ========================================== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #9eba7a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #557a34;
}

/* ==========================================
   Navigation
   ========================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

#navbar.nav-scrolled {
    background: rgba(250, 248, 244, 0.98);
    border-bottom-color: #e3ecd8;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile Menu Button */
.mobile-menu-btn .menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.hidden {
    animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

.mobile-nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e3ecd8;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-nav-link:hover {
    color: #3f5f26;
    padding-left: 0.5rem;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.pexels.com/photos/8834074/pexels-photo-8834074.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 25, 10, 0.82) 0%,
        rgba(41, 61, 26, 0.72) 50%,
        rgba(34, 49, 22, 0.80) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 820px;
    padding: 2rem 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(158, 190, 122, 0.2);
    border: 1px solid rgba(158, 190, 122, 0.4);
    color: #c7d9b2;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #faf8f4;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #c7d9b2;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #9eba7a;
    color: #11190a;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    border: 2px solid #9eba7a;
}
.btn-primary:hover {
    background: #c7d9b2;
    border-color: #c7d9b2;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(158, 190, 122, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #faf8f4;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    border: 2px solid rgba(250, 248, 244, 0.4);
}
.btn-secondary:hover {
    border-color: #faf8f4;
    background: rgba(250, 248, 244, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.hero-stat-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #faf8f4;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: #9eba7a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(158, 190, 122, 0.4);
}

/* ==========================================
   Section Shared Styles
   ========================================== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #557a34;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}
.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 2px;
    background: #557a34;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #223116;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.0625rem;
    color: #3f5f26;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* ==========================================
   Service Cards
   ========================================== */
.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e3ecd8;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(34, 49, 22, 0.12);
    border-color: #9eba7a;
}

.service-card-img {
    overflow: hidden;
    height: 200px;
}
.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover .service-card-img img {
    transform: scale(1.08);
}

.service-card-body {
    padding: 1.75rem;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3f5f26, #557a34);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #faf8f4;
    margin-bottom: 1rem;
}

.service-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #223116;
    margin-bottom: 0.5rem;
}

.service-card-desc {
    font-size: 0.9375rem;
    color: #3f5f26;
    line-height: 1.65;
}

/* ==========================================
   Gallery
   ========================================== */
.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
    min-height: 200px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img {
    transform: scale(1.08);
}

/* ==========================================
   CTA Section
   ========================================== */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #faf8f4;
    color: #223116;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
}
.btn-cta:hover {
    background: #e3ecd8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #faf8f4;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.9375rem;
    border: 2px solid rgba(250, 248, 244, 0.4);
    transition: all 0.25s ease;
}
.btn-cta-outline:hover {
    border-color: #faf8f4;
    background: rgba(250, 248, 244, 0.1);
    transform: translateY(-2px);
}

/* ==========================================
   Scroll Reveal
   ========================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal[data-delay="100"] { transition-delay: 0.1s; }
    .reveal[data-delay="200"] { transition-delay: 0.2s; }
    .reveal[data-delay="300"] { transition-delay: 0.3s; }
}

/* Reduced motion: always show content */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================
   Form Styles
   ========================================== */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(63, 95, 38, 0.15);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 767px) {
    .hero-stats {
        gap: 1.25rem;
    }
    .hero-stat-divider {
        display: none;
    }
    .hero-stats {
        justify-content: space-around;
        width: 100%;
    }
}
