/* Hong Kong Game Gear Zone — approved design stylesheet
   Wordmark red sampled from the official logo (~#d6050a / #fe0000).
   IBM Plex Sans, self-hosted in the theme assets folder.
   Aggressive homepage layout is scoped to .home-landing so Elementor
   page sections are not restyled by the marketing homepage rules. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #d1050a;
  --red-hot: #fe0000;
  --red-deep: #9b0408;
  --ink: #141414;
  --text: #1c1c1c;
  --muted: #5c5c5c;
  --line: #e2e0dc;
  --paper: #f3f1ee;
  --white: #ffffff;
  --header: #0b0b0b;
  --hero: #111111;
  --footer: #0b0b0b;
  --whatsapp: #128c7e;
  --whatsapp-hover: #0e7368;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 28px rgba(11, 11, 11, 0.08);
  --header-h: 76px;
  --max: 1120px;
  --font: "IBM Plex Sans", "Noto Sans CJK HK", "Noto Sans TC", "PingFang HK",
    "Source Han Sans K", "Source Han Sans", "Microsoft JhengHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
.logo-link img,
.footer-logo,
.hero-mosaic img,
.case-card img,
.post-card img,
.featured-image img { display: block; }
a { color: var(--red-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red-hot);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -48px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.96);
  backdrop-filter: blur(10px);
  color: #f2f2f2;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo-link img {
  width: 190px;
  height: 60px;
  object-fit: contain;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #f2f2f2;
  border-radius: 1px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
}
.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
}
.site-nav a {
  text-decoration: none;
  color: #e8e8e8;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  font-family: inherit;
}
.header-cta { padding: 0.5rem 0.9rem; font-size: 0.88rem; }
.header-cta svg,
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.btn-whatsapp,
.header-cta-wa {
  background: var(--whatsapp);
  color: var(--white) !important;
  text-decoration: none !important;
}
.btn-whatsapp:hover,
.header-cta-wa:hover { background: var(--whatsapp-hover); color: var(--white) !important; }
.btn-book,
.header-cta-book {
  background: var(--red);
  color: var(--white) !important;
  text-decoration: none !important;
}
.btn-book:hover,
.header-cta-book:hover { background: var(--red-deep); color: var(--white) !important; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.06); }

/* Hero */
.hero {
  position: relative;
  background: var(--hero);
  color: #f4f4f4;
  overflow: hidden;
  padding: 3.4rem 0 3.8rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(120% 80% at 80% 20%, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -180px;
  background: radial-gradient(circle, rgba(209, 5, 10, 0.22), transparent 64%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 2.4rem;
  align-items: center;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f0c9c9;
  margin: 0 0 0.9rem;
}
.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-hot);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
  color: #fff;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.legal-name {
  margin: 0 0 1.05rem;
  font-size: 1.05rem;
  color: #cfcfcf;
  font-weight: 500;
}
.lead {
  margin: 0 0 1.45rem;
  font-size: 1.06rem;
  color: #e4e4e4;
  max-width: 38rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}
.cta-row .btn {
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  font-size: 1rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c8c8c8;
  font-size: 0.92rem;
}
.hero-meta strong { color: #fff; font-weight: 600; }
.hero-meta a { color: #fff; text-decoration: none; }
.hero-meta a:hover { color: #ffd0d0; }

.hero-mosaic {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.7rem;
  min-height: 380px;
}
.hero-mosaic figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.hero-mosaic figure:first-child {
  grid-row: 1 / span 2;
}
.hero-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-mosaic figure:first-child img {
  object-position: center 80%;
}
.hero-mosaic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.75rem 0.7rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Sections — homepage marketing blocks only */
.home-landing section { padding: 4rem 0; }
.section-head { margin-bottom: 1.8rem; }
.section-head .head-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.85rem 1.5rem;
  flex-wrap: wrap;
}
.section-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}
.section-head h2,
.home-landing .contact h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 42rem;
}

/* Services */
.services { background: var(--paper); border-bottom: 1px solid var(--line); }
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover {
  border-color: var(--red);
  color: inherit;
  transform: translateY(-2px);
}
.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8ecec;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 {
  margin: 0;
  font-size: 1.18rem;
  color: var(--ink);
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.service-card .go {
  margin-top: auto;
  padding-top: 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--red-deep);
  text-decoration: none;
}

