/* Global Reset & Base */
:root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F7F7F7;
    --color-dark: #1A1A1A;
    --color-grey: #4A4A4A;
    --color-light-grey: #555555;
    --color-muted: #777777;
    --border-color: #E5E5E5;
    --whatsapp-color: #25D366;
    --lrb-color: #FF2442;

    --font-serif: 'LXGW WenKai TC', serif;
    --font-sans: 'LXGW WenKai TC', sans-serif;
    --font-body: 'LXGW WenKai TC', serif;
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--primary-bg);
    width: 100%;
}

/* Screen-reader only (visually hidden, accessible to AT) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Language Switcher Logic */
body:not(.lang-zh) .zh {
    display: none;
}

body.lang-zh .en {
    display: none;
}

/* Language transition */
.en,
.zh {
    transition: opacity 0.3s ease;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-sans);
}

/* Header */
.header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 60px;
    background: var(--primary-bg);
    padding: 0 8%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

/* Nav */
.nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 32px;
}

.nav a {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-grey);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.nav a.active {
    color: var(--color-dark);
    border-bottom-color: var(--color-dark);
}

.nav a:not(.active):hover {
    color: var(--color-dark);
}

/* Language switch in header */
.lang-switch {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--color-dark);
    border: 1px solid var(--color-dark);
    cursor: pointer;
    padding: 8px 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: absolute;
    right: 4%;
}

.lang-switch:hover {
    /* no change */
}

/* Logo above header (scrolls away) */
.logo-area {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 24px;
    background: var(--primary-bg);
}

.logo-area a {
    display: block;
}

.logo-area img {
    display: block;
    width: 220px;
    height: auto;
}


@media (prefers-reduced-motion: reduce) {
    .gallery-track img {
        transition: none;
    }

    .gallery-track img:hover {
        transform: none;
    }

    .lightbox.active picture img,
    .lightbox picture img {
        transition: none;
        transform: none;
    }
}

/* Introduction — full-width background wrapper */
.intro-wrapper {
    background: var(--secondary-bg);
}

/* Introduction Section */
.intro {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding: 50px 8% 110px;
    max-width: 1440px;
    margin: 0 auto;
}

.intro-left {
    width: 45%;
}

.intro-left h2 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--color-dark);
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 36px;
    -webkit-text-stroke: 0.4px var(--color-dark);
}

.intro-left p {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-grey);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.intro-right {
    width: 50%;
}

.intro-right img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0;
}

/* Services Section — full-width background wrapper */
.services-wrapper {
    background: var(--primary-bg);
}

.services {
    padding: 80px 8%;
    max-width: 1440px;
    margin: 0 auto;
}

.services-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
}

.services-header h2 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--color-dark);
    font-size: 36px;
    -webkit-text-stroke: 0.4px var(--color-dark);
}

/* Services Tabs */
.services-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.service-tab {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 14px;
    padding: 12px 24px;
    background: #F5F5F5;
    color: var(--color-light-grey);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.service-tab.active {
    font-weight: 700;
    background: var(--color-dark);
    color: #FFFFFF;
}

.service-detail {
    margin: 0 0 18px;
    text-align: left;
}

.service-desc {
    font-family: var(--font-body);
    font-weight: 400;
    color: #666666;
    font-size: 16px;
    line-height: 1.8;
}

/* Gallery / Carousel (inside services section) */
.gallery-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
}

.gallery-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: none;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-track:active,
.gallery-track.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

/* Hide scrollbar for cleaner look */
.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-track picture {
    flex: 0 0 auto;
}

.gallery-track img {
    width: auto;
    height: 450px;
    object-fit: cover;
    transition: transform 0.6s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    display: block;
}

.gallery-track img:hover {
    transform: scale(1.03);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox picture {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
}

.lightbox picture img {
    max-width: min(100%, 760px);
    max-height: min(86vh, 760px);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active picture img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-close:hover {
    color: #FFFFFF;
}

/* Boutique Section — full-width background wrapper */
.boutique-wrapper {
    background: var(--secondary-bg);
}

.boutique {
    padding: 100px 8%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    max-width: 1440px;
    margin: 0 auto;
}

.boutique-left {
    width: 50%;
}

.boutique-left h2 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--color-dark);
    font-size: 36px;
    margin-bottom: 48px;
    -webkit-text-stroke: 0.4px var(--color-dark);
}

