/* ============================================================
   GaNaDa Medical — ganadaclinic.com
   Static site, no build step. Edit freely.
   Palette: warm cream ground, terracotta accent, sage secondary.
   Type: Noto Serif KR (headings) / Noto Sans KR (body).
   ============================================================ */

:root {
  --bg: #faf9f5;
  --surface: #f3efe6;
  --text: #201e1d;
  --muted: #5c564e;
  --accent: #c67139;        /* terracotta */
  --accent-deep: #8c491a;   /* small-text safe on cream */
  --accent-hover: #b2622d;
  --accent-tint: #fff2eb;
  --sage: #7a8a5e;
  --sage-deep: #56633f;
  --sage-tint: #f0fae1;
  --sage-tint-2: #e1eecc;
  --divider: rgba(32, 30, 29, 0.14);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(46, 43, 37, 0.14);
  --shadow-md: 0 3px 10px rgba(46, 43, 37, 0.14);
  --font-heading: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --font-body: "Noto Sans KR", "Apple SD Gothic Neo", -apple-system, sans-serif;
  --edge: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-x: clip;
  text-wrap: pretty;
}

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

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.35; }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  padding: 12px 26px; border-radius: 999px; text-decoration: none;
  white-space: nowrap; transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent-deep); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-ghost:hover { background: var(--accent-tint); color: var(--accent-deep); }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; gap: 26px;
  padding: 18px var(--edge);
  max-width: 1160px; margin: 0 auto;
}
.nav-brand { font-family: var(--font-heading); font-weight: 700; font-size: 19px; margin-right: auto; color: var(--text); text-decoration: none; }
.nav-brand:hover { color: var(--text); }
.nav a:not(.nav-brand):not(.btn) { color: var(--text); text-decoration: none; font-size: 15.5px; }
.nav a:not(.nav-brand):not(.btn):hover { color: var(--accent-deep); }
.nav .lang { color: var(--accent-deep); font-weight: 500; }
@media (max-width: 760px) { .nav .nav-link { display: none; } .nav { gap: 14px; } }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.3; letter-spacing: -0.01em; }
.hero h1 .accent { color: var(--accent-deep); }
.hero .sub { margin-top: 22px; max-width: 58ch; color: var(--muted); }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-figure img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- stat band ---------- */
.stats { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; }
.stat .num { font-family: var(--font-heading); font-weight: 700; font-size: clamp(30px, 3vw, 40px); color: var(--accent-deep); line-height: 1.2; }
.stat .label { font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 4px; max-width: 22ch; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats-grid { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: clamp(48px, 7vw, 88px) 0 0; }
.kicker {
  display: block; font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase;
  font-weight: 700; color: var(--accent-deep); margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.section-lede { color: var(--muted); max-width: 62ch; }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.card {
  background: #fff; border: 1px solid var(--divider); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card h3::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 16px; }
.card p { font-size: 15.5px; color: var(--muted); }
.card ul { margin: 10px 0 0 0; padding-left: 0; list-style: none; }
.card li { font-size: 15px; color: var(--muted); padding-left: 20px; position: relative; margin-top: 7px; }
.card li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
@media (max-width: 940px) { .cards { grid-template-columns: 1fr; } }

/* philosophy */
.phil { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.phil-item { background: var(--sage-tint); border-radius: var(--radius-lg); padding: 28px; }
.phil-item h3 { font-size: 19px; color: var(--sage-deep); margin-bottom: 10px; }
.phil-item p { font-size: 15.5px; color: var(--text); opacity: 0.85; }
@media (max-width: 940px) { .phil { grid-template-columns: 1fr; } }

/* doctor */
.doctor-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: 34px; }
.doctor-figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); max-width: 380px; justify-self: end; }
.doctor-figure img { width: 100%; display: block; }
.doctor-figure figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px; background: #fff; }
.cred { margin-top: 22px; padding-left: 0; list-style: none; }
.cred li { position: relative; padding-left: 26px; margin-top: 10px; font-size: 15.5px; color: var(--muted); }
.cred li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-deep); font-weight: 700; }
.cred li strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .doctor-grid { grid-template-columns: 1fr; } .doctor-figure { justify-self: start; order: -1; } }

/* ---------- visit / booking ---------- */
.visit-panel {
  background: var(--sage-tint); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 52px); margin-top: 34px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px);
}
.visit-info h3 { font-size: 24px; margin-bottom: 14px; }
.visit-info p { font-size: 15.5px; margin-top: 8px; }
.visit-info .fact { display: grid; grid-template-columns: 92px 1fr; gap: 10px; margin-top: 10px; font-size: 15.5px; }
.visit-info .fact dt { font-weight: 700; }
.visit-info .fact dd { margin: 0; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 24px; }
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

.book-form { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.book-form h3 { font-size: 20px; margin-bottom: 6px; }
.book-form .hint { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.field { margin-top: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15.5px; color: var(--text);
  padding: 10px 12px; border: 1px solid var(--divider); border-radius: 10px; background: var(--bg);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.book-form .btn { margin-top: 20px; width: 100%; text-align: center; }
.book-form .safety { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.6; }
@media (max-width: 940px) { .visit-panel { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--divider); padding: 30px 0 44px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
footer a { color: var(--muted); }

/* reveal on scroll (progressive enhancement) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* simple centered page (thanks / 404) */
.simple { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px var(--edge); }
.simple h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.simple p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }
