/*
Theme Name: SmartCam Goldwin
Theme URI: https://smartcam.com.hk/
Author: Goldwin Electronics Technology Limited
Description: Company website for Goldwin Electronics Technology Limited, featuring the W300G smart safety watch and AC-BCR3-EP 4G body worn camera.
Version: 1.4.0
Text Domain: goldwin-smartcam
*/

:root {
  --bg: #f6f3ec;
  --bg-2: #efe9de;
  --panel: #fbf9f4;
  --sage: #dcefe6;
  --card: rgba(251, 249, 244, 0.86);
  --line: rgba(42, 46, 51, 0.1);
  --text: #2a2e33;
  --muted: #6b6f75;
  --accent: #009473;
  --accent-2: #1d2024;
  --accent-light: #3ccf9f;
  --mint: #dcefe6;
  --photo-bg: #f6f3ec;
  --footer: #1d2024;
  --footer-text: #b9b4aa;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 22px 48px rgba(42, 46, 51, 0.08);
  --glass: blur(16px) saturate(1.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
a:focus-visible,
.btn:focus-visible,
summary:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 243, 236, 0.88);
  backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 0;
}
.logo {
  display: inline-flex; align-items: center;
  color: var(--text); line-height: 0;
  max-width: min(280px, 72vw);
}
.logo svg {
  display: block;
  height: 42px;
  width: auto;
  max-width: 100%;
}
.footer-logo {
  display: inline-flex; align-items: center;
  line-height: 0;
  max-width: min(280px, 80vw);
  margin-bottom: 12px;
}
.footer-logo svg {
  display: block;
  height: 42px;
  width: auto;
  max-width: 100%;
}
nav ul { display: flex; gap: 8px 26px; list-style: none; margin: 0; padding: 0; }
nav a {
  color: var(--text); font-weight: 500; font-size: 15px;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
nav a:hover,
nav a[aria-current="page"],
nav .current-menu-item > a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(640px 360px at 92% 12%, rgba(0, 148, 115, 0.1), transparent 62%),
    linear-gradient(180deg, #fbf9f4 0%, var(--bg) 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(42, 46, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 46, 51, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 78% 28%, #000 18%, transparent 72%);
  pointer-events: none;
}
.hero-editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 1.14fr);
  gap: 24px 28px;
  align-items: start;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 28px 0 12px 28px;
  border-left: 3px solid var(--accent);
  max-width: 36rem;
}
.hero-visual {
  position: relative;
  min-height: 320px;
  justify-self: end;
  width: min(100%, 640px);
  margin-top: 12px;
  margin-right: -2%;
  pointer-events: none;
  transform: perspective(1400px) rotateY(-9deg) rotateX(5deg);
  filter: drop-shadow(0 28px 36px rgba(42, 46, 51, 0.12));
}
.hero-svg { display: block; width: 100%; height: auto; max-height: 540px; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero-svg-nodes circle { transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .hero-svg-orbits { transform-origin: 320px 245px; animation: gs-orbit 42s linear infinite; }
  .hero-svg-nodes circle { animation: gs-pulse 4.8s ease-in-out infinite; }
  .hero-svg-nodes circle:nth-child(odd) { animation-delay: -1.6s; }
}
@keyframes gs-orbit { to { transform: rotate(360deg); } }
@keyframes gs-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 12px;
  margin: 0 0 10px;
}
.hero-brand {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}
h1, h2, h3 { line-height: 1.28; margin: 0 0 14px; font-weight: 600; letter-spacing: 0.01em; }
h1 { font-size: clamp(34px, 5.4vw, 58px); max-width: 12em; }
.lead { font-size: 18.5px; color: var(--muted); max-width: 38em; margin: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn-primary { background: var(--accent); color: #fbf9f4; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 72%, var(--footer)); color: #fbf9f4; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(0, 148, 115, 0.06); }

section { padding: 88px 0; }
.section-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.section-kicker { color: var(--muted); margin: 0 0 36px; max-width: 44em; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--card);
  backdrop-filter: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.card:hover {
  border-color: rgba(0, 148, 115, 0.28);
  box-shadow: 0 24px 50px rgba(42, 46, 51, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }

.feature-grid { counter-reset: gs-feat; }
.feature-card { padding-top: 24px; }
.feature-card h3 { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.feature-card h3::before {
  counter-increment: gs-feat;
  content: counter(gs-feat, decimal-leading-zero);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
}
.product-card-float { min-width: 0; }
@media (min-width: 901px) {
  .product-card-float:nth-child(2) { margin-top: 40px; }
}
.product-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-card-inner { display: flex; flex-direction: column; height: 100%; border-radius: inherit; }
.product-card h3, .product-card p { padding-left: 26px; padding-right: 26px; }
.product-card h3 { margin-top: 22px; }
.product-card-action { padding: 18px 26px 26px; margin-top: auto; }
.product-card-media {
  background: var(--photo-bg);
  min-height: 300px;
  display: grid; place-items: center; padding: 22px;
}
.product-card-media img { max-height: 340px; width: auto; }
.product-card-media--watch { padding: 12px 16px 4px; }
.product-card-media--watch img {
  max-width: 600px;
  max-height: 340px;
}
.product-card-media--camera { padding: 36px 40px; }
.product-card-media--camera img { max-height: 340px; }
.product-card-media--typo {
  background:
    linear-gradient(rgba(0, 148, 115, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 148, 115, 0.06) 1px, transparent 1px),
    linear-gradient(165deg, #fbf9f4 0%, #dcefe6 100%);
  background-size: 24px 24px, 24px 24px, auto;
  color: var(--accent);
  text-align: center;
  min-height: 300px;
}
.typo-frame {
  position: relative;
  padding: 28px 32px;
  min-width: 70%;
}
.typo-frame::before,
.typo-frame::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--accent);
  opacity: 0.8;
}
.typo-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.typo-frame::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.typo-model { display: block; font-size: 40px; font-weight: 600; letter-spacing: 0.12em; color: var(--text); }
.product-card-media--typo small {
  display: block; margin-top: 8px; color: var(--muted);
  font-size: 15px; letter-spacing: 0.04em;
}

.hero-photo,
.product-gallery {
  margin: 0;
  background: var(--photo-bg);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-photo { display: grid; place-items: center; }
.hero-photo img { max-height: 440px; width: auto; margin: 0 auto; }
.hero-photo--watch { background: var(--photo-bg); padding: 12px; }
.hero-photo--watch img {
  max-width: min(100%, 600px);
  max-height: 600px;
}
.hero-photo--camera { padding: 36px 40px; }
.feature-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 0 14px;
  color: var(--accent);
}
.feature-icon svg { display: block; width: 100%; height: 100%; }
.icon-card { padding-top: 24px; }
.hero-typo {
  min-height: 360px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.product-gallery img { width: 100%; height: auto; }
.product-gallery figcaption { color: var(--muted); font-size: 14px; margin-top: 14px; text-align: center; }
.spec-note { margin-top: 18px; }

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(251, 249, 244, 0.9);
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; background: transparent; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { width: 32%; color: var(--accent-2); font-weight: 600; }

.faq details {
  background: var(--card);
  backdrop-filter: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 12px 0 0; }

.cta-band {
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(0, 148, 115, 0.1), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band .section-kicker { margin-left: auto; margin-right: auto; }
.contact-block { font-size: 20px; }
.contact-block a { color: var(--text); }
.contact-block a:hover { color: var(--accent); }
.muted { color: var(--muted); }

.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  border-top: 0;
  padding: 40px 0 52px;
  font-size: 14px;
}
.footer-inner { align-items: flex-start; flex-wrap: wrap; }
.footer-brand strong { display: block; color: #f6f3ec; font-weight: 600; margin-bottom: 8px; }
.footer-contact { margin: 0; }
.footer-contact a { color: var(--footer-text); }
.footer-contact a:hover { color: var(--accent-light); }
.footer-copy { color: #8e8980; }

[data-tilt] { perspective: 1000px; }
[data-tilt-inner] {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}
.gs-reveal [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}
.gs-reveal [data-reveal] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gs-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  @media (pointer: fine) and (hover: hover) {
    .product-card-float {
      animation: gs-float 7s ease-in-out infinite;
    }
    .product-card-float:nth-child(2) { animation-delay: -2.4s; }
  }
}
@keyframes gs-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .hero-editorial, .hero-split, .grid-3 { grid-template-columns: 1fr; }
  .hero-copy { padding-left: 20px; max-width: none; }
  .hero-visual {
    max-width: 460px;
    margin: 8px auto 0;
    min-height: 0;
    justify-self: center;
    margin-right: auto;
    transform: none;
    filter: drop-shadow(0 16px 24px rgba(42, 46, 51, 0.1));
  }
  .hero { padding: 48px 0 36px; }
  .hero-photo img { max-height: 360px; }
  .product-card-float:nth-child(2) { margin-top: 0; }
  .product-card-float { animation: none; }
}
@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  nav ul { gap: 8px 14px; font-size: 14px; flex-wrap: wrap; justify-content: flex-start; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .logo { max-width: min(220px, 70vw); }
  .logo svg { height: 34px; }
  section { padding: 56px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .typo-model { font-size: 32px; }
  .actions { margin-top: 24px; }
  h1 { font-size: clamp(30px, 9vw, 40px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-svg-orbits, .hero-svg-nodes circle, .product-card-float { animation: none; }
  .hero-visual { transform: none; }
  .gs-reveal [data-reveal],
  .gs-reveal [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
