/* ============================================================
   fix.com.hk — 中華電器維修中心 × Fixes維修兵團
   Hand-written design system. No framework, no build step.
   ============================================================ */

:root {
  --ink: #0e2a3a;          /* deep navy */
  --ink-soft: #38566a;
  --teal: #14a8a3;         /* Fixes teal */
  --teal-dark: #0d7f7b;
  --teal-tint: #e7f6f5;
  --red: #d6453d;          /* heritage vermillion */
  --red-dark: #b8362f;
  --paper: #f6f9fa;
  --card: #ffffff;
  --line: #e2ebee;
  --gold: #e8a33d;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(14, 42, 58, .08);
  --shadow-lg: 0 12px 40px rgba(14, 42, 58, .14);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; max-width: 1100px; margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-weight: 900; font-size: 1.05rem; color: var(--ink); letter-spacing: .02em; line-height: 1.25; }
.brand-sub { display: block; font-size: .7rem; font-weight: 500; color: var(--teal-dark); letter-spacing: .08em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 10px; text-decoration: none !important;
}
.main-nav a:hover { background: var(--teal-tint); color: var(--teal-dark); }
.main-nav a.is-active { color: var(--teal-dark); font-weight: 700; background: var(--teal-tint); }

.nav-cta {
  background: var(--teal); color: #fff !important; font-weight: 700;
  padding: 9px 16px !important; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(214, 69, 61, .35);
}
.nav-cta:hover { background: var(--teal-dark) !important; }

/* mobile nav: pure CSS toggle */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 8px; border-radius: 8px; }
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  display: block; width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--ink); position: relative; content: ""; transition: all .2s;
}
.nav-toggle-label span::before { position: absolute; top: -7px; }
.nav-toggle-label span::after { position: absolute; top: 7px; }

@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; box-shadow: var(--shadow);
  }
  .main-nav a { padding: 12px 14px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
}

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(20, 168, 163, .35), transparent 60%),
    linear-gradient(160deg, #0e2a3a 0%, #103b4d 55%, #0d4f55 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 1; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 700; letter-spacing: .12em;
  color: #9be3df; background: rgba(20, 168, 163, .16);
  border: 1px solid rgba(155, 227, 223, .35);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  font-weight: 900; line-height: 1.35; letter-spacing: .01em;
  max-width: 23em;
}

.hero h1 em { font-style: normal; color: #7fe0db; }

.hero-sub {
  margin-top: 18px; font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #cfe3e6; max-width: 36em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.02rem; border-radius: 999px;
  padding: 14px 26px; text-decoration: none !important;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-whatsapp { background: #25d366; color: #073b1d !important; box-shadow: 0 6px 20px rgba(37, 211, 102, .35); }
.btn-call { background: #fff; color: var(--ink) !important; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.btn-red { background: var(--red); color: #fff !important; box-shadow: 0 6px 20px rgba(214, 69, 61, .4); }
.btn-ghost { background: transparent; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .55); }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 8px; color: #bfe9e6; font-size: .92rem; font-weight: 500; }
.hero-points svg { width: 16px; height: 16px; color: #7fe0db; }

/* ---------- stat band ---------- */

.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1100px; margin: 0 auto; padding: 28px 20px;
  gap: 18px; text-align: center;
}
.stat-num { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; color: var(--teal-dark); line-height: 1.2; }
.stat-label { font-size: .88rem; color: var(--ink-soft); margin-top: 4px; }

@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section.alt { background: #fff; }

.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .16em;
  color: var(--teal-dark); text-transform: uppercase; margin-bottom: 10px;
}

.section-head h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 900; line-height: 1.4; }
.section-head p { margin-top: 12px; color: var(--ink-soft); }

/* ---------- cards ---------- */

.card-grid { display: grid; gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 860px) {
  .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}

.card-media { background: #eef5f7; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.card-body p { color: var(--ink-soft); font-size: .96rem; }
.card-link { margin-top: 18px; font-weight: 700; color: var(--teal-dark); }
.card-link::after { content: " →"; }

/* feature card (no media) */
.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-tint); color: var(--teal-dark); margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: .94rem; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 900; font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .94rem; }

/* ---------- timeline (heritage) ---------- */

.timeline { list-style: none; position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--teal), var(--ink));
  border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 26px 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal);
}
.timeline-year { font-weight: 900; color: var(--teal-dark); font-size: 1.02rem; }
.timeline p { color: var(--ink-soft); font-size: .95rem; }

