:root {
  --color-primary: #2d3748;
  --color-primary-dark: #1a202c;
  --color-accent: #c9a24b;
  --color-accent-dark: #a8842f;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg-alt: #f8fafc;
  --color-border: #e5e7eb;
  --max-width: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffffee;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 var(--color-accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--color-text-light);
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
}

.lang-btn.active {
  color: var(--color-accent-dark);
}

.lang-sep {
  color: var(--color-border);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, #f4f5f7 0%, #f8fafc 55%, #ffffff 100%);
  padding: 96px 0 64px;
  position: relative;
}

.hero-inner { text-align: center; }

.hero-mark {
  display: inline-block;
  color: var(--color-accent-dark);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.hero p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.hero-badge {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.hero-badge .dot {
  color: var(--color-accent);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 0 var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 3px 0 0 var(--color-accent);
  transform: translateY(-3px);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--color-accent);
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.section-desc {
  text-align: center;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  padding-top: 16px;
  border-top: 2px solid var(--color-accent);
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 800;
}

.stat span {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-primary-dark);
}

.card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
  transition: border-color 0.2s ease;
}

.gallery-item {
  cursor: zoom-in;
}

.gallery-item:hover {
  border-color: var(--color-accent);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.step {
  text-align: center;
  padding: 0 8px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.why-item h3::before {
  content: "\2726";
  color: var(--color-accent);
  font-size: 0.95rem;
}

.why-item p {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* Contact */
.contact-inner { text-align: center; }

.offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.office-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.office-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.office-details {
  display: grid;
  gap: 14px;
}

.contact-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 16px;
}

.contact-item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.contact-item span {
  font-size: 0.98rem;
  font-weight: 600;
}

.office-nz {
  border-top-color: var(--color-accent);
}

html[lang="en"] .office-kr { order: 2; }
html[lang="en"] .office-nz { order: 1; }
html[lang="ko"] .office-kr { order: 1; }
html[lang="ko"] .office-nz { order: 2; }

@media (max-width: 680px) {
  .offices {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  padding: 36px 0 28px;
  text-align: center;
  color: #cbd5e1;
  font-size: 0.85rem;
  background: var(--color-primary-dark);
  border-top: 3px solid var(--color-accent);
}

.footer p {
  color: #e2e8f0;
}

.footer-nzbn {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Floating CTA */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  border: 2px solid var(--color-accent);
  transition: transform 0.2s ease, background 0.2s ease;
}

.float-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .float-cta {
    right: 14px;
    bottom: 14px;
    padding: 12px 18px;
    font-size: 0.82rem;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.9);
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@media (max-width: 600px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

/* Responsive */
@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
  }

  .nav-toggle { display: flex; }

  .hero h1 { font-size: 1.8rem; }

  .stats { gap: 32px; }
}
