/**
 * Mooi Beauty Hair - 美髮沙龍網站樣式
 * Author: 紀孟勳 (Bryantchi.work@gmail.com)
 * Description: 奶茶杏色系主題，優雅細緻無圓角設計，參考 piepie-hair
 */

/* ============================================
   根變數設定 (CSS Variables)
   ============================================ */
:root {
    /* 主色調 - 奶茶杏色系 */
    --primary-color: #C4A574;
    --primary-light: #E0C9A0;
    --primary-dark: #9A7B4F;

    /* 輔助色 */
    --secondary-color: #8B7355;
    --accent-color: #F5EBD8;
    --cream-color: #FAF6F1;
    --dark-brown: #524c40;
    --darker-brown: #343223;

    /* 中性色 */
    --text-dark: #343223;
    --text-medium: #666666;
    --text-light: #999999;
    --white: #FFFFFF;
    --light-bg: #FFFBF5;
    --dark-bg: #343223;

    /* 字體 */
    --font-primary: 'Noto Sans TC', 'Noto Serif TC', sans-serif;
    --font-secondary: 'Cinzel', serif;
    --font-eng: 'Prata', serif;

    /* 陰影 - 更細緻柔和 */
    --shadow-sm: 0 1px 3px rgba(82, 76, 64, 0.08);
    --shadow-md: 0 2px 8px rgba(82, 76, 64, 0.12);
    --shadow-lg: 0 4px 16px rgba(82, 76, 64, 0.15);

    /* 轉場動畫 */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ============================================
   全域樣式重置
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: 400;
}

/* 確保容器正常顯示 */
.container {
    overflow: visible;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

/* 文字選取顏色 */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--white);
}

.eng {
    font-family: var(--font-eng);
    font-weight: 400;
}

/* ============================================
   導航列 (Navbar) - 無圓角優雅設計
   ============================================ */
.navbar {
    padding: 1.5rem 0;
    transition: var(--transition-base);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: none;
    border-bottom: 1px solid rgba(196, 165, 116, 0.15);
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(82, 76, 64, 0.08);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-dark) !important;
    transition: var(--transition-base);
    letter-spacing: 2px;
    font-family: var(--font-eng);
}

.brand-text {
    position: relative;
    display: inline-block;
}

.brand-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition-base);
}

.navbar-brand:hover .brand-text::after {
    width: 100%;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 400;
    padding: 0.5rem 1.5rem !important;
    transition: var(--transition-base);
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: 1px solid var(--primary-color);
    padding: 0.4rem 0.7rem;
    border-radius: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 1px solid var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C4A574' stroke-linecap='square' stroke-miterlimit='10' stroke-width='1.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .nav-link::after {
        left: 15%;
        transform: translateX(-15%);
    }
}

/* ============================================
   Hero 區塊 - 優雅無圓角設計
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(250, 246, 241, 0.55), rgba(224, 201, 160, 0.5)), url('../img/hero/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(250, 246, 241, 0.95) 0%,
        rgba(224, 201, 160, 0.9) 50%,
        rgba(196, 165, 116, 0.85) 100%);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(196, 165, 116, 0.03) 2px, rgba(196, 165, 116, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(196, 165, 116, 0.03) 2px, rgba(196, 165, 116, 0.03) 4px);
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, transparent 0%, rgba(82, 76, 64, 0.05) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero-content::before,
.hero-content::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 1px;
    background-color: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
}

.hero-content::before {
    top: 0;
}

.hero-content::after {
    bottom: 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 400;
    color: var(--darker-brown);
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
    line-height: 1.4;
    font-family: var(--font-eng);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 4px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
    letter-spacing: 1em;
    font-weight: 300;
    padding: 0 1rem;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.hero-buttons .btn {
    padding: 1rem 3rem;
    font-size: 0.95rem;
    border-radius: 0;
    transition: var(--transition-base);
    font-weight: 400;
    letter-spacing: 2px;
    box-shadow: none;
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: var(--dark-brown);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    display: inline-block;
    opacity: 0.6;
    transition: var(--transition-base);
}

.scroll-indicator a:hover {
    opacity: 1;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

/* ============================================
   按鈕樣式 - 無圓角方形設計
   ============================================ */
