/* ============================================
   MONIS BEAUTY — Custom Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --forest-50: #f2f7f0;
    --forest-100: #e3eddd;
    --forest-200: #c7dcb9;
    --forest-300: #a1c38a;
    --forest-400: #76a55e;
    --forest-500: #548740;
    --forest-600: #3d6b2f;
    --forest-700: #315626;
    --forest-800: #284520;
    --forest-900: #21391b;
    --forest-950: #111f0d;
    
    --cream-50: #fdfcf8;
    --cream-100: #faf8f2;
    --cream-200: #f5f0e4;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--forest-900);
    background-color: var(--cream-50);
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream-100);
}
::-webkit-scrollbar-thumb {
    background: var(--forest-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--forest-500);
}

/* ---------- Selection ---------- */
::selection {
    background: var(--forest-200);
    color: var(--forest-900);
}

/* ---------- Navbar ---------- */
.nav-fixed {
    background: rgba(253, 252, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(49, 86, 38, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(253, 252, 248, 0.97);
    box-shadow: 0 4px 20px rgba(17, 31, 13, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest-500);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out-expo);
}

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

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo);
}

.mobile-menu.open {
    max-height: 400px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
}

.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(17, 31, 13, 0.78) 0%,
        rgba(33, 57, 27, 0.68) 50%,
        rgba(49, 86, 38, 0.58) 100%
    );
}

.hero-badge {
    animation: fadeInDown 0.8s var(--ease-out-expo) both;
}

.hero-title {
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.hero-stats {
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

/* ---------- Buttons ---------- */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    transition: all 0.3s var(--ease-out-expo);
}

/* ---------- Section Titles ---------- */
.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--forest-500);
    background: var(--forest-100);
    padding: 0.4rem 1rem;
    border-radius: 100px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--forest-900);
    line-height: 1.2;
}

.section-desc {
    color: var(--forest-600);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Light variants for dark sections */
.section-label-light {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--forest-300);
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.15);
}

.section-title-light {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.section-desc-light {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* ---------- Service Cards ---------- */
.service-card {
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--forest-500), var(--forest-400));
    border-radius: 3px;
    transition: all 0.4s var(--ease-out-expo);
    transform: translateX(-50%);
}

.service-card:hover::after {
    width: 60%;
}

/* ---------- Gallery ---------- */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to top, rgba(17, 31, 13, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    transition: all 0.3s var(--ease-out-expo);
}

/* ---------- Contact Form ---------- */
.input-field {
    transition: all 0.2s ease;
}

.input-field:focus {
    box-shadow: 0 0 0 3px rgba(84, 135, 64, 0.15);
}

.input-field::placeholder {
    color: var(--forest-400);
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-submit:hover::before {
    opacity: 1;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    transition: all 0.3s var(--ease-out-expo);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(17, 31, 13, 0.3);
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Scroll Reveal (Progressive Enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .about-floating-badge {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 1rem;
        display: inline-block;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* ---------- Print ---------- */
@media print {
    .nav-fixed,
    .back-to-top,
    .hero-overlay {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
