/* ============================================================
   藝妍美學館 - 前台共用樣式 (base.css)
   風格來源：.專案本案\風格\美容02\美甲-首頁.html
   命名：遵守 .github\專案架構\css命名規則.md
   ============================================================ */

/* ===== 核心變數 ===== */
:root {
    --cream: #faf5ef;
    --cream-2: #f3e9df;
    --rose: #c48a79;
    --rose-deep: #a86e5d;
    --gold: #b08d57;
    --ink: #4a3b33;
    --ink-soft: #7a6a60;
    --line: #e7d9cc;
}

/* ===== 全域重設 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img {
    display: block;
    max-width: 100%;
}
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.section {
    padding: 110px 0;
}
.eyebrow {
    display: inline-block;
    letter-spacing: .35em;
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
}
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.35;
}
.title {
    font-size: 38px;
    margin-bottom: 20px;
    color: var(--ink);
}
.lead {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 640px;
}
.center {
    text-align: center;
}
.center .lead {
    margin-left: auto;
    margin-right: auto;
}

/* ===== 導航 ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 245, 239, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .15em;
    color: var(--rose-deep);
    flex-shrink: 0;
    text-decoration: none;
}
.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: .4em;
    color: var(--gold);
    font-weight: 600;
}

.menu {
    display: flex;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu a {
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    transition: color .2s;
}
.menu a:hover {
    color: var(--rose);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    margin-left: 16px;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: all .3s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-wrapper {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(250, 245, 239, .98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 20px 40px 32px;
    box-shadow: 0 16px 32px rgba(74, 59, 51, .08);
}
.mobile-menu-wrapper.open {
    display: block;
}
.mobile-menu-wrapper .menu {
    flex-direction: column;
    gap: 14px;
}
.mobile-menu-wrapper .menu a {
    font-size: 17px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(74, 59, 51, .55) 0%, rgba(74, 59, 51, .15) 60%, rgba(74, 59, 51, 0) 100%);
}
.hero-inner {
    position: relative;
    color: #fff;
    max-width: 560px;
}
.hero-inner .eyebrow {
    color: #f0d9c9;
}
.hero-inner h1 {
    font-size: 52px;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #fff;
}
.hero-inner p {
    font-size: 18px;
    color: #f6ece4;
    margin-bottom: 34px;
}
.btn {
    display: inline-block;
    background: var(--rose);
    color: #fff;
    text-decoration: none;
    padding: 15px 38px;
    border-radius: 999px;
    letter-spacing: .12em;
    font-size: 15px;
    transition: transform .2s, background .2s;
}
.btn:hover {
    background: var(--rose-deep);
    transform: translateY(-2px);
}
.btn.ghost {
    background: transparent;
    border: 1px solid #fff;
    margin-left: 14px;
}
.btn.ghost:hover {
    background: rgba(255, 255, 255, .15);
}

/* ===== ABOUT ===== */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.about .img-frame {
    position: relative;
}
.about img {
    border-radius: 8px;
    height: 460px;
    width: 100%;
    object-fit: cover;
}
.about .badge {
    position: absolute;
    bottom: -26px;
    right: -26px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px 28px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(74, 59, 51, .1);
}
.about .badge b {
    display: block;
    font-size: 34px;
    color: var(--rose-deep);
}
.about .badge span {
    font-size: 13px;
    color: var(--ink-soft);
    letter-spacing: .1em;
}

/* ===== SERVICES ===== */
.services {
    background: var(--cream-2);
}
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-top: 56px;
}
.card {
    background: var(--cream);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px rgba(74, 59, 51, .12);
}
.card img {
    height: 210px;
    width: 100%;
    object-fit: cover;
}
.card .body {
    padding: 26px 24px 30px;
}
.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.card p {
    font-size: 14.5px;
    color: var(--ink-soft);
}
.card .tag {
    font-size: 12px;
    color: var(--gold);
    letter-spacing: .25em;
    font-weight: 600;
}

/* ===== FEATURES ===== */
.feat {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 56px;
}
.feat-item {
    text-align: center;
    padding: 36px 26px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--cream);
}
.feat-num {
    font-size: 15px;
    letter-spacing: .3em;
    color: var(--gold);
    font-weight: 600;
}
.feat-item h3 {
    font-size: 21px;
    margin: 16px 0 12px;
}
.feat-item p {
    font-size: 14.5px;
    color: var(--ink-soft);
}

/* ===== ENVIRONMENT（全新左右排版） ===== */
.env {
    background: var(--cream-2);
}

.env-new-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 30px;
}

.env-text {
    flex: 0 0 38%;
    max-width: 38%;
    padding-left: 20px;
    border-left: 4px solid var(--gold);
}

.env-text .title {
    margin-bottom: 12px;
}

.env-text .lead {
    margin-left: 0;
    max-width: 100%;
}

.env-divider {
    width: 60px;
    height: 2px;
    background: var(--rose);
    margin: 20px 0 18px;
}

.env-grid-2x2 {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.grid-item {
    border-radius: 14px;
    overflow: hidden;
    background: #f5ece4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(74, 44, 17, 0.10);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1;
}

/* ===== PROCESS ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
}
.step {
    position: relative;
    padding: 34px 26px;
    background: var(--cream);
    border-radius: 10px;
    border: 1px solid var(--line);
}
.step .no {
    font-size: 44px;
    font-weight: 700;
    color: var(--cream-2);
    line-height: 1;
}
.step h3 {
    font-size: 19px;
    margin: 10px 0 10px;
}
.step p {
    font-size: 14px;
    color: var(--ink-soft);
}

/* ===== FAQ ===== */
.faq {
    background: var(--cream-2);
}
.faq-list {
    max-width: 820px;
    margin: 50px auto 0;
}
details {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 16px;
    padding: 6px 8px;
}
summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 22px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    content: "+";
    color: var(--rose);
    font-size: 24px;
    font-weight: 400;
}
details[open] summary::after {
    content: "–";
}
details p {
    padding: 0 22px 22px;
    color: var(--ink-soft);
    font-size: 15px;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--ink);
    color: #f6ece4;
}
.contact .eyebrow {
    color: var(--gold);
}
.contact .title {
    color: #fff;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    align-items: start;
}
.info-row {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.info-row .k {
    width: 96px;
    color: var(--gold);
    letter-spacing: .15em;
    font-size: 14px;
    flex-shrink: 0;
}
.info-row .v {
    font-size: 15.5px;
    color: #f6ece4;
}
.form-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    padding: 36px;
}
.form-card label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #e9d8cb;
}
.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
}
.form-card .btn {
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

/* ===== FOOTER ===== */
footer {
    background: #3a2e28;
    color: #c9b8ac;
    text-align: center;
    padding: 30px;
    font-size: 13px;
    letter-spacing: .1em;
}

/* ===== 響應式 ===== */
@media (max-width: 992px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about .badge {
        right: 0;
        bottom: -20px;
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .feat {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .mobile-menu-wrapper {
        display: none;
    }
    .wrap {
        padding: 0 20px;
    }
    .section {
        padding: 70px 0;
    }
    .hero {
        min-height: 100vh;
    }
    .hero-inner h1 {
        font-size: 34px;
    }
    .hero-inner p {
        font-size: 16px;
    }
    .title {
        font-size: 30px;
    }
    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .feat {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .about .badge {
        position: static;
        margin-top: 16px;
    }
    .about img {
        height: auto;
    }
    .contact-grid {
        gap: 32px;
    }
    .form-card {
        padding: 24px;
    }
    .info-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .info-row .k {
        width: 100%;
    }
    .btn.ghost {
        margin-left: 0;
        margin-top: 12px;
        display: inline-block;
    }
    .brand {
        font-size: 20px;
    }

    /* 環境區手機版 */
    .env-new-layout {
        flex-direction: column;
        gap: 30px;
    }
    .env-text {
        flex: 1 1 auto;
        max-width: 100%;
        padding-left: 0;
        border-left: none;
        text-align: center;
    }
    .env-divider {
        margin: 16px auto;
    }
    .env-grid-2x2 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .grid-item img {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 480px) {
    .hero-inner h1 {
        font-size: 28px;
    }
    .title {
        font-size: 26px;
    }
    .hero-inner .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 6px 0;
    }
    .hero-inner .btn.ghost {
        margin-left: 0;
    }
    .mobile-menu-wrapper {
        padding: 16px 20px 24px;
    }
    .env-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
