/* ------------------------------------------------------------------
   HelloSMG – Seoul Medical Group Washington
   Design tokens follow the marketing mockup (light grey page, white
   panels, royal-blue actions) blended with SMG brand colours
   (blue #134c95, green #00ae42) from seoulmedicalgroup.com.
   ------------------------------------------------------------------ */

:root {
  --blue: #2a5bd7;          /* action blue (mockup) – 5.9:1 on white */
  --blue-hover: #1f4ab8;
  --blue-dark: #134c95;     /* SMG brand blue – 8.4:1 with white text */
  --green: #00ae42;         /* SMG brand green */
  --green-deep: #007d30;    /* darkened brand green – 5.3:1 with white text */
  --ink: #2d2d2d;
  --ink-soft: #55575c;
  --muted: #7a7d84;
  --line: #e2e4e8;
  --bg: #f3f4f6;
  --bg-soft: #f8f9fb;
  --white: #ffffff;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 6px 18px rgba(20, 40, 90, 0.10);
  --shadow-lg: 0 14px 34px rgba(20, 40, 90, 0.14);
  --container: 1200px;
  /* Sticky chrome, at rest and in the scrolled "compact" state. The parent site
     shrinks its header from 91px to 50px over 0.4s ease-in-out; matched here. */
  --topbar-h: 34px;
  --header-h: 84px;
  --logo-h: 40px;
  --topbar-h-compact: 30px;
  --header-h-compact: 58px;
  --logo-h-compact: 30px;
  --shrink: .4s;
  --ease-shrink: ease-in-out;
  --ease: cubic-bezier(.2,.7,.2,1);
  /* Arial, per the 2026-09-15 brief ("Times New Roman, Arial, or Aptos").
     Arial is the only one of the three that is safe on the web: Aptos has no
     reliable presence outside Microsoft 365, and Times New Roman would change
     the page's character completely. No webfont is requested any more, so the
     page has no third-party dependency at all. */
  --font-heading: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --font-body: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 880px; text-align: center; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue-dark); color: #fff; padding: 10px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; outline: 3px solid var(--green); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 22px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(42,91,215,.28); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: #eef2fd; }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: .9rem; }

/* Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--shrink) var(--ease-shrink), background-color var(--shrink) var(--ease-shrink);
}
.site-header.is-compact {
  background: rgba(255,255,255,.97);
  box-shadow: 0 0 7px rgba(0,0,0,.10);
}

/* Utility bar (mirrors #top-header on the parent site) ------------- */
.topbar {
  background: var(--blue-dark); color: #fff;
  font-size: .75rem; line-height: 1; font-weight: 600;
  transition: background-color var(--shrink) var(--ease-shrink);
}
/* The parent site flips this bar from brand blue to brand green once you
   scroll. Green is darkened here so white 12px text still clears 4.5:1. */
.site-header.is-compact .topbar { background: var(--green-deep); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: var(--topbar-h);
  transition: min-height var(--shrink) var(--ease-shrink);
}
.site-header.is-compact .topbar-inner { min-height: var(--topbar-h-compact); }
.topbar a { color: #fff; }
/* Two clinics means two numbers in the bar, so each is prefixed by its
   neighbourhood -- an unlabelled pair leaves a caller guessing. */
.topbar-clinic { font-weight: 700; margin-right: 6px; }
.topbar-clinic::after { content: ":"; }
.topbar-contact { display: flex; align-items: center; gap: 20px; min-width: 0; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-item:hover { opacity: .75; text-decoration: none; }
.topbar-item svg { flex: none; opacity: .85; }
.topbar-langs ul { display: flex; align-items: center; gap: 16px; }
.topbar-langs a {
  display: block; padding: 3px 0; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.topbar-langs a:hover { text-decoration: none; border-bottom-color: rgba(255,255,255,.5); }
/* Current language is marked by weight + underline, not colour alone. */
.topbar-langs a[aria-current="true"] { font-weight: 800; border-bottom-color: #fff; }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px;
  transition: min-height var(--shrink) var(--ease-shrink);
}
.site-header.is-compact .header-inner { min-height: var(--header-h-compact); }
.brand img { width: auto; height: var(--logo-h); transition: height var(--shrink) var(--ease-shrink); }
.site-header.is-compact .brand img { height: var(--logo-h-compact); }

/* Anchor targets clear the sticky chrome. */
#main, #services, #about, #join, #contact {
  scroll-margin-top: calc(var(--topbar-h-compact) + var(--header-h-compact) + 8px);
}

/* Languages inside the mobile menu panel; desktop uses the utility bar. */
.nav-langs { display: none; }
.primary-nav { display: flex; align-items: center; gap: 40px; }
.nav-list { display: flex; gap: 34px; }
.nav-list a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; padding: 8px 0; position: relative; }
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px;
  background: var(--green); transition: right .22s var(--ease);
}
.nav-list a:hover { color: var(--ink); text-decoration: none; }
.nav-list a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius);
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Nav links shrink with the header, as on the parent site. */
.nav-list a { padding-top: 8px; padding-bottom: 8px; transition: padding var(--shrink) var(--ease-shrink); }
.site-header.is-compact .nav-list a { padding-top: 5px; padding-bottom: 5px; }