/* How-to */
.howto { background: var(--white); }
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.path-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.25rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}
.path-card .step {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
}
.path-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
}
.path-card p,
.path-card li,
.path-card address {
  margin: 0;
  font-size: 0.94rem;
  font-style: normal;
  color: var(--text);
}
.path-card ol {
  margin: 0.15rem 0 0.35rem;
  padding-left: 1.15rem;
}
.path-card li + li { margin-top: 0.35rem; }
.path-card .btn { margin-top: auto; align-self: flex-start; min-height: 44px; }
.path-note {
  color: var(--muted) !important;
  font-size: 0.86rem !important;
}

/* Cases */
.cases { background: var(--paper); border-block: 1px solid var(--line); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  min-width: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.case-card:hover {
  border-color: var(--red);
  color: inherit;
  transform: translateY(-2px);
}
.case-card .thumb {
  aspect-ratio: 16 / 10;
  background: #1a1a1a;
  overflow: hidden;
}
.case-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-card.wide-photo .thumb img { object-position: center 62%; }
.case-body { padding: 0.95rem 1.05rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.case-date {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.case-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
}
.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card .go {
  margin-top: auto;
  padding-top: 0.55rem;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--red-deep);
}

/* Contact */
.home-landing .contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem 2rem;
  align-items: start;
}
.hours-callout {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  margin: 0 0 1.15rem;
}
.hours-callout dt {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0c9c9;
  font-weight: 600;
}
.hours-callout dd {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--red); }
.contact-list address { font-style: normal; margin: 0; }
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  min-height: 320px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}
.map-link { display: inline-block; margin-top: 0.7rem; font-weight: 600; }
.contact-cta { margin-top: 1rem; }
.map-fallback {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #c8c8c8;
  padding: 2.6rem 0 1.6rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.8rem;
  margin-bottom: 1.8rem;
}
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}
.site-footer p { margin: 0 0 0.5rem; }
.site-footer a { color: #e8e8e8; }
.site-footer a:hover { color: #fff; }
.footer-logo {
  width: 170px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 0.7rem;
}
.socials, .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.socials li, .footer-links li { margin: 0 0 0.35rem; }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.1rem;
  margin: 0;
  color: #8d8d8d;
  font-size: 0.82rem;
}
.nobr { white-space: nowrap; }

/* Mobile CTA bar */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(11, 11, 11, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  gap: 0.55rem;
}
.mobile-cta .btn {
  flex: 1 1 0;
  min-height: 48px;
}

.ext::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.2em;
  font-size: 0.85em;
  opacity: 0.75;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .path-grid,
  .case-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-mosaic { min-height: 300px; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #121212;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.75rem 0.5rem; font-size: 1rem; }
  .site-nav .header-actions {
    display: flex;
    flex-direction: column;
    margin-top: 0.4rem;
  }
  .site-nav .header-actions .header-cta { width: 100%; min-height: 44px; }
  .logo-link img { width: 160px; height: 50px; }
  .hero { padding: 2.2rem 0 2.4rem; }
  .hero-mosaic { display: none; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .service-grid,
  .path-grid,
  .case-grid { grid-template-columns: 1fr; }
  .home-landing section { padding: 3rem 0; }
  .mobile-cta { display: flex; }
  .site-footer { padding-bottom: 6.2rem; }
  .contact-list li { grid-template-columns: 4.6rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header, .mobile-cta, .nav-toggle { position: static; }
  .mobile-cta, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  .hero { background: #fff; color: #000; }
  .hero h1, .hero-meta strong, .legal-name, .lead { color: #000; }
  a { color: #000; }
}


/* In-page Calendly embed */
.hkggz-calendly {
  scroll-margin-top: calc(var(--header-h) + 12px);
  padding: 3.2rem 0 3.6rem;
  background: #f6f5f3;
}
.hkggz-calendly .section-head { margin-bottom: 1.4rem; }
.hkggz-calendly-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 700px;
}
.hkggz-calendly-frame .calendly-inline-widget {
  min-width: 320px;
  height: 700px;
}
.site-main-elementor .hkggz-calendly {
  margin-top: 0;
}
