/* ================================================================
   NCOF 新世紀辦公室傢俬 — Premium Design System v4.2
   © 2025 Modern Redesign — modern/ only
   Colour theme: Professional Blue + Wood Warmth
   ================================================================ */

/* ── CSS Variables / Design Tokens ──────────────────────────── */
:root {
    /* ── Brand Palette ── */
    --brand-logo:     #00D4FA;   /* Logo 專用色 — 只用於 Logo 和少量品牌細節 */
    --primary:        #236B82;   /* 網站主色 — 按鈕、active、icon、CTA */
    --primary-dark:   #1B5568;   /* Hover / 深色互動狀態 */
    --primary-light:  #2E8BA6;   /* 輕量高亮，保留過渡用 */
    --primary-glow:   rgba(35, 107, 130, 0.10);
    --accent:         #236B82;   /* 主 CTA — 與 primary 統一 */
    --accent-dark:    #1B5568;   /* CTA hover */

    /* Wood Warmth */
    --wood-accent:    #B88746;   /* 木色點綴 — badge、標籤、重點 underline */
    --wood-light:     #D8B98A;   /* 淡木色 — 小型裝飾背景 */
    --gold:           #B88746;   /* 相容舊變數 → 改用木色 */
    --gold-light:     #D8B98A;   /* 相容舊變數 → 改用淡木色 */

    /* Backgrounds */
    --bg-page:   #F7F8F7;   /* 整體背景 */
    --bg-white:  #FFFFFF;   /* 卡片 / 表單 */
    --bg-card:   rgba(255, 255, 255, 0.96);
    --bg-glass:  rgba(255, 255, 255, 0.82);
    --section-bg: #EEF9FB;  /* 淺色區塊背景 */

    /* Text */
    --text-main:  #102A35;   /* 主標題 H1~H6 */
    --text-body:  #40515A;   /* 正文段落 */
    --text-muted: #7C8B93;   /* 次要文字 */
    --text-light: rgba(255,255,255,0.90);

    /* Borders */
    --border-light: #DCE7EB;
    --border-mid:   rgba(35, 107, 130, 0.28);

    /* Footer */
    --footer-bg: #0B2530;

    /* Radii */
    --r-sm:   8px;
    --r-md:   16px;
    --r-lg:   24px;
    --r-xl:   36px;
    --r-pill: 9999px;

    /* Shadows */
    --s-xs:  0 2px 8px  rgba(0,0,0,0.04);
    --s-sm:  0 4px 16px rgba(0,0,0,0.06);
    --s-md:  0 8px 32px rgba(0,0,0,0.08);
    --s-lg:  0 20px 60px rgba(0,0,0,0.10);
    --s-green-sm: 0 4px 16px rgba(35,107,130,0.18);  /* 保留相容名稱 */
    --s-green-lg: 0 16px 48px rgba(35,107,130,0.22);
    --s-accent:   0 8px 24px rgba(35,107,130,0.30);

    /* Transitions */
    --ease:        all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: all 0.4s  cubic-bezier(0.34, 1.56, 0.64, 1.0);
    --ease-decel:  all 0.5s  cubic-bezier(0.16, 1.00, 0.30, 1.0);
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.72;
    overflow-x: hidden;
    letter-spacing: 0.15px;
}
p, li, span { color: var(--text-body); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6, .serif {
    font-family: 'Cormorant Garamond', 'Noto Sans TC', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
}

/* ── Scroll-Reveal Animation ─────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-up   { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.45s; }
.reveal-delay-5 { transition-delay: 0.60s; }

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
═══════════════════════════════════════════════════════════════ */
header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    transition: var(--ease);
}
header.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.logo { flex-shrink: 0; }
.logo img {
    height: 46px;
    object-fit: contain;
    transition: var(--ease);
}
/* SVG logo — 原色顯示（天藍 #00d4fa），hover 時微放大 */
.logo-svg {
    height: 46px;
    object-fit: contain;
    transition: var(--ease);
    /* 預設：SVG 原始顏色（天藍）直接顯示，無 filter */
}
.logo:hover .logo-svg { transform: scale(1.04); }

