/* Giant Productions – Trendy, Clean, Professional */
:root {
  --primary: #B8A99A;
  --primary-dark: #9A8B7A;
  --primary-light: #D4C9BC;
  --dark: #1A1A1A;
  --text: #2C2C2C;
  --text-muted: #6B6B6B;
  --bg: #FAFAF8;
  --white: #FFFFFF;
  --border: #EAE6E1;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Noto Sans TC', 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Noto Serif TC', 'Playfair Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--dark); line-height: 1.25; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Language Toggle */
.lang-switch {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.3px;
}
.lang-switch .lbl { min-width: 20px; text-align: center; user-select: none; }
.toggle {
  position: relative; width: 44px; height: 24px;
  background: var(--border); border-radius: 12px; cursor: pointer;
  transition: var(--transition); flex-shrink: 0;
}
.toggle.on { background: var(--primary); }
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: var(--white); border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15); transition: var(--transition);
}
.toggle.on::after { left: 23px; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: var(--transition);
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo {
  display: flex; align-items: center; gap: 12px;
}
.logo img { height: 58px; width: auto; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: nowrap;
}
.logo-text span {
  display: block;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.4px; position: relative;
}
.nav a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1.5px; background: var(--primary); transition: var(--transition);
}
.nav a:hover, .nav a.active { color: var(--dark); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 20px; }
.menu-btn {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px;
  background: none; border: none;
}
.menu-btn span { width: 22px; height: 1.5px; background: var(--dark); transition: var(--transition); }

/* Hero */
.hero {
  padding: 140px 0 90px;
  background: linear-gradient(160deg, var(--bg) 0%, #F0EBE6 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -15%;
  width: 55%; height: 160%;
  background: radial-gradient(ellipse, rgba(184,169,154,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 18px; }
.hero .lead { font-size: 1.05rem; color: var(--text-muted); max-width: 420px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; font-size: 13px; font-weight: 500;
  letter-spacing: 0.4px; border-radius: 6px; border: none;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #333; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn-ghost:hover { background: var(--dark); color: var(--white); }

/* Hero CTA – logo colour #B8A99A */
.btn-brand {
  background: #B8A99A;
  color: #fff;
  border: 1.5px solid #B8A99A;
}
.btn-brand:hover {
  background: #9A8B7A;
  border-color: #9A8B7A;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 169, 154, 0.45);
}
.btn-brand-outline {
  background: transparent;
  color: #B8A99A;
  border: 1.5px solid #B8A99A;
}
.btn-brand-outline:hover {
  background: #B8A99A;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 169, 154, 0.4);
}
.hero-logo { max-width: 340px; margin: 0 auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.06)); }

/* Sections */
.section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .eyebrow {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-head p { color: var(--text-muted); max-width: 520px; margin: 0 auto; font-size: 0.98rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text h3 { font-size: 1.55rem; margin-bottom: 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 14px; }
.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.feat { display: flex; gap: 12px; align-items: flex-start; }
.feat-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(184,169,154,0.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feat-icon svg { width: 18px; height: 18px; stroke: #B8A99A; fill: none; stroke-width: 1.6; }
.feat h4 { font-size: 0.9rem; font-family: var(--font); margin-bottom: 2px; }
.feat p { font-size: 0.82rem; margin: 0; color: var(--text-muted); }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* Services */
.services { background: var(--white); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  background: var(--bg); border-radius: var(--radius); padding: 36px 28px;
  border: 1px solid transparent; transition: var(--transition);
}
.svc-card:hover {
  border-color: var(--primary-light); box-shadow: var(--shadow-lg); transform: translateY(-4px);
}
.svc-icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; box-shadow: var(--shadow);
}
.svc-icon svg { width: 22px; height: 22px; stroke: #B8A99A; fill: none; stroke-width: 1.5; }
.svc-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.svc-card > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; }
.svc-list { list-style: none; }
.svc-list li {
  font-size: 0.86rem; color: var(--text); padding: 5px 0 5px 14px; position: relative;
}
.svc-list li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
}
.svc-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; color: var(--primary-dark);
  margin-top: 16px; cursor: pointer;
}
.svc-link:hover { color: var(--dark); }

/* Portfolio */
.port-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.port-tab {
  padding: 8px 20px; font-size: 13px; font-weight: 500;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 24px; cursor: pointer; color: var(--text-muted);
  transition: var(--transition); font-family: inherit;
}
.port-tab:hover, .port-tab.active {
  background: var(--dark); color: var(--white); border-color: var(--dark);
}
.port-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.port-item {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: var(--transition);
}
.port-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.port-item .thumb { height: 220px; overflow: hidden; position: relative; }
.port-item .thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.port-item:hover .thumb img { transform: scale(1.04); }
.port-item .meta { padding: 18px; }
.port-item .tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--primary-dark); background: rgba(184,169,154,0.2);
  padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}
.port-item h4 { font-size: 0.98rem; font-family: var(--font); margin-bottom: 4px; }
.port-item .meta p { font-size: 0.82rem; color: var(--text-muted); }

/* Modal */
.modal-bg {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,20,20,0.72); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity 0.25s;
}
.modal-bg.open { display: flex; opacity: 1; }
.modal {
  background: var(--white); border-radius: 14px;
  max-width: 920px; width: 100%; max-height: 92vh;
  overflow-y: auto; position: relative;
  transform: translateY(16px); transition: transform 0.25s;
}
.modal-bg.open .modal { transform: translateY(0); }
.modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--dark); transition: var(--transition);
}
.modal-x:hover { background: var(--primary-light); }
.modal-body { display: grid; grid-template-columns: 1.15fr 1fr; }
.modal-visual { background: #F0EBE6; min-height: 360px; position: relative; }
.modal-visual img {
  width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; min-height: 360px;
}
.modal-side { padding: 36px 28px; }
.modal-side .cat {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--primary-dark); margin-bottom: 8px;
}
.modal-side h3 { font-size: 1.35rem; margin-bottom: 12px; }
.modal-side .proj-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 24px; }
.modal-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-thumbs .thumb-wrap {
  position: relative; width: 72px; height: 72px; border-radius: 6px;
  overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--transition);
}
.modal-thumbs .thumb-wrap.active,
.modal-thumbs .thumb-wrap:hover { border-color: var(--primary); }
.modal-thumbs .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.img-caption {
  font-size: 0.85rem; color: var(--text-muted); margin-top: 12px;
  padding: 10px 12px; background: var(--bg); border-radius: 6px; min-height: 48px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.92); display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lightbox-x {
  position: absolute; top: 20px; right: 24px; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,0.15); border: none;
  color: white; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-cap {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.85); font-size: 14px;
  background: rgba(0,0,0,0.5); padding: 8px 16px; border-radius: 6px;
  max-width: 80%; text-align: center;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 28px; }
.c-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.c-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(184,169,154,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.c-icon svg { width: 18px; height: 18px; stroke: #B8A99A; fill: none; stroke-width: 1.6; }
.c-item h4 {
  font-size: 0.8rem; font-family: var(--font); font-weight: 500;
  color: var(--text-muted); margin-bottom: 2px;
}
.c-item p, .c-item a { font-size: 0.92rem; color: var(--text); }
.c-item a:hover { color: var(--primary-dark); }
.social-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 500;
  background: var(--bg); border: 1px solid var(--border); transition: var(--transition);
}
.social-btn:hover { border-color: var(--primary); background: rgba(184,169,154,0.12); }
.social-btn svg { width: 16px; height: 16px; stroke: #B8A99A; fill: none; stroke-width: 1.5; }

.map-wrap {
  margin-top: 28px; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 16/9; position: relative;
  filter: grayscale(100%); transition: filter 0.4s ease; box-shadow: var(--shadow);
}
.map-wrap:hover { filter: grayscale(0%); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.enquiry {
  background: var(--white); border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.enquiry h3 { font-size: 1.2rem; margin-bottom: 20px; }
.fg { margin-bottom: 16px; }
.fg label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--text-muted); margin-bottom: 5px;
}
.fg label .req { color: #C45C5C; }
.fg input, .fg textarea, .fg select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; font-family: inherit;
  background: var(--bg); color: var(--text); transition: var(--transition);
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184,169,154,0.2); background: var(--white);
}
.fg textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 11px; color: var(--text-muted); margin-top: 10px; }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 56px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px;
}
.footer-brand img {
  height: 72px; margin-bottom: 16px;
  filter: brightness(0) invert(1) opacity(0.92);
}
.footer-brand p { font-size: 0.88rem; max-width: 280px; line-height: 1.6; }
.footer-address {
  font-size: 0.88rem; /* same as other footer items */
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
}
.footer h4 {
  color: var(--white); font-size: 0.88rem; font-family: var(--font);
  font-weight: 500; letter-spacing: 0.5px; margin-bottom: 14px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.footer ul a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 0.8rem; flex-wrap: wrap; gap: 10px;
}
.cms-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 4px;
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4);
  font-size: 11px; letter-spacing: 0.3px; transition: var(--transition);
}
.cms-link:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }

/* Language */
body:not(.lang-en) [data-lang="en"] { display: none !important; }
body.lang-en [data-lang="zh"] { display: none !important; }
body.lang-en [data-lang="en"] { display: revert; }
body.lang-en span[data-lang="en"], body.lang-en a[data-lang="en"] { display: inline; }
body.lang-en h1[data-lang="en"], body.lang-en h2[data-lang="en"],
body.lang-en h3[data-lang="en"], body.lang-en h4[data-lang="en"],
body.lang-en p[data-lang="en"], body.lang-en li[data-lang="en"],
body.lang-en label[data-lang="en"] { display: block; }

@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .svc-grid, .port-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-visual, .modal-visual img { min-height: 260px; }
}
@media (max-width: 640px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 20px;
    gap: 14px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .menu-btn { display: flex; }
  .svc-grid, .port-grid, .about-feats { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 60px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* Mobile-first enhancements */
body.is-mobile .header-inner { height: 60px; }
body.is-mobile .logo img { height: 46px; }
body.is-mobile .logo-text { font-size: 0.95rem; }
body.is-mobile .logo-text span { display: none; }
body.is-mobile .header-inner { height: 64px; }
body.is-mobile .hero { padding: 100px 0 48px; }
body.is-mobile .hero h1 { font-size: 1.85rem; }
body.is-mobile .section { padding: 52px 0; }
body.is-mobile .svc-card { padding: 28px 20px; }
body.is-mobile .port-item .thumb { height: 180px; }
body.is-mobile .enquiry { padding: 24px 18px; }
body.is-mobile .modal { max-height: 95vh; border-radius: 12px 12px 0 0; }
body.is-mobile .modal-body { grid-template-columns: 1fr; }
body.is-mobile .modal-visual, body.is-mobile .modal-visual img { min-height: 220px; }
body.is-mobile .map-wrap { aspect-ratio: 16/10; }
body.is-mobile .footer-brand img { height: 64px; }
body.is-mobile .c-item { margin-bottom: 16px; }
body.is-mobile .btn { padding: 14px 24px; min-height: 44px; }
body.is-mobile .port-tab { padding: 10px 16px; min-height: 40px; }
body.is-mobile .nav a { padding: 12px 0; font-size: 15px; }

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .contact-grid { gap: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
