/* ==========================================================================
   LEGAL BRIDGE — Distributed Law Firm Platform
   ========================================================================== */

:root {
  --navy-950: #071426;
  --navy-900: #0a1f38;
  --navy-800: #0f2a4a;
  --navy-700: #16385f;
  --navy-600: #1f4a78;
  --gold-500: #c5a253;
  --gold-400: #d8ba76;
  --gold-300: #e8d4a3;
  --ivory-50: #faf8f4;
  --ivory-100: #f3efe6;
  --gray-600: #5b6472;
  --gray-500: #7b8494;
  --gray-300: #d7dce2;
  --font-serif: 'Playfair Display', 'Noto Serif KR', serif;
  --font-kr: 'Noto Serif KR', serif;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--navy-900);
  background: var(--ivory-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold-500);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.28;
}

.section-desc {
  color: var(--gray-600);
  font-size: 16px;
  margin-top: 14px;
  max-width: 620px;
  line-height: 1.8;
}

.eyebrow-kr {
  font-family: var(--font-kr);
}

/* ---------------------------------- Header ---------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all .35s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(7, 20, 38, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  color: #fff;
}
.brand-mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text small {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold-400);
  margin-top: 3px;
}

/* Logo image (cream background asset) presented on dark header/footer */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--ivory-50);
  border-radius: 8px;
  padding: 5px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.brand-logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.footer-logo-wrap { padding: 6px 14px; }