/* ── Logo 顏色輔助 class（日後視需要加到 <img> 上即可換色）──
   用法示例: <img class="logo-svg logo-white">
   產生方式: https://codepen.io/sosuke/pen/Pjoqqp (CSS filter generator)
──────────────────────────────────────────────────────────── */
/* 強制白色（深色背景適用） */
.logo-white { filter: brightness(0) invert(1); }
/* 強制黑色 */
.logo-black { filter: brightness(0) saturate(100%); }
/* 品牌天藍色 #2baee0（與現有 SVG 色相近，微調飽和度） */
.logo-sky   { filter: invert(60%) sepia(60%) saturate(600%) hue-rotate(165deg) brightness(100%) contrast(95%); }
/* 深藍色 #0d6eab */
.logo-navy  { filter: invert(25%) sepia(80%) saturate(800%) hue-rotate(195deg) brightness(80%) contrast(110%); }
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0 auto;
}
.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 0.5rem 0.9rem;
    border-radius: var(--r-sm);
    position: relative;
    transition: var(--ease);
    letter-spacing: 0.2px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 3px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--primary);
    border-radius: var(--r-pill);
    transition: width 0.3s ease;
}
/* 導覽 active / hover — 使用網站主色 #236B82 */
.nav-links a:hover  { color: var(--primary); background: var(--primary-glow); }
.nav-links a:hover::after { width: 50%; }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after { width: 50%; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
/* Nav CTA — 主色實色按鈕，不用 Logo 青藍漸層 */
.btn-nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 0.55rem 1.4rem;
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: var(--s-green-sm);
    transition: var(--ease-bounce);
    white-space: nowrap;
}
.btn-nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.04);
    box-shadow: var(--s-green-lg);
    color: #fff !important;
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--r-sm);
    transition: var(--ease);
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    z-index: 800;
    padding: 2rem;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 1rem 1.25rem;
    border-radius: var(--r-md);
    border: 1px solid var(--border-light);
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.mobile-menu a:hover {
    background: var(--primary-glow);
    color: var(--primary);
    border-color: var(--border-light);
}
.mobile-menu a i { width: 20px; color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--primary-dark);
}
.hero-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 7s ease-out;
    transform: scale(1);
    z-index: 1;
}
.hero-bg.active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 2;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    /* 有色玻璃暗化效果 (純色暗化，無模糊) */
    background: linear-gradient(
        120deg,
        rgba(11, 37, 48, 0.65) 0%,
        rgba(27, 85, 104, 0.45) 45%,
        rgba(11, 37, 48, 0.25) 100%
    );
    z-index: 3;
}
.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 4;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}
/* Decorative ring */
.hero-ring {
    position: absolute;
    right: -120px;
    bottom: -120px;
    z-index: 5;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.06);
    animation: ringPulse 6s ease-in-out infinite;
    pointer-events: none;
}
.hero-ring::before {
    content: '';
    position: absolute;
    inset: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
}
@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.05); opacity: 1; }
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1320px;
    margin: 0 auto;
    padding: 7rem 2rem 6rem;
    width: 100%;
    flex: 1;   /* pushes stats bar to bottom */
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--r-pill);
    padding: 0.4rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    margin-bottom: 1.8rem;
    animation: fadeSlideUp 0.8s 0.2s both;
}
.hero-eyebrow i { font-size: 0.7rem; }
.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1.10;
    margin-bottom: 1.75rem;
    animation: fadeSlideUp 0.8s 0.4s both;
}
.hero h1 em {
    font-style: normal;
    color: var(--gold-light);
    position: relative;
}
.hero-desc {
    max-width: 560px;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    animation: fadeSlideUp 0.8s 0.6s both;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeSlideUp 0.8s 0.8s both;
}
/* Hero 主要 CTA — 使用主色 #236B82，不用 Logo 青藍 */
.btn-hero-primary {
    background: var(--primary);
    color: #fff;
    padding: 0.9rem 2.4rem;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    box-shadow: var(--s-accent);
    transition: var(--ease-bounce);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.btn-hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 40px rgba(35,107,130,0.38);
    color: #fff;
}
.btn-hero-ghost {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.28);
    color: rgba(255,255,255,0.90);
    padding: 0.9rem 2.4rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    transition: var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.btn-hero-ghost:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.50);
    transform: translateY(-2px);
    color: #fff;
}
/* Hero Stats strip — always in flow (not absolute) */
.hero-stats {
    position: relative;
    z-index: 10;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.hero-stats-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.hero-stat {
    padding: 1.25rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wood-light);   /* 淡木色，取代舊金色 */
    line-height: 1;
    margin-bottom: 0.3rem;
}
.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION GLOBAL
═══════════════════════════════════════════════════════════════ */
.section { padding: 7rem 2rem; }
.section-narrow { padding: 5rem 2rem; }
.container-xl { max-width: 1320px; margin: 0 auto; }
.container-lg  { max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    position: relative;
    padding: 0 1.25rem;
}
.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 20px; height: 1.5px;
    background: var(--primary);
    opacity: 0.5;
    border-radius: 2px;
}
.section-eyebrow::before { right: 100%; }
.section-eyebrow::after  { left:  100%; }
.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 1rem;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   VALUES / WHY CHOOSE US
═══════════════════════════════════════════════════════════════ */
.values-section { background: var(--bg-white); }
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.value-card {
    padding: 2.5rem 2rem;
    border-radius: var(--r-lg);
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    transition: var(--ease-decel);
    position: relative;
    overflow: hidden;
}
.value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    /* 主色頂線：主色 → 木色點綴，增加品牌溫度 */
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--wood-light));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.value-card:hover::before { transform: scaleX(1); }
.value-card:hover {
    background: var(--bg-white);
    box-shadow: var(--s-green-lg);
    transform: translateY(-6px);
    border-color: var(--border-mid);
}
.value-icon {
    width: 56px; height: 56px;
    border-radius: var(--r-md);
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    transition: var(--ease);
}
.value-card:hover .value-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(5deg) scale(1.1);
    box-shadow: var(--s-green-sm);
}
.value-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}
.value-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT CATEGORIES
═══════════════════════════════════════════════════════════════ */
.categories-section { background: var(--bg-page); }
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
}
.category-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--s-xs);
    transition: var(--ease-decel);
    display: flex;
    flex-direction: column;
    position: relative;
}
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
    border: 2px solid transparent;
    transition: border-color 0.35s ease;
    pointer-events: none;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--s-green-lg);
}
.category-card:hover::after {
    border-color: rgba(35,107,130,0.18);
}
.category-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.category-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.category-card:hover .category-img-wrap img { transform: scale(1.07); }
.category-img-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.30;
}
.category-body {
    padding: 1.4rem 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.category-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
/* 分類卡片連結 — 使用主色，不用 accent */
.category-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--ease);
}
.category-link i { transition: transform 0.3s ease; font-size: 0.75rem; }
.category-card:hover .category-link { color: var(--primary-dark); }
.category-card:hover .category-link i { transform: translateX(5px); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
/* ── Footer — #0B2530 深背景 ── */
footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.65);
    padding: 5rem 2rem 2.5rem;
    position: relative;
    overflow: hidden;
}
/* Footer 頂線：主色 shimmer，不用 Logo 青藍 */
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--wood-light), var(--primary), var(--primary-dark));
    background-size: 300% 100%;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.footer-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}
