/* =========================================================
   台灣電子鎖 TWLOCK - Static Site
   品牌調性：愛家、愛生活、居家安全、溫馨職人感
   配色：米白 + 暖棕（木質） + 葉綠（安心） + 蜜糖橘（CTA）
   ========================================================= */

/* ------------------------------------------------------------
   In-App Browser 字體穩定（LINE / FB / IG / Messenger）
   必有、不要刪。LINE WebKit 會 auto-inflate 長段落文字。
   ------------------------------------------------------------ */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}
body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:root {
    /* 主色：暖棕木質感 */
    --wood: #8b6f47;
    --wood-dark: #6b5436;
    --wood-light: #c4a982;

    /* 信任綠：葉綠、不冷不軍 */
    --leaf: #4c8c5c;
    --leaf-dark: #3a6f48;

    /* CTA 橘：蜜糖溫暖 */
    --honey: #e8a35c;
    --honey-dark: #d28b3f;

    /* LINE 官方綠（CTA 用） */
    --line: #06c755;
    --line-dark: #04a548;

    /* 米白系列 */
    --cream: #fbf8f2;
    --cream-2: #f3ede0;
    --paper: #fffdf8;

    /* 文字 */
    --ink: #2a2421;
    --ink-soft: #5a504a;
    --muted: #8a7e74;

    /* 線條與陰影（暖色系） */
    --line-soft: #e7dfd0;
    --shadow-sm: 0 2px 8px rgba(139, 111, 71, .08);
    --shadow-md: 0 12px 28px rgba(139, 111, 71, .12);
    --shadow-lg: 0 24px 48px rgba(139, 111, 71, .15);

    --radius: 14px;
    --radius-lg: 20px;
    --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC",
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    line-height: 1.75;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wood-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--leaf-dark); }

h1, h2, h3, h4 {
    font-family: "Noto Serif TC", "Noto Sans TC", serif;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: .01em;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: .15em;
    color: var(--wood);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

h2.section-title {
    font-size: clamp(26px, 3.4vw, 38px);
    margin: 0 0 14px;
}
.section-lede {
    color: var(--ink-soft);
    font-size: clamp(15px, 1.4vw, 17px);
    margin: 0 0 40px;
    max-width: 640px;
}

/* ---------- Utility bar ---------- */
.utility-bar {
    background: var(--wood-dark);
    color: rgba(255, 253, 248, .92);
    font-size: 14px;
    padding: 8px 0;
}
.utility-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.utility-bar a { color: var(--paper); }
.utility-bar a:hover { color: var(--honey); }
.utility-bar .util-left,
.utility-bar .util-right {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.utility-bar .badge {
    background: var(--honey);
    color: var(--wood-dark);
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}

/* ---------- Header ---------- */
.site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 50;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
    /* iPhone notch / safe-area */
    padding-top: env(safe-area-inset-top, 0);
}

/* In-app browser fallback（LINE / FB / IG webview）
   詳見 /clients/IN-APP-BROWSER-FIXES.md §7B */
html.is-in-app .site-header {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}
.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
    min-width: 0;
}
.logo-img {
    display: block;
    width: min(210px, 42vw);
    height: auto;
    object-fit: contain;
}
.site-header .logo-img {
    filter: drop-shadow(0 6px 14px rgba(24, 34, 44, .08));
}
.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--wood) 0%, var(--wood-dark) 100%);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Noto Serif TC", serif;
    font-weight: 700;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.logo-name {
    font-family: "Noto Serif TC", serif;
    font-weight: 700;
    color: var(--ink);
    font-size: 18px;
    letter-spacing: .02em;
}
.logo-tag {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .12em;
}

nav.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2px;
    align-items: center;
}
nav.main-nav a {
    color: var(--ink);
    padding: 10px 14px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-block;
    font-size: 15px;
}
nav.main-nav a:hover,
nav.main-nav a.active {
    color: var(--wood-dark);
    background: var(--cream-2);
}

/* 主打項目（大案整合 ・ B2B 主營收） */
nav.main-nav a.nav-feature {
    background: linear-gradient(135deg, var(--honey) 0%, var(--honey-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(232, 163, 92, .35);
    position: relative;
    padding-left: 16px;
    padding-right: 16px;
}
nav.main-nav a.nav-feature::before {
    content: "★";
    margin-right: 6px;
    font-size: 11px;
    opacity: .9;
    vertical-align: 1px;
}
nav.main-nav a.nav-feature:hover,
nav.main-nav a.nav-feature.active {
    background: linear-gradient(135deg, var(--honey-dark) 0%, #b97326 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(232, 163, 92, .5);
    transform: translateY(-1px);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--line);
    color: #fff;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(6, 199, 85, .3);
}
.header-cta:hover { background: var(--line-dark); color: #fff; }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    color: var(--wood-dark);
    width: 44px;
    height: 44px;
}
.menu-toggle svg { width: 28px; height: 28px; }

/* In-app browser 漢堡按鈕加邊框 + 底色 fallback
   LINE iOS 透明背景按鈕融進工具列、user 看不見
   詳見 /clients/IN-APP-BROWSER-FIXES.md §7B Step 3 */
html.is-in-app .menu-toggle {
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(42, 36, 33, .2);
    border-radius: 8px;
}
html.is-in-app .menu-toggle svg line {
    stroke: var(--ink);
}

/* ---------- Hero (full-width banner) ---------- */
.hero {
    position: relative;
    min-height: clamp(560px, 78vh, 780px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--cream-2);
    color: var(--paper);
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}
.hero-bg img,
.hero-bg .bg-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.hero-bg .bg-placeholder {
    background:
        radial-gradient(ellipse at top right, rgba(232, 163, 92, .35), transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(76, 140, 92, .3), transparent 55%),
        repeating-linear-gradient(45deg, rgba(139, 111, 71, .08) 0 10px, transparent 10px 20px),
        linear-gradient(135deg, #6b5436 0%, #8b6f47 40%, #c4a982 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 253, 248, .65);
    font-family: "Noto Serif TC", serif;
    font-size: clamp(14px, 1.4vw, 18px);
    text-align: center;
    padding: 40px;
    line-height: 1.7;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(42, 36, 33, .15) 0%, rgba(42, 36, 33, .55) 60%, rgba(42, 36, 33, .85) 100%),
        linear-gradient(90deg, rgba(42, 36, 33, .55) 0%, rgba(42, 36, 33, .25) 50%, rgba(42, 36, 33, 0) 80%);
    z-index: -1;
}
.hero-content {
    padding: 80px 0 64px;
    max-width: 720px;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    color: var(--paper);
    background: rgba(255, 253, 248, .18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 22px;
    letter-spacing: .04em;
    border: 1px solid rgba(255, 253, 248, .25);
}
.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    margin: 0 0 22px;
    color: var(--paper);
    line-height: 1.2;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}
.hero h1 .accent { color: var(--honey); }
.hero-sub {
    font-size: clamp(16px, 1.7vw, 20px);
    color: rgba(255, 253, 248, .92);
    max-width: 580px;
    margin: 0 0 36px;
    line-height: 1.85;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}
.hero-sub strong { color: var(--honey); font-weight: 700; }
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 0;
    cursor: pointer;
    transition: transform .12s, box-shadow .15s, background .15s;
}
.btn-line {
    background: var(--line);
    color: #fff;
    box-shadow: 0 6px 18px rgba(6, 199, 85, .35);
}
.btn-line:hover { background: var(--line-dark); color: #fff; transform: translateY(-1px); }
.btn-phone {
    background: var(--paper);
    color: var(--wood-dark);
    border: 2px solid var(--wood);
}
.btn-phone:hover { background: var(--cream-2); color: var(--wood-dark); }
.btn-ghost {
    background: transparent;
    color: var(--wood-dark);
    padding: 14px 0;
}
.btn-ghost:hover { color: var(--leaf-dark); }
.btn-primary {
    background: var(--wood);
    color: #fff;
}
.btn-primary:hover { background: var(--wood-dark); color: #fff; transform: translateY(-1px); }
.btn-honey {
    background: var(--honey);
    color: var(--wood-dark);
    box-shadow: 0 6px 18px rgba(232, 163, 92, .35);
}
.btn-honey:hover { background: var(--honey-dark); color: #fff; }

.hero-trust {
    display: flex;
    gap: 36px;
    color: rgba(255, 253, 248, .9);
    font-size: 14px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 253, 248, .2);
    padding-top: 22px;
    margin-top: 4px;
}
.hero-trust .item {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.hero-trust .num {
    color: var(--honey);
    font-family: "Noto Serif TC", serif;
    font-weight: 700;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1;
}

/* CTA on dark hero — phone button needs to invert */
.hero .btn-phone {
    background: rgba(255, 253, 248, .15);
    color: var(--paper);
    border-color: rgba(255, 253, 248, .5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hero .btn-phone:hover {
    background: rgba(255, 253, 248, .25);
    color: var(--paper);
}

/* ---------- Value props (4 cards) ---------- */
.values {
    background: var(--paper);
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.value-card {
    padding: 28px 22px;
    border-radius: var(--radius);
    background: var(--cream);
    border: 1px solid var(--line-soft);
    transition: transform .15s, box-shadow .15s;
}
.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.value-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--paper);
    color: var(--wood-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.value-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
}
.value-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.7;
}

/* ---------- Services grid ---------- */
.services {
    background: var(--cream);
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.service-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.service-img {
    aspect-ratio: 16 / 10;
    background: var(--cream-2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wood);
    font-family: "Noto Serif TC", serif;
}
.service-img::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(139, 111, 71, .08), transparent);
    pointer-events: none;
}
.service-body {
    padding: 22px 22px 24px;
}
.service-body h3 {
    margin: 0 0 8px;
    font-size: 19px;
}
.service-body p {
    color: var(--ink-soft);
    font-size: 14.5px;
    margin: 0 0 12px;
    line-height: 1.7;
}
.service-link {
    color: var(--wood-dark);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.service-link::after {
    content: "→";
    transition: transform .15s;
}
.service-link:hover::after { transform: translateX(3px); }

/* ---------- Brand wall ---------- */
.brands {
    background: var(--paper);
}
.brand-wall {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}
.brand-tile {
    aspect-ratio: 3 / 2;
    background: var(--cream);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    transition: background .15s, border-color .15s;
}
.brand-tile:hover {
    background: var(--cream-2);
    border-color: var(--wood-light);
}
.brand-tile .brand-logo {
    width: min(126px, 88%);
    height: 38px;
    object-fit: contain;
    display: block;
}
.brand-tile .bn {
    font-family: "Noto Serif TC", serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    text-align: center;
}
.brand-tile .bo {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .12em;
}

/* ---------- Story / About strip ---------- */
.story {
    background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}
.story-img {
    aspect-ratio: 5 / 6;
    border-radius: var(--radius-lg);
    background: var(--cream-2);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wood);
    font-family: "Noto Serif TC", serif;
    position: relative;
    overflow: hidden;
}
.story-img img,
.service-img img,
.case-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(232, 163, 92, .12), transparent),
        repeating-linear-gradient(45deg, rgba(139, 111, 71, .03) 0 8px, transparent 8px 16px);
}
.story-img.has-media::after {
    background: linear-gradient(180deg, rgba(255, 248, 238, .08), rgba(40, 31, 23, .06));
}
.story-content blockquote {
    font-family: "Noto Serif TC", serif;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.6;
    color: var(--ink);
    border-left: 4px solid var(--honey);
    padding: 4px 0 4px 24px;
    margin: 24px 0 28px;
    font-weight: 500;
}
.story-content p {
    color: var(--ink-soft);
    line-height: 1.85;
    font-size: 16px;
    margin: 0 0 16px;
}

/* ---------- Cases ---------- */
.cases {
    background: var(--cream);
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.case-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s;
}
.case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.case-img {
    aspect-ratio: 4 / 3;
    background: var(--cream-2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wood);
    font-family: "Noto Serif TC", serif;
}
.case-img::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(139, 111, 71, .08), transparent);
    pointer-events: none;
}
.case-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--paper);
    color: var(--wood-dark);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}
.case-body {
    padding: 20px 22px 22px;
}
.case-body h4 {
    margin: 0 0 6px;
    font-size: 17px;
}
.case-body .meta {
    color: var(--muted);
    font-size: 13px;
}

/* ---------- FAQ ---------- */
.faq {
    background: var(--paper);
}
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}
.faq-item {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: 14px;
    border: 1px solid var(--line-soft);
    overflow: hidden;
}
.faq-q {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
    content: "+";
    color: var(--wood);
    font-size: 24px;
    font-weight: 400;
    transition: transform .2s;
    flex: 0 0 auto;
}
details[open] .faq-q::after {
    content: "−";
}
.faq-a {
    padding: 0 24px 22px;
    color: var(--ink-soft);
    line-height: 1.8;
    font-size: 15px;
}

/* ---------- CTA strip (before footer) ---------- */
.cta-strip {
    background: linear-gradient(135deg, var(--wood) 0%, var(--wood-dark) 100%);
    color: var(--paper);
    text-align: center;
}
.cta-strip h2 {
    color: var(--paper);
    font-size: clamp(24px, 3.2vw, 34px);
    margin: 0 0 14px;
}
.cta-strip p {
    color: rgba(255, 253, 248, .9);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.8;
}
.cta-strip .btn-group {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #2a2421;
    color: rgba(255, 253, 248, .8);
    padding: 56px 0 28px;
    font-size: 14.5px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h4 {
    color: var(--paper);
    font-size: 15px;
    margin: 0 0 16px;
    letter-spacing: .04em;
    font-family: "Noto Sans TC", sans-serif;
}
.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-grid li {
    margin-bottom: 10px;
}
.footer-grid a {
    color: rgba(255, 253, 248, .75);
}
.footer-grid a:hover {
    color: var(--honey);
}
.footer-brand .logo {
    margin-bottom: 16px;
}
.footer-brand .logo-img {
    width: min(230px, 62vw);
    background: rgba(255, 253, 248, .96);
    border: 1px solid rgba(255, 253, 248, .7);
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}
.footer-brand .logo-name { color: var(--paper); }
.footer-brand .logo-tag { color: rgba(255, 253, 248, .6); }
.footer-brand p {
    color: rgba(255, 253, 248, .7);
    line-height: 1.8;
    margin: 0 0 16px;
}
.footer-contact .item {
    margin-bottom: 12px;
    line-height: 1.6;
}
.footer-contact .item small {
    display: block;
    color: rgba(255, 253, 248, .55);
    font-size: 12px;
    letter-spacing: .08em;
    margin-bottom: 2px;
}
.footer-contact .item strong {
    color: var(--paper);
    font-size: 15.5px;
    font-weight: 600;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 253, 248, .1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 253, 248, .55);
}

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line-soft);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
    z-index: 40;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
}
.mobile-cta a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14.5px;
}
.mobile-cta .mc-line { background: var(--line); color: #fff; }
.mobile-cta .mc-phone { background: var(--wood); color: #fff; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
    background:
        radial-gradient(ellipse at top right, rgba(232, 163, 92, .12), transparent 60%),
        linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--line-soft);
}
.page-header .crumbs {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 14px;
}
.page-header .crumbs a { color: var(--wood); }
.page-header h1 {
    font-size: clamp(30px, 4.2vw, 44px);
    margin: 0 0 12px;
}
.page-header .lede {
    color: var(--ink-soft);
    font-size: 16.5px;
    max-width: 660px;
    margin: 0;
    line-height: 1.8;
}

/* ---------- About specific ---------- */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--cream);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin: 40px 0;
}
.about-stat .num {
    font-family: "Noto Serif TC", serif;
    font-size: clamp(28px, 3.6vw, 42px);
    color: var(--wood-dark);
    font-weight: 700;
    line-height: 1;
}
.about-stat .label {
    color: var(--ink-soft);
    font-size: 14px;
    margin-top: 6px;
}

.timeline {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}
.tl-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--line-soft);
}
.tl-item:last-child { border-bottom: 0; }
.tl-year {
    font-family: "Noto Serif TC", serif;
    color: var(--wood);
    font-weight: 700;
    font-size: 18px;
}
.tl-body h4 { margin: 0 0 6px; font-size: 17px; }
.tl-body p { margin: 0; color: var(--ink-soft); }

/* ---------- Contact specific ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}
.contact-info .item {
    padding: 22px;
    background: var(--cream);
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
}
.contact-info .ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--paper);
    color: var(--wood-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 44px;
    box-shadow: var(--shadow-sm);
}
.contact-info .it small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .08em;
    margin-bottom: 4px;
}
.contact-info .it strong {
    font-size: 16px;
    color: var(--ink);
}
.contact-info .it p {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
}
.contact-map {
    aspect-ratio: 4 / 3;
    background: var(--cream-2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-soft);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Service detail blocks ---------- */
.pain-banner {
    margin: 28px 0 34px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    background: var(--cream-2);
}
.pain-banner img {
    width: 100%;
    aspect-ratio: 1200 / 520;
    object-fit: cover;
}
.door-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 32px;
}
.door-card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.door-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--wood-light);
}
.door-card .icon {
    font-size: 32px;
    color: var(--wood);
    margin-bottom: 12px;
}
.door-card h4 {
    margin: 0 0 8px;
    font-size: 18px;
}
.door-card p {
    color: var(--ink-soft);
    font-size: 14.5px;
    margin: 0;
}

/* ---------- Process steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 40px 0;
    counter-reset: step;
}
.step {
    text-align: center;
    padding: 24px 16px;
    background: var(--cream);
    border-radius: var(--radius);
    position: relative;
}
.step .n {
    counter-increment: step;
    width: 44px;
    height: 44px;
    background: var(--wood);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Noto Serif TC", serif;
    font-weight: 700;
    font-size: 20px;
    margin: 0 auto 14px;
}
.step .n::before { content: counter(step); }
.step h4 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }

/* ---------- Filter chips (cases page) ---------- */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 24px 0 36px;
}
.chip {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--cream);
    border: 1px solid var(--line-soft);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.chip:hover { color: var(--wood-dark); border-color: var(--wood-light); }
.chip.active {
    background: var(--wood);
    color: #fff;
    border-color: var(--wood);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .hero { min-height: clamp(520px, 80vh, 680px); }
    .hero-content { padding: 60px 0 48px; }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-wall { grid-template-columns: repeat(4, 1fr); }
    .story-grid { grid-template-columns: 1fr; gap: 32px; }
    .story-img { max-width: 420px; margin: 0 auto; }
    .case-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .door-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .section { padding: 56px 0; }
    .hero { min-height: 580px; }
    .hero-bg img { object-position: 70% center; }
    .hero::before {
        background:
            linear-gradient(180deg, rgba(42, 36, 33, .08) 0%, rgba(42, 36, 33, .42) 58%, rgba(42, 36, 33, .82) 100%),
            linear-gradient(90deg, rgba(42, 36, 33, .78) 0%, rgba(42, 36, 33, .5) 50%, rgba(42, 36, 33, .08) 100%);
    }
    .hero-content {
        max-width: 340px;
        padding: 52px 0 36px;
    }
    .hero-eyebrow {
        font-size: 12px !important;
        line-height: 1.35 !important;
        margin-bottom: 18px;
    }
    .hero-trust { gap: 20px; padding-top: 18px; }
    .hero-trust .item { font-size: 13px !important; }
    .header-cta { display: none; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    nav.main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--paper);
        padding: 80px 24px 24px;
        box-shadow: -8px 0 32px rgba(0, 0, 0, .15);
        transition: right .25s ease;
        z-index: 45;
        overflow-y: auto;
    }
    nav.main-nav.is-open { right: 0; }
    nav.main-nav ul { flex-direction: column; gap: 4px; align-items: stretch; }
    nav.main-nav a {
        padding: 14px 16px;
        font-size: 16px;
        display: block;
    }
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(42, 36, 33, .5);
        z-index: 44;
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s, visibility .2s;
    }
    .nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    .value-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .brand-wall { grid-template-columns: repeat(3, 1fr); }
    .case-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .door-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(2, 1fr); padding: 28px 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .mobile-cta { display: flex; }
    body {
        padding-bottom: 80px;
        font-size: 15px !important;
    }

    /* In-app browser px override（手機尺寸時用固定 px 取代 clamp） */
    .hero h1 {
        max-width: 240px;
        font-size: 31px !important;
        line-height: 1.18 !important;
        margin-bottom: 18px;
        text-wrap: balance;
    }
    .hero h1 .accent {
        white-space: nowrap;
    }
    .hero-sub {
        max-width: 330px;
        font-size: 15px !important;
        line-height: 1.72 !important;
        margin-bottom: 28px;
    }
    .hero-ctas {
        gap: 12px;
        margin-bottom: 26px;
    }
    .hero-ctas .btn {
        font-size: 15px !important;
        line-height: 1.2 !important;
        padding: 14px 20px;
        min-height: 52px;
    }
    h2.section-title { font-size: 26px !important; line-height: 1.25 !important; }
    .section-lede { font-size: 15px !important; line-height: 1.75 !important; }
    .page-header h1 { font-size: 30px !important; line-height: 1.2 !important; }
    .cta-strip h2 { font-size: 24px !important; line-height: 1.28 !important; }

    .utility-bar { font-size: 13px !important; }
    .utility-bar .util-left,
    .utility-bar .util-right {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .logo-img { width: min(176px, 54vw); }
    .footer-brand .logo-img { width: min(210px, 68vw); }
    .hero { min-height: 610px; }
    .hero-bg img { object-position: 67% center; }
    .hero-content { padding: 46px 0 32px; }
    .hero h1 {
        max-width: 220px;
        font-size: 30px !important;
        line-height: 1.16 !important;
    }
    .hero-sub {
        max-width: 335px;
        font-size: 15px !important;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-ctas .btn {
        width: auto;
        min-width: 210px;
        max-width: 100%;
        justify-content: center;
    }
    .hero-trust { gap: 14px; }
    .hero-trust .item { flex-direction: column; align-items: flex-start; gap: 2px; }
    .hero-trust .num { font-size: 22px !important; }
    .brand-wall { grid-template-columns: repeat(2, 1fr); }
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
