/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #14539a;
  --color-primary-dark: #0d3b6f;
  --color-accent: #0ea5a5;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fa;
  --color-text: #1a2233;
  --color-text-muted: #5b6472;
  --color-border: #dbe2ea;
  --radius: 10px;
  --max-width: 1120px;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui,
    -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Korean wraps between any two characters by default, which reads as
   broken in headings/short labels — restrict breaks to actual spaces
   there, same as body copy would read in English. */
html:lang(ko) h1,
html:lang(ko) h2,
html:lang(ko) h3,
html:lang(ko) h4,
html:lang(ko) .btn,
html:lang(ko) .logo,
html:lang(ko) .notice-title {
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.logo span {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.lang-toggle a {
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle a.active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.lang-toggle a:not(.active):hover {
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(20, 83, 154, 0.28);
}

.btn-outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Pure-CSS mobile nav via checkbox hack */
.nav-toggle-label {
  display: none;
  width: 28px;
  height: 22px;
  position: relative;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  position: absolute;
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-label span {
  top: 10px;
}

.nav-toggle-label span::before {
  content: "";
  top: -8px;
}

.nav-toggle-label span::after {
  content: "";
  top: 8px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(
    160deg,
    var(--color-primary-dark),
    var(--color-primary) 60%,
    var(--color-accent) 130%
  );
  color: #fff;
  padding: 96px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfe0ff;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-actions .btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(9, 30, 59, 0.35);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

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

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

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--color-text-muted);
}

.page-head {
  padding: 56px 0 40px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-head .section-eyebrow {
  text-align: left;
}

.page-head h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-head p {
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ---------- Grids & cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.card:hover {
  box-shadow: 0 12px 30px rgba(20, 40, 70, 0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.card ul {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.card ul li {
  padding: 4px 0;
  border-top: 1px solid var(--color-border);
}

.card ul li:first-child {
  border-top: none;
}

.card-cta {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ---------- Contact / location blocks ---------- */
.info-block {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.info-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-primary-dark);
}

.info-row {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.92rem;
}

.info-row dt {
  width: 130px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  font-weight: 600;
}

.info-row dd {
  margin: 0;
}

.distributor-region {
  margin-bottom: 36px;
}

.distributor-region h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.distributor-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.distributor-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
}

.distributor-item h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.distributor-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}

/* ---------- Notices / bulletin board ---------- */
.notice-list {
  border-top: 2px solid var(--color-text);
}

.notice-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--color-border);
}

.notice-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(14, 165, 165, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.notice-title {
  flex: 1;
  min-width: 200px;
  font-weight: 600;
  word-break: keep-all;
}

.notice-body {
  flex-basis: 100%;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

.notice-date {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0;
  margin-top: 80px;
}

.site-footer .footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.site-footer p {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-toggle-label {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav a {
    width: 100%;
    padding: 14px 24px;
    border-top: 1px solid var(--color-border);
  }

  .nav-toggle:checked ~ .main-nav {
    max-height: 480px;
  }

  .nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .header-actions .btn-primary {
    display: none;
  }
}
