@font-face {
  font-family: "SeoulHangangM";
  src: url("../fonts/SeoulHangangM.woff?v=20260906-02") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* The source site applies its house typeface to every native text element. */
* {
  font-family: "SeoulHangangM" !important;
}

:root {
  --ink: #292d31;
  --charcoal: #3d4249;
  --warm: #a3937c;
  --paper: #ffffff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body,
button,
input,
textarea,
select {
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
}

body.menu-open {
  overflow: hidden;
}

img {
  height: auto;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 18px;
  color: #fff;
  background: var(--charcoal);
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#header {
  background: rgba(255, 255, 255, 0.05);
  transition: height 0.35s ease, padding 0.35s ease, background-color 0.35s ease,
    box-shadow 0.35s ease;
}

#header.header-scrolled {
  box-shadow: 0 4px 24px rgba(32, 35, 38, 0.08);
}

#header .container-fluid {
  max-width: none;
  margin-inline: 0;
}

#header #logo a {
  display: block;
}

.site-logo-link {
  position: absolute;
  top: 10px;
}

#nav-menu-container .nav-menu a {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.06px;
}

#nav-menu-container .nav-menu a[aria-current="true"] {
  color: var(--warm);
}

#mobile-nav a {
  letter-spacing: -0.06px;
}

/* Hero artwork URLs are assigned by site.js one slide at a time. */
#intro .intro {
  background-image: none;
}

html:not(.js) #intro .intro1 {
  background-image: url("../images/main1.webp");
}

/* Builder-free hero carousel */
#intro .carousel,
#intro .carousel-inner,
#intro .carousel-item {
  width: 100%;
  height: 100vh;
}

#intro .intro-container {
  position: relative;
  width: 100%;
  height: 100vh;
}

#intro .carousel-inner {
  position: relative;
}

#intro .carousel-item {
  position: absolute !important;
  inset: 0;
  display: block !important;
  opacity: 0;
  transform: none !important;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

#intro .carousel-item.active {
  position: absolute !important;
  opacity: 1;
  pointer-events: auto;
}

#intro .carousel-control-prev,
#intro .carousel-control-next {
  z-index: 4;
}

#intro .carousel-control-prev .fas::before,
#intro .carousel-control-next .fas::before {
  display: block;
  color: #fff;
  font: 300 64px/1 Arial, sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#intro .carousel-control-prev .fas::before {
  content: "‹";
}

#intro .carousel-control-next .fas::before {
  content: "›";
}

#intro .carousel-indicators {
  z-index: 5;
}

#intro .carousel-indicators button {
  width: 38px;
  height: 3px;
  padding: 0;
  border: 0;
  margin: 0 3px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

#intro .carousel-indicators button.active {
  background: #fff;
}

/* Accessible tabs retain the original visual language. */
.nav-tabs .nav-link {
  cursor: pointer;
}

.nav-tabs .nav-link[aria-selected="true"] {
  color: #fff;
  background: var(--charcoal);
}

html.js .tab-content > .tab-pane {
  display: none;
}

html.js .tab-content > .tab-pane.active {
  display: block;
}

/* Direct-link focus lands on the panel; keep focus rings on its controls. */
.tab-pane:focus {
  outline: none;
}

.doctor-profile + .doctor-profile {
  display: block;
  margin-top: 48px;
}

.doctor-role-label {
  color: #5d554e;
  font-size: 16pt;
}

.about2 {
  width: 100%;
  height: auto;
  background: #fff;
}

.about2 .div-img-bg .about-img img {
  width: 100%;
  max-width: 432px;
  height: 650px;
  object-fit: cover;
  box-shadow: 0 0 85px rgba(0, 0, 0, 0.14);
}

.features .doctor-profile ul {
  padding-left: 16px;
  list-style: disc;
}

.features .doctor-profile ul li {
  padding-bottom: 4px;
  font-size: 14pt;
}

.divider {
  width: 20px;
  margin: 10px auto;
  border-top: 1px solid #fff;
}

/* Lightweight gallery replaces Owl Carousel. */
#gallery > .container {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

#gallery .section-header {
  width: 100%;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

#gallery > .container > .row {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.gallery-viewport {
  position: relative;
  width: 100%;
  margin-top: 30px;
  overflow: hidden;
}