/* Hero ------------------------------------------------------------- */
.hero { background: var(--white); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 40px;
  padding-top: 40px; padding-bottom: 0;
}
.hero-copy { text-align: center; padding-bottom: 48px; }
.hero-rule { display: block; width: 32px; height: 2px; background: var(--ink); margin: 0 auto 22px; opacity: .55; }
.hero h1 {
  font-size: clamp(1.9rem, 1.1rem + 2.4vw, 2.9rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.15;
  color: var(--blue); text-transform: uppercase; margin-bottom: 22px; text-wrap: balance;
}
/* Vietnamese joins the no-uppercase list. Setting it in caps stacks the diacritics
   (ĐỒNG HÀNH CÙNG SỨC KHỎE) until the marks collide and the headline stops being
   readable -- which is what "the font doesn't work" on 2026-09-22 was describing.
   Nothing is wrong with Arial here; the text-transform was. */
html[lang^="zh"] .hero h1, html[lang="ko"] .hero h1, html[lang="vi"] .hero h1
  { text-transform: none; letter-spacing: 0; }
.hero-copy p { max-width: 42ch; margin: 0 auto 30px; color: var(--ink-soft); }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg);
}
.hero-media::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 20%;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); pointer-events: none;
}

/* Why SMG blocks --------------------------------------------------
   Replaces the 3-across card carousel. The 2026-09-15 copy runs two to three
   paragraphs per block, so each one gets a full row with the image beside it,
   sides alternating down the page. */
.blocks { background: var(--bg); padding: 64px 0 68px; }
.block {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px; align-items: center; padding: 30px 0;
}
.block + .block { border-top: 1px solid var(--line); }
.block-flip .block-media { order: 2; }
.block-media img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.block-copy h2 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); color: var(--blue);
  margin-bottom: 14px; text-wrap: balance;
}
.block-copy p { color: var(--ink-soft); margin: 0 0 12px; }
.block-copy p:last-child { margin-bottom: 0; }

/* Services --------------------------------------------------------- */
.services { background: var(--white); padding: 64px 0 60px; }
.services h2 { text-align: center; margin-bottom: 30px; }
/* .container.narrow centres its text, which left the bullet stranded at the far
   left of a centred label. The list opts back out and sizes to its content. */
.service-list {
  list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px;
  max-width: 560px; text-align: left;
}
.service-list li {
  position: relative; padding: 13px 18px 13px 46px; background: var(--bg);
  border-radius: var(--radius); color: var(--ink); font-size: .95rem;
}
.service-list li::before {
  content: ""; position: absolute; left: 20px; top: 50%; margin-top: -5px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
}

/* About ------------------------------------------------------------ */
.about { background: var(--white); padding: 72px 0 64px; }
.about p { color: var(--ink-soft); margin-bottom: 36px; }

