/* Navigation + inner pages */
.site-header { position: sticky; top: 0; z-index: 50; }
.main-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav .nav-list > li { position: relative; }
.main-nav .nav-list a { display: block; padding: 8px 12px; font-weight: 600; font-size: .9rem; color: var(--slate); border-radius: 999px; white-space: nowrap; text-decoration: none; }
.main-nav .nav-list a:hover, .main-nav .nav-list .current-menu-item > a, .main-nav .nav-list .current-menu-ancestor > a { color: var(--blue); background: var(--sky); }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: calc(100% + 6px); min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 60; }
.main-nav .sub-menu a { border-radius: 10px; white-space: normal; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 960px) {
  .main-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav .nav-list a { padding: 12px 14px; font-size: 1rem; white-space: normal; }
  .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .main-nav .menu-item-has-children > a::after { display: none; }
}
.page-banner { background: linear-gradient(160deg, var(--sky), var(--wash) 70%); border-bottom: 1px solid var(--line); padding: clamp(36px, 7vh, 72px) 0 clamp(26px, 5vh, 48px); }
.page-banner h1 { font-size: clamp(1.8rem, 3vw + 1rem, 3rem); color: var(--navy); margin-top: 10px; line-height: 1.15; max-width: 22ch; }
.page-banner .lead { margin-top: 12px; max-width: 60ch; }
.container.narrow { max-width: 860px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pcard-media { display: block; aspect-ratio: 16 / 10; background: linear-gradient(150deg, #E2F4FC, #9CDCF5); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-ph { display: grid; place-items: center; height: 100%; color: var(--blue); }
.pcard-ph .ico { width: 44px; height: 44px; }
.pcard-body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; flex: 1; }
.pcard-body h3 { font-size: 1.05rem; line-height: 1.3; color: var(--navy); }
.pcard-body h3 a { color: inherit; text-decoration: none; }
.pcard-body p { font-size: .9rem; color: var(--slate); line-height: 1.5; }
.pager { margin-top: 32px; text-align: center; }
.pager .page-numbers { display: inline-block; min-width: 40px; padding: 8px 12px; margin: 2px; border: 1px solid var(--line); border-radius: 12px; color: var(--slate); text-decoration: none; font-weight: 600; }
.pager .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.entry-content { font-size: 1.05rem; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--navy); line-height: 1.25; margin-top: 1.6em; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 14px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content table { width: 100% !important; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.entry-content tr:nth-child(odd) td { background: var(--wash); }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-hero { width: 100%; height: auto; border-radius: 20px; margin-bottom: 24px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; }
.post-nav a { color: var(--blue); text-decoration: none; }
.page-cta { padding-top: 0; }
.cta-box { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 44px); }
.cta-box h2 { color: #fff; font-size: clamp(1.4rem, 2vw + .8rem, 2rem); }
.cta-box p { color: rgba(255,255,255,.8); margin-top: 6px; }
@media (max-width: 960px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pgrid { grid-template-columns: 1fr; } }

/* Floating contact column */
.fab-group { display: none; }
.side-contact { position: fixed; left: 14px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 14px; }
.sc { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px -4px rgba(11,31,75,.45); transition: transform .2s; text-decoration: none; }
.sc:hover { transform: scale(1.1); }
.sc::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: inherit; opacity: .35; z-index: -1; animation: sc-pulse 2.4s ease-out infinite; }
.sc svg { width: 26px; height: 26px; }
.sc-map { background: #D93025; } .sc-fb { background: #1877F2; } .sc-wa { background: #25D366; } .sc-zalo { background: #0A7CFF; font-weight: 800; font-size: .8rem; letter-spacing: -.02em; }
.sc-ms { background: linear-gradient(135deg, #7A5CFA, #4B6BFB); }
@keyframes sc-pulse { 0% { transform: scale(.9); opacity: .45; } 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 620px) { .side-contact { left: 8px; gap: 10px; } .sc { width: 44px; height: 44px; } .sc svg { width: 22px; height: 22px; } }
@media (prefers-reduced-motion: reduce) { .sc::before { animation: none; } }

/* Logo */
.brand-logo { display: block; width: 78px; height: 60px; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-light .brand-logo { width: 96px; height: 72px; }
.brand-light .brand-logo img { filter: brightness(0) invert(1); }
@media (max-width: 620px) { .brand-logo { width: 62px; height: 48px; } }
.svc-photo img[src$="service-implants.jpg"], .svc-photo img[src$="service-veneers.jpg"] { object-fit: contain; background: #fff; }

/* Review stars keep the conventional gold */
.stars { color: #F2B632; }
.btn-primary:hover { background: var(--blue-deep); }

/* Doctor profile pages */
.doc-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.doc-card { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; text-align: center; box-shadow: var(--shadow); display: grid; gap: 10px; justify-items: center; }
.doc-photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 18px; background: var(--sky); }
.doc-photo-ph { display: grid; place-items: center; background: linear-gradient(150deg, #E2F4FC, #9CDCF5); color: var(--blue-deep); font-size: 5rem; font-weight: 800; }
.doc-card h2 { font-size: 1.35rem; color: var(--navy); margin-top: 6px; }
.doc-role { color: var(--slate); font-size: .95rem; margin-bottom: 8px; }
.doc-block + .doc-block { margin-top: 28px; }
.doc-block h3, .doc-gallery-wrap h3 { font-size: 1.15rem; color: var(--navy); padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--sky); }
.doc-block p { line-height: 1.75; color: var(--ink); }
.doc-block p + p { margin-top: .8em; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list li { position: relative; padding-left: 28px; line-height: 1.55; }
.doc-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A89C9' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; }
.doc-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-chips li { background: var(--sky); color: var(--blue-deep); font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 999px; }
.doc-gallery-wrap { margin-top: clamp(32px, 6vw, 64px); }
.doc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.doc-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--wash); }
.doc-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; display: block; }
.doc-gallery a:hover img { transform: scale(1.05); }
@media (max-width: 860px) { .doc-grid { grid-template-columns: 1fr; } .doc-card { position: static; max-width: 360px; margin-inline: auto; } }

/* Hero services line */
.hero-services { margin-top: 10px; font-weight: 600; color: var(--blue-deep); font-size: 1rem; }
:root { --font: "Manrope", "Noto Sans KR", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* Booking form */
.booking-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(20px, 4vw, 48px); align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3.5vw, 44px); margin-bottom: 20px; box-shadow: var(--shadow); }
.booking-intro h2 { margin-top: 12px; font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); color: var(--navy); }
.booking-intro .lead { margin-top: 10px; }
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fld { display: grid; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--navy); }
.fld-wide { grid-column: 1 / -1; }
.fld input, .fld select { width: 100%; font: inherit; font-weight: 500; font-size: 1rem; color: var(--ink); background: var(--wash); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; }
.fld input:focus, .fld select:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(42, 137, 201, .15); }
.booking-form .btn { justify-content: center; }
.booking-form .btn[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking-status { grid-column: 1 / -1; font-weight: 600; line-height: 1.5; margin: 0; }
.booking-status:empty { display: none; }
.booking-status.is-ok { color: #0B6B3A; background: #E6F6EC; border: 1px solid #BFE5CC; padding: 14px 16px; border-radius: 14px; }
.booking-status.is-error { color: #A12020; background: #FDECEC; border: 1px solid #F5C6C6; padding: 14px 16px; border-radius: 14px; }
@media (max-width: 860px) { .booking-card { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .booking-form { grid-template-columns: 1fr; } }

/* Patient story cards */
.t-card .t-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(150deg, #E2F4FC, #9CDCF5); }
.t-card .t-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-title { font-size: 1.05rem; line-height: 1.3; color: var(--navy); }
.t-title a { color: inherit; text-decoration: none; }
.t-card .t-quote { font-style: normal; font-size: .95rem; line-height: 1.6; color: var(--slate); }
.t-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 22px; }

/* Footer */
.site-footer { padding-block: 56px 28px; }
.ft-grid { display: grid; grid-template-columns: 1.1fr .8fr 1.3fr 1.2fr; gap: 32px clamp(24px, 4vw, 56px); align-items: start; }
.ft-brand { display: grid; gap: 18px; justify-items: start; }
.ft-brand .footer-slogan { font-size: 1.3rem; }
.ft-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.ft-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background .2s, transform .2s; }
.ft-social a:hover { background: var(--wattle); transform: translateY(-2px); }
.ft-social .ico { width: 18px; height: 18px; }
.ft-col h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 800; margin-bottom: 18px; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ft-col a { color: #fff; text-decoration: none; font-weight: 600; }
.ft-col a:hover { color: #9CDCF5; }
.ft-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.ft-list .ico { width: 18px; height: 18px; color: #9CDCF5; margin-top: 3px; }
.ft-list div { display: grid; gap: 3px; line-height: 1.45; }
.ft-list div > span { color: rgba(255,255,255,.75); font-weight: 400; font-size: .95rem; }
.ft-list strong { color: #fff; }
.site-footer .copy { margin-top: 36px; }
@media (max-width: 1000px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft-grid { grid-template-columns: 1fr; } }

/* Hide Google Translate chrome */
body { top: 0 !important; }
.goog-te-banner-frame, .goog-te-balloon-frame, #goog-gt-tt, .goog-tooltip, .skiptranslate > iframe { display: none !important; visibility: hidden !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: transparent !important; box-shadow: none !important; }

/* Header (and the open mobile menu) always above the floating contact buttons */
.site-header { z-index: 100; }
@media (max-width: 860px) {
  .side-contact { top: auto; bottom: 12px; left: 50%; transform: translateX(-50%); flex-direction: row; gap: 12px; padding: 8px 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(11,61,99,.45); }
  .sc { width: 44px; height: 44px; box-shadow: none; }
  .sc::before { display: none; }
  body { padding-bottom: 84px; }
}

/* Logged-in admin bar offset for the sticky header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Contact page */
.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-page .contact-card { gap: 4px; }
.contact-page .btn { margin-top: 18px; align-self: flex-start; }
.c-address { display: block; margin-top: 2px; font-size: 1.05rem; color: var(--ink); line-height: 1.5; }
.contact-map { display: flex; flex-direction: column; gap: 14px; }
.contact-map iframe { width: 100%; flex: 1; min-height: 360px; border: 0; border-radius: 24px; background: var(--wash); }
@media (max-width: 860px) { .contact-page { grid-template-columns: 1fr; } .contact-map iframe { min-height: 300px; } }

/* Mobile menu: scrollable panel under the header, collapsible sub-menus */
.sub-toggle { display: none; }
@media (max-width: 960px) {
  .main-nav { position: fixed !important; left: 0; right: 0; top: var(--hh, 69px) !important; max-height: calc(100vh - var(--hh, 69px)); max-height: calc(100dvh - var(--hh, 69px)); overflow-y: auto; background: #fff; padding: 8px 12px 20px !important; border-top: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(11,61,99,.35); z-index: 99; }
  .admin-bar .main-nav { top: calc(var(--hh, 69px) + 46px) !important; max-height: calc(100vh - var(--hh, 69px) - 46px); }
  .main-nav .nav-list > li { position: relative; border-bottom: 1px solid var(--line); }
  .main-nav .nav-list > li:last-child { border-bottom: 0; }
  .main-nav .menu-item-has-children > a { padding-right: 52px; }
  .sub-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 4px; width: 44px; height: 44px; background: transparent; border: 0; border-radius: 12px; color: var(--slate); cursor: pointer; }
  .sub-toggle .ico { width: 20px; height: 20px; transition: transform .2s; }
  li.open > .sub-toggle .ico { transform: rotate(180deg); }
  .main-nav .sub-menu { display: none; padding: 0 0 8px 12px; }
  .main-nav li.open > .sub-menu { display: block; }
  .main-nav .sub-menu a { padding: 10px 14px; font-size: .95rem; }
}
@media (min-width: 961px) { .sub-toggle { display: none !important; } }