.footer-brand-logo {
    height: 40px;
    opacity: 0.90;
    margin-bottom: 1.25rem;
}
.footer-brand-desc {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.5rem;
}
.footer-social {
    display: flex;
    gap: 0.6rem;
}
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: var(--ease);
}
/* Footer social hover — 用 brand-logo 青藍（Logo 專用色的合理使用場景）*/
.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
/* Footer 欄位標題 — 淡木色，保持品牌溫度 */
.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wood-light);
    margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    font-size: 0.88rem;
    color: var(--border-light);
    transition: var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
/* Footer 連結 hover — brand-logo 青藍（小量使用符合規格）*/
.footer-links a:hover { color: var(--brand-logo); padding-left: 4px; }
.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.footer-contact-row i {
    color: var(--wood-accent);
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 0.9rem;
    width: 16px;
}
.footer-contact-row span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.60);
    line-height: 1.55;
}
.footer-contact-row a { color: rgba(255,255,255,0.80); transition: var(--ease); }
.footer-contact-row a:hover { color: var(--brand-logo); }
.footer-hours {
    background: rgba(255,255,255,0.04);
    border-radius: var(--r-md);
    padding: 1rem 1.2rem;
    margin-top: 1rem;
    border: 1px solid rgba(255,255,255,0.06);
}
.footer-hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.footer-hours-row:last-child { border-bottom: none; }
.footer-hours-row .label { color: rgba(255,255,255,0.45); }
.footer-hours-row .time  { color: rgba(255,255,255,0.80); font-weight: 500; }
.footer-hours-row.dim   { opacity: 0.5; }
.footer-bottom {
    max-width: 1320px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.35); transition: var(--ease); }
