@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Noto+Serif+KR:wght@300;400;500;600&display=swap");

:root {
  --sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  --display-serif: "Noto Serif KR", "AppleMyungjo", "Batang", "Times New Roman", serif;
  --ink: #2a211b;
  --muted: #786c61;
  --paper: #f7f1e7;
  --sand: #ded0bb;
  --beige: #efe4d3;
  --brown: #3a271d;
  --brown-2: #5a3d2d;
  --gold: #b79557;
  --line: rgba(58, 39, 29, 0.16);
  --white: #fffdf8;
  --shadow: 0 22px 52px rgba(58, 39, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

strong,
b {
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.container,
.header-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(58, 39, 29, 0.12);
  background: rgba(247, 241, 231, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 120px;
}

.brand-logo {
  width: 96px;
  height: auto;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.nav-toggle {
  display: none;
  width: 58px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--brown);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #4c3a2e;
  font-size: 15px;
  font-weight: 400;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 6px;
}

.main-nav a:hover {
  background: rgba(183, 149, 87, 0.16);
}

.main-nav a.active {
  background: rgba(183, 149, 87, 0.18);
  color: var(--brown);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--brown);
  font-weight: 500;
  border-bottom: 1px solid rgba(58, 39, 29, 0.34);
}

.hero {
  position: relative;
  min-height: min(780px, calc(92vh - 20px));
  display: grid;
  overflow: hidden;
  background: var(--brown);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(43, 29, 21, 0.78) 0%, rgba(43, 29, 21, 0.62) 44%, rgba(43, 29, 21, 0.08) 100%),
    linear-gradient(180deg, rgba(43, 29, 21, 0.02), rgba(43, 29, 21, 0.28));
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(0.95);
  transform: scale(1.02);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: end;
  padding: 86px 0 66px;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  font-family: var(--display-serif);
  font-size: clamp(27px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.34;
}

h2 {
  margin-bottom: 0;
  font-family: var(--display-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.44;
}

h3 {
  margin-bottom: 12px;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.35;
}

.lead {
  color: var(--muted);
  font-size: 19px;
}

.hero .lead {
  max-width: 700px;
  color: rgba(255, 253, 248, 0.88);
  line-height: 1.85;
  font-weight: 300;
}

.hero-actions,
.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.ghost-button,
.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 400;
  white-space: nowrap;
}

.primary-button {
  background: var(--gold);
  color: #241711;
}

.ghost-button {
  border: 1px solid rgba(255, 253, 248, 0.38);
  color: var(--white);
}

.light-button {
  background: var(--white);
  color: var(--brown);
}

.hero-panel {
  display: grid;
  align-self: end;
  border: 1px solid rgba(255, 253, 248, 0.18);
  background: rgba(43, 29, 21, 0.68);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.14);
}

.hero-panel div:last-child {
  border-bottom: 0;
}

.hero-panel span,
.hero-panel strong {
  display: block;
}

.hero-panel span {
  color: rgba(255, 253, 248, 0.62);
  font-size: 13px;
  font-weight: 400;
}

.hero-panel strong {
  color: var(--white);
  font-size: 18px;
  font-weight: 400;
}

.section {
  padding: 96px 0;
}

.page-hero {
  padding: 70px 0 54px;
  border-bottom: 1px solid var(--line);
  background: var(--beige);
}

.page-hero .container {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 46px;
  align-items: center;
}

.page-hero img {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(26px, 3.2vw, 40px);
}

.page-hero .lead {
  max-width: 560px;
}

.intro-grid,
.hours-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}

.intro-text {
  color: var(--muted);
  font-size: 19px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.service-section,
.space-section {
  background: var(--white);
}

.section-head {
  margin-bottom: 34px;
}

.section-link-row {
  margin-top: 28px;
}

.section-head.two-col {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 44px;
  align-items: end;
}

.section-head.two-col > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-card {
  min-height: 300px;
  padding: 28px 24px;
  background: var(--white);
}

.service-card span {
  display: block;
  margin-bottom: 74px;
  color: var(--gold);
  font-weight: 400;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.clinical-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.clinical-panel > div {
  padding: 30px;
  background: var(--white);
}

.clinical-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 500;
}

.faq-section {
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 26px 28px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(58, 39, 29, 0.06);
}

.faq-item h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.faq-item p {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.85;
}

.image-band {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(43, 29, 21, 0.08), rgba(43, 29, 21, 0.74)),
    linear-gradient(90deg, rgba(43, 29, 21, 0.6), rgba(43, 29, 21, 0.08)),
    url("assets/11.png") center / cover fixed;
}

.image-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.image-band > img {
  display: none;
}

.image-band-copy {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  padding-bottom: 76px;
}

.image-band-copy h2 {
  max-width: 720px;
}

.image-band-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 253, 248, 0.84);
  font-size: 18px;
}

.doctor-intro {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 46px;
  align-items: center;
  margin-bottom: 26px;
}

.team-photo,
.doctor-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.team-photo img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.doctor-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.doctor-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.doctor-card img {
  aspect-ratio: 4 / 4.45;
  height: auto;
  object-fit: cover;
  object-position: center 18%;
}

.profile-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.profile-card {
  display: grid;
  align-content: start;
  min-height: 430px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(58, 39, 29, 0.08);
}

.profile-card span {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 14px;
}

.profile-card p {
  color: var(--muted);
  line-height: 1.85;
}

.profile-card dl {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
}

.profile-card dl div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.profile-card dt {
  margin-bottom: 4px;
  color: var(--brown);
  font-weight: 500;
}

.profile-card dd {
  margin: 0;
  color: var(--muted);
}