/* Contact / clinics ----------------------------------------------- */
.contact { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 72px 0 80px; }
.contact h2 { text-align: center; margin-bottom: 36px; }
.clinic-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px; max-width: 1020px; margin: 0 auto;
  /* stretch, not start: the two cards hold different numbers of rows -- the ID
     clinic has two providers and Saturday hours -- so left to themselves they
     end at different heights and the maps do not line up. */
  align-items: stretch;
}
.clinic-card {
  font-style: normal; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px;
  display: flex; flex-direction: column;
}
.clinic-name { display: block; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--blue-dark); }
.clinic-label { display: block; color: var(--muted); font-size: .88rem; margin: 5px 0 20px; }
/* The clinic's own-script name, shown when the page language overrides it. */
.clinic-name-orig { display: block; color: var(--muted); font-size: .95rem; margin-top: 3px; }
.clinic-card dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 22px; }
.clinic-card dl > div { display: contents; }
.clinic-card dt { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
html[lang^="zh"] .clinic-card dt, html[lang="ko"] .clinic-card dt { text-transform: none; letter-spacing: 0; }
.clinic-card dd { margin: 0; color: var(--ink); }
/* The physician's name in their own script, beside the English one. */
.provider-local { color: var(--muted); margin-left: .35em; }
.hours { display: grid; grid-template-columns: max-content auto; gap: 2px 16px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 22px; }
.clinic-map {
  margin-top: auto;  /* soaks up the leftover height so the map sits on the card floor */
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.clinic-map iframe { display: block; width: 100%; height: 220px; border: 0; }

/* Footer ----------------------------------------------------------- */
.site-footer { background: #e9ebef; color: var(--ink-soft); font-size: .9rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 40px;
}
.footer-brand img { height: 34px; width: auto; margin-bottom: 12px; }
.footer-org { font-weight: 600; color: var(--ink); }
.footer-col h3 { font-size: .9rem; margin-bottom: 12px; color: var(--ink); }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink-soft); }
.footer-col a:hover { color: var(--blue-dark); }
.footer-label { display: inline-block; min-width: 3.5em; color: var(--muted); }
.footer-bottom { background: #dfe2e7; padding: 18px 0; font-size: .8rem; color: var(--muted); }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.footer-disclaimer { flex: 1 1 100%; margin: 0 0 4px; }
.footer-copy { margin: 0; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; }
.footer-langs a { color: var(--ink-soft); }
.footer-langs a[aria-current="true"] { color: var(--blue-dark); font-weight: 700; }

/* Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-list { gap: 24px; }
  .hero-inner { gap: 32px; }
  .topbar-langs ul { gap: 13px; }
  .topbar-contact { gap: 16px; }
}

/* Five language labels plus contact info stop fitting on one line here, so the
   languages move into the mobile menu panel and the bar keeps the contact info. */
@media (max-width: 760px) {
  .topbar-langs { display: none; }
  .topbar-inner { justify-content: center; }
  .nav-langs { display: block; margin-top: 18px; }
  .nav-langs-label {
    display: block; font-size: .8rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px;
  }
  html[lang^="zh"] .nav-langs-label, html[lang="ko"] .nav-langs-label { text-transform: none; letter-spacing: 0; }
  .nav-langs ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .nav-langs a {
    display: block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
    color: var(--ink-soft); font-size: .9rem; font-weight: 600;
  }
  .nav-langs a:hover { text-decoration: none; border-color: var(--blue); color: var(--ink); }
  .nav-langs a[aria-current="true"] {
    background: var(--blue-dark); border-color: var(--blue-dark); color: #fff;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 68px; --header-h-compact: 54px;
    --logo-h: 34px; --logo-h-compact: 27px;
  }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 8px 24px 20px; display: none;
  }
  .primary-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-header.is-compact .nav-list a { padding-top: 12px; padding-bottom: 12px; }
  .nav-list a::after { display: none; }
  .nav-actions { margin-top: 16px; justify-content: space-between; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-media { margin: 0 -24px; }
  .hero-media img { border-radius: 0; aspect-ratio: 16 / 10; }
  .hero-media::before { display: none; }

  /* Blocks stack: image above copy, and the alternating order is dropped
     because on one column it would put two images side by side vertically. */
  .block { grid-template-columns: 1fr; gap: 22px; padding: 26px 0; }
  .block-flip .block-media { order: 0; }

  .clinic-grid { grid-template-columns: 1fr; }
  .clinic-card { padding: 24px; }
  .clinic-card dl { grid-template-columns: 1fr; gap: 4px; }
  .clinic-card dd { margin-bottom: 12px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  /* Both numbers still need to be tappable, so they stack rather than drop. */
  .topbar-contact { flex-direction: column; align-items: center; gap: 2px; }
  .topbar-item { font-size: .78rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-media { margin-left: -18px; margin-right: -18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