.gallery-carousel {
  display: flex;
  width: 100%;
  margin: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery-carousel > a {
  flex: 0 0 33.333333%;
  min-width: 0;
  padding: 0;
  cursor: zoom-in;
}

.gallery-carousel img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .gallery-carousel > a {
    flex-basis: 50%;
  }
}

.gallery-controls {
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
  width: 100%;
  gap: 12px;
  margin-top: 28px;
}

.gallery-controls button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--charcoal);
  border-radius: 50%;
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 8px 22px rgba(25, 30, 35, 0.16);
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.gallery-controls button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-controls button:hover:not(:disabled) {
  color: #fff;
  background: var(--warm);
  border-color: var(--warm);
  box-shadow: 0 11px 26px rgba(78, 68, 55, 0.2);
  transform: translateY(-2px);
}

.gallery-controls button:active:not(:disabled) {
  transform: translateY(0) scale(0.96);
}

.gallery-controls button:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}

.gallery-controls button:disabled {
  color: var(--charcoal);
  background: #fff;
  border-color: rgba(57, 64, 72, 0.16);
  opacity: 0.34;
  box-shadow: none;
  cursor: default;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(18, 20, 22, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font: 34px/1 Arial, sans-serif;
  cursor: pointer;
}

/* Current treatment artwork from the published site. */
.section-header .site-introduction {
  max-width: 760px;
  margin: 18px auto 0;
  padding-bottom: 12px;
  color: #222;
  font-size: 18px;
  line-height: 1.8;
}

.section-shortcuts,
.branch-contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.section-header .section-shortcuts {
  justify-content: center;
  margin-bottom: 30px;
}

.section-shortcuts a,
.branch-contact-line a,
.text-link,
.branch-notice a,
.branch-contact-links a {
  color: #292d31;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--warm);
  font-size: 17px;
}

.treatment-summary {
  margin: 0 0 32px;
  padding: 28px 32px;
  border: 1px solid #d6cfc5;
  border-left: 4px solid var(--warm);
  background: #fff;
  color: #222;
}

.treatment-summary h3 {
  margin: 0 0 18px;
  color: #111;
  font-size: 26px;
  line-height: 1.4;
}

.treatment-summary p,
.treatment-summary ul,
.features .treatment-summary ul li {
  color: #222;
  font-size: 18px;
  line-height: 1.85;
}

.treatment-summary p {
  margin: 0 0 16px;
}

.features .treatment-summary ul {
  margin: 0 0 18px;
  padding-left: 22px;
  list-style: disc;
}

.features .treatment-summary ul li {
  padding-bottom: 3px;
}

.treatment-summary .treatment-note {
  padding-top: 16px;
  border-top: 1px solid #e5e0d9;
  font-size: 16px;
}

.branch-notice {
  padding: 18px 22px;
  border-left: 3px solid var(--warm);
  color: #222;
  background: #fff;
  font-size: 17px;
  line-height: 1.8;
}

#contact .section-header .branch-title,
#contact .branch-title {
  padding: 0;
  margin: 28px 0 12px;
  color: #111;
  font-size: 26px;
  text-align: left;
}

#contact .section-header .branch-title::before,
#contact .section-header .branch-title::after {
  content: none;
}

#contact .branch-contact-line {
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.branch-contact-links {
  gap: 14px 28px;
  margin: 14px 0;
}

.branch-contact-links a {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 10px;
}

html:not(.js) .tab-content > .tab-pane {
  display: block;
  margin-bottom: 40px;
}

section[id="2"] .tab-content {
  margin-top: 42px;
}

.treatment-picture,
.treatment-detail-image {
  display: block;
  width: 100%;
}

.treatment-detail-image {
  height: auto;
}

.map-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
  background: #eceae6;
  overflow: hidden;
}

.map-fallback {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  color: #292d31;
  border: 1px solid #a3937c;
  background: #fff;
  white-space: nowrap;
}

.root_daum_roughmap.map-frame,
.root_daum_roughmap.map-frame .wrap_map,
.root_daum_roughmap.map-frame .wrap_controllers {
  width: 100% !important;
  max-width: 100%;
}

.root_daum_roughmap.map-frame .wrap_map {
  height: 400px !important;
}

.table-responsive {
  scrollbar-color: var(--warm) #eee;
}

.text-alert {
  color: red;
}

.table td.table-section-start {
  border-top: 3px solid #3d4249;
}

.table td.table-label-cell {
  text-align: left !important;
  background-color: #f7f7f7;
}