.footer-bottom a:hover { color: var(--brand-logo); }
.footer-seo-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER (for inner pages like contactus)
═══════════════════════════════════════════════════════════════ */
.page-hero {
    background: linear-gradient(135deg,
        rgba(5, 30, 70, 0.45) 0%,
        rgba(10, 60, 110, 0.30) 100%
    ), url('../images/ncof_hero.jpg') center/cover no-repeat;
    padding: 6rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: var(--bg-page);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--wood-light);   /* 淡木色，取代舊金色 */
    display: block;
    margin-bottom: 1rem;
}
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #fff;
    font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════════════ */
.contact-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 5rem 2rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 4rem;
    align-items: start;
}
/* Info sidebar glass card */
.info-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    box-shadow: var(--s-md);
}
.info-glass h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.info-glass h3 i { color: var(--primary); }
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.4rem;
    padding: 0.9rem 1rem;
    border-radius: var(--r-md);
    transition: var(--ease);
}
.info-item:hover { background: var(--primary-glow); }
.info-icon-wrap {
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: var(--ease);
}
.info-item:hover .info-icon-wrap {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08) rotate(5deg);
}
.info-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.5;
}
.info-value a { color: var(--primary); font-weight: 600; transition: var(--ease); }
.info-value a:hover { color: var(--primary-dark); }
.info-value span { display: block; font-size: 0.82rem; color: var(--text-muted); font-weight: 400; margin-top: 0.2rem; }

/* Map */
.map-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--r-xl);
    padding: 1.5rem;
    box-shadow: var(--s-md);
    margin-top: 1.5rem;
}
.map-frame {
    width: 100%;
    height: 280px;
    border-radius: var(--r-lg);
    overflow: hidden;
    filter: grayscale(30%) contrast(105%);
    transition: filter 0.4s ease;
}
.map-glass:hover .map-frame { filter: grayscale(0%) contrast(100%); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}
.map-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--ease);
}
.map-link:hover { color: var(--primary-light); transform: translateX(3px); }

