/* ============================================
   Silky Jade (帛瑪室內設計) - Official Styles
   Vanilla CSS3 - No Frameworks
   ============================================ */

/* === 1. Global Variables & Reset === */
:root {
    --bg-color: #F9F6F2;
    --text-primary: #5C4D42;
    --text-accent: #8C7A6B;
    --white: #FFFFFF;
    --black: #1A1A1A;

    --font-serif-en: 'Playfair Display', serif;
    --font-serif-zh: 'Noto Serif TC', serif;
    --font-sans: 'Noto Sans TC', sans-serif;

    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

ul {
    list-style: none;
}

/* === 2. Header & Navbar === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 4%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* About page: transparent header so right image bleeds behind nav */
body.about-page header {
    background: transparent;
}

header.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

.logo-link {
    display: block;
    line-height: 0;
}

.logo-link img {
    height: 40px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo-link:hover img {
    opacity: 0.6;
}

.main-nav {
    position: absolute;
    left: 51%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 90px;
}

.main-nav a {
    display: block;
    line-height: 0;
    transition: opacity 0.3s ease;
    border: none;
    text-decoration: none;
}

.main-nav a img {
    display: block;
    height: 10px;
    width: auto;
}

.main-nav a:nth-child(3) img {
    height: 13px;
}

.main-nav a:hover img {
    opacity: 0.6;
}

.ig-link {
    display: block;
    line-height: 0;
}

.ig-link img {
    height: 22px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.ig-link:hover img {
    opacity: 0.6;
}


/* === 3. Hero Section === */
.hero {
    position: relative;
    width: 100%;
    height: 112vh;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform-origin: center;
    transform: scale(1);
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero.is-active .hero-bg-img {
    transform: scale(1.04);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
    pointer-events: none;
}

.hero-slogan-center,
.hero-text-bottom-left,
.hero-text-bottom-right {
    position: absolute;
    z-index: 10;
    opacity: 0;
    transition: opacity 1.5s ease-in;
}

.hero-slogan-center img,
.hero-text-bottom-left img,
.hero-text-bottom-right img {
    display: block;
    max-width: 100%;
    height: auto;
}

.hero.is-active .hero-slogan-center,
.hero.is-active .hero-text-bottom-left,
.hero.is-active .hero-text-bottom-right {
    opacity: 1;
}

.hero-slogan-center {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: clamp(250px, 28vw, 450px);
    transition-delay: 0.2s;
}

.hero-text-bottom-left {
    bottom: 40px;
    left: 8%;
    width: clamp(150px, 15vw, 250px);
    transition-delay: 0.5s;
}

.hero-text-bottom-right {
    bottom: 40px;
    right: 8%;
    width: clamp(100px, 10vw, 180px);
    transition-delay: 0.8s;
}


/* === 4. Footer (Home Page) === */
footer {
    position: relative;
    width: 100%;
    background-image: url('home_png/HOME_Brown bottom#876752.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #876752;
    padding: 1.5rem 0;
    text-align: center;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content img {
    display: block;
    height: 12px;
    width: auto;
    opacity: 0.9;
}


/* === 5. Responsive Styles === */
@media (max-width: 768px) {
    header {
        padding: 20px 5%;
    }

    .main-nav {
        gap: 20px;
    }

    .main-nav a img {
        height: 12px;
    }

    .logo-link img {
        height: 32px;
    }

    .ig-link img {
        height: 18px;
    }

    .hero-slogan-center {
        left: 5%;
        width: 65%;
    }

    .hero-text-bottom-left {
        left: 5%;
        bottom: 50px;
        width: 40%;
    }

    .hero-text-bottom-right {
        right: 5%;
        bottom: 50px;
        width: 25%;
    }

    footer {
        padding: 1rem 0;
    }
}


/* =============================================
   ABOUT PAGE STYLES
   ============================================= */

body.about-page {
    background-color: #EEE9E4;
    background-image: url('about_png/ABOUT_ABOUT.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    color: #5C4D42;
    overflow-y: auto;
    height: auto;
}

/* ---------- Scroll Fade-in Animation ---------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* 純 opacity 淡入（無位移），用於文字圖片 */
.fade-in {
    opacity: 0;
    transition: opacity 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.is-visible {
    opacity: 1;
}

/* ---------- About Global ---------- */
.about-section {
    padding: 100px 10%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
}

.about-section .row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 5%;
}

.col-left,
.col-right {
    position: relative;
    flex-shrink: 0;
}

/* Force all images inside columns to be responsive */
.about-section img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Image-based text sizing */
.section-title-img {
    display: block;
    height: auto;
    margin-bottom: 18px;
}

.section-text-img {
    display: block;
    height: auto;
    margin-bottom: 12px;
}


/* =============================================
   Section 1: OUR CONCEPT
   ============================================= */
.concept-section {
    padding: 0 0 100px 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

.concept-section .row {
    align-items: flex-start;
    gap: 0;
}

.concept-left {
    width: 56.25%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding-top: 272px;
    padding-left: calc(max(40px, 8.5%) + 17px);
    padding-right: 5%;
}

/* 小圖 wrapper + ::before 錯位色塊 */
.concept-img-wrapper {
    position: relative;
    width: 40%;
    height: 284px;
    margin-bottom: 40px;
    isolation: isolate;
}

.concept-img-wrapper::before {
    content: '';
    position: absolute;
    left: 59%;
    top: calc(18% + 5px);
    width: 90%;
    height: calc(101% - 35px);
    background-color: #DDD2CA;
    z-index: -1;
}

.concept-drawer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.concept-text {
    position: absolute;
    left: 149px;
    top: 628px;
}

.concept-text .section-title-img {
    width: 182px;
    height: 63px;
    margin-bottom: 28px;
}

.concept-text .section-text-img {
    width: 369px;
    margin-top: 50px;
}

.concept-right {
    width: 43.75%;
    flex-shrink: 0;
    margin-top: 0;
}

.concept-table-img {
    width: 100%;
    height: 839px;
    object-fit: cover;
    object-position: center top;
    display: block;
}


/* =============================================
   Section 2: COMFORTABLE THOUGHTFUL TOUCHING
   ============================================= */
.touching-section {
    padding-top: 40px;
    padding-bottom: 60px;
    padding-left: calc(max(40px, 8.5%) - 30px);
}

.touching-left {
    width: 515px;
    flex-shrink: 0;
}

.touching-arch-wrapper {
    position: relative;
    width: 515px;
}

.touching-color-block {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 45%;
    height: auto;
    z-index: 0;
    display: block;
}

.touching-arch-img {
    width: 515px;
    height: 686px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.touching-right {
    width: 45%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


.touching-content-wrapper {
    width: 80%;
    margin-left: auto;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.touching-plant-img {
    width: 258px;
    height: 258px;
    object-fit: cover;
    display: block;
    margin-left: 30px;
    margin-top: 73px;
    margin-bottom: 30px;
}

.touching-content-wrapper .section-text-img {
    width: 320px;
    margin-left: 35px;
}

.comfortable-title-img {
    width: 260px;
    margin-top: 135px;
    margin-left: 255px;
}


/* =============================================
   Section 3: HERE
   ============================================= */
.here-section {
    padding: 60px 0 80px 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

.here-section .row {
    align-items: flex-start;
    gap: 0;
}

.here-left {
    width: 28%;
    flex-shrink: 0;
    position: relative;
    padding-top: 40px;
    padding-left: 10%;
}

/* 弧線裝飾：左上方 */
.deco-arc-left {
    display: none;
}

.here-title-img {
    width: 90px;
    position: relative;
    top: 40px;
}

.here-text {
    margin-top: 70px;
    position: relative;
    left: -25px;
    top: 100px;
}

.here-text .section-text-img {
    width: 200px;
    position: relative;
    top: 160px;
}

.here-right {
    width: 72%;
    flex-shrink: 0;
}

/* 大圖 wrapper + ::before 錯位色塊 */
.here-img-wrapper {
    position: relative;
    width: 100%;
    isolation: isolate;
    overflow: visible;
}

.here-img-wrapper::before {
    content: '';
    position: absolute;
    top: 465px;
    left: -30px;
    width: 24%;
    height: 41.25%;
    background-color: #DDD2CB;
    z-index: -1;
}

.here-sofa-img {
    width: 100%;
    height: 674px;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    top: 22px;
    z-index: 1;
}


/* =============================================
   Section 4: INTRODUCTION (Director Layout)
   ABOUT_image-6.png = 完整背景構圖（含照片+光影+左側色板）
   用 <img> 撐高，其餘元素 absolute 疊在上面，不裁切
   ============================================= */
.section-intro {
    position: relative;
    margin-top: 100px;
    margin-bottom: 130px;
}

/* 背景大圖：撐開 section 的真實高度 */
.intro-bg-img {
    display: block;
    width: 100%;
    height: auto;
}

/* 左覆蓋層：44%，涵蓋全高 */
.intro-left-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 44%;
    height: 100%;
}

/* 垂直 INTRODUCTION 圖片 */
.img-vertical-text {
    position: absolute;
    left: calc(3% + 75px);
    top: calc(68% + 30px);
    transform: translateY(-50%);
    width: 22px;
    height: auto;
}

/* 斜體簽名：INTRODUCTION 右邊 50px，垂直對齊 */
.img-signature-side {
    position: absolute;
    left: calc(3% + 75px + 22px + 152px);
    top: calc(68% + 100px);
    transform: translateY(-50%);
    width: 205px;
    height: auto;
}

/* Aria Tseng 簽名圖片 */
.img-signature {
    position: absolute;
    bottom: 20%;
    left: 24%;
    width: 140px;
    height: auto;
}

/* 右欄：56% 寬，文字圖片垂直堆疊 */
.intro-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 56%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5% 8%;
    gap: 18px;
}

.img-eng-quote {
    width: 430px;
    max-width: 100%;
    height: auto;
    display: block;
    position: relative;
    top: -50px;
    left: 60px;
}

.img-zh-quote {
    width: 480px;
    max-width: 100%;
    height: auto;
    display: block;
    position: relative;
    top: -30px;
    left: 60px;
}

.director-row {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    top: 70px;
    left: 60px;
    margin-top: 16px;
}

.img-director-title {
    width: 100px;
    height: auto;
    display: block;
}

.img-aria-name {
    width: 110px;
    height: auto;
    display: block;
}

.img-director-desc {
    width: 500px;
    max-width: 100%;
    height: auto;
    display: block;
    position: relative;
    top: 110px;
    left: 60px;
}


/* =============================================
   Footer (About Page)
   ============================================= */
.site-footer {
    background-image: url('about_png/ABOUT_Brown bottom#876752.png');
    background-size: cover;
    background-position: center;
    background-color: #876752;
    padding: 24px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left img {
    height: 40px;
    width: auto;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 90px;
}

.footer-nav a {
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
}

.footer-nav a img {
    height: 10px;
    width: auto;
}

.footer-nav a:nth-child(3) img {
    height: 13px;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-right img {
    height: 26px;
    width: auto;
    margin-top: 6px;
    margin-left: 15px;
}


/* =============================================
   Projects Page
   ============================================= */

.projects-main {
    padding-top: 95px;
}

/* 每個區塊之間的留白（露出米色底色） */
.projects-main > * {
    margin-bottom: 75px;
}
.projects-main > *:last-child {
    margin-bottom: 0;
}

body.projects-page .site-footer {
    margin-top: 160px;
}

/* 全寬橫幅圖：image-1 / image-5 / image-8 */
.project-hero,
.project-photo-full {
    position: relative;
    width: 100%;
}

.project-hero img.project-photo,
.project-photo-full img.project-photo {
    width: 100%;
    height: auto;
    display: block;
}

/* 標題 caption：左下角疊圖 */
.project-caption {
    position: absolute;
    bottom: 36px;
    left: 48px;
}

.project-caption img {
    width: 200px;
    height: auto;
    display: block;
}

/* 三欄直式細節圖 */
.project-row-3 {
    display: flex;
    width: 100%;
    gap: 0;
}

.project-row-3 img {
    width: 33.333%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 兩欄直式細節圖 */
.project-row-2 {
    display: flex;
    width: 100%;
    gap: 0;
}

.project-row-2 img {
    width: 50%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 規格 + 描述文字區 */
.project-info {
    display: flex;
    gap: 100px;
    padding: 80px 10%;
    align-items: flex-start;
    background-color: var(--bg-color);
}

.project-specs img {
    width: 260px;
    height: auto;
    display: block;
}

.project-desc {
    flex: 1;
}

.project-desc img {
    width: 100%;
    max-width: 620px;
    height: auto;
    display: block;
}

/* =============================================
   Project Detail Page
   ============================================= */

.project-detail-main {
    padding-top: 120px;
}

.project-detail-full {
    line-height: 0;
}

.project-detail-full img {
    width: 100%;
    height: auto;
    display: block;
}

.project-detail-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 70px 8%;
}

.project-detail-row-3 img:first-child {
    transform: translateX(-10px);
}

.project-detail-row-3 img:last-child {
    transform: translateX(10px);
}

.project-detail-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 90px 9%;
}

.project-detail-row-2 img:first-child {
    transform: translateX(-22px);
}

.project-detail-row-2 img:last-child {
    transform: translateX(22px);
}

.project-detail-row-3 img,
.project-detail-row-2 img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.project-detail-info {
    background-color: #DDD2CA;
    padding: 103px 6% 137px;
}

.project-detail-nav-btns {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 48px;
}

.project-nav-btn {
    display: block;
    line-height: 0;
    transition: opacity 0.3s;
    transform: translate(30px, -45px);
}

.project-nav-btn:hover {
    opacity: 0.7;
}

.project-nav-btn img {
    height: 22px;
    width: auto;
    display: block;
}

.project-detail-content {
    display: flex;
    align-items: flex-start;
    gap: 5%;
}

.project-detail-title {
    width: 14%;
    flex-shrink: 0;
    transform: translateX(30px);
}

.project-detail-title img {
    width: 100%;
    height: auto;
    display: block;
}

.project-detail-specs {
    width: 16%;
    flex-shrink: 0;
    transform: translate(60px, -14px);
}

.project-detail-specs img {
    width: 100%;
    height: auto;
    display: block;
}

.project-detail-desc {
    flex: 1;
}

.project-detail-desc img {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;
    transform: translate(55px, -19px);
}

/* Hover effect on projects page clickable photos */
.project-photo-full a {
    display: block;
    line-height: 0;
    overflow: hidden;
}

.project-photo-full a img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-photo-full a:hover img {
    transform: scale(1.02);
}


/* =============================================
   Services Page
   ============================================= */

body.services-page {
    background-color: #F0EBE7;
}

.services-main {
    padding-top: 80px;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.services-pdf {
    width: 100%;
    flex: 1;
    border: none;
    display: block;
}

.services-title-wrap {
    text-align: center;
    margin-bottom: 70px;
}

.services-title-img {
    display: block;
    width: 16%;
    min-width: 160px;
    height: auto;
    margin: 0 auto;
}

/* Timeline */
.services-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.services-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #9E8575;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-row {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    align-items: flex-start;
    margin-bottom: 80px;
    position: relative;
}

.timeline-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
    position: relative;
    z-index: 1;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #9E8575;
}

.timeline-left {
    padding-right: 55px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.timeline-right {
    padding-left: 55px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.services-illustration {
    max-width: 220px;
    width: 70%;
    height: auto;
    display: block;
}

.services-floorplan {
    max-width: 280px;
    width: 85%;
}

.step-num-img {
    height: 20px;
    width: auto;
    display: block;
    margin-bottom: 10px;
}

.step-title-img {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.step-subtitle-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
}

.step-desc-img {
    max-width: 380px;
    width: 100%;
    height: auto;
    display: block;
}


/* =============================================
   Responsive — About Page
   ============================================= */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 5%;
    }

    .about-section .row {
        flex-wrap: wrap;
    }

    .concept-left,
    .concept-right,
    .touching-left,
    .touching-right,
    .here-left,
    .here-right,
    .intro-left,
    .intro-right {
        width: 100%;
        margin-bottom: 40px;
    }

    /* Mobile: INTRODUCTION section */
    .section-intro {
        flex-direction: column;
        min-height: auto;
        margin-top: 60px;
        background-position: left center;
    }

    .intro-left-overlay {
        width: 100%;
        min-height: 320px;
    }

    .intro-right {
        width: 100%;
        padding: 40px 6%;
    }

    .img-signature {
        width: 110px;
        left: 30px;
        bottom: 20px;
    }

    .concept-right {
        margin-top: 0;
    }

    .concept-img-wrapper,
    .touching-content-wrapper {
        width: 100%;
    }

    .deco-arc {
        display: none;
    }

    .site-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}