/* 確保所有按鈕都沒有圓角 */
.btn,
.btn-primary,
.btn-outline-primary,
.btn-outline-light,
.btn-lg {
    border-radius: 0 !important;
}

.btn-primary {
    background-color: var(--dark-brown);
    border: 2px solid var(--dark-brown);
    color: var(--white);
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    right: -8px;
    bottom: -8px;
    border: 1px solid rgba(196, 165, 116, 0.4);
    z-index: -1;
    transition: var(--transition-base);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translate(-4px, -4px);
    color: var(--white);
}

.btn-primary:hover::after {
    right: -4px;
    bottom: -4px;
    border-color: var(--primary-color);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background-color: transparent;
}

.btn-outline-light::after {
    content: '';
    position: absolute;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    right: -8px;
    bottom: -8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: -1;
    transition: var(--transition-base);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translate(-4px, -4px);
}

.btn-outline-light:hover::after {
    right: -4px;
    bottom: -4px;
    border-color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    position: relative;
}

.btn-outline-primary::after {
    content: '';
    position: absolute;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    right: -8px;
    bottom: -8px;
    border: 1px solid rgba(196, 165, 116, 0.3);
    z-index: -1;
    transition: var(--transition-base);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translate(-4px, -4px);
}

.btn-outline-primary:hover::after {
    right: -4px;
    bottom: -4px;
    border-color: var(--primary-color);
}

/* ============================================
   區塊標題 - 優雅裝飾設計
   ============================================ */
.section-title {
    margin-bottom: 4rem;
    position: relative;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-eng);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 0.5px;
    background-color: var(--primary-color);
}

.section-title .divider {
    width: 100px;
    height: 0.5px;
    background-color: var(--primary-color);
    display: inline-block;
    margin: 0 20px;
}

/* ============================================
   關於我們區塊 - 重新設計
   ============================================ */
.about-section {
    background-color: var(--light-bg);
    padding: 6rem 0;
    position: relative;
}

/* 品牌理念區塊 */
.about-brand-philosophy {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    border: 1px solid rgba(196, 165, 116, 0.4);
    margin: 0 0 0 12px;
}

.about-brand-philosophy::before {
    content: '';
    position: absolute;
    top: 12px;
    right: -12px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(196, 165, 116, 0.3);
    z-index: -1;
    pointer-events: none;
    transition: var(--transition-base);
}

.about-brand-philosophy:hover::before {
    top: 8px;
    right: -8px;
    border-color: rgba(255, 255, 255, 0.4);
}

.philosophy-content {
    position: relative;
}

.philosophy-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: 8px;
    font-family: var(--font-primary);
}

.philosophy-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0;
}

/* 服務特色卡片 */
.about-feature-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(196, 165, 116, 0.25);
    transition: var(--transition-base);
    height: 100%;
    position: relative;
    margin: 0 0 0 10px;
}

.about-feature-card::before {
    content: '';
    position: absolute;
    top: 10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(196, 165, 116, 0.2);
    z-index: -1;
    pointer-events: none;
    transition: var(--transition-base);
}

.about-feature-card:hover {
    transform: translate(-2px, -2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(82, 76, 64, 0.12);
}

.about-feature-card:hover::before {
    top: 6px;
    right: -6px;
    border-color: var(--primary-color);
    opacity: 0.5;
}

.feature-card-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(196, 165, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(196, 165, 116, 0.2);
}

.feature-card-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.about-feature-card h4 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.about-feature-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin: 0;
}

/* 核心價值 */
.about-values {
    padding: 3rem 0;
}

.value-item {
    padding: 2rem 1.5rem;
    transition: var(--transition-base);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition-base);
}

