/*
Theme Name: Shing Ka Enterprises
Theme URI: https://ske.com.hk
Author: Shing Ka Enterprises Limited
Author URI: https://ske.com.hk
Description: Professional manpower services website for Shing Ka Enterprises Limited — 誠嘉企業有限公司. Includes bilingual support and mini cleaning game.
Version: 1.0
License: Proprietary
Text Domain: shing-ka
*/

/* ── Design tokens ── */
:root {
  --primary: #1aabbd;
  --primary-dark: #127f8e;
  --navy: #0d1e3a;
  --navy-dark: #07121f;
  --white: #ffffff;
  --gray-light: #f8f9fb;
  --text-muted: rgba(255,255,255,0.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  background: #ffffff;
  color: #1a202c;
  line-height: 1.6;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  text-decoration: none;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-white   { background: #fff; color: var(--primary); }
.btn-outline { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.55); backdrop-filter: blur(8px); }
.btn-sm      { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ── HEADER / NAV ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  background: rgba(13,30,58,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-logo img { height: 40px; width: auto; }
.site-logo .logo-text { color: #fff; font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.site-logo .logo-sub  { color: rgba(255,255,255,0.55); font-size: 0.75rem; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover { color: #fff; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 2px;
  transition: color 0.2s;
}
.lang-btn.active, .lang-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.lang-sep { color: rgba(255,255,255,0.3); font-size: 0.75rem; }

.header-login-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.4rem;
  transition: opacity 0.2s;
}
.header-login-btn:hover { opacity: 0.85; }

/* mobile hamburger */
.nav-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 0.25rem; }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 1rem 1.5rem; gap: 1rem; }
  .nav-toggle { display: block; }
  .header-login-btn span { display: none; }
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.52), rgba(0,0,0,0.22));
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,171,189,0.38);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-content .hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-contact { color: rgba(255,255,255,0.75); }
.hero-contact .phone { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.05em; }
.hero-contact .email { font-size: 0.85rem; margin-top: 0.25rem; }

/* game hint card */
#game-hint {
  position: fixed;
  bottom: 7rem; right: 1.5rem;
  z-index: 8000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(26,171,189,0.2);
  border-radius: 4px;
  padding: 1rem;
  width: 13.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: block;
}
#game-hint .hint-title { font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; color: #1a202c; }
#game-hint p { font-size: 0.8rem; color: #4a5568; line-height: 1.5; margin-bottom: 0.75rem; }
#start-game-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  transition: opacity 0.2s;
}
#start-game-btn:hover { opacity: 0.88; }
#game-hint.hidden { display: none; }

/* ── SERVICES ── */
#services {
  padding: 6rem 0;
  background: var(--navy);
  color: #fff;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem; }
.section-header p  { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.service-card {
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}
.service-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.1); }
.service-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.service-card-body { padding: 1rem 1.25rem 1.25rem; }
.service-card-body h3 { font-weight: 700; margin-bottom: 0.75rem; }
.service-list { list-style: none; }
.service-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); padding: 0.3rem 0; }
.service-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.service-card-btn { margin-top: 1rem; width: 100%; }

.all-services-box {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  padding: 2rem;
  background: rgba(255,255,255,0.04);
}
.all-services-box h3 { font-weight: 700; margin-bottom: 1.25rem; font-size: 1.1rem; }
.all-services-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 0.35rem;
}
.tag svg { width: 12px; height: 12px; color: var(--primary); }

/* ── ABOUT ── */
#about { padding: 6rem 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
#about h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1.5rem; }
#about .about-desc { font-size: 1.05rem; color: #4a5568; line-height: 1.8; margin-bottom: 1rem; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 2.5rem 0; }
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 2.5rem; font-weight: 900; color: var(--primary); }
.stat-item .stat-label { font-size: 0.85rem; color: #718096; margin-top: 0.25rem; font-weight: 500; }

.team-block { background: rgba(26,171,189,0.07); border-radius: 3px; padding: 1.5rem; display: flex; gap: 1rem; margin: 2rem 0; }
.team-block h3 { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.team-block p  { font-size: 0.9rem; color: #4a5568; }

.cert-list { list-style: none; }
.cert-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; font-size: 0.9rem; color: #4a5568; }
.cert-list li::before { content: '✓'; color: var(--primary); font-weight: 700; }

.clients-box { background: #f8f9fb; border-radius: 3px; padding: 2rem; }
.clients-box h3 { font-weight: 700; margin-bottom: 1.25rem; }
.clients-grid { display: grid; gap: 0.75rem; }
.client-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: #4a5568; padding: 0.5rem 0.75rem; background: #fff; border-radius: 2px; }
.client-item::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* ── CONTACT ── */
#contact { padding: 6rem 0; background: var(--navy); color: #fff; }
#contact .section-header h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; border-radius: 3px;
  background: rgba(255,255,255,0.06);
  transition: background 0.2s;
  text-decoration: none; color: inherit;
}
.contact-info-item:hover { background: rgba(255,255,255,0.1); }
.contact-icon { padding: 0.5rem; background: rgba(26,171,189,0.25); border-radius: 3px; display: flex; }
.contact-icon svg { width: 20px; height: 20px; color: var(--primary); }
.contact-label { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-bottom: 0.2rem; }
.contact-value { font-weight: 600; }

.address-box { background: rgba(255,255,255,0.06); border-radius: 3px; padding: 1.5rem; }
.address-box h4 { font-weight: 600; margin-bottom: 0.5rem; }
.address-box p  { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* Contact Form */
.contact-form { background: rgba(255,255,255,0.06); border-radius: 3px; padding: 2rem; }
.contact-form h3 { font-weight: 700; font-size: 1.1rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 0.35rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group select option { background: var(--navy); color: #fff; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; margin-top: 0.5rem; font-size: 1rem; padding: 0.8rem; }

/* ── FOOTER ── */
#site-footer {
  background: var(--navy-dark);
  color: #fff;
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo img { height: 36px; filter: brightness(2); }
.footer-company { font-weight: 600; color: #fff; }
.footer-chinese { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 0.15rem; }
.footer-desc { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-top: 0.75rem; line-height: 1.6; }
.footer-col h4 { font-weight: 700; margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li a,
.footer-links li button {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  background: none; border: none; cursor: pointer;
  padding: 0.2rem 0;
  display: block;
  transition: color 0.2s;
}
.footer-links li a:hover,
.footer-links li button:hover { color: #fff; }
.footer-contact-link { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.2s; margin-bottom: 0.5rem; }
.footer-contact-link:hover { color: #fff; }
.footer-contact-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.65); }

/* ── BILINGUAL ── */
[lang-en], [lang-zh] { transition: opacity 0.2s; }
body.lang-zh [lang-en] { display: none; }
body.lang-en [lang-zh] { display: none; }
body.lang-zh [lang-zh] { display: block; }
body.lang-en [lang-en] { display: block; }

/* ── UTILITIES ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