.heritage-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .heritage-grid { grid-template-columns: 1fr; } }
.heritage-photo { border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }

/* ---------- brand chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: .9rem; color: var(--ink-soft); font-weight: 500;
  box-shadow: 0 2px 6px rgba(14, 42, 58, .04);
}

/* ---------- symptom / fault list ---------- */

.symptoms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; }
@media (max-width: 720px) { .symptoms { grid-template-columns: 1fr; } }
.symptoms li {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; font-size: .96rem;
}
.symptoms svg { width: 20px; height: 20px; flex: none; color: var(--red); margin-top: 5px; }
.symptoms strong { display: block; }
.symptoms span { color: var(--ink-soft); font-size: .88rem; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--teal-dark); flex: none; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 22px 18px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- news ---------- */

.news-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); margin-bottom: 26px;
}
.news-date { font-size: .85rem; font-weight: 700; color: var(--teal-dark); letter-spacing: .06em; }
.news-item h2 { font-size: 1.35rem; font-weight: 900; margin: 8px 0 14px; }
.news-item p { color: var(--ink-soft); margin-bottom: 10px; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.contact-card .feature-icon { margin: 0 auto 6px; }
.contact-card h3 { font-size: 1.1rem; font-weight: 800; }
.contact-card p { color: var(--ink-soft); font-size: .92rem; }
.contact-card .btn { margin-top: 8px; padding: 11px 22px; font-size: .95rem; }

.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.info-table th, .info-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .96rem; }
.info-table th { width: 32%; color: var(--ink); font-weight: 700; background: #fbfdfe; white-space: nowrap; }
.info-table td { color: var(--ink-soft); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #0d4f55 100%);
  color: #fff; border-radius: 20px; padding: 48px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 900; line-height: 1.4; }
.cta-band p { color: #cfe3e6; margin-top: 6px; font-size: .98rem; }
.cta-band .hero-actions { margin-top: 0; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #b7cdd4; margin-top: 72px; }
.footer-grid {
  max-width: 1100px; margin: 0 auto; padding: 56px 20px 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { font-weight: 900; color: #fff; font-size: 1.15rem; }
.footer-brand small { display: block; font-weight: 500; color: #7fc7c3; font-size: .8rem; letter-spacing: .08em; margin-top: 2px; }
.footer-grid p { font-size: .9rem; margin-top: 12px; }

.footer-grid h4 { color: #fff; font-size: .95rem; font-weight: 800; margin-bottom: 14px; letter-spacing: .04em; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; font-size: .92rem; }
.footer-grid a { color: #b7cdd4; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center; padding: 20px; font-size: .82rem; color: #7d99a3;
}

/* ---------- mobile sticky action bar ---------- */

.mobile-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--line);
    box-shadow: 0 -4px 16px rgba(14, 42, 58, .12);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 10px; font-weight: 800; font-size: .98rem; text-decoration: none !important;
  }
  .mobile-bar svg { width: 19px; height: 19px; }
  .mobile-bar .m-ws { background: #25d366; color: #073b1d; }
  .mobile-bar .m-call { background: #fff; color: var(--ink); }
}

/* ---------- breadcrumb ---------- */

.breadcrumb { font-size: .85rem; color: #9bb4bd; margin-bottom: 18px; }
.breadcrumb a { color: #9be3df; }

/* page hero (inner pages) */
.page-hero { padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(1.55rem, 3.6vw, 2.4rem); }

/* utility */
.mt-32 { margin-top: 32px; }
.note { font-size: .88rem; color: var(--ink-soft); }

/* ---------- floating Google review widget ---------- */
/* NOTE: the Elfsight badge renders its own fixed element (bottom: 20px) and
   ignores this mount container; the inline loader script lifts it above the
   mobile action bar at runtime. These offsets are kept as a fallback only. */

.google-review-float { position: fixed; left: 16px; bottom: 16px; z-index: 70; }
@media (max-width: 720px) {
  .google-review-float { bottom: 84px; }
}
