/* L'AMOUR 官網 — 主樣式 */

:root {
    --lam-bg: #f7f4ef;
    --lam-bg-elevated: #ffffff;
    --lam-text: #27231f;
    --lam-text-muted: #6f665e;
    --lam-border: #e5ddd2;
    --lam-accent: #b08a5a;
    --lam-accent-hover: #946f46;
    --lam-dark: #1e1c1a;
    --lam-font-sans: "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    --lam-font-serif: "Noto Serif TC", "Source Han Serif TC", "Times New Roman", Georgia, serif;
    --lam-container: 1200px;
    --lam-header-h: 72px;
    --lam-space: 1rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.lam-site {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--lam-font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--lam-text);
    background-color: var(--lam-bg);
    letter-spacing: 0.01em;
}

.lam-skip-link {
    position: absolute;
    left: -9999px;
    z-index: 1000;
    padding: 0.5rem 1rem;
    background: var(--lam-bg-elevated);
    color: var(--lam-text);
}

.lam-skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
}

.lam-container {
    width: 100%;
    max-width: var(--lam-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(var(--lam-space), 4vw, 1.5rem);
    padding-right: clamp(var(--lam-space), 4vw, 1.5rem);
}

/* Header */
.lam-header {
    background: var(--lam-bg-elevated);
    border-bottom: 1px solid var(--lam-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.lam-header__bar {
    background: #cbc4ba;
    color: #f6f2eb;
    font-size: 0.75rem;
}

.lam-header__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    gap: 1rem;
}

.lam-header__tagline {
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lam-header__utils {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lam-header__link {
    color: inherit;
    text-decoration: none;
}

.lam-header__link:hover {
    color: #fff;
    text-decoration: none;
}

.lam-header__sep {
    opacity: 0.5;
}

.lam-header__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.lam-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.lam-logo img {
    display: block;
    width: clamp(128px, 15vw, 176px);
    height: auto;
}

.lam-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lam-nav a {
    color: var(--lam-text);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.2rem;
}

.lam-nav a:hover {
    color: var(--lam-accent);
}

.lam-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--lam-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.lam-nav a:hover::after {
    transform: scaleX(1);
}

/* Main — 各頁用 <main id="main-content" class="lam-main"> */
.lam-main {
    flex: 1;
    width: 100%;
}

.lam-home-slider {
    position: relative;
    width: 100%;
    background: #111;
    overflow: hidden;
}

.lam-home-slider__track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6;
    min-height: 240px;
    max-height: 78vh;
}

.lam-home-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.lam-home-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.lam-home-slide picture,
.lam-home-slide img,
.lam-home-slide__link {
    display: block;
    width: 100%;
    height: 100%;
}

.lam-home-slide img {
    object-fit: cover;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
}

.lam-home-slide.is-active img {
    animation: lam-slide-zoom 3s linear forwards;
}

@keyframes lam-slide-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.03);
    }
}

.lam-home-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.lam-home-slider__dot {
    width: 24px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lam-home-slider__dot.is-active {
    background: #fff;
    transform: scale(1.05);
}

.lam-hero {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
}

.lam-hero__title {
    font-family: var(--lam-font-serif);
    font-size: clamp(1.9rem, 4.2vw, 2.8rem);
    font-weight: 500;
    margin: 0 0 1.1rem;
    letter-spacing: 0.08em;
    color: #231f1b;
}

.lam-hero__lead {
    margin: 0;
    color: var(--lam-text-muted);
    max-width: 38em;
    font-size: 1.02rem;
}

/* Footer */
.lam-footer {
    margin-top: auto;
    background: #f4f4f4;
    color: #3b3a38;
    padding-top: 4.5rem;
    padding-bottom: 1.6rem;
}

.lam-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2rem;
}

.lam-footer__logo-link {
    display: inline-block;
}

.lam-footer__logo-img {
    width: min(320px, 70vw);
    height: auto;
    display: block;
}

.lam-footer__store {
    justify-self: start;
    color: #474440;
    font-size: 1rem;
    line-height: 1.9;
    letter-spacing: 0.07em;
}

.lam-footer__store p {
    margin: 0;
}

.lam-footer__store-name {
    font-weight: 600;
    margin-bottom: 0.35rem !important;
}

.lam-footer__store-note {
    color: #8f7f98;
}

.lam-footer__social-wrap {
    margin-top: 2.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
}

.lam-footer__social {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #9b7a51;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lam-footer__social:hover {
    background: #886744;
}

.lam-footer__copy {
    margin: 2rem 0 0;
    font-size: 1.06rem;
    color: #43403d;
    text-align: center;
    letter-spacing: 0.03em;
}

@media (min-width: 900px) {
    .lam-footer__top {
        grid-template-columns: 1fr max-content;
    }

    .lam-footer__store {
        justify-self: end;
        text-align: left;
    }
}

/* 行動選單（預留：由 main.js 顯示按鈕並切換） */
@media (max-width: 767px) {
    .lam-nav-toggle[hidden] {
        display: none;
    }

    .lam-nav-toggle:not([hidden]) {
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 0.75rem;
        border: 1px solid var(--lam-border);
        background: var(--lam-bg-elevated);
        font: inherit;
        cursor: pointer;
    }

    .lam-header__main {
        flex-wrap: nowrap;
    }

    .lam-nav {
        width: 100%;
        flex-basis: 100%;
        order: 3;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .lam-nav.is-open {
        max-height: 320px;
    }

    .lam-nav__list {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0 1rem;
        gap: 0.75rem;
    }

    .lam-home-slider__track {
        aspect-ratio: 3 / 4;
        min-height: 320px;
        max-height: 80vh;
    }
}

@media (min-width: 768px) {
    .lam-nav-toggle {
        display: none !important;
    }
}