.back-to-top {
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top i {
  display: none;
}

.back-to-top::before {
  content: "↑";
  color: #fff;
  font: 22px/1 Arial, sans-serif;
}

/* Mobile navigation generated by site.js. */
#mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  color: var(--charcoal);
  background: transparent;
}

#mobile-nav-toggle span,
#mobile-nav-toggle span::before,
#mobile-nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#mobile-nav-toggle span {
  position: relative;
}

#mobile-nav-toggle span::before,
#mobile-nav-toggle span::after {
  position: absolute;
  left: 0;
  content: "";
}

#mobile-nav-toggle span::before {
  top: -7px;
}

#mobile-nav-toggle span::after {
  top: 7px;
}

body.menu-open #mobile-nav-toggle span {
  background: transparent;
}

body.menu-open #mobile-nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

body.menu-open #mobile-nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

#mobile-nav {
  z-index: 1100;
  left: 0;
  width: min(340px, 86vw);
  padding: 96px 28px 32px;
  background: #fff;
  box-shadow: 14px 0 40px rgba(0, 0, 0, 0.16);
  transform: translateX(-100%);
  transition: transform 0.4s;
}

body.menu-open #mobile-nav {
  transform: translateX(0);
}

#mobile-nav a[aria-current="true"] {
  color: var(--warm);
}

#mobile-body-overlay {
  z-index: 1090;
  background: rgba(0, 0, 0, 0.45);
}

/* The original builder used .wow as a 20px type-size hook in these blocks. */
#time > .container,
#contact,
#company .company-box > [class*="col-"] {
  font-size: 20px;
  line-height: 1.5;
}

.branch-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 40px;
}

.branch-card {
  padding: 28px;
  border: 1px solid #d6cfc4;
  border-top: 3px solid var(--warm);
  background: #fff;
}

.branch-card h3 { margin: 0 0 16px; font-size: 25px; }
.branch-card p { margin-bottom: 18px; line-height: 1.6; }
.branch-call { display: inline-block; font-size: 21px; color: #292d31; border-bottom: 1px solid var(--warm); }
.branch-card .section-shortcuts { justify-content: flex-start; margin-top: 20px; }

.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .branch-cards { grid-template-columns: 1fr; gap: 16px; }
  .branch-card { padding: 24px 20px; }

  html {
    scroll-padding-top: 70px;
  }

  #header,
  #header.header-scrolled {
    height: 72px;
    padding: 11px 0;
    background: rgba(255, 255, 255, 0.96);
  }

  #header #logo {
    padding-left: 16px;
  }

  #header #logo a {
    top: 10px !important;
  }

  #mobile-nav-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1200;
    display: flex;
  }

  #intro .intro {
    background-position: center;
  }

  html:not(.js) #intro .intro1 {
    background-image: url("../images/m_main1.webp");
  }

  #intro,
  #intro .intro-container,
  #intro .carousel,
  #intro .carousel-inner,
  #intro .carousel-item {
    min-height: 620px;
    height: 100svh;
  }

  #intro .carousel-control-prev .fas::before,
  #intro .carousel-control-next .fas::before {
    font-size: 48px;
  }

  .gallery-carousel > a {
    flex-basis: 100%;
    padding: 0;
  }

  section[id="2"] .nav-tabs .nav-item {
    flex: 0 0 50%;
    max-width: 50%;
  }

  section[id="2"] .nav-tabs .tab-label {
    min-height: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px;
    font-size: 17px;
    line-height: 1.2;
  }

  section[id="2"] .tab-content {
    margin-top: 24px;
  }

  .treatment-summary {
    margin-bottom: 24px;
    padding: 22px 18px;
  }

  .treatment-summary h3 {
    font-size: 23px;
  }

  .treatment-summary p,
  .treatment-summary ul,
  .features .treatment-summary ul li {
    font-size: 17px;
  }

  .section-shortcuts {
    gap: 12px 18px;
  }

  .doctor-profile + .doctor-profile {
    margin-top: 32px;
  }

  .about2 .div-img-bg .about-img img {
    height: auto;
    aspect-ratio: 432 / 650;
  }

  .map-frame {
    height: 320px;
  }

  .root_daum_roughmap.map-frame .wrap_map {
    height: 320px !important;
  }

  .table-responsive table {
    min-width: 680px;
  }
}

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