/* ============================================================
   東森物業保全 EASTERN PROPERTY GROUP
   主樣式 — 企業形象 / 保全 + 物業管理
   配色：深海軍藍 (信任) + 品牌 teal (logo 漸層) + 暖金 (認證/榮譽)
   ============================================================ */

/* --- 擋 in-app webview 自動放大文字（鐵律）--- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

:root {
  --navy-900: #08233F;
  --navy-800: #0E2A47;
  --navy-700: #143A5E;
  --navy-600: #1E4E7A;
  --blue-500: #2E73B0;

  --teal-600: #0C8FA6;
  --teal-500: #14A3B8;
  --teal-400: #34BACC;

  --gold-500: #C8A24A;
  --gold-400: #DDBE73;

  --white: #ffffff;
  --gray-50: #F6F8FB;
  --gray-100: #EDF1F6;
  --gray-200: #DCE3EC;
  --gray-300: #C2CCDA;
  --gray-500: #7C899B;
  --gray-700: #45556A;
  --gray-800: #2B3849;
  --ink: #16202E;

  --grad-brand: linear-gradient(135deg, #14A3B8 0%, #2E73B0 55%, #143A5E 100%);
  --grad-hero: linear-gradient(160deg, #0B2A4A 0%, #0E2A47 38%, #103653 70%, #0C8FA6 130%);

  --shadow-sm: 0 1px 3px rgba(8,35,63,.08), 0 1px 2px rgba(8,35,63,.06);
  --shadow-md: 0 8px 24px rgba(8,35,63,.10);
  --shadow-lg: 0 18px 48px rgba(8,35,63,.16);

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
/* ⚠️ 用 clip 不用 hidden（hidden 會殺死 sticky header）*/
html, body { overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; color: var(--navy-800); letter-spacing: .01em; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--gray-50); }
.section--navy { background: var(--navy-800); color: var(--gray-100); }

.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 800; letter-spacing: .18em;
  color: var(--teal-600); text-transform: uppercase; margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--teal-400); }
.section-head h2 { font-size: clamp(26px, 4.2vw, 40px); margin-bottom: 16px; }
.section-head p { color: var(--gray-700); font-size: clamp(15px, 2.2vw, 18px); }
.section--navy .section-head h2 { color: #fff; }
.section--navy .section-head p { color: #C9D6E6; }

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section-head h2 { font-size: 25px; }
  .eyebrow { font-size: 13px; }
}

/* ====== 按鈕 ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 800; font-size: 16px;
  cursor: pointer; border: 0; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px rgba(20,163,184,.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,163,184,.42); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #3a2c06; box-shadow: 0 8px 20px rgba(200,162,74,.32); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-line { background: #06C755; color: #fff; box-shadow: 0 8px 20px rgba(6,199,85,.30); }
.btn-line:hover { transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--navy-700); border: 1.5px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--teal-500); color: var(--teal-600); }
@media (max-width: 768px) { .btn { font-size: 15px; padding: 13px 24px; } }

/* ====== TOPBAR ====== */
.topbar {
  background: var(--navy-900); color: #BcCadb; font-size: 13.5px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #C9D6E6; }
.topbar a:hover { color: #fff; }
.topbar__left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__left span { color: #93A6Bd; }
.topbar__right { display: flex; gap: 18px; }
.topbar__right strong { color: var(--teal-400); font-weight: 800; }
@media (max-width: 768px) { .topbar { display: none; } }

/* ====== HEADER (sticky 鐵律) ====== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 14px rgba(8,35,63,.05);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }

/* Logo（純 CSS 字標，正式 logo 檔到貨後替換）*/
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--grad-brand); position: relative; flex: none;
  box-shadow: 0 6px 16px rgba(20,163,184,.34);
}
.brand__mark::before {
  content: "e"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700;
  font-size: 28px; color: #fff;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 20px; font-weight: 900; color: var(--navy-800); letter-spacing: .02em; }
.brand__en { font-size: 10.5px; font-weight: 700; color: var(--teal-600); letter-spacing: .14em; }
@media (max-width: 480px) { .brand__name { font-size: 17px; } .brand__mark { width: 40px; height: 40px; } .brand__mark::before { font-size: 24px; } }

/* NAV */
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: block; padding: 10px 16px; font-weight: 700; font-size: 15.5px; color: var(--gray-800);
  border-radius: 10px; transition: color .15s, background .15s;
}
.nav > ul > li > a:hover, .nav > ul > li.active > a { color: var(--teal-600); background: var(--gray-100); }
.nav .nav-cta { margin-left: 12px; }

/* 下拉子選單 */
.has-sub > a::after { content: "▾"; font-size: 11px; margin-left: 5px; color: var(--gray-500); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 234px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease; z-index: 60;
}
.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a {
  display: block; padding: 11px 14px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--gray-800);
}
.submenu li a:hover { background: var(--gray-100); color: var(--teal-600); }
.submenu li a small { display: block; font-size: 12px; font-weight: 500; color: var(--gray-500); margin-top: 2px; }

/* 漢堡 */
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2.5px; background: var(--navy-800); border-radius: 2px; margin: 5px 0; transition: .2s; }

.nav-close { display: none; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { display: none; }
  /* ⚠️ backdrop-filter 會讓 position:fixed 子元素以 header 為容器（≈76px）、
     導致全螢幕 overlay 縮成一條。手機關掉 backdrop-filter、改實心底色，
     fixed overlay 才會以「視窗」為基準鋪滿。 */
  .site-header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* ⚠️ 用 fixed 不用 absolute：absolute 是 sticky header 的子元素，
     在 Safari/WebKit 會定位到 header 原始位置（頁面最上方），捲動後一按漢堡
     選單就跑到看不到的頂端。fixed 釘在視窗、不論捲到哪都正確顯示。 */
  .nav.open {
    display: flex; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 14px 18px calc(22px + env(safe-area-inset-bottom));
    box-shadow: none; overflow-y: auto; -webkit-overflow-scrolling: touch;
    z-index: 200;  /* 蓋過 sticky header(z-index:100) */
  }
  .nav.open > ul { flex-direction: column; gap: 0; align-items: stretch; }
  .nav.open > ul > li > a { padding: 15px 6px; border-bottom: 1px solid var(--gray-100); border-radius: 0; font-size: 16.5px; }
  .nav.open .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: auto;
  }
  .nav.open .submenu li a { padding: 11px 8px; font-size: 15px; }
  .nav.open .nav-cta { margin: 16px 0 0; }
  .nav.open .nav-cta .btn { width: 100%; }
  .nav-close { align-self: flex-end; display: block; background: transparent; border: 0; font-size: 34px; line-height: 1; padding: 0 6px 4px; cursor: pointer; color: var(--gray-700); }
  .nav-close:hover { color: var(--teal-600); }
}
body.nav-open { overflow: hidden; }

/* ====== HERO ====== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: clamp(560px, 70vw, 720px);
  display: flex; align-items: center;
  padding: clamp(76px, 10vw, 126px) 0 clamp(74px, 9vw, 112px);
  background:
    linear-gradient(90deg, rgba(5, 22, 39, .84) 0%, rgba(8, 35, 63, .68) 34%, rgba(8, 35, 63, .24) 60%, rgba(8, 35, 63, 0) 100%),
    linear-gradient(180deg, rgba(8,35,63,.06), rgba(8,35,63,.36)),
    url("../images/home/hero-property-security-wide.webp") center right / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(8,35,63,0) 74%, rgba(8,35,63,.18) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .08;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, #000, transparent 68%);
}
.hero .container {
  position: relative; z-index: 2;
  display: block;
}
.hero__inner { max-width: 720px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px; color: #DFF3F7;
}
.hero__badge b { color: var(--gold-400); }
.hero h1 { color: #fff; font-size: clamp(30px, 5.6vw, 56px); line-height: 1.18; letter-spacing: .01em; }
.hero h1 .accent { background: linear-gradient(90deg, #34BACC, #7fd9e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(16px, 2.4vw, 20px); color: #CFE0EE; margin: 22px 0 34px; max-width: 620px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__areas { margin-top: 40px; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; color: #AEC4D8; font-size: 14.5px; }
.hero__areas b { color: #fff; font-weight: 800; }
.hero__areas .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal-400); }
@media (max-width: 768px) {
  .hero {
    min-height: 680px;
    align-items: flex-end;
    background:
      linear-gradient(180deg, rgba(5, 22, 39, .04) 0%, rgba(5, 22, 39, .08) 36%, rgba(5, 22, 39, .78) 68%, rgba(5, 22, 39, .92) 100%),
      url("../images/home/hero-property-security-wide.webp") 72% top / auto 58% no-repeat,
      linear-gradient(135deg, #0b243e, #123958);
    padding-top: 300px;
  }
  .hero h1 { font-size: 31px; }
  .hero__lead { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* 浮動信任條 */
.trust-strip { background: var(--navy-900); }
.trust-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 30px; padding-bottom: 30px; }
.trust-strip__item { text-align: center; color: #fff; padding: 8px; }
.trust-strip__num { font-size: clamp(26px, 4vw, 40px); font-weight: 900; color: var(--teal-400); line-height: 1; }
.trust-strip__num span { font-size: 18px; }
.trust-strip__label { font-size: 13.5px; color: #AEC4D8; margin-top: 8px; font-weight: 600; }
@media (max-width: 680px) { .trust-strip .container { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; } }

/* ====== 集團三公司 ====== */
.photo-feature {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 26px; align-items: stretch; margin-bottom: 30px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow-md);
}
.photo-feature--before-grid { margin-top: -18px; }
.photo-feature--text-only {
  display: block;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.photo-feature__body { padding: clamp(24px, 4vw, 42px); display: flex; flex-direction: column; justify-content: center; }
.photo-feature__body h3 { font-size: clamp(22px, 3.2vw, 32px); margin-bottom: 14px; }
.photo-feature__body p { color: var(--gray-700); }
@media (max-width: 780px) {
  .photo-feature { grid-template-columns: 1fr; }
}

.group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.group-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
.group-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-brand); }
.group-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal-400); }
.group-card__photo {
  width: calc(100% + 56px); max-width: none; height: 156px; object-fit: cover; object-position: center;
  margin: -32px -28px 24px; border-bottom: 1px solid var(--gray-200);
}
.group-card__ico { width: 56px; height: 56px; border-radius: 14px; background: var(--gray-100); color: var(--teal-600); display: grid; place-items: center; margin-bottom: 18px; }
.group-card__ico svg, .svc-card__ico svg, .why-card__ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.group-card h3 { font-size: 20px; margin-bottom: 6px; }
.group-card .sub { font-size: 13px; color: var(--teal-600); font-weight: 700; letter-spacing: .04em; margin-bottom: 14px; }
.group-card p { color: var(--gray-700); font-size: 15px; }
@media (max-width: 880px) { .group-grid { grid-template-columns: 1fr; } }

/* ====== 服務卡片 ====== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.svc-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
  overflow: hidden; position: relative;
}
.svc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-brand); }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.svc-card__photo {
  width: calc(100% + 52px); max-width: none; height: 152px; object-fit: cover; object-position: center;
  margin: -30px -26px 22px; border-bottom: 1px solid var(--gray-200);
}
.svc-card__ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(20,163,184,.14), rgba(46,115,176,.14)); color: var(--teal-600);
}
.svc-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.svc-card p { color: var(--gray-700); font-size: 14.5px; margin-bottom: 14px; }
.svc-card ul { margin-top: auto; }
.svc-card ul li { position: relative; padding-left: 22px; font-size: 14px; color: var(--gray-700); margin-bottom: 7px; }
.svc-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-600); font-weight: 900; }
@media (max-width: 880px) { .svc-grid, .svc-grid--2 { grid-template-columns: 1fr; } }

/* ====== 為什麼選我們 ====== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 30px 26px; overflow: hidden;
}
.why-card__photo {
  width: calc(100% + 52px); max-width: none; height: 148px; object-fit: cover; object-position: center;
  margin: -30px -26px 22px; border-bottom: 1px solid rgba(255,255,255,.12); opacity: .94;
}
.why-card__ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(52,186,204,.12); color: var(--teal-400);
}
.why-card h3 { color: #fff; font-size: 19px; margin-bottom: 10px; }
.why-card p { color: #C2D2E2; font-size: 14.5px; }
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr; } }

/* ====== 服務區域 ====== */
.areas-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.areas-list { display: flex; flex-wrap: wrap; gap: 12px; }
.area-pill {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 999px; padding: 12px 24px;
  font-weight: 800; color: var(--navy-700); box-shadow: var(--shadow-sm); font-size: 16px;
}
.area-pill b { color: var(--teal-600); }
.areas-note { color: var(--gray-700); font-size: 15px; margin-top: 20px; }
@media (max-width: 880px) { .areas-wrap { grid-template-columns: 1fr; gap: 26px; } }

/* ====== 流程 ====== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px 24px; position: relative; box-shadow: var(--shadow-sm); }
.step__n { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 18px; margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--gray-700); font-size: 14px; }
.process-photo {
  display: grid; grid-template-columns: minmax(260px, .7fr) 1fr; gap: 22px; align-items: center;
  margin-top: 28px; padding: 18px; background: #fff; border: 1px solid var(--gray-200);
  border-radius: 22px; box-shadow: var(--shadow-sm);
}
.process-photo--text {
  display: block;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding: 28px;
}
.process-photo strong { display: block; color: var(--navy-800); font-size: 22px; line-height: 1.4; margin-bottom: 8px; }
.process-photo span { color: var(--gray-700); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .process-photo { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ====== CTA 區 ====== */
.cta-band {
  background:
    linear-gradient(90deg, rgba(8,35,63,.96), rgba(8,35,63,.82));
  position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .5; background: radial-gradient(circle at 85% 30%, rgba(52,186,204,.4), transparent 45%); }
.cta-band .container { position: relative; z-index: 2; text-align: center; padding: clamp(54px, 8vw, 86px) 20px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.cta-band p { color: #CFE0EE; font-size: 17px; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ====== 內頁 PAGE HERO ====== */
.page-hero { background: var(--grad-hero); color: #fff; position: relative; overflow: hidden; padding: clamp(54px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .45; background: radial-gradient(circle at 82% 22%, rgba(52,186,204,.4), transparent 44%); }
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { font-size: 13.5px; color: #A9C0D6; margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; opacity: .6; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 5vw, 46px); }
.page-hero p { color: #CFE0EE; font-size: clamp(15px, 2.2vw, 18px); margin-top: 16px; max-width: 680px; }
.page-hero--image {
  min-height: clamp(560px, 70vw, 720px);
  display: flex;
  align-items: center;
  padding: clamp(76px, 10vw, 126px) 0 clamp(74px, 9vw, 112px);
  background:
    linear-gradient(90deg, rgba(5,22,39,.82) 0%, rgba(8,35,63,.62) 34%, rgba(8,35,63,.22) 58%, rgba(8,35,63,0) 82%),
    linear-gradient(180deg, rgba(8,35,63,.04), rgba(8,35,63,.28)),
    var(--page-hero-img) center right / cover no-repeat;
}
.page-hero--image::before {
  opacity: 1;
  background: linear-gradient(180deg, rgba(8,35,63,0) 74%, rgba(8,35,63,.18) 100%);
}
.page-hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .06;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, #000, transparent 68%);
}
.page-hero--image h1 { font-size: clamp(30px, 5.6vw, 56px); line-height: 1.18; max-width: 560px; }
.page-hero--image p { font-size: clamp(16px, 2.4vw, 20px); max-width: 560px; }
.page-hero--about { --page-hero-img: url("../images/hero/about-hero.webp"); }
.page-hero--security { --page-hero-img: url("../images/hero/security-hero.webp"); }
.page-hero--property { --page-hero-img: url("../images/hero/property-hero.webp"); }
.page-hero--contact { --page-hero-img: url("../images/hero/contact-hero.webp"); }
@media (max-width: 768px) {
  .page-hero--image {
    min-height: 680px;
    align-items: flex-end;
    background:
      linear-gradient(180deg, rgba(5,22,39,.04) 0%, rgba(5,22,39,.08) 36%, rgba(5,22,39,.78) 68%, rgba(5,22,39,.92) 100%),
      var(--page-hero-img) 72% top / auto 58% no-repeat,
      linear-gradient(135deg, #0b243e, #123958);
    padding-top: 300px;
  }
  .page-hero--image h1 { font-size: 31px; }
  .page-hero--image p { font-size: 16px; }
}

/* ====== 內文排版 ====== */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(22px, 3.5vw, 30px); margin: 40px 0 16px; }
.prose h3 { font-size: 20px; margin: 28px 0 12px; color: var(--navy-700); }
.prose p { color: var(--gray-700); margin-bottom: 16px; }
.prose ul.bullets { margin: 0 0 20px; }
.prose ul.bullets li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--gray-700); }
.prose ul.bullets li::before { content: "▪"; position: absolute; left: 4px; color: var(--teal-600); font-size: 18px; line-height: 1.3; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 24px; } .split--reverse > :first-child { order: 0; } }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-list li { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 16px 18px; }
.feature-list li b { display: block; color: var(--navy-800); margin-bottom: 4px; }
.feature-list li span { font-size: 14px; color: var(--gray-700); }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

.illus-card { background: var(--grad-hero); border-radius: var(--radius); padding: 44px 36px; color: #fff; box-shadow: var(--shadow-lg); }
.illus-card--photo { padding: 0; overflow: hidden; }
.illus-card--photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.illus-card__body { padding: 30px 32px 34px; }
.illus-card .big-ico { font-size: 56px; margin-bottom: 18px; }
.illus-card h3 { color: #fff; font-size: 22px; margin-bottom: 12px; }
.illus-card p { color: #CFE0EE; }
.illus-card ul { margin-top: 18px; }
.illus-card ul li { position: relative; padding-left: 24px; margin-bottom: 10px; color: #DCE9F4; font-size: 15px; }
.illus-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-400); font-weight: 900; }
.about-group-card {
  position: relative;
  min-height: 398px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(8,35,63,.92) 0%, rgba(8,35,63,.82) 35%, rgba(8,35,63,.34) 62%, rgba(8,35,63,.12) 100%),
    url("../images/about/group-office.webp") 62% center / cover no-repeat;
}
.about-group-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 38%);
  pointer-events: none;
}
.about-group-card > * {
  position: relative;
  z-index: 1;
  max-width: 330px;
}
.about-group-card__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 22px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}
@media (max-width: 880px) {
  .about-group-card {
    min-height: 360px;
    background:
      linear-gradient(90deg, rgba(8,35,63,.94) 0%, rgba(8,35,63,.82) 44%, rgba(8,35,63,.34) 100%),
      url("../images/about/group-office.webp") 70% center / cover no-repeat;
  }
}

/* ====== FAQ ====== */
.faq-item { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 24px; font-size: 16.5px; font-weight: 700; color: var(--navy-800); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q::after { content: "+"; font-size: 24px; color: var(--teal-600); flex: none; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a__inner { padding: 0 24px 22px; color: var(--gray-700); }
.faq-item.open .faq-a { max-height: 460px; }

/* ====== 聯絡 ====== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
.info-card { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 36px 32px; }
.info-card h3 { color: #fff; font-size: 22px; margin-bottom: 20px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.info-row:last-of-type { border-bottom: 0; }
.info-row .ico { font-size: 20px; flex: none; width: 26px; }
.info-row .lbl { font-size: 12.5px; color: #9FB6CC; letter-spacing: .04em; }
.info-row .val { font-size: 16px; color: #fff; font-weight: 600; }
.info-row .val a:hover { color: var(--teal-400); }
.info-card__cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 700; font-size: 14.5px; color: var(--navy-800); margin-bottom: 7px; }
form label .req { color: #d9534f; }
form input, form select, form textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
form input:focus, form select:focus, form textarea:focus { outline: 0; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20,163,184,.15); }
form textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 13px; color: var(--gray-500); margin-top: 10px; }

/* ====== FOOTER ====== */
.site-footer { background: var(--navy-900); color: #AEC4D8; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { font-size: 14px; color: #93A6Bd; margin-top: 16px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .05em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: #AEC4D8; }
.footer-col ul li a:hover { color: var(--teal-400); }
.footer-contact p { font-size: 14px; margin-bottom: 12px; display: flex; gap: 10px; }
.footer-contact .ico { flex: none; }
.footer-contact a { color: #C9D6E6; }
.footer-contact a:hover { color: var(--teal-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #7E92A8; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) {
  .site-footer { padding-top: 42px; }
  /* 兩個服務清單並排、品牌與聯絡橫跨整列 → 縮短手機頁尾長度 */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; padding-bottom: 32px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-brand p { margin-top: 12px; }
  .footer-col h4 { margin-bottom: 12px; }
  .footer-col ul li { margin-bottom: 8px; }
  .footer-contact p { margin-bottom: 10px; }
}

/* 浮動 LINE / 電話 按鈕 */
.float-actions { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); color: #fff; font-size: 26px; transition: transform .18s; }
.float-btn:hover { transform: scale(1.08); }
.float-btn--line { background: #06C755; }
.float-btn--tel { background: var(--grad-brand); }
@media (min-width: 981px) { .float-btn--tel { display: none; } }

/* ====== 最新消息跑馬燈（首頁）====== */
.news-ticker { background: #fff; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.news-ticker .container { display: flex; align-items: center; gap: 0; height: 52px; padding: 0; }
.news-ticker__label {
  flex: none; display: flex; align-items: center; gap: 7px; height: 100%;
  padding: 0 20px; font-weight: 800; font-size: 14.5px; color: #fff;
  background: var(--grad-brand); white-space: nowrap; letter-spacing: .03em;
}
.news-ticker__label .pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: nt-pulse 1.4s ease-in-out infinite; }
@keyframes nt-pulse { 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity: .4; transform: scale(.7);} }
.news-ticker__viewport { flex: 1; overflow: hidden; position: relative; height: 100%; }
.news-ticker__track { display: inline-flex; align-items: center; gap: 56px; height: 100%; padding-left: 24px; white-space: nowrap; animation: nt-scroll 28s linear infinite; }
.news-ticker__viewport:hover .news-ticker__track { animation-play-state: paused; }
.news-ticker__track a { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--gray-800); font-weight: 600; }
.news-ticker__track a:hover { color: var(--teal-600); }
.news-ticker__track a .date { font-size: 12.5px; font-weight: 700; color: var(--teal-600); background: var(--gray-100); padding: 3px 9px; border-radius: 999px; flex: none; }
@keyframes nt-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px) {
  .news-ticker .container { height: 46px; }
  .news-ticker__label { padding: 0 14px; font-size: 13px; }
  .news-ticker__label .nt-text { display: none; }
}

/* ====== 最新消息頁（沿用 faq 手風琴）====== */
.news-list { max-width: 860px; margin: 0 auto; }
.news-item .faq-q { align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.news-item .news-date { font-size: 13px; font-weight: 800; color: var(--teal-600); background: var(--gray-100); padding: 4px 12px; border-radius: 999px; flex: none; }
.news-item .news-title { flex: 1 1 60%; min-width: 220px; }
.news-item.open .faq-a { max-height: 1400px; }
.news-item .faq-a__inner p { margin-bottom: 12px; }
.news-item .faq-a__inner ul { margin: 6px 0 14px; }
.news-item .faq-a__inner ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.news-item .faq-a__inner ul li::before { content: "▪"; position: absolute; left: 2px; color: var(--teal-600); font-size: 17px; line-height: 1.4; }
.news-item .faq-a__inner .news-meta { margin-top: 8px; font-size: 13.5px; color: var(--gray-500); }

/* ====== 案例實績（about 頁）====== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); border-top: 4px solid; border-image: var(--grad-brand) 1;
  transition: transform .2s, box-shadow .2s;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.case-card h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.45; }
.case-card__meta { font-size: 13px; font-weight: 700; color: var(--teal-600); margin-bottom: 12px; }
.case-card p { color: var(--gray-700); font-size: 14.5px; }
@media (max-width: 880px) { .case-grid { grid-template-columns: 1fr; } }

/* utility */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
