/* Clear Clinic demo. Shared by index, services, pricing, contact.
   Spec: proxylang-web/docs/superpowers/specs/2026-09-19-clinic-site-redesign-design.md

   Two constraints drive the layout:
   1. No <br> in headings, buttons or links. Second lines come from
      display:block on an existing inline child.
   2. Nav + hero + stats must fit 800px at 1280 wide, in Korean and after
      the text is swapped for longer English. Sizes below are measured
      against that budget, not picked by eye. */

:root {
  /* Palette. Fixed by the spec. */
  --paper: #f7f4ef;
  --ink: #17201d;
  --green: #0f5c4a;
  --green-soft: #dfeee8;
  --sand: #ebe4d8;
  --line: #d9d2c6;
  --mute: #6b6f6c;

  /* Transparent tints of the palette. Used over paper, sand and white. */
  --ink-12: rgba(23, 32, 29, 0.12);
  --ink-22: rgba(23, 32, 29, 0.22);
  --sand-wash: rgba(235, 228, 216, 0.45);

  /* Solid colours outside the spec table.
     --green-deep is the button hover state.
     --gold is the star rating.
     --mute reaches 4.04:1 on --sand, under the 4.5:1 minimum, so --mute-deep
     replaces it wherever secondary text sits on sand. */
  --green-deep: #0b4a3b;
  --gold: #c08a2e;
  --mute-deep: #565b58;

  --serif: 'Noto Serif KR', Georgia, serif;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;

  /* Vertical rhythm between blocks. Three steps, so that section spacing
     stays consistent across the four pages. Spacing inside a component is
     set on the component. */
  --rhythm-sm: 34px;
  --rhythm-md: 56px;
  --rhythm-lg: 92px;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --wrap: 1180px;

  /* One light source, above and slightly left. */
  --shadow-card: 0 1px 2px rgba(23, 32, 29, 0.05), 0 18px 34px -18px rgba(23, 32, 29, 0.28), 0 40px 70px -40px rgba(15, 92, 74, 0.3);
  --shadow-pill: 0 6px 16px -6px rgba(23, 32, 29, 0.45);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; }

::selection { background: var(--green-soft); color: var(--ink); }

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

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

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
h1 em, h2 em, h1 strong, h2 strong { font-style: normal; }
h1 em, h2 em { color: var(--green); }
h1 strong, h2 strong { font-weight: 700; }

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

/* Section label. A short green rule sits on the baseline before the word,
   so the label reads as a marker rather than a floating caps string. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  line-height: 1.6;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--green);
  flex: none;
}

.en {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin-left: 10px;
  font-weight: 500;
}

/* Digits line up in columns. */
.stat-number, .service-price, .package-price, .package-original,
.nav-phone, .cta-phone, .hours-table td, td:last-child {
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), box-shadow .2s var(--ease), transform .1s ease;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 92, 74, 0.2), 0 10px 20px -12px rgba(15, 92, 74, 0.7);
}
.btn-primary:hover {
  background: var(--green-deep);
  box-shadow: 0 1px 2px rgba(15, 92, 74, 0.24), 0 14px 26px -12px rgba(15, 92, 74, 0.8);
}
.btn-ghost {
  border: 1px solid var(--ink-22);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(23, 32, 29, 0.05); }
.btn-primary:active, .btn-ghost:active { transform: translateY(1px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  height: 72px; display: flex; align-items: center; gap: 24px;
}
.nav-logo {
  font-family: var(--serif); font-size: 21px; font-weight: 700;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 10px; min-width: 0;
}
.nav-logo span {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.18em;
  color: var(--mute); font-weight: 600; white-space: nowrap;
}
.nav-links {
  display: flex; align-items: center; gap: 26px;
  margin-left: auto; font-size: 15px; font-weight: 500;
}
/* The link for the current page keeps a green underline. */
.nav-links a { position: relative; transition: color .2s var(--ease); }
.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:not(.btn-primary):hover { color: var(--green); }
.nav-links a:not(.btn-primary):hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--green); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .btn-primary[aria-current="page"] { color: #fff; }
.nav-phone { font-size: 14px; font-weight: 600; color: var(--mute); white-space: nowrap; }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 72px 0 44px; border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(32px, 3.4vw, 44px); margin: 14px 0 14px; }
.page-header p { color: var(--mute); font-size: 17px; max-width: 58ch; text-wrap: pretty; }

