/* =========================================================
   FM HAIRSTYLE — INDEX PAGE SHELL
   Page-level layout, hero, and stability reset.
========================================================= */

/* =========================================================
   ANDROID / MOBILE HORIZONTAL OVERFLOW FIX
   (page-wide stability — must stay in the page shell)
========================================================= */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

/* =========================================================
   HERO SECTION — FM Hairstyle
========================================================= */
.fm-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--fm-black, #120F10);
}

.fm-hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.fm-hero:hover .fm-hero-background {
    transform: scale(1);
}

.fm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(18, 15, 16, 0.85) 0%,
        rgba(18, 15, 16, 0.40) 50%,
        rgba(18, 15, 16, 0.20) 70%,
        rgba(18, 15, 16, 0.05) 100%
    );
    z-index: 1;
}

.fm-hero-content {
    position: relative;
    z-index: 2;
    padding: 6rem 0;
}

.fm-hero-text {
    max-width: 620px;
    animation: fadeInUp 1s ease forwards;
}

.fm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(217, 140, 107, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(217, 140, 107, 0.25);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--fm-rose-gold, #D98C6B);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.fm-hero-badge i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.fm-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--fm-ivory, #F8F1EC);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.fm-hero-title .fm-highlight {
    background: linear-gradient(135deg, var(--fm-rose-gold, #D98C6B) 0%, var(--fm-rose-gold-light, #E8A88A) 50%, var(--fm-rose-gold, #D98C6B) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.fm-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(248, 241, 236, 0.75);
    max-width: 480px;
    margin-bottom: 2.5rem;
    letter-spacing: 0.2px;
}

.fm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.fm-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2.25rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.fm-btn-primary {
    background: var(--fm-dusty-pink, #D96A8A);
    color: var(--fm-black, #120F10);
    box-shadow: 0 8px 30px rgba(217, 106, 138, 0.35);
}

.fm-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(217, 106, 138, 0.5);
    color: var(--fm-ivory, #F8F1EC);
    background: var(--fm-dusty-pink-dark, #C45A7A);
}

.fm-btn-primary i {
    transition: transform 0.3s ease;
    color: var(--fm-black, #120F10);
}

.fm-btn-primary:hover i {
    transform: translateX(6px);
}

.fm-btn-outline {
    background: transparent;
    color: rgba(248, 241, 236, 0.9);
    border: 1.5px solid rgba(248, 241, 236, 0.3);
    backdrop-filter: blur(4px);
}

.fm-btn-outline:hover {
    background: rgba(248, 241, 236, 0.08);
    border-color: rgba(248, 241, 236, 0.6);
    transform: translateY(-3px);
    color: var(--fm-ivory, #F8F1EC);
}

.fm-btn-outline i {
    font-size: 1.2rem;
    color: var(--fm-rose-gold, #D98C6B);
}

.fm-hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(248, 241, 236, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fm-ivory, #F8F1EC);
    line-height: 1.2;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(248, 241, 236, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-label i {
    color: var(--fm-dusty-pink, #D96A8A);
    font-size: 0.6rem;
    margin-right: 1px;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(248, 241, 236, 0.1);
}

.fm-hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(248, 241, 236, 0.4);
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: floatDown 2s ease-in-out infinite;
}

.fm-hero-scroll i {
    font-size: 0.8rem;
    opacity: 0.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatDown {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* =========================================================
   DESKTOP HERO / CALENDAR VERTICAL POSITION
========================================================= */
@media (min-width: 992px) {
    .fm-hero {
        align-items: flex-start;
        min-height: 100vh;
    }

    .fm-hero-content {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        width: 100%;
    }

    .fm-hero-calendar-wrapper {
        margin-top: 0;
    }

    .row.min-vh-100 {
        min-height: auto;
    }
}

/* =========================================================
   HERO — RESPONSIVE
========================================================= */
@media (max-width: 991px) {
    .fm-hero-content {
        padding: 4rem 0;
    }

    .fm-hero-text {
        max-width: 100%;
    }

    .fm-hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .fm-hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .fm-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(18, 15, 16, 0.9) 0%,
            rgba(18, 15, 16, 0.5) 60%,
            rgba(18, 15, 16, 0.3) 100%
        );
    }

    .fm-hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }
}

@media (max-width: 576px) {
    .fm-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .fm-btn {
        justify-content: center;
        width: 100%;
    }

    .fm-hero-title {
        font-size: 2.5rem;
    }

    .fm-hero-badge {
        font-size: 0.65rem;
        padding: 0.35rem 1.2rem;
    }

    .fm-hero-scroll {
        display: none;
    }
}