/* Form card */
.form-glass {
    background: var(--bg-white);
    border-radius: var(--r-xl);
    padding: 3.5rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.08);
    border: 1px solid var(--border-light);
}
.form-glass h2 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
}
.form-glass h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    /* 主色底線，帶木色溫度 */
    background: linear-gradient(90deg, var(--primary), var(--wood-light));
    border-radius: var(--r-pill);
}
.form-glass .form-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-body);
}
.form-label .req { color: #e53e3e; }
.form-control {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.85rem 1.2rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--r-md);
    background: var(--bg-page);
    color: var(--text-main);
    transition: var(--ease);
    outline: none;
}
.form-control::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-control:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(35,107,130,0.09);
    transform: translateY(-1px);
}
.radio-group { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; min-height: 48px; }
.radio-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--r-pill);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--bg-page);
    transition: var(--ease);
    user-select: none;
}
.radio-pill:hover { border-color: var(--primary); background: var(--primary-glow); }
.radio-pill input { accent-color: var(--primary); }
.radio-pill input:checked + span { color: var(--primary); font-weight: 700; }
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}
.btn-reset-form {
    background: transparent;
    border: 1.5px solid var(--border-light);
    color: var(--text-muted);
    padding: 0.85rem 2rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    cursor: pointer;
    transition: var(--ease);
    font-size: 0.9rem;
}
.btn-reset-form:hover { border-color: var(--primary); color: var(--primary); }
/* 表單提交按鈕 — 主色實色，不用漸層 */
.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.9rem 2.75rem;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--s-accent);
    transition: var(--ease-bounce);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 32px rgba(35,107,130,0.35);
}

/* Alert */
.alert-success, .alert-error {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.5rem;
    border-radius: var(--r-md);
    font-size: 0.93rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: slideDown 0.4s ease both;
}
.alert-success { background: #edfaf4; color: #1a7a4a; border: 1px solid #c3eed8; }
.alert-error   { background: #fff5f5; color: #c0392b; border: 1px solid #fecaca; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 992px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: flex; }
    /* Stats: 2×2 on tablets */
    .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .hero-stat { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .hero-stat:nth-child(2n) { border-right: none; }
    .hero-stat:nth-child(3), .hero-stat:nth-child(4) { border-bottom: none; }
}

@media (max-width: 768px) {
    /* ── Hero ── */
    .hero { min-height: auto; }
    .hero-container {
        padding: 5rem 1.25rem 3.5rem;  /* top: below navbar; bottom: breathing room */
    }
    .hero h1 {
        font-size: clamp(1.9rem, 7.5vw, 2.6rem);
        margin-bottom: 1rem;
        letter-spacing: -0.5px;
    }
    .hero-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 1.5px;
        padding: 0.35rem 0.9rem;
        margin-bottom: 1.2rem;
    }
    .hero-desc {
        font-size: 0.9rem;
        line-height: 1.75;
        margin-bottom: 1.75rem;
        max-width: 100%;
    }
    /* CTA buttons — center aligned, natural width */
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .btn-hero-primary,
    .btn-hero-ghost {
        justify-content: center;
        padding: 0.9rem 2.4rem;
        font-size: 0.92rem;
    }
    /* Stats strip: 2×2 */
    .hero-stats-inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }
    .hero-stat {
        padding: 1rem 0.75rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .hero-stat:nth-child(2n) { border-right: none; }
    .hero-stat:nth-child(3), .hero-stat:nth-child(4) { border-bottom: none; }
    .hero-stat-num { font-size: 1.45rem; }
    .hero-stat-label { font-size: 0.7rem; }
    /* ── Footer ── */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    /* ── Forms ── */
    .form-row { grid-template-columns: 1fr; }
    .form-glass { padding: 2rem 1.25rem; }
    /* ── Sections ── */
    .section { padding: 4rem 1.25rem; }
    .nav-container { padding: 0 1.25rem; }
    /* ── Grids ── */
    .values-grid { grid-template-columns: 1fr; gap: 1rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 480px) {
    .hero-container { padding: 4.5rem 1rem 3rem; }
    .hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
    .hero-eyebrow { display: none; }
    .hero-stats-inner { padding: 0; }
    .hero-stat-num { font-size: 1.25rem; }
    .form-actions { flex-direction: column-reverse; }
    .btn-submit, .btn-reset-form { width: 100%; justify-content: center; }
    .categories-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}
