/* 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, #E2EEFD, #B0CDF6); 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: 90; 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; }