.contact-block {
    margin-bottom: 36px;
}

.contact-block .label {
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    display: block;
    margin-bottom: 12px;
}

.contact-block p {
    font-family: var(--font-body);
    font-weight: 400;
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
}

.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 12px;
    color: var(--color-dark);
    border: 1px solid var(--color-dark);
    padding: 8px 16px;
    margin-top: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-maps:hover {
    background-color: var(--color-dark);
    color: #FFFFFF;
}

.social-buttons {
    display: flex;
    gap: 16px;
    margin-top: 48px;
}

/* Social buttons — outline style to harmonize with the rest of the design */
.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 24px;
    border-radius: 0;
    border: 2px solid;
    transition: all 0.3s ease;
}

.btn-whatsapp {
    color: var(--whatsapp-color);
    border-color: var(--whatsapp-color);
    background: transparent;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-color);
    color: #FFFFFF;
}

.btn-lrb {
    color: var(--lrb-color);
    border-color: var(--lrb-color);
    background: transparent;
}

.btn-lrb:hover {
    background: var(--lrb-color);
    color: #FFFFFF;
}

.btn-social svg {
    flex-shrink: 0;
}

.boutique-right {
    width: 50%;
}

.boutique-right img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* Footer — full-width background wrapper */
.footer-wrapper {
    border-top: 1px solid var(--border-color);
}

.footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: var(--primary-bg);
    padding: 60px 8%;
    max-width: 1440px;
    margin: 0 auto;
}

.footer-copyright {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 13px;
    color: var(--color-muted);
    text-align: center;
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-dark);
    color: #FFFFFF;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.btn-back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.btn-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Scroll Fade-in Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-children.visible>*:nth-child(1) {
    transition-delay: 0s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-children.visible>*:nth-child(2) {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-children.visible>*:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MOBILE RESPONSIVE STYLES (≤ 768px)
   ========================================= */
@media (max-width: 768px) {

    /* --- Logo Area --- */
    .logo-area {
        padding: 24px 0 12px;
    }

    .logo-area img {
        width: 160px;
    }

    /* --- Header --- */
    .header {
        height: 52px;
        padding: 0 5%;
        justify-content: center;
    }

    .nav {
        gap: 18px;
    }

    .nav a {
        font-size: 13px;
    }

    .lang-switch {
        font-size: 12px;
        padding: 6px 14px;
        right: 2%;
    }

    /* --- Introduction --- */
    .intro {
        flex-direction: column;
        padding: 40px 5% 60px;
        gap: 40px;
        margin-top: 0;
    }

    .intro-left,
    .intro-right {
        width: 100%;
    }

    .intro-left h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    /* --- Services --- */
    .services {
        padding: 50px 5%;
    }

    .services-header {
        align-items: flex-start;
    }

    .services-header h2 {
        font-size: 28px;
    }

    .service-detail {
        margin: 0 0 14px;
        text-align: left;
    }

    .services-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .service-tab {
        font-size: 13px;
        padding: 10px 18px;
    }

    /* --- Gallery --- */
    .gallery-track img {
        height: 260px;
    }

    /* --- Boutique / Contact --- */
    .boutique {
        flex-direction: column;
        padding: 60px 5%;
        gap: 40px;
    }

    .boutique-left,
    .boutique-right {
        width: 100%;
    }

    .boutique-left h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .social-buttons {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 32px;
    }

    /* --- Footer --- */
    .footer {
        padding: 40px 5%;
    }

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

    /* --- Back to Top --- */
    .btn-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .lightbox picture {
        max-width: 92%;
        max-height: 84%;
    }

    .lightbox picture img {
        max-width: 100%;
        max-height: 84vh;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .intro {
        padding: 80px 6%;
        gap: 40px;
    }

    .intro-left h2 {
        font-size: 30px;
    }

    .services-header h2 {
        font-size: 30px;
    }

    .boutique-left h2 {
        font-size: 30px;
    }

    .services {
        padding: 80px 6%;
    }

    .boutique {
        padding: 80px 6%;
        gap: 40px;
    }
}