.footer-logo-wrap .brand-logo-img { height: 44px; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-desktop a {
  color: rgba(255,255,255,0.86);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-desktop a:hover { color: var(--gold-400); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: flex;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 20px;
  overflow: hidden;
}
.lang-switch button {
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: all .2s;
}
.lang-switch button.active { background: var(--gold-500); color: var(--navy-950); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 26px;
  border-radius: 4px;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  box-shadow: 0 6px 20px rgba(197,162,83,0.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(197,162,83,0.42); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-navy {
  background: var(--navy-900);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 34px; font-size: 15.5px; }

.mobile-toggle {
  display: none;
  color: #fff;
  font-size: 22px;
}

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-950);
  overflow: hidden;
  padding-top: 90px;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 2s ease-in-out, transform 8s ease-out;
}
.hero-slide.active {
  opacity: 0.7;
  transform: scale(1);
}
/* Final "settle" slide (bright Gyeonghoeru daytime) stays brighter behind the fixed copy */
.hero-slide-settle.active {
  opacity: 0.88;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(7,20,38,0.9) 20%, rgba(7,20,38,0.6) 55%, rgba(7,20,38,0.24) 100%);
  transition: background 1.6s ease-in-out;
}
/* When the slideshow settles on the bright daytime slide, lighten the overlay further
   so the Gyeonghoeru background reads clearly while keeping the hero copy legible */
.hero-settled .hero-overlay {
  background: linear-gradient(115deg, rgba(7,20,38,0.82) 16%, rgba(7,20,38,0.48) 52%, rgba(7,20,38,0.16) 100%);
}
.hero-slide-dots {
  position: absolute;
  right: 32px;
  bottom: 34px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot:hover { background: rgba(255,255,255,0.6); }
.hero-dot.active {
  background: var(--gold-400);
  border-color: var(--gold-400);
  transform: scale(1.3);
}
.hero-pin {
  display: inline-block;
  position: relative;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 60px 0 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(197,162,83,0.12);
  border: 1px solid rgba(197,162,83,0.4);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-300);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 64px);
  color: #fff;
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 800px;
}
.hero-title .accent { color: var(--gold-400); }
.hero-title-kr {
  font-family: var(--font-kr);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  color: #fff;
  margin-top: 18px;
  line-height: 1.5;
  max-width: 700px;
}
.hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 16.5px;
  margin-top: 22px;
  max-width: 620px;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 44px;
  margin-top: 68px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,0.14);
  max-width: 800px;
}
.hero-stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold-400);
}
.hero-stat span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.12em;
}
.hero-scroll i { animation: bounceDown 1.8s infinite; }
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ---------------------------------- Trust Bar ---------------------------------- */
.trust-bar {
  background: var(--ivory-100);
  padding: 26px 0;
  border-bottom: 1px solid var(--gray-300);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  white-space: nowrap;
}
.trust-flags {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-flag {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
}
.trust-flag i { color: var(--gold-500); font-size: 16px; }

/* ---------------------------------- Problem Section ---------------------------------- */
.problem-section { padding: 110px 0; background: #fff; }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 50px;
}
.problem-list { display: flex; flex-direction: column; gap: 26px; }
.problem-item {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: 10px;
  background: #fbf5ee;
  border-left: 3px solid #d8a35a;
}
.problem-item .icon-badge {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #f0d9b8;
  color: #a0672a;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.problem-item h4 { font-size: 16.5px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.problem-item p { font-size: 14.5px; color: var(--gray-600); line-height: 1.7; }

.solution-panel {
  background: var(--navy-900);
  border-radius: 16px;
  padding: 44px 38px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.solution-panel::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(197,162,83,0.28), transparent 70%);
}
.solution-panel h3 {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.solution-panel .gold-text { color: var(--gold-400); }
.solution-steps { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; position: relative; z-index: 1; }
.solution-step { display: flex; gap: 16px; align-items: flex-start; }
.solution-step .num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(197,162,83,0.18);
  border: 1px solid rgba(197,162,83,0.5);
  color: var(--gold-400);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.solution-step p { font-size: 14.5px; color: rgba(255,255,255,0.82); line-height: 1.7; padding-top: 3px; }
.solution-step b { color: #fff; }

/* ---------------------------------- Model Section (Distributed Law Firm) ---------------------------------- */
.model-section { padding: 110px 0; background: var(--ivory-100); position: relative; }
.model-header { text-align: center; max-width: 720px; margin: 0 auto; }
.model-header .section-desc { margin: 14px auto 0; }

.model-diagram {
  margin-top: 70px;
  position: relative;
}
.hub-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: -30px;
  position: relative;
  z-index: 3;
}
.hub-node {
  background: var(--navy-900);
  color: #fff;
  border-radius: 14px;
  padding: 20px 40px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15,42,74,0.35);
  border: 1.5px solid var(--gold-500);
}
.hub-node .hub-title { font-family: var(--font-serif); font-weight: 700; font-size: 19px; }
.hub-node .hub-sub { font-size: 11.5px; color: var(--gold-300); letter-spacing: 0.1em; margin-top: 4px; text-transform: uppercase; }

.expert-ring {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 60px;
  position: relative;
}
.expert-node {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 26px 20px;
  text-align: center;
  position: relative;
  transition: all .3s ease;
}
.expert-node:hover {
  border-color: var(--gold-500);
  box-shadow: 0 14px 30px rgba(15,42,74,0.1);
  transform: translateY(-6px);
}
.expert-node .expert-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16385f, #0f2a4a);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}
.expert-node h4 { font-size: 15.5px; font-weight: 700; color: var(--navy-900); }
.expert-node span { display: block; font-size: 12.5px; color: var(--gray-500); margin-top: 4px; }
.expert-node .connector {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 1px;
  height: 60px;
  background: repeating-linear-gradient(to bottom, var(--gold-500) 0, var(--gold-500) 4px, transparent 4px, transparent 8px);
}

.model-note {
  margin-top: 50px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 26px 30px;
  border: 1px dashed var(--gold-500);
}
.model-note i { color: var(--gold-500); font-size: 22px; margin-top: 2px; }
.model-note p { font-size: 14.5px; color: var(--gray-600); line-height: 1.75; }
.model-note b { color: var(--navy-900); }

/* ---------------------------------- Services ---------------------------------- */
.services-section { padding: 110px 0; background: #fff; }
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 54px;
}
.service-card {
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  padding: 34px 28px;
  transition: all .3s ease;
  position: relative;
}
.service-card:hover {
  border-color: var(--navy-800);
  box-shadow: 0 18px 36px rgba(15,42,74,0.1);
  transform: translateY(-5px);
}
.service-num {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-500);
  letter-spacing: 0.06em;
}
.service-card .service-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--ivory-100);
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  margin: 16px 0 20px;
}
.service-card h4 { font-size: 18px; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--gray-600); line-height: 1.75; margin-bottom: 16px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags span {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--ivory-100);
  color: var(--navy-700);
}

/* ---------------------------------- Process ---------------------------------- */
.process-section { padding: 110px 0; background: var(--navy-950); color: #fff; position: relative; overflow: hidden; }
.process-section .section-tag { color: var(--gold-400); }
.process-section .section-title { color: #fff; }
.process-section .section-desc { color: rgba(255,255,255,0.62); }
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 60px;
  position: relative;
}
.process-track::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: repeating-linear-gradient(to right, rgba(197,162,83,0.5) 0, rgba(197,162,83,0.5) 6px, transparent 6px, transparent 12px);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; text-align: center; }
.process-icon-wrap {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1.5px solid var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
  color: var(--gold-400);
}
.process-step .step-no {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-500);
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.process-step h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 13px; color: rgba(255,255,255,0.58); line-height: 1.7; padding: 0 6px; }

/* ---------------------------------- Team ---------------------------------- */
.team-section { padding: 110px 0; background: var(--ivory-100); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 54px;
}
.team-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: all .3s ease;
  border: 1px solid var(--gray-300);
}
.team-card:hover { box-shadow: 0 20px 40px rgba(15,42,74,0.12); transform: translateY(-4px); }
.team-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.team-photo-img { border-radius: 0; }
.team-photo i { font-size: 44px; color: rgba(255,255,255,0.28); }
.team-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-photo .role-chip {
  position: absolute;
  bottom: -13px; left: 20px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  z-index: 2;
}
.team-info { padding: 26px 20px 22px; }
.team-info h4 { font-size: 16.5px; font-weight: 700; color: var(--navy-900); }
.team-info .team-title { font-size: 12.5px; color: var(--gold-500); font-weight: 700; margin-top: 3px; letter-spacing: 0.02em; }
.team-info .team-desc { font-size: 13px; color: var(--gray-600); margin-top: 12px; line-height: 1.7; }
.team-info .team-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.team-info .team-tags span {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ivory-100);
  color: var(--navy-700);
}
.team-card-clickable { cursor: pointer; }
.team-card-clickable:hover { border-color: var(--gold-500); }
.team-bio-hint {
  margin-top: 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy-700);
  display: flex;
  align-items: center;
  gap: 6px;
}
.team-bio-hint i { color: var(--gold-500); }

/* ------------------------------ Team Bio Modal ------------------------------ */
.team-bio-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.team-bio-modal.open { display: flex; }
.team-bio-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,20,38,0.72);
}
.team-bio-modal-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 40px 36px 34px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.team-bio-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--ivory-100);
  color: var(--navy-800);
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}
.team-bio-modal-close:hover { background: var(--gray-300); }
.team-bio-header { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.team-bio-photo {
  width: 84px; height: 84px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}
.role-chip-static {
  display: inline-block;
  position: static;
  margin-bottom: 6px;
}
.team-bio-header h3 { font-size: 19px; font-weight: 700; color: var(--navy-900); }
.team-bio-title { font-size: 13px; color: var(--gold-500); font-weight: 700; margin-top: 2px; }
.team-bio-desc { font-size: 13.5px; color: var(--gray-600); line-height: 1.75; margin-bottom: 22px; }
.team-bio-section { margin-bottom: 18px; }
.team-bio-section h5 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}
.team-bio-section h5 i { color: var(--gold-500); }
.team-bio-section ul { display: flex; flex-direction: column; gap: 7px; padding-left: 4px; }
.team-bio-section ul li {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  position: relative;
  padding-left: 14px;
}
.team-bio-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* ---------------------------------- Testimonials ---------------------------------- */
.testimonial-section { padding: 110px 0; background: #fff; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 54px;
}
.testimonial-card {
  background: var(--ivory-100);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
}
.testimonial-card .quote-icon { color: var(--gold-500); font-size: 26px; opacity: 0.6; margin-bottom: 16px; }
.testimonial-card p.quote { font-size: 14.5px; color: var(--navy-800); line-height: 1.85; font-style: italic; }
.testimonial-foot { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--gray-300); }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-foot .name { font-size: 13.5px; font-weight: 700; color: var(--navy-900); }
.testimonial-foot .loc { font-size: 12px; color: var(--gray-500); margin-top: 1px; }

/* ---------------------------------- FAQ ---------------------------------- */
.faq-section { padding: 110px 0; background: var(--ivory-100); }
.faq-wrap { max-width: 780px; margin: 50px auto 0; }
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy-900);
}
.faq-question i { color: var(--gold-500); transition: transform .3s; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 26px 22px; font-size: 14.5px; color: var(--gray-600); line-height: 1.8; }

/* ---------------------------------- Contact / CTA ---------------------------------- */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(197,162,83,0.18), transparent 70%);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.cta-left .section-title { color: #fff; }
.cta-contact-list { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.cta-contact-item { display: flex; gap: 14px; align-items: flex-start; }
.cta-contact-item .c-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(197,162,83,0.15);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.cta-contact-item b { display: block; font-size: 14.5px; color: #fff; }
.cta-contact-item span { display: block; font-size: 13.5px; color: rgba(255,255,255,0.62); margin-top: 3px; }

.contact-form {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.contact-form h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.contact-form .form-sub { font-size: 13.5px; color: var(--gray-500); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--navy-900);
  background: var(--ivory-50);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-section-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy-900);
  padding-top: 20px;
  margin-bottom: 12px;
  border-top: 1px solid var(--gray-300);
}
.form-section-title:first-of-type { padding-top: 0; border-top: none; }
.form-hint { font-size: 11.5px; font-weight: 400; color: var(--gray-500); }
.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.radio-item, .checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--navy-800);
  cursor: pointer;
}
.radio-item input, .checkbox-item input { width: auto; margin: 0; }
.form-consent { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
.form-consent input { width: auto; margin-top: 3px; }
.form-consent label { font-size: 12.5px; color: var(--gray-500); font-weight: 400; }
.form-consent .consent-detail { display: block; font-size: 11px; color: var(--gray-500); margin-top: 4px; }
#formMsg { margin-top: 14px; font-size: 13.5px; text-align: center; display: none; }
#formMsg.success { color: #1a7f4a; display: block; }
#formMsg.error { color: #c0392b; display: block; }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.6); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand-text { color: #fff; }
.footer-col p { font-size: 13.5px; line-height: 1.85; color: rgba(255,255,255,0.5); }
.footer-col h5 { font-size: 13.5px; font-weight: 700; color: #fff; letter-spacing: 0.05em; margin-bottom: 18px; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { font-size: 13.5px; color: rgba(255,255,255,0.55); transition: color .2s; }
.footer-col ul a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.38);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all .2s;
}
.footer-social a:hover { border-color: var(--gold-500); color: var(--gold-400); }

