/* ==========================================================
   숲결한의원 - Modern Minimal
   ========================================================== */

:root {
  --c-bg: #ffffff;
  --c-bg-alt: #fafaf7;
  --c-text: #1f2421;
  --c-sub: #5f6661;
  --c-line: #e6e7e2;
  --c-point: #4a6b57;
  --c-point-dark: #3a5545;
  --c-point-soft: #edf2ee;

  --header-h: 72px;
  --radius: 14px;
  --container: 1160px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

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

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

.br-pc { display: none; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-point);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--c-point); color: #fff; }
.btn--primary:hover { background: var(--c-point-dark); }
.btn--ghost { border-color: var(--c-text); color: var(--c-text); background: transparent; }
.btn--ghost:hover { background: var(--c-text); color: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-scrolled,
.header.is-open {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--c-line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; color: var(--c-point); }
.logo__mark { width: 28px; height: 28px; }
.logo__text { font-size: 19px; font-weight: 700; color: var(--c-text); letter-spacing: -0.02em; }

/* Mobile nav */
.nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: #fff;
  padding: 16px 24px 32px;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.header.is-open .nav { opacity: 1; transform: none; visibility: visible; }
.nav__list a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--c-line);
}
.nav__cta { width: 100%; }

.menu-toggle {
  width: 40px; height: 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 8px;
  background: none; border: 0; cursor: pointer;
}
.menu-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--c-text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.header.is-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f7f4 0%, #ffffff 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--c-point);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.hero__title {
  font-size: clamp(38px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero__desc { font-size: 16px; color: var(--c-sub); margin-bottom: 40px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: absolute; inset: 0; pointer-events: none; }
.hero__circle { position: absolute; border-radius: 50%; }
.hero__circle--1 {
  width: 520px; height: 520px;
  right: -220px; top: 12%;
  background: radial-gradient(circle at 30% 30%, #dfe8e1, #c5d6ca);
  opacity: 0.7;
}
.hero__circle--2 {
  width: 220px; height: 220px;
  right: 18%; bottom: 8%;
  border: 1px solid #c5d6ca;
}

.hero__img {
  position: absolute;
  right: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0.4) 100%);
  pointer-events: none;
}
.hero__visual { z-index: 0; }
.hero__inner { z-index: 1; }

/* ---------- Photo banners (Magnific generated) ---------- */
.photo-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 56px;
}
.photo-banner--wide { margin-bottom: 40px; }

/* ---------- Section ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--c-bg-alt); }
.section__head { text-align: center; margin-bottom: 56px; }
.section__head--left { text-align: left; }
.section__title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 16px;
}
.section__desc { color: var(--c-sub); font-size: 16px; }

/* ---------- About ---------- */
.philosophy { display: grid; gap: 16px; margin-bottom: 80px; }
.philosophy__item {
  padding: 32px 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
}
.philosophy__num { display: block; font-size: 13px; font-weight: 600; color: var(--c-point); margin-bottom: 20px; }
.philosophy__item h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.philosophy__item p { color: var(--c-sub); font-size: 15px; }