.value-item:hover .value-icon {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.value-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition-base);
}

.value-item:hover .value-icon i {
    color: var(--white);
}

.value-item h5 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.6;
}

/* 優惠訊息大卡片 */
.promotion-box-large {
    background-color: var(--dark-brown);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 1px solid rgba(196, 165, 116, 0.4);
    position: relative;
    margin-left: 12px;
}

.promotion-box-large::before {
    content: '';
    position: absolute;
    top: 12px;
    right: -12px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(196, 165, 116, 0.25);
    z-index: -1;
    pointer-events: none;
    transition: var(--transition-base);
}

.promotion-box-large:hover {
    transform: translate(-2px, -2px);
}

.promotion-box-large:hover::before {
    top: 8px;
    right: -8px;
    border-color: var(--primary-color);
    opacity: 0.5;
}

.promotion-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promotion-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.promotion-content h4 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.promotion-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 1px;
}


/* ============================================
   服務項目區塊 - 簡潔優雅設計
   ============================================ */
.services-section {
    padding: 6rem 0;
    background-color: var(--white);
    position: relative;
    background: linear-gradient(135deg, rgba(252, 247, 236, 0.55), rgba(194, 187, 174, 0.55)), url('../img/services/service.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 3rem 2rem;
    border-radius: 0;
    transition: var(--transition-base);
    height: 100%;
    box-shadow: none;
    border: 1px solid rgba(196, 165, 116, 0.15);
    position: relative;
}

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(82, 76, 64, 0.08);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 0;
    padding: 1rem;
    box-shadow: none;
    transition: var(--transition-base);
}

.service-icon img {
    width: 100%;
    height: auto;
    filter: opacity(0.8);
    transition: var(--transition-base);
}

.service-card:hover .service-icon img {
    filter: opacity(1);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.service-card h4 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-points {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 0;
    margin-top: 1.5rem;
    box-shadow: none;
    border: 1px solid rgba(196, 165, 116, 0.2);
}

.service-points h5 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-points ul {
    list-style: none;
    padding-left: 0;
}

.service-points ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.9rem;
}

.service-points ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: normal;
}

/* ============================================
   設計師區塊
   ============================================ */
