/* =========================
   基本設定
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Noto Serif TC",
        "Microsoft JhengHei",
        sans-serif;

    color: #222;
    background: #f7f6f2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}


/* =========================
   導覽列
========================= */

.header {
    height: 86px;

    display: flex;
    align-items: center;

    padding: 0 6%;

    background: #f7f6f2;

    position: sticky;
    top: 0;
    z-index: 1000;

    border-bottom: 1px solid #ddd;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-mark {
    width: 45px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 23px;
    letter-spacing: 4px;
}

.logo-text span {
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 1px;
}

.nav {
    margin-left: auto;

    display: flex;
    gap: 35px;

    font-size: 14px;
}

.nav a {
    position: relative;
}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: #222;

    transition: 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.booking-btn {

    margin-left: 40px;

    padding: 14px 25px;

    background: #232629;
    color: white;

    border-radius: 30px;

    font-size: 14px;
}


/* =========================
   Hero
========================= */

.hero {
    min-height: 650px;

    position: relative;

    display: flex;
    align-items: center;

    padding: 70px 6%;

    background-image: url("images/hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8, 15, 24, 0.82) 0%,
            rgba(8, 15, 24, 0.45) 55%,
            rgba(8, 15, 24, 0.08) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 650px;

    color: white;
}

.hero-small {
    font-size: 12px;
    letter-spacing: 5px;

    opacity: 0.8;
}

.hero h1 {
    margin: 10px 0 10px;

    font-size: clamp(36px, 3.5vw, 58px);

    font-weight: 400;

    letter-spacing: 4px;

    white-space: nowrap;
}
 
.hero h1 span {
    font-weight: 200;

    margin: 0 10px;
}

.hero h2 {
    font-size: 28px;

    font-weight: 400;

    letter-spacing: 3px;
}

.hero p {
    line-height: 1.9;
}

.hero-services {
    margin-top: 25px;
}

.outline-btn {
    display: inline-block;

    margin-top: 30px;

    border: 1px solid white;

    padding: 14px 25px;

    transition: 0.3s;
}

.outline-btn:hover {
    color: #222;
    background: white;
}


/* =========================
   共用 Section
========================= */

.section {
    padding: 80px 6%;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 45px;

    border-bottom: 1px solid #ccc;

    padding-bottom: 15px;
}

.section-title > div {
    display: flex;
    align-items: baseline;
    gap: 25px;
}

.section-title span {
    font-family: Georgia, serif;

    font-size: 24px;
}

.section-title h2 {
    margin: 0;

    font-size: 26px;
    font-weight: 400;
}


/* =========================
   服務
========================= */

.services {
    background: #f7f6f2;
}

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);
}

.service-item {
    padding: 20px;

    text-align: center;

    border-right: 1px solid #ddd;
}

.service-item:last-child {
    border-right: none;
}

.service-icon {
    font-size: 42px;

    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 17px;

    margin-bottom: 10px;

    font-weight: 500;
}

.service-item p {
    color: #777;

    line-height: 1.8;

    font-size: 13px;
}


/* =========================
   作品
========================= */

.works {
    background: white;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.work {
    position: relative;

    height: 330px;

    overflow: hidden;
}

.work-large {
    grid-column: span 1;
}

.work img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.work:hover img {
    transform: scale(1.04);
    filter: brightness(0.82);
}

.work::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            transparent 50%,
            rgba(0, 0, 0, 0.7)
        );
}

.work-text {
    position: absolute;

    left: 25px;
    bottom: 20px;

    z-index: 2;

    color: white;
}

.work-text h3 {
    margin: 0 0 5px;

    font-size: 21px;
}

.work-text p {
    margin: 0;

    font-size: 13px;
}


/* =========================
   關於
========================= */

.about {
    display: grid;

    grid-template-columns:
        1fr 1.2fr 0.8fr;

    min-height: 300px;
}

.about-title {
    padding: 60px;

    background:
        linear-gradient(
            rgba(214, 198, 177, 0.75),
            rgba(214, 198, 177, 0.75)
        ),
        url("images/wood.jpg");

    background-size: cover;
}

.about-title h2 {
    font-size: 35px;

    margin: 8px 0;
}

.about-title p {
    font-size: 12px;

    letter-spacing: 2px;
}

.about-content {
    padding: 60px;

    background: #f2f0ea;

    line-height: 2;
}

.outline-dark-btn {
    display: inline-block;

    margin-top: 15px;

    border: 1px solid #333;

    padding: 10px 22px;
}

.about-quote {
    padding: 60px;

    background: #e5e4df;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-quote p {
    font-size: 26px;

    line-height: 1.7;
}

.about-quote span {
    color: #777;

    font-family: Georgia, serif;
}


/* =========================
   Footer
========================= */

.footer {
    background: #22282d;

    color: white;

    padding: 50px 6%;

    display: grid;

    grid-template-columns:
        1fr 1fr 1fr;

    gap: 50px;
}

.footer-brand h2 {
    letter-spacing: 4px;
}

.footer-brand p,
.footer-slogan span,
.footer-contact {
    color: #ccc;

    font-size: 13px;
}

.copyright {
    background: #22282d;

    color: #999;

    border-top: 1px solid #555;

    padding: 20px 6%;

    display: flex;
    justify-content: space-between;

    font-size: 11px;
    letter-spacing: 1px;
}


/* =========================
   平板
========================= */

@media (max-width: 1000px) {

    .nav {
        display: none;
    }

    .service-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .works-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .about {
        grid-template-columns: 1fr;
    }

}


/* =========================
   手機
========================= */

@media (max-width: 600px) {

    .header {
        height: 70px;

        padding: 0 20px;
    }

    .logo-text strong {
        font-size: 18px;
    }

    .logo-text span,
    .logo-mark,
    .booking-btn {
        display: none;
    }

    .hero {
        min-height: 620px;

        padding: 60px 25px;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 1.4;
    }

    .hero h2 {
        font-size: 21px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;
    }

    .section-title > div {
        flex-direction: column;

        gap: 5px;
    }

    .service-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .service-item {
        border-bottom: 1px solid #ddd;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .work {
        height: 280px;
    }

    .about-title,
    .about-content,
    .about-quote {
        padding: 40px 25px;
    }

    .footer {
        grid-template-columns: 1fr;

        padding: 50px 25px;
    }

    .copyright {
        flex-direction: column;

        padding: 20px 25px;
    }

}

/* ===== 桌機版視覺微調 ===== */

@media (min-width: 1001px) {
    
    .header {
    height: 100px;
    padding: 0 6%;
}

    /* Logo */
    .logo-mark {
        width: 65px;
        height: 65px;
    }

    .logo-text strong {
        font-size: 26px;
        letter-spacing: 4px;
    }

    .logo-text span {
        font-size: 11px;
    }

    /* 導覽列 */
    .nav {
        font-size: 16px;
        gap: 34px;
    }

    /* 預約按鈕 */
    .booking-btn {
        font-size: 15px;
        padding: 14px 27px;
    }

    /* Hero 左側文字 */
    .hero-content {
        max-width: 720px;
    }

    .hero h1 {
        font-size: 54px;
    }

    .hero h2 {
        font-size: 27px;
    }

    .hero-content p {
        font-size: 15px;
    }

    /* 服務項目 */
    .service-item h3 {
        font-size: 17px;
    }

    .service-item p {
        font-size: 14px;
    }

}
/* =========================
   作品案例頁
========================= */

.project-page {
    background: #fff;
}

.project-hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.08)
        );
}

.project-hero-text {
    position: absolute;

    left: 7%;
    bottom: 12%;

    z-index: 2;

    color: white;
}

.project-hero-text p {
    font-size: 12px;
    letter-spacing: 4px;
}

.project-hero-text h1 {
    margin: 10px 0;

    font-size: 48px;
    font-weight: 400;
    letter-spacing: 4px;
}

.project-hero-text span {
    font-size: 16px;
    letter-spacing: 2px;
}

.project-info {
    display: grid;
    grid-template-columns: 1fr 1.4fr;

    gap: 80px;

    padding: 80px 7%;
}

.project-info span {
    font-size: 12px;
    letter-spacing: 3px;
    color: #777;
}

.project-info h2 {
    font-size: 32px;
    font-weight: 400;
}

.project-info p {
    line-height: 2;
    font-size: 16px;
    color: #555;
}
/* =========================
   作品案例照片集
========================= */

.project-gallery {
    padding: 0 7% 100px;
    background: #fff;
}

.project-gallery-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.project-gallery-full {
    margin-bottom: 8px;
}

.project-gallery img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.project-gallery-two img {
    height: 480px;
}

.project-gallery-full img {
    height: 650px;
}


/* 手機版作品案例 */

@media (max-width: 600px) {

    .project-gallery {
        padding: 0 20px 60px;
    }

    .project-gallery-two {
        grid-template-columns: 1fr;
    }

    .project-gallery-two img,
    .project-gallery-full img {
        height: auto;
    }

}
/* =========================
   作品底部導覽
========================= */

.project-navigation {
    min-height: 180px;
    padding: 0 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #f3f1ec;
    border-top: 1px solid #ddd;
}

.project-nav-back,
.project-nav-next {
    display: flex;
    align-items: center;
    gap: 20px;

    transition: opacity 0.3s ease;
}

.project-nav-back:hover,
.project-nav-next:hover {
    opacity: 0.55;
}

.project-nav-back {
    font-size: 15px;
    letter-spacing: 1px;
}

.project-nav-next {
    text-align: right;
}

.project-nav-next div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-nav-next small {
    color: #888;
    font-size: 10px;
    letter-spacing: 3px;
}

.project-nav-next strong {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
}

.project-nav-back > span,
.project-nav-next > span {
    font-size: 26px;
}


/* =========================
   Project 手機版
========================= */

/* =========================
   首頁 Hero 手機版
========================= */

/* =========================
   首頁 Hero 手機版
========================= */

@media (max-width: 600px) {

    .hero-content {
        width: auto !important;
        max-width: none !important;
        left: 20px !important;
        right: 20px !important;
    }

    .hero h1 {
        font-size: 30px !important;
        line-height: 1.3 !important;
        letter-spacing: 0 !important;

        white-space: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
    }

}
/* =========================
   手機版 Header
========================= */

/* 電腦版隱藏漢堡按鈕 */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {

    .header {
        height: 76px;
        padding: 0 22px;

        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* 手機隱藏桌機導覽 */
    .header .nav,
    .header .booking-btn {
        display: none;
    }

    /* 手機顯示漢堡按鈕 */
    .mobile-menu-btn {
        display: block;

        margin-left: auto;
        padding: 0;

        border: none;
        background: transparent;

        font-size: 26px;
        line-height: 1;
        cursor: pointer;
    }

}
/* =========================
   手機版展開選單
========================= */

/* 預設隱藏手機選單 */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {

    .mobile-menu {
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;

        background: #f3f1ec;
        padding: 25px 22px 30px;

        flex-direction: column;
        gap: 0;

        z-index: 999;
        border-top: 1px solid #ddd;
    }

    .mobile-menu a {
        display: block;
        padding: 15px 0;

        font-size: 15px;
        letter-spacing: 2px;

        border-bottom: 1px solid #ddd;
    }

    .mobile-menu .mobile-booking-btn {
        margin-top: 18px;
        padding: 14px 20px;

        text-align: center;
        border: 1px solid #222;
    }

}