.doctor { display: grid; gap: 40px; align-items: center; }
.doctor__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #e3ebe5 0%, #c9d8cd 100%);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 20px;
  color: var(--c-point-dark);
  font-size: 13px;
  max-width: 420px;
}
.doctor__name { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
.doctor__name small { display: block; font-size: 15px; font-weight: 500; color: var(--c-sub); margin-top: 4px; }
.doctor__quote {
  font-size: 18px;
  line-height: 1.6;
  padding-left: 20px;
  border-left: 2px solid var(--c-point);
  margin-bottom: 32px;
}
.doctor__intro { color: var(--c-sub); font-size: 15px; line-height: 1.85; }
.transit li { padding: 6px 0; line-height: 1.6; }
.transit li + li { border-top: 1px dashed var(--c-line); }
.transit strong { color: var(--c-text); font-weight: 600; }
.doctor__career li {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
  color: var(--c-sub);
}
.doctor__career li:first-child { border-top: 1px solid var(--c-line); }

/* ---------- Services ---------- */
.services { display: grid; gap: 16px; }
.service {
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service:hover { border-color: var(--c-point); transform: translateY(-4px); }
.service__icon {
  width: 44px; height: 44px;
  margin-bottom: 24px;
  fill: none;
  stroke: var(--c-point);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.service p { color: var(--c-sub); font-size: 15px; }

/* ---------- Hours ---------- */
.hours { display: grid; gap: 40px; }
.hours__tel {
  display: inline-flex; flex-direction: column;
  margin-top: 32px;
  padding: 20px 28px;
  border-radius: var(--radius);
  background: var(--c-point-soft);
}
.hours__tel span { font-size: 13px; color: var(--c-point); font-weight: 600; }
.hours__tel strong { font-size: 26px; letter-spacing: -0.01em; }

.hours__table table { width: 100%; border-collapse: collapse; }
.hours__table tr { border-bottom: 1px solid var(--c-line); transition: background 0.3s; }
.hours__table tr:first-child { border-top: 2px solid var(--c-text); }
.hours__table th,
.hours__table td { padding: 20px 12px; text-align: left; font-size: 16px; }
.hours__table th { font-weight: 600; width: 40%; }
.hours__table td { color: var(--c-sub); }
.hours__table em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-point);
  background: var(--c-point-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  white-space: nowrap;
}
.hours__table .is-break th,
.hours__table .is-break td { color: var(--c-sub); font-weight: 400; }
.hours__table .is-closed td { color: #b4544a; font-weight: 600; }
.hours__table tr.is-today { background: var(--c-point-soft); }
.hours__table tr.is-today th::after {
  content: "TODAY";
  margin-left: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--c-point);
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: 2px;
}
.hours__note { margin-top: 16px; font-size: 13px; color: var(--c-sub); }

/* ---------- Location ---------- */
.location { display: grid; gap: 32px; }
.map {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9ede8;
  border: 1px solid var(--c-line);
}
.map__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(#dde3dc 2px, transparent 2px),
    linear-gradient(90deg, #dde3dc 2px, transparent 2px),
    linear-gradient(#fff 14px, transparent 14px);
  background-size: 60px 60px, 60px 60px, 100% 50%;
  background-position: 0 0, 0 0, 0 calc(50% - 7px);
  background-repeat: repeat, repeat, no-repeat;
}
.map__pin {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
}
.map__pin svg { width: 44px; height: 44px; fill: var(--c-point); filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15)); }
.map__pin span {
  margin-top: 4px;
  background: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.location__info dl > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
}
.location__info dl > div:first-child { border-top: 2px solid var(--c-text); }
.location__info dt { font-weight: 600; font-size: 15px; }
.location__info dd { color: var(--c-sub); font-size: 15px; }
.location__links { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--c-text); color: #a9aeaa; padding: 48px 0; font-size: 13px; }
.footer__inner { display: flex; flex-direction: column; gap: 24px; }
.footer__logo { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.footer__meta span { margin: 0 6px; opacity: 0.4; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   Tablet ≥ 768px
   ========================================================== */
@media (min-width: 768px) {
  .container { padding: 0 40px; }
  .br-pc { display: inline; }
  .section { padding: 128px 0; }
  .hero__desc { font-size: 18px; }
  .philosophy { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .doctor { grid-template-columns: 1fr 1.2fr; gap: 64px; }
  .map { min-height: 420px; }
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

/* ==========================================================
   Desktop ≥ 1024px
   ========================================================== */
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 36px;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list { display: flex; gap: 32px; }
  .nav__list a {
    padding: 0;
    border: 0;
    font-size: 15px;
    position: relative;
  }
  .nav__list a::after {
    content: "";
    position: absolute; left: 0; bottom: -4px;
    width: 100%; height: 1px;
    background: var(--c-point);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .nav__list a:hover::after { transform: scaleX(1); }
  .nav__cta { width: auto; height: 40px; padding: 0 20px; font-size: 14px; }

  .services { grid-template-columns: repeat(3, 1fr); }
  .hours { grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
  .location { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
  .hero__circle--1 { width: 680px; height: 680px; right: -160px; }
}