/* ---------- Hero (home) ---------- */
.hero {
  padding: 96px 0 96px;
  /* Soft wash behind the card side. Same palette, no section colour flip. */
  background:
    radial-gradient(90% 120% at 82% 12%, var(--green-soft) 0%, rgba(223, 238, 232, 0) 62%),
    var(--paper);
}
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  display: grid;
  /* Fixed card column. The copy column is then 656px, measured so the first
     h1 line holds in English too: 'Creating natural beauty' runs 599px at
     52px, the h1 maximum. */
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 60px;
  align-items: center;
}
/* min-width: 0 stops a long unbreakable translated word from widening the
   grid track and pushing the page into horizontal overflow. */
.hero-copy { min-width: 0; }
.hero-badge {
  display: inline-block; padding: 7px 15px; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
  font-size: 13px; font-weight: 700; line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgba(15, 92, 74, 0.1);
}
.hero h1 {
  font-size: clamp(32px, 4.1vw, 52px);
  line-height: 1.2;
  margin: 24px 0 20px;
}
/* Line break before <strong>, not <br>: the widget joins a heading into one
   sentence and drops a lone <br>. The <strong> stays inline with text after
   it; a <strong> that wraps the whole line came back empty from the widget. */
.hero h1 strong::before { content: ''; display: block; }
.hero p { font-size: 17px; color: var(--mute); max-width: 48ch; text-wrap: balance; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-art { display: flex; justify-content: flex-end; }
.consult-card {
  position: relative; width: 100%; max-width: 400px;
  background: #fff; border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-card);
}
/* Hairline on the card edge so it reads against the paper, not only by shadow. */
.consult-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 29, 0.06);
  pointer-events: none;
}
.consult-pill {
  position: absolute; top: -16px; left: 20px; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.4;
  box-shadow: var(--shadow-pill);
}
.consult-doctor { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--green-soft); color: var(--green);
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.avatar-lg { width: 72px; height: 72px; font-size: 28px; }
.consult-name { font-size: 18px; font-weight: 700; line-height: 1.35; }
.consult-title { font-size: 13px; color: var(--mute); line-height: 1.5; }
.consult-rows { margin-top: 20px; border-top: 1px solid var(--line); }
.consult-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 1.5;
}
.consult-row span:first-child { color: var(--mute); }
.consult-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.consult-row .stars { color: var(--gold); letter-spacing: 1px; }
.consult-card .btn-primary { display: block; text-align: center; margin-top: 20px; }

/* ---------- Stats band ---------- */
.stats { padding: 0 32px 56px; }
.stats-inner {
  max-width: var(--wrap); margin: 0 auto;
  background: var(--sand); border-radius: var(--radius);
  padding: 26px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
/* Hairlines instead of a gap. Four numbers read as one band. */
.stat { padding: 0 28px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat + .stat { border-left: 1px solid rgba(23, 32, 29, 0.1); }
.stat-number {
  font-family: var(--serif); font-size: 31px; font-weight: 700;
  color: var(--green); line-height: 1.15; letter-spacing: -0.02em;
}
.stat-label { font-size: 13px; color: var(--mute-deep); margin-top: 4px; line-height: 1.5; }

/* ---------- Sections ---------- */
section.block { padding: var(--rhythm-lg) 0; }
/* Bottom padding runs slightly longer than top. Reads level. */
section.block + section.block { padding-top: 84px; }
.services-preview { padding-top: 96px; }

.section-header { max-width: 640px; margin-bottom: var(--rhythm-sm); }
.section-header h2 { font-size: clamp(28px, 2.9vw, 36px); margin: 14px 0 12px; }
.section-header p { color: var(--mute-deep); font-size: 16px; text-wrap: pretty; }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Services preview (home) ---------- */
.service-card {
  display: block; position: relative; padding-bottom: 30px;
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(23, 32, 29, 0.04), 0 18px 30px -20px rgba(15, 92, 74, 0.45);
}
/* Arrow is CSS content, so the translation widget never sees it. */
.service-card::after {
  content: '\2192';
  position: absolute; right: 26px; bottom: 22px;
  color: var(--green); font-size: 17px; line-height: 1;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.service-card:hover::after { opacity: 1; transform: translateX(0); }
.service-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
}
.service-name {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; margin-top: 16px;
}
.service-desc {
  font-size: 14px; color: var(--mute); margin-top: 8px;
  min-height: 3.4em; text-wrap: pretty;
}
.service-price {
  font-weight: 700; color: var(--green); margin-top: 16px; font-size: 15px;
  padding-top: 14px; border-top: 1px solid var(--line);
}

/* ---------- Testimonials ---------- */
/* Full-bleed sand wash. Same palette, one step darker than the paper. */
.testimonials { background: var(--sand-wash); border-block: 1px solid var(--line); }
.testimonial { display: flex; flex-direction: column; }
.testimonial-stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; line-height: 1; }
.testimonial-text { font-size: 15px; margin-top: 14px; flex: 1; text-wrap: pretty; }
.testimonial-author {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--mute);
}
.testimonial-author .avatar { width: 34px; height: 34px; font-size: 14px; }
.testimonial-author strong { color: var(--ink); font-weight: 700; }

/* ---------- Doctors ---------- */
/* Left aligned, not three centred portraits. The credential list then
   shares one baseline across the row. */
.doctor-card { display: flex; flex-direction: column; }
.doctor-name {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; margin-top: 18px;
}
.doctor-title { font-size: 13px; color: var(--green); font-weight: 700; margin-top: 2px; }
.doctor-spec {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--mute);
}
.doctor-spec li { line-height: 1.5; }
.doctor-spec li + li { margin-top: 8px; }

/* ---------- CTA panel ---------- */
.cta-section { padding: 0 32px var(--rhythm-lg); }
.cta-inner {
  position: relative; overflow: hidden;
  max-width: var(--wrap); margin: 0 auto;
  /* Lit from the top, same direction as every card shadow on the page.
     A linear ramp, not a radial one, so no ellipse edge shows. */
  background: linear-gradient(180deg, #1e3730 0%, var(--ink) 58%);
  color: #fff; border-radius: 24px;
  padding: 60px 48px 56px; text-align: center;
}
.cta-inner h2 { font-size: clamp(26px, 2.9vw, 36px); }
.cta-inner h2 strong { color: #9ad4c2; }
.cta-inner p { color: rgba(255, 255, 255, 0.72); margin-top: 12px; }
.cta-inner .btn-primary {
  background: #fff; color: var(--ink); margin-top: 30px; box-shadow: none;
}
.cta-inner .btn-primary:hover { background: var(--green-soft); box-shadow: none; }
.cta-phone { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: 14px; color: var(--mute); }
.footer-grid {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px;
}
.footer-grid h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 12px;
}
.footer-grid li + li { margin-top: 4px; }
.footer-grid a { transition: color .2s var(--ease); }
.footer-grid a:hover { color: var(--green); }
.footer-legal {
  max-width: var(--wrap); margin: 36px auto 0;
  padding: 24px 32px 0; border-top: 1px solid var(--line);
  font-size: 12px;
}
.footer-legal p + p { margin-top: 4px; }

/* ---------- Services page ---------- */
.service-row {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  align-items: center; padding: 68px 0; border-bottom: 1px solid var(--line);
}
.service-row:nth-child(even) .service-text { order: 2; }
/* Even rows swap sides. The tracks swap too, so the text column measures the
   same on every row and the panel stays the narrower one. */
.service-row:nth-child(even) { grid-template-columns: 0.9fr 1.1fr; }
/* The CTA panel follows with its own background, so no divider is needed here. */
.service-row:last-child { border-bottom: 0; }
.service-row h2 { font-size: clamp(26px, 2.7vw, 34px); margin: 14px 0 14px; }
.service-row p { color: var(--mute); margin-top: 10px; text-wrap: pretty; }
.service-row h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); margin-top: 24px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags li {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; line-height: 1.5;
}
.spec-panel { background: var(--sand); border-radius: var(--radius-lg); padding: 28px 30px; }
.spec-panel h4 {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 8px;
}
.spec-panel li { padding: 13px 0; border-top: 1px solid var(--ink-12); font-size: 14px; line-height: 1.6; }
.spec-panel li:first-of-type { border-top: 0; }
.callout {
  margin-top: 20px; padding: 14px 18px;
  border-left: 3px solid var(--green); background: var(--green-soft);
  font-size: 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- Pricing page ---------- */
/* top: 72px matches the nav's height. The nav's height does not change at
   the 900px breakpoint, so no mobile override of this value is needed. */
.tabs {
  position: sticky; top: 72px; z-index: 10;
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.tabs-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.tabs-inner::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 15px 14px; font-size: 14px; font-weight: 600; color: var(--mute);
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tabs a:hover { color: var(--green); border-color: var(--green); }
.price-section { padding-top: var(--rhythm-md); scroll-margin-top: 140px; }
.price-section h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.price-section h2 .service-icon { font-size: 18px; width: 40px; height: 40px; }
.table-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left; background: var(--green-soft); color: var(--green);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 13px 18px; white-space: nowrap;
}
tbody td { padding: 14px 18px; border-top: 1px solid var(--line); }
tbody tr:nth-child(even) td { background: var(--sand-wash); }
td:last-child, th:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
/* Second line of a price cell. A block, not a <br>: the widget joins a single
   <br> into one line. Sets white-space back to normal, because it would
   otherwise inherit nowrap from td:last-child and a long translated note
   would squeeze the procedure-name column instead of wrapping. max-width
   caps how wide the note is allowed to get, so the table's auto layout
   treats it as narrow content and wraps it instead of stretching the price
   column; margin-left: auto keeps the block right-aligned in the cell even
   though it is now narrower than the cell. */
.price-note { display: block; font-size: 12px; font-weight: 500; color: var(--mute); white-space: normal; max-width: 240px; margin-left: auto; }
/* Last section before the CTA panel. The panel sets no top padding. */
.price-section:last-child { padding-bottom: var(--rhythm-lg); }
.package-card { position: relative; display: flex; flex-direction: column; }
.package-card.best { border: 2px solid var(--green); }
.package-badge {
  position: absolute; top: -14px; left: 20px;
  padding: 5px 13px; border-radius: 999px;
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  white-space: nowrap; box-shadow: var(--shadow-pill);
}
.package-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.package-desc { font-size: 14px; color: var(--mute); margin-top: 4px; }
.package-price {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  color: var(--green); margin-top: 18px; line-height: 1.2; letter-spacing: -0.02em;
}
.package-original { font-size: 14px; color: var(--mute); text-decoration: line-through; }
.package-card ul { margin-top: 18px; font-size: 14px; flex: 1; }
.package-card li { padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.package-card .btn-primary { display: block; text-align: center; margin-top: 20px; }
.notes {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px;
  font-size: 14px; color: var(--mute);
}
.notes h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 12px;
}
.notes li { padding: 4px 0 4px 16px; position: relative; }
.notes li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
}

/* ---------- Contact page ---------- */
/* Contact is the current page for the nav's pill button. The green
   current-page colour is for the plain links; the pill keeps white text. */
.contact-layout {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px;
  align-items: start; padding: var(--rhythm-md) 0 var(--rhythm-lg);
}
.form-card { padding: 34px; }
.form-card h2 { font-size: 28px; margin-bottom: 6px; }
.form-card > p { color: var(--mute); font-size: 14px; margin-bottom: 26px; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
label .req { color: #b03a2b; margin-left: 2px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
/* A select ignores the inherited line-height, so it renders 6px shorter than
   the inputs above it. The min-height restates the input's box: line box
   (1.7em) plus 24px padding plus 2px border. */
select { min-height: calc(1.7em + 26px); }
input::placeholder, textarea::placeholder { color: var(--mute); opacity: 1; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
textarea { min-height: 120px; resize: vertical; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; }
/* 성별 shares a .form-row with an input. The min-height matches the input so
   both fields sit on the same line; it grows if the radios wrap. */
.form-row .radio-group { min-height: calc(1.7em + 26px); align-items: center; }
.radio-group label { font-weight: 500; margin: 0; display: flex; align-items: center; gap: 6px; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--green); }
.consent { font-size: 13px; color: var(--mute); display: flex; gap: 8px; align-items: flex-start; }
/* The consent sentence carries one link. Underlined, so it is not colour alone. */
.consent a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.form-card .btn-primary {
  width: 100%; text-align: center; margin-top: 8px;
  border: 0; cursor: pointer; font-family: inherit;
}
.info-stack { display: grid; gap: 16px; }
/* Column heading. One step under the form card's h2: the form is the page's
   main action and keeps the larger size. */
.info-stack h2 { font-size: 22px; }
.info-card h3 {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; margin-bottom: 12px;
}
.info-card p, .info-card li { font-size: 14px; color: var(--mute); }
.info-card b { color: var(--ink); font-weight: 700; }
.info-card .big {
  font-family: var(--serif); font-size: 26px; font-weight: 700;
  color: var(--green); letter-spacing: -0.02em;
  line-height: 1.3; margin: 2px 0 16px;
}
/* Label and value on one line. The label column is sized by its own text, so a
   longer translated label pushes the value along instead of overlapping it. */
.info-row { display: flex; gap: 14px; font-size: 14px; line-height: 1.6; }
.info-row + .info-row { margin-top: 8px; }
.info-label { color: var(--mute); min-width: 72px; flex: none; }
.info-value { color: var(--ink); min-width: 0; }

/* Transit lines under the address. The line badges use the page palette, not
   the real subway line colours, so the card keeps one accent. */
.transport { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.transport-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--mute); line-height: 1.5;
}
.transport-item + .transport-item { margin-top: 10px; }
.transport-icon {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; line-height: 1; color: #fff;
}
.metro { background: var(--green); }
.bus { background: var(--ink); }

.hours-table td { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.hours-table tr:first-child td { border-top: 0; }
.hours-table td:last-child { font-weight: 600; text-align: right; }
/* The hours table sits in an info card, not in a .table-card, so it drops the
   filled header row and the striped rows the pricing tables use. */
.hours-table th {
  background: none; color: var(--mute);
  padding: 0 0 8px; font-size: 10.5px; letter-spacing: 0.1em;
}
.hours-table tbody tr:nth-child(even) td { background: none; }
.hours-table .highlight { color: var(--green); font-weight: 600; }
.hours-table .closed { color: var(--mute); }
.map {
  /* min-height, not height: the address caption below the pin grows when
     it is translated. */
  min-height: 220px; border-radius: var(--radius); background: var(--sand);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--mute-deep); font-size: 13px; text-align: center; padding: 20px;
}
.map .pin {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0;
  background: var(--green); transform: rotate(-45deg);
  box-shadow: 0 8px 14px -8px rgba(23, 32, 29, 0.6);
}
/* Second line in the block: what would sit here in production. */
.map-note { font-size: 12px; color: var(--mute); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* One column here, so the radio row no longer aligns with an input. */
  .form-row .radio-group { min-height: auto; }
  .nav-links a:not(.btn-primary), .nav-phone { display: none; }
  .nav-inner { gap: 12px; }
  .nav-logo { font-size: 18px; }

  .hero { padding: 40px 0 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero p { max-width: none; }
  .hero-art { justify-content: flex-start; }
  .consult-card { max-width: 420px; }

  .stats { padding-bottom: 32px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); padding: 8px 24px; }
  .stat { padding: 18px 0; }
  .stat:nth-child(odd) { padding-right: 18px; }
  .stat:nth-child(even) { padding-left: 18px; border-left: 1px solid rgba(23, 32, 29, 0.1); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(23, 32, 29, 0.1); }
  .stat-number { font-size: 26px; }

  section.block, section.block + section.block, .services-preview { padding: 60px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .cta-section { padding-bottom: 60px; }
  .cta-inner { padding: 48px 28px; }
  .footer-grid { grid-template-columns: 1fr; }

  .service-row, .service-row:nth-child(even) { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .service-row:nth-child(even) .service-text { order: 0; }
  .page-header { padding: 48px 0 32px; }

  .contact-layout { grid-template-columns: 1fr; padding: 36px 0 60px; }
  .form-card { padding: 26px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrap, .nav-inner, .hero-inner, .footer-grid, .tabs-inner, .footer-legal { padding-left: 20px; padding-right: 20px; }
  .stats, .cta-section { padding-left: 20px; padding-right: 20px; }
  .nav-logo span { display: none; }
  .card { padding: 22px; }
}
