/* =========================================================
   BSH International — "Gallery" theme
   Apple-inspired design language: full-bleed alternating tiles,
   single blue accent, SF Pro / Inter typography, one product shadow.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Accent */
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;
  --on-primary: #ffffff;

  /* Surface */
  --canvas: #ffffff;
  --canvas-parchment: #f5f5f7;
  --surface-pearl: #fafafc;
  --tile-1: #272729;
  --tile-2: #2a2a2c;
  --tile-3: #252527;
  --surface-black: #000000;
  --chip-translucent: rgba(210,210,215,0.64);

  /* Text */
  --ink: #1d1d1f;
  --body: #1d1d1f;
  --on-dark: #ffffff;
  --body-muted: #cccccc;
  --ink-80: #333333;
  --ink-48: #7a7a7a;

  /* Lines */
  --divider-soft: rgba(0,0,0,0.04);
  --hairline: #e0e0e0;
  --hairline-08: rgba(0,0,0,0.08);

  /* Radius */
  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 18px;
  --r-pill: 9999px;

  /* Spacing */
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 17px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-xxl: 48px;
  --s-section: 80px;

  /* Shadow (the only one) */
  --product-shadow: 0 0 0 0 transparent;
  --rest-shadow: rgba(0,0,0,0.22) 3px 5px 30px 0;

  --display: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Display", "Inter", "Noto Sans KR", sans-serif;
  --text: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text", "Inter", "Noto Sans KR", sans-serif;

  --max: 1440px;
  --measure: 980px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss03";
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Type roles ---------- */
.t-hero    { font-family: var(--display); font-size: 56px; font-weight: 600; line-height: 1.07; letter-spacing: -0.4px; }
.t-display { font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1.10; letter-spacing: -0.3px; }
.t-section { font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.2;  letter-spacing: -0.374px; }
.t-lead    { font-family: var(--display); font-size: 28px; font-weight: 400; line-height: 1.28; letter-spacing: 0.1px; }
.t-lead-airy { font-family: var(--display); font-size: 24px; font-weight: 300; line-height: 1.5; letter-spacing: 0; }
.t-tagline { font-family: var(--text); font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: 0.2px; }
.t-body    { font-size: 17px; font-weight: 400; line-height: 1.47; letter-spacing: -0.374px; }
.t-body-strong { font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.374px; }
.t-caption { font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: -0.224px; }
.t-caption-strong { font-size: 14px; font-weight: 600; line-height: 1.29; letter-spacing: -0.224px; }
.t-fine    { font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: -0.12px; }
.eyebrow   { font-family: var(--text); font-size: 14px; font-weight: 600; letter-spacing: -0.224px; }
.muted { color: #6e6e73; }
.on-dark .muted { color: var(--body-muted); }

/* ---------- Global nav ---------- */
.global-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--surface-black); color: var(--on-dark);
  height: 44px;
}
.gnav-inner {
  max-width: var(--max); height: 44px; margin: 0 auto;
  padding: 0 22px; display: flex; align-items: center; gap: 22px;
}
.gnav-brand { font-size: 19px; font-weight: 600; letter-spacing: -0.4px; display: flex; align-items: center; gap: 7px; }
.gnav-brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-on-dark); }
.gnav-brand small { font-weight: 300; color: #8e8e93; font-size: 13px; letter-spacing: 0; }
.gnav-links { display: flex; gap: 4px; margin-left: 6px; }
.gnav-links a {
  font-size: 12px; font-weight: 400; letter-spacing: -0.12px; color: #f5f5f7;
  padding: 6px 11px; border-radius: var(--r-sm); opacity: 0.86;
}
.gnav-links a:hover { opacity: 1; }
.gnav-links a.active { opacity: 1; font-weight: 500; }
.gnav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Language switcher (inline native labels, on dark nav) */
.lang-inline { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.lang-pill {
  font-family: var(--text); font-size: 12px; letter-spacing: -0.1px;
  background: transparent; border: none; border-radius: var(--r-pill);
  padding: 5px 9px; color: #8e8e93; cursor: pointer; line-height: 1; white-space: nowrap;
  transition: color .12s ease, background .12s ease, transform .12s ease;
}
.lang-pill:hover { color: #f5f5f7; }
.lang-pill.active { color: #fff; background: rgba(255,255,255,0.18); }
.lang-pill:active { transform: scale(0.94); }
@media (max-width: 600px) {
  .gnav-inner { gap: 12px; padding: 0 14px; }
  .gnav-brand small { display: none; }
  .lang-pill { font-size: 11px; padding: 5px 6px; }
  .lang-inline { gap: 1px; }
}

.hamburger { display: none; background: transparent; border: none; padding: 6px; }
.hamburger span { display: block; width: 18px; height: 1.5px; background: #f5f5f7; margin: 4px 0; transition: .2s; }

/* ---------- Sub nav (frosted) ---------- */
.sub-nav {
  position: sticky; top: 44px; z-index: 999;
  height: 52px;
  background: rgba(245,245,247,0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline-08);
}
.subnav-inner {
  max-width: var(--max); height: 52px; margin: 0 auto;
  padding: 0 22px; display: flex; align-items: center; gap: 16px;
}
.subnav-title { font-family: var(--text); font-size: 21px; font-weight: 600; letter-spacing: 0.2px; color: var(--ink); }
.subnav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.subnav-link { font-size: 14px; letter-spacing: -0.224px; color: var(--ink); opacity: 0.8; }
.subnav-link:hover { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--text); font-size: 17px; font-weight: 400; letter-spacing: -0.224px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 11px 22px; line-height: 1.2; transition: transform .12s ease, background .12s ease, opacity .12s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.95); }
.btn:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: #0a73d6; }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: rgba(0,102,204,0.06); }
/* on dark tiles */
.on-dark .btn-secondary { color: var(--on-dark); border-color: rgba(255,255,255,0.5); }
.on-dark .btn-secondary:hover { background: rgba(255,255,255,0.08); }

.btn-sm { font-size: 14px; padding: 7px 16px; }

/* text links */
.tlink { color: var(--primary); }
.tlink:hover { text-decoration: underline; }
.on-dark .tlink { color: var(--primary-on-dark); }
.tlink-arrow::after { content: " ›"; }

/* ---------- Tiles ---------- */
.tile { padding-block: var(--s-section); }
.tile-inner { max-width: var(--max); margin: 0 auto; padding-inline: 22px; }
.tile-center { max-width: var(--measure); margin: 0 auto; padding-inline: 22px; text-align: center; }
.tile-light { background: var(--canvas); color: var(--ink); }
.tile-parchment { background: var(--canvas-parchment); color: var(--ink); }
.tile-dark   { background: var(--tile-1); color: var(--on-dark); }
.tile-dark-2 { background: var(--tile-2); color: var(--on-dark); }
.tile-dark-3 { background: var(--tile-3); color: var(--on-dark); }

.stack-hero > * + * { margin-top: var(--s-lg); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.tile-center .hero-actions { justify-content: center; }
.lead-measure { max-width: 58ch; }
.tile-center .lead-measure { margin-left: auto; margin-right: auto; }

/* resting panel = stand-in "product render" (carries the single shadow) */
.rest {
  background: var(--canvas); border-radius: var(--r-lg);
  box-shadow: var(--rest-shadow);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 48px 40px; color: var(--ink);
}
.rest .glyph { width: 72px; height: 72px; color: var(--primary); }
.rest .glyph svg { width: 100%; height: 100%; }
.rest .rest-label { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.2px; }
.rest .rest-sub { font-size: 14px; color: #6e6e73; }

/* split layout for tiles with a visual */
.tile-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; max-width: 1120px; margin: 0 auto; padding-inline: 22px; }
.tile-split.reverse > .tile-visual { order: -1; }
.tile-visual { display: flex; justify-content: center; }

/* ---------- Feature lists ---------- */
.feat { display: grid; gap: 14px; }
.feat li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.5; }
.feat li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.on-dark .feat li::before { background: var(--primary-on-dark); }

/* ---------- Value / info triplet ---------- */
.triplet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: left; }
.triplet .num { font-family: var(--text); font-size: 12px; letter-spacing: 0.6px; color: #86868b; }
.triplet h3 { margin-top: 10px; }
.triplet p { margin-top: 8px; }

/* ---------- Utility cards (store / hospitals / categories) ---------- */
.card-grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ucard {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: var(--s-lg);
  display: flex; flex-direction: column;
}
.ucard h3 { margin-bottom: 6px; }
.ucard .ucard-foot { margin-top: auto; padding-top: 16px; }
.tile-parchment .ucard, .tile-light .ucard { background: var(--canvas); }

/* hospital card */
.hcard .hcard-spec { color: #6e6e73; font-size: 15px; margin: 6px 0 0; line-height: 1.5; }
.hcard .hcard-foot { margin-top: 18px; }
.chip-soft {
  display: inline-block; font-size: 12px; letter-spacing: 0.2px; color: #6e6e73;
  background: var(--canvas-parchment); border: 1px solid var(--hairline);
  border-radius: var(--r-pill); padding: 6px 14px;
}

/* ---------- Spec rows (overview / profile) ---------- */
.spec { border-top: 1px solid var(--hairline); max-width: var(--measure); margin: 0 auto; }
.spec-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 4px; border-bottom: 1px solid var(--hairline); }
.spec-row dt { font-size: 14px; font-weight: 600; letter-spacing: -0.224px; color: #6e6e73; }
.spec-row dd { font-size: 17px; }
.tile-dark .spec, .tile-dark .spec-row { border-color: rgba(255,255,255,0.14); }
.tile-dark .spec-row dt { color: var(--body-muted); }

/* ---------- Prose (CEO message) ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { font-size: 19px; line-height: 1.6; letter-spacing: -0.2px; margin-top: 22px; color: #1d1d1f; }
.prose p:first-child { margin-top: 0; }
.prose .sign { margin-top: 32px; font-weight: 600; }
.tile-dark .prose p { color: rgba(255,255,255,0.9); }

/* CEO portrait (centered, rests on surface) */
.ceo-figure { margin: 0 0 36px; text-align: center; }
.ceo-figure img { width: 184px; border-radius: var(--r-lg); box-shadow: var(--rest-shadow); display: inline-block; }
.ceo-figure figcaption { margin-top: 16px; font-size: 15px; font-weight: 500; }
.ceo-figure figcaption span { display: block; font-weight: 400; color: #6e6e73; font-size: 13px; margin-top: 2px; }

/* numbered steps */
.steps { display: grid; gap: 0; max-width: var(--measure); margin: 0 auto; }
.step-row { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 24px 4px; border-bottom: 1px solid rgba(255,255,255,0.14); align-items: baseline; }
.step-row:first-child { border-top: 1px solid rgba(255,255,255,0.14); }
.step-row .step-n { font-family: var(--display); font-size: 34px; font-weight: 600; color: var(--primary-on-dark); line-height: 1; }
.tile-parchment .step-row, .tile-light .step-row { border-color: var(--hairline); }
.tile-parchment .step-row .step-n, .tile-light .step-row .step-n { color: var(--primary); }
.step-row h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.2px; }
.step-row p { margin-top: 6px; color: inherit; opacity: 0.86; font-size: 16px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 620px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; letter-spacing: -0.224px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 17px; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 12px 16px; min-height: 48px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-focus); box-shadow: 0 0 0 4px rgba(0,113,227,0.15);
}
.form-note { font-size: 12px; color: var(--ink-48); }
.form-success { display: none; background: var(--surface-pearl); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 20px; }
.form-success.show { display: block; }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; max-width: 1120px; margin: 0 auto; padding-inline: 22px; text-align: left; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font-size: 12px; letter-spacing: 0.2px; color: var(--ink-80); background: var(--surface-pearl); border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 7px 14px; }

/* ---------- Section label ---------- */
.section-label { font-size: 14px; font-weight: 600; letter-spacing: -0.224px; color: #86868b; margin-bottom: 14px; display: block; }
.tile-center .section-label { text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--canvas-parchment); color: var(--ink-80); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 56px 22px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-wordmark { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -1px; color: var(--ink); margin-bottom: 20px; }
.footer h4 { font-size: 14px; font-weight: 600; letter-spacing: -0.224px; color: #6e6e73; margin-bottom: 8px; }
.footer-col a, .footer-col p { display: block; font-size: 15px; line-height: 2.0; color: var(--ink-80); }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid #d2d2d7;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--ink-48); letter-spacing: -0.12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .t-hero { font-size: 44px; }
  .t-display { font-size: 36px; }
}
@media (max-width: 833px) {
  .gnav-links { display: none; }
  .hamburger { display: block; }
  .tile-split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .tile-split.reverse > .tile-visual { order: 0; }
  .triplet, .cols-3 { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* mobile menu tray */
  .gnav-links.open {
    display: flex; flex-direction: column; gap: 2px;
    position: fixed; inset: 44px 0 auto 0; background: var(--surface-black);
    padding: 12px 22px 20px; z-index: 1001;
  }
  .gnav-links.open a { font-size: 17px; padding: 12px 4px; opacity: 0.95; }
}
@media (max-width: 640px) {
  .t-hero { font-size: 34px; }
  .t-display { font-size: 30px; }
  .t-lead { font-size: 22px; }
  .tile { padding-block: 56px; }
  .subnav-link { display: none; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .tile-inner, .tile-center { padding-inline: 18px; }
}
@media (max-width: 419px) {
  .t-hero { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