/* ---------------------------------- Floating CTA ---------------------------------- */
.float-cta {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 26px rgba(197,162,83,0.45);
  transition: transform .25s;
}
.float-btn:hover { transform: scale(1.08); }

/* ---------------------------------- Utilities ---------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------------------------------- Responsive ---------------------------------- */

/* Prevent any element from forcing horizontal scroll on small screens */
html, body { max-width: 100%; overflow-x: hidden; }
.container { width: 100%; }

@media (max-width: 1024px) {
  .expert-ring { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: repeat(5, 1fr); }
  .cta-inner { grid-template-columns: 1fr; gap: 44px; }
  .problem-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: clamp(30px, 4.6vw, 52px); }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: block; }
  .lang-switch { display: none; }
  .btn-text { display: none; }
  .header-actions .btn.btn-gold {
    padding: 11px 14px;
    gap: 0;
  }
  .header-actions .btn.btn-gold i { font-size: 17px; }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }

  /* Reduce oversized section padding for mobile scanning */
  .problem-section, .model-section, .services-section, .process-section,
  .team-section, .testimonial-section, .faq-section, .cta-section {
    padding: 64px 0;
  }

  .hero { padding-top: 84px; min-height: auto; }
  .hero-inner { padding: 40px 0 56px; }
  .hero-title-kr { font-size: clamp(19px, 4.4vw, 24px); }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; margin-top: 44px; padding-top: 26px; }
  .hero-slide-dots { right: 16px; }

  .section-title { font-size: clamp(24px, 5.6vw, 32px); }
  .section-desc { font-size: 14.5px; }

  .trust-inner { justify-content: flex-start; }
  .trust-flags { gap: 18px 22px; }

  .expert-ring { grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 44px; }
  .expert-node .connector { display: none; }

  .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 26px 22px; }

  .process-track { grid-template-columns: 1fr; gap: 30px; }
  .process-track::before { display: none; }

  .model-diagram { margin-top: 46px; }
  .model-note { padding: 20px 22px; flex-direction: column; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .services-header { flex-direction: column; align-items: flex-start; }

  .float-cta { bottom: 18px; right: 16px; }
  .float-btn { width: 50px; height: 50px; font-size: 19px; }

  .mobile-nav { width: 82%; max-width: 300px; }
}

@media (max-width: 560px) {
  .hero-badge { font-size: 12px; padding: 7px 14px; }
  .hero-title { font-size: clamp(27px, 7.4vw, 36px); line-height: 1.28; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .hero-stat b { font-size: 24px; }

  .expert-ring { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .cta-contact-item { align-items: center; }

  .footer-social { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .brand-logo-img { height: 32px; }
  .brand-text small { font-size: 8.5px; letter-spacing: 0.16em; }

  .btn { padding: 11px 18px; font-size: 13.5px; }
  .btn-lg { padding: 13px 24px; font-size: 14.5px; }

  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .contact-form { padding: 26px 18px; }
  .team-bio-modal-content { padding: 30px 22px 26px; }
  .team-bio-photo { width: 68px; height: 68px; }

  /* iOS Safari zooms in on focus if inputs are < 16px */
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
}

/* Larger tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  .nav-desktop a, .mobile-nav a { padding-top: 10px; padding-bottom: 10px; }
  .faq-question { padding: 20px 22px; }
  .float-btn { width: 54px; height: 54px; }
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0; right: -320px;
  width: 300px;
  height: 100%;
  background: var(--navy-950);
  z-index: 1100;
  padding: 28px 24px;
  transition: right .35s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,0.4);
}
.mobile-nav.open { right: 0; }
.mobile-nav-close { color: #fff; font-size: 22px; margin-bottom: 30px; display: block; text-align: right; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }
