/* CSS/style.css */

:root {
    --theme-brown: #3A2A24;
    --theme-pink: #FDF2F5;
    --theme-accent: #E6A4B4;
    --theme-white: #FFFFFF;
}

html {
    overflow-x: hidden;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--theme-pink);
    color: var(--theme-brown);
}

body.menu-open {
    overflow: hidden;
    height: 100%;
}

p, h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.08em;
    line-height: 1.8;
}

/* Layout */
.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1024px) {
    .container-custom {
        padding: 0 80px;
    }
}

.page-section {
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    .page-section {
        padding-bottom: 120px;
    }
}

/* Titles */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title-main {
    font-size: 2rem;
    font-weight: 300;
    color: var(--theme-brown);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .section-title-main {
        font-size: 3rem;
    }
}

.section-title-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    z-index: 0;
    font-weight: 700;
    pointer-events: none;
    /* Prevent horizontal overflow on mobile */
    max-width: 100vw;
    overflow: hidden;
}

@media (min-width: 768px) {
    .section-title-bg {
        font-size: 8rem;
    }
}

/* Components */
.content-card {
    background: var(--theme-white);
    padding: 2rem;
    border: 1px solid rgba(58, 42, 36, 0.05);
}

@media (min-width: 768px) {
    .content-card {
        padding: 4rem;
    }
}

.hamburger-line {
    transition: all 0.3s ease;
    width: 24px;
    height: 2px;
    background-color: #3A2A24;
    display: block;
    border-radius: 2px;
}

.hamburger-line:nth-child(2) {
    width: 16px;
}

/* Hamburger button — always hidden on desktop, always visible on mobile */
#hamburger-btn {
    display: flex !important;
}

@media (min-width: 768px) {
    #hamburger-btn {
        display: none !important;
    }
}

/* Mobile Menu Overlay */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Hidden state */
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.4s ease;
    will-change: transform, opacity;
}

#mobile-menu.is-open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Header */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.parallax-bg {
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* iOS Safari doesn't support background-attachment:fixed properly */
@media (max-width: 767px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Cards */
.service-card-img-wrap {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #eee;
}

.service-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Buttons and Links */
.btn-aurora {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--theme-brown);
    color: #FFF;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.btn-aurora:hover {
    background: var(--theme-accent);
    transform: translateY(-2px);
}

/* Transitions */
.luminous-gallery img {
    transition: transform 0.6s ease;
}

.luminous-gallery img:hover {
    transform: scale(1.02);
}

/* Premium card design */
.premium-service-card {
    position: relative;
    padding-right: 20px;
    padding-bottom: 40px;
}

.premium-service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 20px);
    height: calc(100% - 40px);
    border: 5px solid var(--theme-accent);
    z-index: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-service-card:hover::before {
    transform: translate(10px, 10px);
    background-color: var(--theme-pink);
}

.premium-service-img-wrap {
    position: relative;
    z-index: 1;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-top: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.premium-service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-service-card:hover .premium-service-img-wrap img {
    transform: scale(1.1);
}

.premium-service-info {
    position: relative;
    z-index: 2;
    padding-left: 10px;
    margin-top: 20px;
}

.premium-service-num {
    font-family: serif;
    font-size: 2.5rem;
    color: var(--theme-accent);
    line-height: 1;
    font-style: italic;
    margin-bottom: 10px;
    opacity: 0.8;
}

.premium-service-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--theme-brown);
    letter-spacing: 0.1em;
}

.premium-service-desc {
    font-size: 0.75rem;
    color: var(--theme-brown);
    opacity: 0.6;
    margin-top: 15px;
    padding-left: 10px;
    line-height: 1.8;
}

/* =============================================
   Mobile / SP Fixes (375px)
   ============================================= */
@media (max-width: 767px) {

    /* Footer padding so it clears the fixed CTA bar */
    footer {
        padding-bottom: 80px !important;
    }

    /* Prevent any element from exceeding viewport width */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Compact section title on mobile */
    .section-title-main {
        font-size: 1.6rem;
        letter-spacing: 0.15em;
    }

    /* Footer nav wraps cleanly on small screens */
    footer nav {
        gap: 1.2rem !important;
        font-size: 9px;
    }

    /* Floating TOP button: keep above CTA bar */
    #top-btn {
        bottom: 5.5rem !important;
    }

    /* CTA section phone number doesn't overflow */
    .container-custom a[href^="tel"] {
        font-size: 1rem;
        word-break: break-all;
    }
}