.doctor-card div {
  display: grid;
  align-content: center;
  padding: 24px;
}

.doctor-card span {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 400;
}

.doctor-card p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 400;
}

.check-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.space-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(58, 39, 29, 0.08);
}

.space-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.space-card div {
  padding: 22px;
}

.space-card strong,
.space-card span {
  display: block;
}

.space-card strong {
  color: var(--brown);
  font-size: 16px;
  font-weight: 400;
}

.space-card span {
  color: var(--muted);
  font-size: 14px;
}

.hours-section {
  background: var(--beige);
}

.home-visit-section {
  background: var(--paper);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.visit-card {
  min-height: 420px;
  padding: 40px 34px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(58, 39, 29, 0.08);
}

.visit-card.dark {
  background: var(--brown);
  color: var(--white);
}

.visit-card.dark .lead,
.visit-card.dark .mini-info-list dd {
  color: rgba(255, 253, 248, 0.74);
}

.visit-card .lead {
  margin-top: 18px;
  margin-bottom: 26px;
  line-height: 1.9;
}

.mini-info-list {
  display: grid;
  gap: 0;
  margin: 0 0 28px;
  padding: 0;
}

.mini-info-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mini-info-list dt {
  color: var(--brown);
  font-weight: 500;
}

.mini-info-list dd {
  margin: 0;
  color: var(--muted);
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hours-panel {
  border-top: 3px solid var(--brown);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hours-panel dl {
  margin: 0;
}

.hours-panel div {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.hours-panel div:last-child {
  border-bottom: 0;
}

.hours-panel dt {
  color: var(--muted);
  font-weight: 400;
}

.hours-panel dd {
  margin: 0;
  color: var(--brown);
  font-size: 19px;
  font-weight: 400;
}

.reservation-section {
  padding: 86px 0;
  background: var(--brown);
  color: var(--white);
}

.reservation-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.reservation-inner p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 18px;
}

.reservation-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.site-footer {
  padding: 40px 0;
  background: #241711;
  color: rgba(255, 253, 248, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-grid p {
  margin: 4px 0 0;
  color: rgba(255, 253, 248, 0.58);
}

.footer-link {
  color: var(--gold);
  font-weight: 400;
}

.mobile-action-bar {
  display: none;
}

.reveal-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1100ms ease, transform 1100ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    right: 24px;
    display: none;
    width: min(70vw, 320px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: 590px;
  }

  .hero-inner,
  .intro-grid,
  .doctor-intro,
  .hours-grid,
  .page-hero .container,
  .visit-grid,
  .section-head.two-col,
  .reservation-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: end;
    gap: 24px;
    padding: 58px 0 38px;
  }

  .hero-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-panel div {
    border-right: 1px solid rgba(255, 253, 248, 0.14);
    border-bottom: 0;
  }

  .hero-panel div:last-child {
    border-right: 0;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 240px;
  }

  .service-card span {
    margin-bottom: 42px;
  }

  .space-grid,
  .clinical-panel {
    grid-template-columns: 1fr;
  }

  .doctor-list {
    grid-template-columns: 1fr;
  }

  .profile-card-list {
    grid-template-columns: 1fr;
  }

  .doctor-card img {
    aspect-ratio: 4 / 3.35;
    object-position: center 16%;
  }

  .reservation-actions {
    justify-content: flex-start;
  }

  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 68px;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--brown);
    box-shadow: 0 -14px 34px rgba(58, 39, 29, 0.2);
  }

  .mobile-action-bar a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    min-width: 0;
    border-right: 1px solid rgba(255, 253, 248, 0.14);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
  }

  .mobile-action-bar a:last-child {
    border-right: 0;
  }

  .mobile-action-bar span {
    color: var(--gold);
    font-size: 20px;
    line-height: 1;
  }

  .mobile-action-bar img {
    width: 26px;
    height: 26px;
    object-fit: contain;
  }

  .mobile-action-bar b {
    font: inherit;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner {
    width: min(100% - 30px, 1160px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 86px;
  }

  .main-nav {
    top: 68px;
    right: 15px;
    width: min(84vw, 320px);
  }

  .hero {
    min-height: 520px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(43, 29, 21, 0.72) 0%, rgba(43, 29, 21, 0.56) 58%, rgba(43, 29, 21, 0.42) 100%);
  }

  .hero-inner {
    padding: 42px 0 22px;
  }

  h1 {
    font-size: 25px;
    line-height: 1.56;
  }

  h2 {
    font-size: 23px;
  }

  .hero .lead {
    display: none;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .primary-button,
  .ghost-button,
  .light-button {
    min-height: 46px;
    padding: 0 16px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 248, 0.14);
  }

  .hero-panel strong {
    font-size: 15px;
  }

  .section {
    padding: 68px 0;
  }

  .intro-grid,
  .doctor-intro,
  .hours-grid {
    gap: 28px;
  }

  .intro-text,
  .lead,
  .section-head.two-col > p {
    font-size: 17px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .service-card span {
    margin-bottom: 22px;
  }

  .image-band {
    min-height: 430px;
    background-attachment: scroll;
  }

  .image-band-copy {
    padding-bottom: 54px;
  }

  .doctor-card div,
  .space-card div {
    padding: 22px;
  }

  .hours-panel div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 18px 20px;
  }

  .reservation-section {
    padding: 66px 0;
  }

  .reservation-actions {
    display: grid;
  }

  .visit-card {
    min-height: 0;
    padding: 26px;
  }

  .faq-item {
    padding: 22px;
  }

  .faq-item h3 {
    font-size: 18px;
  }

  .visit-actions {
    display: grid;
  }

  .mini-info-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
