/* ============================================================
   Quintara Service — 行銷首頁專用樣式
   區塊順序依 images/index.png：導覽列 → Hero → 關於 → 產品
   → 特色 → 位置聯絡 → 客戶留言 → 頁尾
   ============================================================ */

/* ---------- 導覽列 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(28, 34, 48, 0.06); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-weight: 900; color: var(--ink); position: relative; padding: 0.3rem 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--primary); transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: 0.25s; }

/* ---------- Hero（預約帶看橫幅） ---------- */
.hero { position: relative; overflow: hidden; padding: 1.5rem 0 3.5rem; }
.hero-inner { display: block; }
.hero-banner-img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-banner-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-banner-bar .hero-proof { margin-top: 0; color: var(--ink-soft); font-size: 0.95rem; }
.hero-copy { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block; padding: 0.35rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; }
.hero-title span { color: var(--primary); }
.hero-sub { max-width: 520px; margin-top: 1.4rem; font-size: 1.05rem; color: rgba(255, 255, 255, 0.78); }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 0.55rem; margin-top: 2.8rem; color: rgba(255, 255, 255, 0.62); font-size: 0.88rem; }
.proof-dot, .availability-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #85d7b2; box-shadow: 0 0 0 5px rgba(133, 215, 178, 0.14); }
.hero-visual { position: relative; min-height: 440px; }
.hero-visual::before { content: ""; position: absolute; width: 88%; height: 86%; top: -8%; right: -12%; border: 1px solid rgba(255, 255, 255, 0.18); }
.hero-visual img { position: relative; width: 100%; height: 440px; object-fit: cover; box-shadow: 22px 22px 0 rgba(188, 139, 72, 0.55); }
.hero-visual-label { position: absolute; left: -2rem; bottom: -1.7rem; padding: 1rem 1.3rem; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.hero-visual-label strong, .hero-visual-label span { display: block; }
.hero-visual-label strong { font-size: 1rem; }
.hero-visual-label span { color: var(--ink-soft); font-size: 0.72rem; margin-top: 0.2rem; }
.hero-availability { position: absolute; top: 1.5rem; right: -1.8rem; display: grid; grid-template-columns: auto 1fr; column-gap: 0.55rem; align-items: center; padding: 0.85rem 1rem; background: rgba(14, 38, 73, 0.9); border: 1px solid rgba(255, 255, 255, 0.2); }
.hero-availability .availability-dot { grid-row: span 2; }
.hero-availability strong { font-size: 0.85rem; }
.hero-availability small { color: rgba(255, 255, 255, 0.6); font-size: 0.72rem; }
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.7rem 0; }
.trust-grid div { padding: 0 1.5rem; border-right: 1px solid var(--line); }
.trust-grid div:first-child { padding-left: 0; }
.trust-grid div:last-child { border-right: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { color: var(--navy); font-size: 1.3rem; font-weight: 900; }
.trust-grid span { color: var(--ink-soft); font-size: 0.82rem; }
.hero-stats { display: flex; gap: 3rem; margin-top: 4rem; flex-wrap: wrap; }
.stat strong { display: block; font-size: 2.2rem; font-weight: 900; color: var(--primary); }
.stat span { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

/* ---------- 區塊共用 ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-tight-top { padding-top: 0; scroll-margin-top: 88px; } /* 88px 補償 sticky header，錨點點擊時標題才不會被擋住 */
.hero { scroll-margin-top: 88px; } /* 首頁錨點定位回頁面最頂端 */
#services { padding-top: 2.75rem; } /* 首頁「一站式服務」上方留白減半 */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-eyebrow {
  display: inline-block; color: var(--primary); font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 0.6rem;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; line-height: 1.3; }
.section-lead { color: var(--ink-soft); margin-top: 0.8rem; }

/* ---------- 關於 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-text { color: var(--ink-soft); margin: 1.2rem 0; }
.about-list { margin-bottom: 1.8rem; }
.about-list li { padding: 0.45rem 0; font-weight: 500; }
.about-list li::before { content: "✔ "; color: var(--primary); font-weight: 900; }

/* ---------- 產品卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.2rem; font-weight: 900; }
.card-desc { color: var(--ink-soft); font-size: 0.93rem; margin: 0.6rem 0 1rem; flex: 1; }
.card-meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 1rem; }
.card-meta span { color: var(--primary); font-size: 1.25rem; font-weight: 900; }
.card-link { font-weight: 700; color: var(--primary); }
.card-link:hover { text-decoration: underline; }

/* ---------- 一站式服務卡片 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card {
  background: var(--surface); border-radius: var(--radius); padding: 2rem 1.6rem;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-icon { width: 60px; height: 60px; margin-bottom: 1.2rem; }
.service-icon img { width: 100%; height: 100%; }
.service-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 0.5rem; }
.service-desc { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }
.service-link { margin-top: 1rem; font-weight: 700; color: var(--primary); }

/* ---------- 特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.feature {
  background: var(--surface); border-radius: var(--radius); padding: 2rem 1.6rem;
  border: 1px solid var(--line); text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; display: grid; place-items: center;
  font-size: 1.6rem; background: var(--primary-soft); color: var(--primary); border-radius: 14px;
}
.feature-title { font-size: 1.05rem; font-weight: 900; margin-bottom: 0.5rem; }
.feature-desc { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- 位置聯絡 ---------- */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
.contact-list { margin-top: 2rem; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--primary-soft); border-radius: 12px; font-size: 1.25rem;
}
.contact-list strong { display: block; font-weight: 700; }
.contact-list p { color: var(--ink-soft); }
.location-map iframe {
  width: 100%; height: 420px; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); filter: saturate(0.9);
}

/* ---------- 客戶留言 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-form { background: var(--surface); border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.phone-row { display: flex; gap: 0.5rem; }
.phone-row select { flex: 0 0 auto; width: auto; min-width: 96px; }
.phone-row input { flex: 1 1 auto; min-width: 0; width: auto; }

/* ---------- 服務詳情頁 ---------- */
.service-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0A2C60 100%); color: #fff; padding: 1.25rem 0 1.25rem; }
.service-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900; margin: 0.5rem 0 1rem; }
.service-hero .service-en { color: var(--primary); font-size: 0.45em; font-weight: 700; letter-spacing: 1px; margin-left: 0.5rem; }
.service-hero p { max-width: 640px; color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; }
.service-hero .section-eyebrow { color: var(--primary); }
.service-detail { max-width: 820px; }
.section.service-content { padding-top: 3rem; padding-bottom: 3rem; }
.service-detail-icon { width: 76px; height: 76px; margin-bottom: 1.5rem; }
.service-detail-icon img { width: 100%; height: 100%; }
.service-detail-lead { color: var(--ink-soft); font-size: 1.05rem; }
.service-detail h2 { font-size: 1.4rem; font-weight: 900; margin: 2.5rem 0 1rem; }
.service-detail ul { margin: 1rem 0 2rem; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
.service-detail li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.service-detail li::before { content: "✔ "; color: var(--primary); font-weight: 900; }
.service-cta { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.service-gallery { margin-top: 2rem; }
.service-gallery img { display: block; width: 50%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; }

/* ---------- 共享辦公空間分區 ---------- */
.coworking-section { padding-top: 3rem; }
.coworking-section .section-head { margin-bottom: 3rem; }
.coworking-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.coworking-col { background: var(--surface); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.coworking-col h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 1rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--primary-soft); }
.coworking-photos { display: grid; gap: 1rem; }
.coworking-photos.cols-2 { grid-template-columns: repeat(2, 1fr); }
.coworking-photos.cols-3 { grid-template-columns: repeat(3, 1fr); }
.coworking-photos img { width: 100%; border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }

.coworking-meeting {
  margin-top: 2.5rem; display: grid; grid-template-columns: 1.2fr 1fr;
  background: var(--navy); color: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.coworking-meeting-img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.coworking-meeting-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.9rem; }
.coworking-meeting-body h3 { font-size: 1.6rem; font-weight: 900; }
.coworking-meeting-body p { color: rgba(255, 255, 255, 0.8); }

@media (max-width: 860px) {
  .coworking-meeting { grid-template-columns: 1fr; }
  .coworking-meeting-img { min-height: 220px; }
}
@media (max-width: 560px) {
  .coworking-photos.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: 2rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 1.5rem; }
.footer-brand p { margin-top: 1rem; color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer-col a { display: block; padding: 0.3rem 0; color: rgba(255, 255, 255, 0.7); }
.footer-col a:hover { color: var(--primary); }
.footer-col p { margin: 0.3rem 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 0.7rem 0; text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- 提示框（成功／失敗） ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; background: rgba(13, 20, 35, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 340px; background: #fff;
  border-radius: 16px; padding: 2rem 1.5rem 1.4rem; text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(14px); transition: transform 0.2s ease;
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal-icon {
  width: 54px; height: 54px; margin: 0 auto 0.9rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 900; color: #fff;
}
.modal-icon.success { background: #2f9e8f; }
.modal-icon.error { background: #c0392b; }
.modal-title { font-size: 1.12rem; font-weight: 900; color: var(--ink); margin-bottom: 0.35rem; }
.modal-text { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 1.3rem; }
.modal-btn {
  width: 100%; padding: 0.7rem 1rem; border: 0; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font-size: 0.95rem; font-weight: 700;
  font-family: inherit; cursor: pointer;
}
.modal-btn:hover { background: var(--primary-dark); }

/* ---------- 進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   響應式
   ============================================================ */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 0 6%; max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease; border-bottom: 1px solid var(--line);
  }
  .nav.open { max-height: 520px; padding: 1rem 6% 1.5rem; }
  .nav-link { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 1rem 0 0; }
  .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .card-grid, .feature-grid, .service-grid { grid-template-columns: 1fr; }
  .service-detail ul { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .location-map iframe { height: 320px; }
}