.designers-section {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.designer-card {
    background-color: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(82, 76, 64, 0.08);
    transition: var(--transition-base);
    border: 1px solid rgba(196, 165, 116, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.designer-card:hover {
    box-shadow: 0 8px 30px rgba(82, 76, 64, 0.15);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.designer-image {
    position: relative;
    overflow: hidden;
    height: 450px;
}

.designer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.designer-card:hover .designer-image img {
    transform: scale(1.08);
}

.designer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 165, 116, 0.95) 0%, rgba(82, 76, 64, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
    z-index: 1;
}

.designer-card:hover .designer-overlay {
    opacity: 1;
}

.designer-social {
    display: flex;
    gap: 2rem;
}

.designer-social a {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 1px solid var(--white);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    transition: var(--transition-base);
    box-shadow: none;
}

.designer-social a:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.designer-info {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.designer-info h3 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.designer-bio {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.designer-specialty {
    margin-bottom: 2rem;
}

.designer-specialty h5 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.specialty-tags .tag {
    background-color: rgba(245, 235, 216, 0.5);
    color: var(--secondary-color);
    padding: 0.4rem 1rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid rgba(196, 165, 116, 0.3);
    transition: var(--transition-base);
}

.specialty-tags .tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.designer-promotion {
    background-color: rgba(196, 165, 116, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 0;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-left: 3px solid var(--primary-color);
}

.designer-promotion i {
    color: var(--primary-color);
    margin-right: 0.7rem;
    font-size: 1rem;
}

.designer-contact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.designer-contact .btn {
    flex: 1;
    min-width: 140px;
    font-size: 0.9rem;
}

/* ============================================
   作品集區塊 - 參考 piepie-hair Isotope 設計
   ============================================ */
.gallery-section {
    padding: 6rem 0;
    background-color: var(--white);
    position: relative;
}

.gallery-section .container {
    overflow: visible;
}

.gallery-filters {
    margin-bottom: 3rem;
}

.filter-btn {
    background-color: rgba(250, 250, 252, 0.6);
    border: none;
    color: var(--text-dark);
    padding: 0.6rem 1.5rem;
    margin: 0.3rem;
    border-radius: 0;
    font-weight: 400;
    transition: var(--transition-base);
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--darker-brown);
    color: var(--white);
}

.gallery-grid .row {
    margin-left: 0;
    margin-right: 0;
}


.gallery-item-inner {
    position: relative;
    margin: 0 0 0 10px;
    border: 1px solid rgba(196, 165, 116, 0.25);
    background-color: var(--white);
    transition: var(--transition-base);
    height: 100%;
}

.gallery-item-inner::before {
    content: '';
    position: absolute;
    top: 10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(196, 165, 116, 0.2);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition-base);
}

.gallery-item-inner:hover {
    transform: translate(-2px, -2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(82, 76, 64, 0.12);
}

.gallery-item-inner:hover::before {
    top: 6px;
    right: -6px;
    border-color: var(--primary-color);
    opacity: 0.5;
}

.gallery-item a {
    display: block;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.95;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(82, 76, 64, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
    padding-bottom: 2rem;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* ============================================
   價格表區塊
   ============================================ */
.pricing-section {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.pricing-card {
    position: relative;
    margin: 0 0 0 10px;
    border: 1px solid rgba(196, 165, 116, 0.25);
    background-color: var(--white);
    transition: var(--transition-base);
    height: 100%;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(196, 165, 116, 0.2);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition-base);
}

.pricing-card:hover {
    transform: translate(-2px, -2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(82, 76, 64, 0.12);
}

.pricing-card:hover::before {
    top: 6px;
    right: -6px;
    border-color: var(--primary-color);
    opacity: 0.5;
}

.pricing-card a {
    display: block;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.pricing-card img {
    width: 100%;
    height: 45rem;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: var(--transition-slow);
}

.pricing-card:hover img {
    transform: scale(1.02);
}

.pricing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(82, 76, 64, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
    padding-bottom: 2rem;
    z-index: 2;
}

.pricing-card:hover .pricing-overlay {
    opacity: 1;
}

.pricing-overlay i {
    color: var(--white);
    font-size: 2rem;
}

.pricing-note {
    color: var(--text-medium);
    font-size: 0.95rem;
    font-style: italic;
    padding: 1.5rem;
    background-color: rgba(196, 165, 116, 0.05);
    border-left: 3px solid var(--primary-color);
}

.pricing-note i {
    color: var(--primary-color);
    margin-right: 0.7rem;
}

.pricing-note p {
    margin: 0;
}

@media (max-width: 992px) {
    .pricing-card img {
        height: 100%;
    }
}

/* ============================================
   聯絡我們區塊
   ============================================ */
.contact-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.contact-info-wrapper {
    height: 100%;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--dark-brown);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
    transition: var(--transition-base);
}

.contact-info-item:hover .icon {
    background-color: var(--primary-color);
}

.contact-info-item .icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.contact-info-item .info h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.contact-info-item .info p {
    color: var(--text-medium);
    margin-bottom: 0;
    line-height: 1.7;
}

.contact-info-item .info a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-info-item .info a:hover {
    color: var(--primary-color);
}

.social-links h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition-base);
    text-decoration: none;
    box-shadow: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.quick-booking {
    margin-top: 2rem;
}

.quick-booking .btn {
    font-size: 1rem;
    padding: 1rem 2rem;
}

.map-wrapper {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(82, 76, 64, 0.1);
    border: 1px solid rgba(196, 165, 116, 0.25);
    transition: var(--transition-base);
    position: relative;
    margin: 0 0 0 12px;
}

.map-wrapper::before {
    content: '';
    position: absolute;
    top: 12px;
    right: -12px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(196, 165, 116, 0.2);
    z-index: -1;
    pointer-events: none;
    transition: var(--transition-base);
}

.map-wrapper:hover {
    box-shadow: 0 4px 25px rgba(82, 76, 64, 0.15);
    transform: translate(-2px, -2px);
}

.map-wrapper:hover::before {
    top: 8px;
    right: -8px;
    border-color: var(--primary-color);
    opacity: 0.5;
}

.map-wrapper iframe {
    border-radius: 0;
    display: block;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--darker-brown);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
}

.footer-title {
    color: var(--primary-light);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.8rem;
    letter-spacing: 1px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a::before {
    content: '— ';
    opacity: 0;
    transition: var(--transition-base);
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-light);
    width: 18px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition-base);
    text-decoration: none;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0;
}

.copyright,
.copyright a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-decoration: none;
}

/* ============================================
   返回頂部按鈕
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 50px;
    height: 50px;
    background-color: var(--dark-brown);
    color: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 999;
    box-shadow: none;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.back-to-top.show {
    display: flex;
}

/* ============================================
   響應式設計 (RWD)
   ============================================ */

/* 大螢幕 */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 平板橫向 */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .designer-image {
        height: 380px;
    }
}

/* 平板直向 */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .hero-description {
        font-size: 1rem;
        letter-spacing: 0.5em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .philosophy-title {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    .philosophy-subtitle {
        font-size: 1rem;
    }

    .about-brand-philosophy {
        padding: 3rem 2rem;
    }

    .promotion-box-large {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        margin-left: 10px;
    }

    .promotion-box-large::before {
        top: 10px;
        right: -10px;
    }

    .designer-contact {
        flex-direction: column;
    }

    .designer-contact .btn {
        width: 100%;
    }

    .designer-image {
        height: 320px;
    }

    .service-card {
        padding: 2.5rem 1.8rem;
    }
}

/* 手機 */
@media (max-width: 575px) {
    .hero-section {
        min-height: calc(100vh - 80px);
        padding-top: 100px;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .hero-description {
        letter-spacing: 0.3em;
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .philosophy-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .philosophy-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .about-brand-philosophy {
        padding: 2rem 1.5rem;
    }

    .about-brand-philosophy::before {
        top: 10px;
        right: -10px;
    }

    .about-feature-card {
        padding: 2rem 1.5rem;
    }

    .about-feature-card::before {
        top: 8px;
        right: -8px;
    }

    .promotion-box-large {
        padding: 1.5rem;
        margin-left: 8px;
    }

    .promotion-box-large::before {
        top: 8px;
        right: -8px;
    }

    .promotion-content h4 {
        font-size: 1.4rem;
    }

    .promotion-content p {
        font-size: 1rem;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 25px;
        right: 25px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn-primary::after,
    .btn-outline-light::after,
    .btn-outline-primary::after {
        right: -6px;
        bottom: -6px;
    }
}

/* ============================================
   動畫優化
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Fancybox 手機版修正 - 解決超出螢幕問題
   ============================================ */
/* 當 Fancybox 開啟時，確保 body 不會因為 overflow-x: hidden 影響定位 */
html.with-fancybox,
body.with-fancybox {
    overflow: hidden !important;
}

html.compensate-for-scrollbar,
body.compensate-for-scrollbar {
    overflow: hidden !important;
}

/* Fancybox 容器確保不受父層 transform 影響 */
.fancybox__container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
}

/* 確保內容不會超出螢幕 */
@media (max-width: 767px) {
    /* 重置可能干擾的樣式 */
    .fancybox__viewport {
        transform: none !important;
    }

    .fancybox__content {
        max-width: 100vw !important;
        max-height: 100vh !important;
    }
}

/* ============================================
   列印樣式
   ============================================ */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator,
    .designer-overlay,
    .gallery-overlay {
        display: none !important;
    }

    .hero-section,
    section {
        page-break-inside: avoid;
    }
}
