/*
Theme Name: Happygums
Author: Henry Bailey
Description: Custom block theme for Happygums, Ewa Wienzek, dental hygienist. Caramel & cream palette, drag-to-clean hero and a treatment finder.
Version: 1.4.1
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: happygums
*/

:root { --hg-soft: "SOFT" 100, "opsz" 144; }
h1, h2, h3, .wp-block-heading, .hg-sign, .hg-rv-quote, .hg-note-text, .hg-brand { font-variation-settings: var(--hg-soft); }
.wp-block-heading { text-wrap: balance; }
.wp-block-heading em, .hg-brand em { font-style: italic; font-weight: 500; color: var(--wp--preset--color--accent); }
.hg-dark .wp-block-heading em, .hg-dark .hg-brand em { color: var(--wp--preset--color--accent-light); }
.is-style-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent-dark); }
.hg-dark .is-style-eyebrow { color: var(--wp--preset--color--accent-light); }
.hg-note .is-style-eyebrow { color: var(--wp--preset--color--accent-dark); }

/* Dark sections */
.hg-dark { color: var(--wp--preset--color--on-dark); }
.hg-dark .wp-block-heading { color: #fff; }
.hg-dark a:not(.wp-element-button) { color: var(--wp--preset--color--accent-light); }
.hg-dark .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: var(--wp--preset--color--dark-line); }
.hg-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); border-color: #fff; }

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); border: 1.5px solid var(--wp--preset--color--ink); padding: 13.5px 26.5px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; }

/* Header */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; transition: box-shadow .4s ease; }
header.wp-block-template-part.hg-scrolled { box-shadow: 0 10px 30px rgba(58,42,32,.10); }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
header .wp-block-group.alignfull { margin: 0 !important; }
.hg-strip { font-size: 13px; overflow: hidden; max-height: 60px; transition: max-height .35s ease, padding .35s ease; }
.hg-scrolled .hg-strip { max-height: 0; padding-top: 0 !important; padding-bottom: 0 !important; }
.hg-strip p { margin: 0; }
.hg-strip a { color: #fff !important; text-decoration: none; font-weight: 600; }
.hg-strip a + .hg-sep + a { color: var(--wp--preset--color--on-dark) !important; font-weight: 400; }
.hg-sep { display: inline-block; width: 18px; }
.hg-strip-towns { color: var(--wp--preset--color--accent-light); font-weight: 500; }
.hg-mainbar { border-bottom: 1px solid var(--wp--preset--color--line); }
.hg-head-row { gap: 24px; align-items: center; }
.hg-head-row .wp-block-navigation__container { flex-wrap: nowrap !important; }
.hg-head-row .wp-block-navigation-item__content, .hg-head-cta .wp-block-button__link { white-space: nowrap; }
.hg-head-cta .wp-block-button__link { padding: 12px 22px; font-size: 15px; }
.wp-block-navigation .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--line) !important; border-radius: 14px; padding: 8px !important; box-shadow: 0 16px 40px rgba(58,42,32,.1); background: #fff !important; }
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px 14px !important; border-radius: 8px; }
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--cream); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--cream) !important; padding: 20px 24px 40px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 64px !important; align-items: stretch !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; align-items: stretch !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: 16px 0 !important; font-family: var(--wp--preset--font-family--heading); font-size: 26px !important; font-weight: 600; color: var(--wp--preset--color--ink) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 18px !important; padding: 10px 0 10px 16px !important; }

/* Wordmark */
.hg-brand { display: inline-flex; flex-direction: column; text-decoration: none !important; color: var(--wp--preset--color--ink) !important; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 30px; letter-spacing: -.03em; line-height: 1; margin: 0; }
.hg-brand svg { margin-top: 2px; }
.hg-brand-word { display: block; white-space: nowrap; }
.hg-footer-logo { display: inline-block; margin: 0 0 6px; }
.hg-footer-logo img { width: 128px; height: auto; display: block; border-radius: 50%; }
.hg-brand.is-light { color: #fff !important; }
.hg-brand-logo img { max-height: 56px; width: auto; }

/* Hero */
.hg-hero h1 { margin-top: 14px; font-size: clamp(48px, 6.2vw, 88px) !important; }
.hg-hero-cols { gap: 56px !important; }
.hg-lede { color: var(--wp--preset--color--muted); max-width: 520px; }
.hg-hero .wp-block-buttons { gap: 12px; }
.hg-creds { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; font-weight: 500; color: var(--wp--preset--color--muted); }
.hg-cred { display: inline-flex; align-items: center; gap: 6px; }
.hg-cred svg { color: var(--wp--preset--color--accent); }
.hg-reveal { background: #fff; border-radius: 32px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(58,42,32,.35); display: flex; flex-direction: column; gap: 18px; }
.hg-reveal-tags { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hg-reveal-tags span { padding: 6px 12px; border-radius: 99px; }
.hg-tag-dis { background: #F8DCE3; color: #8E2E4A; }
.hg-tag-after { background: var(--wp--preset--color--latte); color: var(--wp--preset--color--accent-dark); }
.hg-reveal-box { position: relative; aspect-ratio: 560 / 300; background: var(--wp--preset--color--cream); border-radius: 20px; overflow: hidden; }
.hg-reveal-box svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hg-dirty { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--hg-pct)) 0 0); }
.hg-reveal-line { position: absolute; top: 0; bottom: 0; left: var(--hg-pct); width: 3px; margin-left: -1.5px; background: var(--wp--preset--color--ink); }
.hg-reveal-label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--wp--preset--color--muted); }
.hg-reveal-label input { width: 100%; accent-color: var(--wp--preset--color--accent); cursor: ew-resize; }
.hg-reveal-note { margin: 0; font-size: 13px; color: var(--wp--preset--color--muted); }
.hg-reveal-note a { color: var(--wp--preset--color--muted); }
.hg-reveal-photo > * { margin: 0 !important; }
.hg-reveal-photo .hg-reveal-tags > * { margin: 0 !important; padding: 6px 12px; border-radius: 99px; }
.hg-photo-box > * { margin: 0 !important; }
.hg-photo-box figure { position: absolute; inset: 0; margin: 0 !important; overflow: hidden; }
.hg-photo-box img { position: absolute; left: 0; top: 0; width: 100%; height: 100% !important; object-fit: cover; display: block; }
.hg-photo-box .hg-rp-dye { clip-path: inset(0 calc(100% - var(--hg-pct)) 0 0); }
.hg-photo-box::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--hg-pct); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(58,42,32,.25); z-index: 2; }
/* One combined photo (clean on top, dye underneath) used in both images: each shows its half */
.hg-photo-box.is-split img { height: 200% !important; object-fit: fill; }
.hg-photo-box.is-split .hg-rp-dye img { top: -100%; }
.hg-photo-box.is-split { aspect-ratio: 2 / 1; }

/* Ticker */
.hg-ticker { overflow: hidden; padding: 22px 0; color: #fff; }
.hg-mq { display: flex; width: max-content; }
.hg-mq-set { display: flex; align-items: center; gap: 44px; padding-right: 44px; font-family: var(--wp--preset--font-family--heading); font-variation-settings: "SOFT" 100; font-style: italic; font-size: 30px; font-weight: 500; white-space: nowrap; }
.hg-mq-set i { width: 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--color--sand); }
.hg-motion .hg-mq { animation: hg-mq 34s linear infinite; }
@keyframes hg-mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Section heads */
.hg-head { max-width: 640px; gap: 14px; }
.hg-head > * { margin: 0 !important; }
.hg-side { max-width: 420px; margin: 0 !important; }
.hg-more a { font-weight: 700; color: var(--wp--preset--color--ink); }

/* Treatment finder */
.hg-qprog { margin: 0 !important; font-size: 14px; font-weight: 600; position: relative; padding-bottom: 14px; min-width: 180px; text-align: right; }
.hg-qprog::before, .hg-qprog::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 6px; background: var(--wp--preset--color--latte); }
.hg-qprog::after { background: var(--wp--preset--color--accent); transform-origin: left; transform: scaleX(var(--hg-qp, 0)); transition: transform .35s ease; }
.hg-quiz { display: grid !important; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: start; margin-top: 36px !important; }
.hg-quiz > *, .hg-qs > *, .hg-q > * { margin: 0 !important; }
.hg-qs { counter-reset: hgq; }
.hg-q { border-top: 1px solid var(--wp--preset--color--line); padding: 18px 0; display: flex !important; flex-direction: column; gap: 12px; }
.hg-q-title { display: flex; align-items: center; gap: 10px; font: 600 19px var(--wp--preset--font-family--heading); font-variation-settings: "SOFT" 100; }
.hg-q-title::before { counter-increment: hgq; content: counter(hgq); flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--wp--preset--color--accent); color: #fff; font: 700 12px/26px var(--wp--preset--font-family--body); text-align: center; transition: background-color .3s ease; }
.hg-q.is-done .hg-q-title::before { content: "✓"; background: var(--wp--preset--color--ink); }
.hg-qopts { gap: 8px !important; }
.hg-qopts .wp-block-button { margin: 0 !important; }
.hg-qo > .wp-block-button__link { padding: 9px 16px !important; font-size: 14px !important; font-weight: 500 !important; background: #fff !important; color: var(--wp--preset--color--ink) !important; border: 1px solid var(--wp--preset--color--line) !important; transition: background-color .2s ease, color .2s ease, border-color .2s ease !important; }
.hg-qo > .wp-block-button__link:hover { border-color: var(--wp--preset--color--accent) !important; }
.hg-qo.is-on > .wp-block-button__link { background: var(--wp--preset--color--ink) !important; color: #fff !important; border-color: var(--wp--preset--color--ink) !important; }
.hg-qreset { padding-top: 12px; font-size: 14px; font-weight: 700; }
.hg-qreset a { text-decoration: none; }
.hg-quiz-ready .hg-qres:not(.is-active) { display: none !important; }
/* Result stays hidden until all four questions are answered */
.hg-quiz-ready:not(.is-complete) .hg-qres { display: none !important; }
.hg-quiz-ready.is-complete .hg-qwait { display: none !important; }
.hg-qo-ns > .wp-block-button__link { background: var(--wp--preset--color--latte) !important; border-color: var(--wp--preset--color--latte) !important; }
.hg-qo-ns.is-on > .wp-block-button__link { background: var(--wp--preset--color--ink) !important; border-color: var(--wp--preset--color--ink) !important; }
.hg-qstep, .hg-qwait { display: none; }
.hg-qwait > * { margin: 0 !important; }
.hg-quiz-ready .hg-qwait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; min-height: 420px; padding: 40px; background: #fff; border: 2px dashed var(--wp--preset--color--accent-light); border-radius: 28px; box-sizing: border-box; }
.hg-qwait-ring { width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--wp--preset--color--accent) calc(var(--hg-qp, 0) * 360deg), var(--wp--preset--color--latte) 0); display: flex; align-items: center; justify-content: center; transition: background .35s ease; }
.hg-qwait-ring span { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font: 600 26px var(--wp--preset--font-family--heading); font-variation-settings: "SOFT" 100; }
.hg-qwait-h { font-size: 30px; }
.hg-qwait-p { max-width: 380px; color: var(--wp--preset--color--muted); font-size: 16px; }
.hg-qwait-hint { font-size: 14px; font-weight: 700; color: var(--wp--preset--color--accent-dark); }
.hg-qwait-m { display: none; }
.hg-quiz-res > * + * { margin-top: 18px !important; }
.hg-quiz-ready .hg-quiz-res > * + * { margin-top: 0 !important; }
.hg-qres { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 28px; overflow: hidden; }
.hg-qres > * { margin: 0 !important; }
.hg-qres-head { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--on-dark); padding: 28px 30px; display: grid !important; grid-template-columns: 1fr auto; grid-template-areas: "eb price" "name price" "sub note"; gap: 4px 20px; align-items: end; }
.hg-qres-head > * { margin: 0 !important; }
.hg-qres-eb { grid-area: eb; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--accent-light); }
.hg-qres-head h3 { grid-area: name; color: #fff; font-size: clamp(24px, 2.3vw, 30px); }
.hg-qres-sub { grid-area: sub; font-size: 15px; }
.hg-qres-price { grid-area: price; font: 600 26px var(--wp--preset--font-family--heading); color: #fff; text-align: right; }
.hg-qres-note { grid-area: note; font-size: 13px; color: var(--wp--preset--color--accent-light); text-align: right; }
.hg-qres-cols { display: grid !important; grid-template-columns: 1fr 1fr; gap: 22px; padding: 24px 30px; }
.hg-qres-cols > *, .hg-qres-cols > * > * { margin: 0 !important; }
.hg-qres-cols > * { display: flex !important; flex-direction: column; gap: 10px; }
.hg-qres-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.hg-qticks { list-style: none; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.hg-qticks li { position: relative; padding-left: 26px; margin: 0 !important; }
.hg-qticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; background: url(assets/images/icon-check.svg?v=1.4.1) no-repeat center / contain; }
.hg-qticks.hg-heart li::before { background-image: url(assets/images/icon-heart.svg?v=1.4.1); }
.hg-qres-btns { padding: 0 30px 24px; gap: 10px !important; }
.hg-qres-foot { display: grid !important; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--wp--preset--color--line); }
.hg-qres-foot > * { margin: 0 !important; }
.hg-qalt { padding: 18px 30px; display: flex !important; flex-direction: column; gap: 4px; transition: background-color .25s ease; }
.hg-qalt > * { margin: 0 !important; }
.hg-qalt + .hg-qalt { border-left: 1px solid var(--wp--preset--color--line); }
.hg-qalt.is-tint { background: #FBF1E4; }
.hg-qalt .hg-qres-label { color: var(--wp--preset--color--accent-dark); }
.hg-qalt-name { font: 600 18px var(--wp--preset--font-family--heading); font-variation-settings: "SOFT" 100; }
.hg-quiz-ready .hg-qalt { cursor: pointer; }
.hg-quiz-ready .hg-qalt:hover { background: var(--wp--preset--color--butter); }
.hg-qalt:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: -2px; }
@keyframes hg-swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hg-motion .hg-qres.is-swap { animation: hg-swap .45s cubic-bezier(.2,.7,.2,1); }
@keyframes hg-why { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.hg-motion .hg-qres-why.is-new li { animation: hg-why .4s cubic-bezier(.2,.7,.2,1) both; }
.hg-motion .hg-qres-why.is-new li:nth-child(2) { animation-delay: .06s; }
.hg-motion .hg-qres-why.is-new li:nth-child(3) { animation-delay: .12s; }
.hg-quiz-note { margin-top: 22px !important; color: var(--wp--preset--color--muted); }
.hg-quiz-note a { font-weight: 600; }

/* GBT video */
.hg-video { margin-top: 36px !important; border-radius: 28px; overflow: hidden; background: var(--wp--preset--color--ink); }
.hg-video iframe { display: block; }
.hg-facts { display: grid !important; margin-top: 36px !important; gap: 16px !important; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)) !important; }
.hg-fact { background: #fff; border-radius: 24px; padding: 26px; }
.hg-fact > * { margin: 0 0 8px !important; }
.hg-fact h3 { font-size: 24px; }

/* A note from Ewa */
.hg-note { background: #FFFDF9; color: var(--wp--preset--color--ink); border-radius: 8px; padding: clamp(28px, 4vw, 52px); transform: rotate(-1.5deg); box-shadow: 0 40px 60px -30px rgba(0,0,0,.6); gap: 40px !important; }
.hg-note-body { flex: 1 1 auto; }
.hg-note-body > * { margin: 0 0 16px !important; }
.hg-note-text { font-family: var(--wp--preset--font-family--heading); font-size: 22px; line-height: 1.5; }
.hg-sign { font-family: var(--wp--preset--font-family--heading); font-style: italic; font-size: 40px !important; line-height: 1; color: var(--wp--preset--color--accent); }
.hg-note-link a { font-weight: 700; color: var(--wp--preset--color--ink) !important; }
.hg-note-photo { flex: 0 0 220px; margin: 0 !important; }
.hg-note-photo img { width: 220px; height: 280px !important; object-fit: cover; border-radius: 110px; }

/* Reviews */
.hg-rvs { text-align: center; }
.hg-rv > * { margin: 0 0 22px !important; }
.hg-rv-tag { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent-dark); }
.hg-rv-quote { font-family: var(--wp--preset--font-family--heading); font-style: italic; font-size: clamp(28px, 3.8vw, 50px); line-height: 1.18; }
.hg-rv-name { font-weight: 700; }
.hg-rv-nav { display: none; justify-content: center; align-items: center; gap: 14px; }
.hg-reviews-ready .hg-rv-nav { display: flex; }
.hg-reviews-ready .hg-rv:not(.is-active) { display: none; }
.hg-motion .hg-rv.is-active { animation: hg-swap .5s cubic-bezier(.2,.7,.2,1); }
.hg-rv-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--wp--preset--color--ink); background: transparent; color: var(--wp--preset--color--ink); font-size: 18px; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.hg-rv-nav .hg-rv-next, .hg-rv-nav button:hover { background: var(--wp--preset--color--ink); color: #fff; }
.hg-rv-pos { font-size: 14px; min-width: 44px; text-align: center; }
.hg-rv-dots, .hg-rc-dots { display: none; }
.hg-mcall, .hg-mbtns { display: none; }

/* ---------- Menu (desktop) ---------- */
.hg-head-row { position: relative; }
.hg-head-row > .wp-block-html { margin: 0; flex: 1 1 auto; display: flex; justify-content: flex-end; }
.hg-nav { display: flex; align-items: center; gap: 30px; }
.hg-nav-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--wp--preset--color--ink) !important; text-decoration: none; padding: 10px 0; white-space: nowrap; }
.hg-nav-link:hover, .hg-has-panel.is-open > .hg-nav-link, .hg-has-panel:hover > .hg-nav-link { color: var(--wp--preset--color--accent) !important; }
.hg-chev { transition: transform .25s ease; }
.hg-has-panel.is-open .hg-chev, .hg-has-panel:hover .hg-chev { transform: rotate(180deg); }
.hg-nav-cta.wp-element-button { padding: 12px 22px; font-size: 15px; margin-left: 6px; text-decoration: none; }
.hg-panel { position: absolute; top: 100%; z-index: 50; padding-top: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
.hg-has-panel:hover > .hg-panel, .hg-has-panel:focus-within > .hg-panel, .hg-has-panel.is-open > .hg-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
.hg-panel-wide { left: 0; right: 0; }
.hg-panel-wide::before, .hg-panel-narrow::before { content: ""; position: absolute; inset: 10px 0 0; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(58,42,32,.45); z-index: -1; }
.hg-panel-wide { display: flex; gap: 28px; padding: 36px 26px 26px; box-sizing: border-box; }
.hg-panel-main { flex: 3 1 0; display: flex; flex-direction: column; gap: 16px; }
.hg-panel-all { align-self: flex-start; font-weight: 700; color: var(--wp--preset--color--ink) !important; text-decoration: none; }
.hg-panel-all span { color: var(--wp--preset--color--accent); }
.hg-panel-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid #EFE2D0; padding-top: 16px; }
.hg-panel-col { display: flex; flex-direction: column; gap: 7px; }
.hg-panel-head { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--accent-dark) !important; text-decoration: none; margin-bottom: 2px; }
.hg-panel-link { font-size: 14px; line-height: 1.35; color: var(--wp--preset--color--ink) !important; text-decoration: none; }
.hg-panel-link:hover, .hg-panel-head:hover { color: var(--wp--preset--color--accent) !important; }
.hg-panel-card { flex: 1 1 0; background: var(--wp--preset--color--butter); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.hg-panel-card p { margin: 0; font-size: 14px; color: var(--wp--preset--color--muted); line-height: 1.5; }
.hg-panel-card .hg-panel-card-title { font: 600 22px var(--wp--preset--font-family--heading); font-variation-settings: "SOFT" 100; color: var(--wp--preset--color--ink); }
.hg-panel-card .wp-element-button { align-self: flex-start; padding: 11px 18px; font-size: 14px; text-decoration: none; }
.hg-has-panel.is-narrow { position: relative; }
.hg-panel-narrow { right: -40px; width: 360px; padding: 20px 14px 14px; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; }
.hg-clinic-link { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--wp--preset--color--ink) !important; }
.hg-clinic-link:hover { background: var(--wp--preset--color--cream); }
.hg-clinic-link i { width: 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--color--accent); flex: none; }
.hg-clinic-link span { display: flex; flex-direction: column; }
.hg-clinic-link strong { font-size: 15px; }
.hg-clinic-link small { font-size: 13px; color: var(--wp--preset--color--muted); }
.hg-panel-foot { border-top: 1px solid #EFE2D0; margin-top: 6px; padding: 12px 12px 4px; display: flex; justify-content: space-between; font-size: 14px; }
.hg-panel-foot a { color: var(--wp--preset--color--ink) !important; text-decoration: none; }
.hg-panel-foot a:first-child { font-weight: 700; }
.hg-burger { display: none; }
.hg-nav .wp-element-button, .hg-panel-card .wp-element-button { display: inline-block; background: var(--wp--preset--color--accent); color: #fff !important; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background-color .3s ease; }
.hg-nav .wp-element-button:hover, .hg-panel-card .wp-element-button:hover { background: var(--wp--preset--color--ink); }

/* ---------- Treatments page ---------- */
.hg-chips { gap: 10px !important; }
.hg-chip > .wp-block-button__link { padding: 11px 18px !important; font-size: 15px !important; border-color: var(--wp--preset--color--line) !important; }
.hg-chip > .wp-block-button__link:hover { background: var(--wp--preset--color--ink) !important; color: #fff !important; border-color: var(--wp--preset--color--ink) !important; }
.hg-arch-photo { margin: 0 !important; }
.hg-arch-photo img { width: 100%; height: 460px !important; object-fit: cover; border-radius: 230px 230px 28px 28px; }
.hg-tr-layout { display: flex !important; gap: 56px; align-items: flex-start; }
.hg-tr-layout > * { margin: 0 !important; }
.hg-tgnav { flex: 0 0 250px; position: sticky; top: 130px; display: flex; flex-direction: column; gap: 4px; }
.hg-tgnav > * { margin: 0 !important; }
.hg-tgnav-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); padding: 0 14px 10px; }
.hg-tgnav-item a, .hg-tgnav-extra a { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--wp--preset--color--ink) !important; transition: background-color .2s ease, color .2s ease; }
.hg-tgnav-item a span { font-weight: 500; opacity: .7; }
.hg-tgnav-item b { font-weight: inherit; }
.hg-tg-short { display: none; }
.hg-tgnav-item a:hover { background: var(--wp--preset--color--butter); }
.hg-tgnav-item.is-on a { background: var(--wp--preset--color--ink); color: #fff !important; }
.hg-tgs { flex: 1 1 auto; min-width: 0; }
.hg-tgs > * + * { margin-top: 64px !important; }
.hg-tr-ready .hg-tg:not(.is-active) { display: none !important; }
.hg-tr-ready .hg-tgs > * + * { margin-top: 0 !important; }
.hg-motion .hg-tg.is-active { animation: hg-swap .4s cubic-bezier(.2,.7,.2,1); }
.hg-tg, .hg-ti, #cleans, #faq, #ask { scroll-margin-top: 140px; }
.hg-tg > * { margin: 0 0 14px !important; }
.hg-tg h2 { font-size: clamp(34px, 3.6vw, 48px); }
.hg-tg-intro { max-width: 620px; }
.hg-tis { display: flex; flex-direction: column; gap: 10px; margin-top: 18px !important; }
.hg-tis > * { margin: 0 !important; }
.hg-ti { background: #fff; border: 1px solid #EFE2D0; border-radius: 18px; overflow: hidden; transition: border-color .25s ease; }
.hg-ti > * { margin: 0 !important; }
.hg-ti.is-open { border-color: #C4A27E; }
.hg-ti-head { position: relative; padding: 18px 70px 18px 22px; cursor: pointer; }
.hg-ti-head > * { margin: 0 !important; }
.hg-ti-head::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--wp--preset--color--butter); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: background-color .2s ease, color .2s ease; }
.hg-ti.is-open .hg-ti-head::after { content: "−"; background: var(--wp--preset--color--ink); color: #fff; }
.hg-ti-head:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: -2px; }
.hg-ti-name { font: 600 20px var(--wp--preset--font-family--heading); font-variation-settings: "SOFT" 100; }
.hg-ti-short { font-size: 14px; color: var(--wp--preset--color--muted); }
.hg-ti-body { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid #F1E6D6; padding: 16px 22px 20px; }
.hg-ti-body > *, .hg-ti-body > * > * { margin: 0 !important; }
.hg-ti-body > * { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.55; }
.hg-js .hg-ti:not(.is-open) .hg-ti-body { display: none !important; }
.hg-ti-label { font-size: 12px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.hg-ti-price { font: 600 20px var(--wp--preset--font-family--heading); }
.hg-ti-link a { font-weight: 700; }
.hg-nexts { gap: 10px !important; margin-top: 22px !important; }
.hg-next > .wp-block-button__link { background: transparent !important; padding: 10px 16px !important; font-size: 14px !important; }
.hg-next > .wp-block-button__link:hover { background: var(--wp--preset--color--ink) !important; }
.hg-wtabs { gap: 8px !important; margin-top: 22px !important; }
.hg-wtab > .wp-block-button__link { padding: 11px 18px !important; font-size: 15px !important; }
.hg-wtab.is-on > .wp-block-button__link { background: var(--wp--preset--color--ink) !important; color: #fff !important; }
.hg-wpanels { margin-top: 28px !important; }
.hg-wpanels > * + * { margin-top: 40px !important; }
.hg-tabs-ready .hg-wpanel:not(.is-active) { display: none !important; }
.hg-tabs-ready .hg-wpanels > * + * { margin-top: 0 !important; }
.hg-motion .hg-wpanel.is-active { animation: hg-swap .45s cubic-bezier(.2,.7,.2,1); }
.hg-wpanel .wp-block-columns { gap: 56px !important; }
.hg-wpanel h3 { font-size: 32px; }
.hg-pills { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hg-pills span { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; color: var(--wp--preset--color--ink); }
.hg-pills span::before { content: ""; width: 13px; height: 13px; flex: none; background: var(--wp--preset--color--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 14s-6-3.6-6-7.6A3 3 0 018 5a3 3 0 016 1.4C14 10.4 8 14 8 14z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 14s-6-3.6-6-7.6A3 3 0 018 5a3 3 0 016 1.4C14 10.4 8 14 8 14z'/%3E%3C/svg%3E") center / contain no-repeat; }
.hg-wphoto { margin: 0 !important; }
.hg-wphoto img { width: 100%; height: 420px !important; object-fit: cover; border-radius: 28px; }
.hg-smile-sec .wp-block-group, .hg-smile-sec { position: relative; }
.hg-smile-sec h2 { max-width: 760px; }
.hg-smile-text { max-width: 620px; }
.hg-sticker { position: absolute; right: 0; top: -10px; margin: 0 !important; background: var(--wp--preset--color--accent-light); color: var(--wp--preset--color--ink); border-radius: 18px; padding: 12px 18px; font-weight: 700; font-size: 14px; transform: rotate(4deg); z-index: 1; }
.hg-light-btn > .wp-block-button__link { background: var(--wp--preset--color--cream) !important; color: var(--wp--preset--color--ink) !important; }
.hg-light-btn > .wp-block-button__link:hover { background: #fff !important; }
.hg-dark .hg-light-btn > .wp-block-button__link { background: var(--wp--preset--color--accent-light) !important; }
.hg-faqs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 32px !important; }
.hg-faqs > * { margin: 0 !important; }
.hg-faqs details { border-top: 1px solid var(--wp--preset--color--line); padding: 0; }
.hg-faqs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 17px; }
.hg-faqs summary::-webkit-details-marker { display: none; }
.hg-faqs summary::after { content: "+"; color: var(--wp--preset--color--accent); font-size: 20px; flex: none; }
.hg-faqs details[open] summary::after { content: "−"; }
.hg-faqs details p { margin: 0 0 18px !important; font-size: 15px; }
.hg-help { background: var(--wp--preset--color--ink); border-radius: 22px; padding: 24px 28px; margin-top: 32px !important; gap: 16px; }
.hg-help > * { margin: 0 !important; }
.hg-help-title { font: 600 24px var(--wp--preset--font-family--heading); font-variation-settings: "SOFT" 100; color: #fff; }
.hg-help-title em { color: var(--wp--preset--color--accent-light); font-style: italic; }
.hg-end-cols { gap: 20px !important; }
.hg-endcard { background: var(--wp--preset--color--butter); border-radius: 28px; padding: 40px; height: 100%; box-sizing: border-box; }
.hg-endcard > * { margin: 0 0 14px !important; }
.hg-endcard h3 { font-size: 38px; }
.hg-endcard.is-dark { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--on-dark); }
.hg-endcard .wp-block-buttons { gap: 10px; }

/* ---------- About page ---------- */
.hg-year { font-family: var(--wp--preset--font-family--heading); font-variation-settings: "SOFT" 100, "opsz" 144; font-style: italic; font-weight: 500; font-size: clamp(110px, 14vw, 200px) !important; line-height: .82 !important; letter-spacing: -.04em; color: var(--wp--preset--color--accent-light); margin: 6px 0 0 !important; }
.hg-about-hero h1 { font-size: clamp(36px, 4.2vw, 58px) !important; line-height: 1.05; margin-top: 18px !important; }
.hg-photo-wrap { position: relative; }
.hg-photo-wrap > * { margin: 0 !important; }
.hg-gdc-badge { position: absolute; left: -18px; bottom: 40px; background: var(--wp--preset--color--accent); color: #fff; border-radius: 18px; padding: 12px 16px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.hg-gdc-badge strong { font-family: var(--wp--preset--font-family--heading); font-size: 26px; }
.hg-about-hero .hg-arch-photo img { height: 500px !important; border-radius: 200px 200px 28px 28px; }
.hg-promises { display: flex !important; flex-direction: column; gap: 12px; }
.hg-promises > * { margin: 0 !important; }
.hg-promise { background: #fff; border-radius: 20px; padding: 20px 22px 20px 74px; position: relative; }
.hg-promise > * { margin: 0 !important; }
.hg-promise::before { content: "✓"; position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--wp--preset--color--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.hg-promise-title { font-size: 18px; }
.hg-story { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; margin-top: 48px !important; }
.hg-story::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; border-top: 2px dashed var(--wp--preset--color--accent-light); }
.hg-story > * { margin: 0 !important; position: relative; }
.hg-story-step > * { margin: 0 0 10px !important; }
.hg-story-year { display: inline-block; background: var(--wp--preset--color--cream); padding-right: 14px; font-family: var(--wp--preset--font-family--heading); font-variation-settings: "SOFT" 100; font-style: italic; font-size: 52px !important; line-height: 1.2 !important; color: var(--wp--preset--color--accent); }
.hg-story-quote { font-family: var(--wp--preset--font-family--heading); font-variation-settings: "SOFT" 100; font-size: 24px; line-height: 1.45; max-width: 820px; color: var(--wp--preset--color--accent-dark); margin-top: 48px !important; }
.hg-quals { margin-top: 36px !important; }
.hg-quals > * { margin: 0 !important; }
.hg-qual { display: grid !important; grid-template-columns: 120px 1fr; gap: 0 46px; position: relative; }
.hg-qual > * { margin: 0 !important; }
.hg-qual::before { content: ""; position: absolute; left: 141px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--wp--preset--color--accent); }
.hg-qual::after { content: ""; position: absolute; left: 146px; top: 24px; bottom: 2px; border-left: 2px dashed var(--wp--preset--color--accent-light); transform-origin: top; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.hg-qual:last-child::after, .hg-js .hg-quals-sec:not(.show-all) .hg-qual:nth-child(6)::after { display: none; }
.hg-motion .hg-qual:not(.is-drawn)::after { transform: scaleY(0); }
.hg-qual-date { font-size: 14px; font-weight: 700; color: var(--wp--preset--color--accent-dark); text-align: right; padding-top: 3px; }
.hg-qual-body { padding-bottom: 26px; }
.hg-qual-body > * { margin: 0 0 4px !important; }
.hg-qual-title strong { font-family: var(--wp--preset--font-family--heading); font-variation-settings: "SOFT" 100; font-size: 22px; font-weight: 600; margin-right: 8px; }
.hg-qual-tag { display: inline-block; vertical-align: middle; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.hg-qual-tag.is-clinical { background: var(--wp--preset--color--butter); } .hg-qual-tag.is-hygiene { background: var(--wp--preset--color--latte); }
.hg-qual-tag.is-skin { background: var(--wp--preset--color--blush); } .hg-qual-tag.is-found { background: var(--wp--preset--color--sand); }
.hg-js .hg-quals-sec:not(.show-all) .hg-qual.is-more { display: none !important; }
.hg-quals-more-wrap { padding-left: 166px; }
.hg-quals-more { display: none; font: inherit; font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 99px; border: 1.5px solid var(--wp--preset--color--ink); background: transparent; color: var(--wp--preset--color--ink); cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.hg-quals-more:hover { background: var(--wp--preset--color--ink); color: #fff; }
.hg-js .hg-quals-more { display: inline-flex; }
.hg-calm { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.hg-calm li { position: relative; padding-left: 30px; color: #fff; font-size: 17px; }
.hg-calm li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: url(assets/images/icon-heart-light.svg?v=1.4.1) no-repeat center / contain; }
.hg-tilt-card { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--ink); border-radius: 32px; padding: 36px; transform: rotate(2deg); }
.hg-tilt-card > * { margin: 0 0 14px !important; }
.hg-stars { color: var(--wp--preset--color--accent); font-size: 20px; letter-spacing: 3px; }
.hg-tilt-quote { font-family: var(--wp--preset--font-family--heading); font-variation-settings: "SOFT" 100; font-style: italic; font-size: 28px; line-height: 1.25; }
.hg-rcards { margin-top: 32px !important; gap: 16px !important; }
.hg-rcard { background: #fff; border-radius: 28px; padding: 30px; display: flex !important; flex-direction: column; }
.hg-rcard > * { margin: 0 0 16px !important; }
.hg-rcard-quote { font-size: 18px; line-height: 1.55; }
.hg-rcard-who { margin-top: auto !important; margin-bottom: 0 !important; display: flex; gap: 12px; align-items: center; line-height: 1.3; }
.hg-rcard-who small { color: var(--wp--preset--color--muted); font-size: 13px; }
.hg-initials { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--wp--preset--color--latte); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.hg-note-sec .hg-note .wp-block-buttons { gap: 10px; }
.hg-dark .hg-note .wp-block-button.is-style-outline > .wp-block-button__link, .hg-dark .hg-tilt-card .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); }
.hg-dark .hg-note .wp-block-button.is-style-outline > .wp-block-button__link:hover, .hg-dark .hg-tilt-card .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; }
.hg-dark .hg-note a:not(.wp-element-button) { color: var(--wp--preset--color--accent); }

/* ---------- Clinics & contact page ---------- */
.hg-qcards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)) !important; margin-top: 32px !important; gap: 14px !important; }
.hg-qcard { background: #fff; border-radius: 22px; padding: 22px 24px; }
.hg-qcard > * { margin: 0 !important; }
.hg-qcard.is-dark { background: var(--wp--preset--color--ink); }
.hg-qc-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--accent-dark); margin-bottom: 6px !important; }
.hg-qcard.is-dark .hg-qc-label { color: var(--wp--preset--color--accent-light); }
.hg-qc-value a { font: 600 22px var(--wp--preset--font-family--heading); font-variation-settings: "SOFT" 100; color: var(--wp--preset--color--ink) !important; text-decoration: none; word-break: break-word; }
.hg-qcard.is-dark .hg-qc-value a { color: #fff !important; }
.hg-ct-hero h1 { margin-top: 14px !important; }
#message { scroll-margin-top: 120px; }

/* Clinics */
.hg-ctabs { gap: 10px !important; margin-top: 28px !important; }
.hg-ctab > .wp-block-button__link { padding: 11px 20px !important; font-size: 15px !important; }
.hg-ctab.is-on > .wp-block-button__link { background: var(--wp--preset--color--ink) !important; color: #fff !important; }
.hg-cpanels { margin-top: 24px !important; }
.hg-cpanels > * + * { margin-top: 24px !important; }
.hg-tabs-ready .hg-cpanel:not(.is-active) { display: none !important; }
.hg-tabs-ready .hg-cpanels > * + * { margin-top: 0 !important; }
.hg-motion .hg-cpanel.is-active { animation: hg-swap .45s cubic-bezier(.2,.7,.2,1); }
.hg-cpanel .wp-block-columns { gap: 20px !important; align-items: stretch !important; }
.hg-ccard { background: #fff; border-radius: 28px; padding: 36px; height: 100%; box-sizing: border-box; display: flex !important; flex-direction: column; }
.hg-ccard > * { margin: 0 0 12px !important; }
.hg-ccard h3 { font-size: 36px; }
.hg-ccard .wp-block-buttons { margin-top: auto !important; padding-top: 12px; gap: 10px; }
.hg-map { height: 100%; min-height: 320px; border-radius: 28px; overflow: hidden; background: var(--wp--preset--color--latte); }
.hg-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Contact */
.hg-contact-cols { gap: 56px !important; }
.hg-big-phone a { font-size: 24px; font-weight: 700; color: #fff !important; text-decoration: none; }
.hg-form-card { background: var(--wp--preset--color--ink-2); border-radius: 28px; padding: 32px; }
.hg-form { display: flex; flex-direction: column; gap: 14px; }
.hg-form p { margin: 0; }
.hg-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hg-field { display: flex; flex-direction: column; gap: 6px; }
.hg-field label { font-size: 13px; font-weight: 600; color: var(--wp--preset--color--on-dark); }
.hg-field label span { font-weight: 400; opacity: .8; }
.hg-form input[type=text], .hg-form input[type=email], .hg-form input[type=tel], .hg-form select, .hg-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; color: #fff; background: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--dark-line); border-radius: 12px; padding: 13px 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.hg-form textarea { resize: vertical; min-height: 120px; }
.hg-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23E8D9C6' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.hg-form input:focus, .hg-form select:focus, .hg-form textarea:focus { outline: none; border-color: var(--wp--preset--color--accent-light); box-shadow: 0 0 0 3px rgba(233,185,138,.3); }
.hg-hint { font-size: 13px; opacity: .85; }
.hg-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.hg-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--wp--preset--color--accent); flex: 0 0 auto; }
.hg-submit button { cursor: pointer; border: 0; width: 100%; }
.hg-submit button:disabled { opacity: .6; cursor: default; }
.hg-form-msg:empty { display: none; }
.hg-form-msg.is-error { color: #FFB4A8; font-size: 14px; }
.hg-form-done { background: var(--wp--preset--color--ink); border-radius: 14px; padding: 18px 20px; font-size: 15px; color: #fff; }
.hg-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
footer.wp-block-template-part, main + footer, .wp-site-blocks > footer, .wp-site-blocks > * + * { margin-block-start: 0 !important; }
main .wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
main .wp-block-post-content > .alignfull + * { margin-block-start: 0 !important; }
.hg-footer-cols { gap: 40px !important; }
.hg-footer-head { font-weight: 700; color: #fff; margin: 0 0 10px !important; }
.hg-footer-text { line-height: 2 !important; margin: 14px 0 0 !important; color: var(--wp--preset--color--on-dark); }
.hg-footer-cols .hg-footer-head + .hg-footer-text { margin-top: 0 !important; }
.hg-footer-text a, .hg-footer-small a { color: var(--wp--preset--color--on-dark) !important; text-decoration: none; }
.hg-footer-text a:hover, .hg-footer-small a:hover { color: #fff !important; }
.hg-footer-line { border: 0 !important; border-top: 1px solid var(--wp--preset--color--dark-line) !important; margin: 48px 0 22px !important; max-width: none !important; width: 100%; opacity: 1; }
.hg-footer-small { margin: 0 !important; font-size: 13px !important; color: var(--wp--preset--color--on-dark); }

/* Pages that keep their old content: keep it readable */
main .wp-block-post-content > :not(.alignfull) { max-width: 1000px; }

/* ---------- Editor: show the first result, review and clinic only (pick others in List View) ---------- */
.block-editor-block-list__block.hg-qres ~ .block-editor-block-list__block.hg-qres:not(.is-selected):not(.has-child-selected) { display: none !important; }
.block-editor-block-list__block.hg-rv ~ .block-editor-block-list__block.hg-rv:not(.is-selected):not(.has-child-selected) { display: none !important; }
.block-editor-block-list__block.hg-cpanel ~ .block-editor-block-list__block.hg-cpanel:not(.is-selected):not(.has-child-selected) { display: none !important; }
.is-root-container .hg-note { transform: none; }
.block-editor-block-list__block.hg-tg ~ .block-editor-block-list__block.hg-tg:not(.is-selected):not(.has-child-selected) { display: none !important; }
.block-editor-block-list__block.hg-ti:not(.is-selected):not(.has-child-selected) .hg-ti-body { display: none !important; }
.block-editor-block-list__block.hg-wpanel ~ .block-editor-block-list__block.hg-wpanel:not(.is-selected):not(.has-child-selected) { display: none !important; }
.is-root-container .hg-tgnav { position: static; }
.is-root-container .hg-qual::after { transform: none; }
.is-root-container .hg-tilt-card { transform: none; }
.is-root-container .hg-panel { display: none; }
.is-root-container .hg-dirty { clip-path: inset(0 42% 0 0); }
.is-root-container .hg-reveal-line { left: 58%; }
.is-root-container .hg-photo-box figure { position: static; }
.is-root-container .hg-photo-box { aspect-ratio: auto; display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.is-root-container .hg-photo-box img { position: static; height: auto !important; }
.is-root-container .hg-photo-box::after, .is-root-container .hg-photo-box .hg-rp-dye { clip-path: none; }
.is-root-container .hg-photo-box::after { display: none; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 899px) {
	/* Slim header: no top strip, Call button beside the menu button */
	.hg-strip { display: none !important; }
	.hg-mainbar { padding-top: 10px !important; padding-bottom: 10px !important; }
	.hg-head-row { gap: 10px; }
	.hg-head-row > .wp-block-html { gap: 8px; align-items: center; }
	.hg-brand { font-size: 24px; }
	.hg-brand-logo img { max-height: 46px; }
	.hg-mcall { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 99px; background: var(--wp--preset--color--accent); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; flex: none; }
	/* Phone menu */
	.hg-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--wp--preset--color--ink); cursor: pointer; padding: 0 13px; flex: none; }
	.hg-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
	.hg-menu-open .hg-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.hg-menu-open .hg-burger span:nth-child(2) { opacity: 0; }
	.hg-menu-open .hg-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.hg-nav { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: var(--hg-head-h, 80px); background: var(--wp--preset--color--cream); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 40px; overflow-y: auto; z-index: 99; }
	.hg-menu-open .hg-nav { display: flex; }
	.hg-menu-open { overflow: hidden; }
	.hg-nav > a.hg-nav-link, .hg-nav-item > .hg-nav-link { display: flex; justify-content: space-between; width: 100%; font-family: var(--wp--preset--font-family--heading); font-size: 26px; font-weight: 600; padding: 16px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
	.hg-panel, .hg-has-panel:hover > .hg-panel { position: static; opacity: 1; visibility: visible; transform: none; display: none; padding: 8px 0 14px; width: auto; }
	.hg-has-panel.is-open > .hg-panel { display: flex; flex-direction: column; }
	.hg-panel-wide::before, .hg-panel-narrow::before, .hg-panel-card, .hg-panel-link { display: none !important; }
	.hg-panel-cols { grid-template-columns: 1fr; border: 0; padding: 0; gap: 0; }
	.hg-panel-all, .hg-panel-head { font-size: 17px; letter-spacing: 0; text-transform: none; padding: 10px 0 10px 12px; font-weight: 600; color: var(--wp--preset--color--ink) !important; }
	.hg-panel-foot { padding: 12px 0 4px 12px; flex-direction: column; gap: 10px; }
	.hg-nav-cta.wp-element-button { margin: 24px 0 0; text-align: center; padding: 16px; }
	/* Treatments page */
	.hg-tr-hero .wp-block-column:last-child { display: none; }
	.hg-tr-layout { flex-direction: column; gap: 20px; }
	.hg-tgnav { position: sticky; top: var(--hg-hdr, 66px); z-index: 20; flex: none; flex-direction: row; flex-wrap: wrap; gap: 8px; width: auto; margin: 0 calc(-1 * var(--wp--style--root--padding-right, 20px)) 0 calc(-1 * var(--wp--style--root--padding-left, 20px)) !important; padding: 12px var(--wp--style--root--padding-right, 20px) 12px var(--wp--style--root--padding-left, 20px); background: var(--wp--preset--color--cream); border-bottom: 1px solid var(--wp--preset--color--line); }
	.hg-tgnav-label, .hg-tgnav-extra { display: none; }
	.hg-tg-long { display: none; } .hg-tg-short { display: inline; }
	.hg-tgnav { gap: 6px; }
	.hg-tgnav-item a { white-space: nowrap; justify-content: center; gap: 5px; border: 1px solid var(--wp--preset--color--line); border-radius: 99px; padding: 8px 11px; background: #fff; font-size: 13px; }
	.hg-ti-body { grid-template-columns: 1fr; }
	.hg-ti-head { padding: 16px 62px 16px 18px; }
	.hg-wpanel .wp-block-columns { gap: 18px !important; flex-direction: column-reverse; }
	.hg-wphoto img { height: 190px !important; }
	.hg-smile-sec .wp-block-button, .hg-smile-sec .wp-block-button__link { width: 100%; text-align: center; }
	.hg-sticker { position: static; display: inline-block; margin-bottom: 18px !important; }
	.hg-faqs { grid-template-columns: 1fr; }
	/* About page */
	/* About hero: photo between the text and the buttons */
	.hg-about-hero .wp-block-columns { display: flex !important; flex-direction: column; }
	.hg-about-hero .wp-block-column:first-child { display: contents; }
	.hg-about-hero .wp-block-column:first-child > * { margin: 0 !important; }
	.hg-about-hero .wp-block-column:last-child { order: 1; }
	.hg-about-hero .wp-block-column:first-child > .wp-block-buttons { order: 2; }
	.hg-year { font-size: 96px !important; }
	.hg-about-hero .hg-arch-photo img { height: 300px !important; }
	.hg-gdc-badge { left: 12px; bottom: 18px; padding: 8px 12px; }
	.hg-gdc-badge strong { font-size: 20px; }
	/* Promise: tighter cards */
	.hg-promises { gap: 10px; }
	.hg-promise { padding: 12px 14px 12px 58px; border-radius: 16px; }
	.hg-promise::before { left: 14px; width: 30px; height: 30px; font-size: 13px; }
	.hg-promise-title { font-size: 16px; }
	/* Story: three year cards, nothing like the timeline below */
	.hg-story { grid-template-columns: 1fr; gap: 10px; margin-top: 24px !important; }
	.hg-story::before { display: none; }
	.hg-story-step { display: grid !important; grid-template-columns: 78px 1fr; column-gap: 12px; align-items: center; background: #fff; border-radius: 20px; padding: 16px; }
	.hg-story-step > * { margin: 0 !important; grid-column: 2; }
	.hg-story-step .hg-story-year { grid-column: 1; grid-row: 1 / span 2; background: transparent; padding: 0; font-size: 34px !important; }
	.hg-story-step h3 { font-size: 19px; }
	.hg-story-step p:not(.hg-story-year) { font-size: 14px; }
	.hg-story-step:nth-child(2) { background: var(--wp--preset--color--butter); }
	.hg-story-step:nth-child(3) { background: var(--wp--preset--color--ink); }
	.hg-story-step:nth-child(3) h3 { color: #fff; }
	.hg-story-step:nth-child(3) p:not(.hg-story-year) { color: var(--wp--preset--color--on-dark) !important; }
	.hg-story-step:nth-child(3) .hg-story-year { color: var(--wp--preset--color--accent-light) !important; font-size: 26px !important; }
	.hg-story-quote { font-size: 19px; margin-top: 24px !important; }
	/* Kind words: swipe the cards */
	.hg-rcards { display: flex !important; margin-right: calc(-1 * var(--wp--style--root--padding-right, 20px)) !important; padding-right: var(--wp--style--root--padding-right, 20px); overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px !important; padding-bottom: 4px; scrollbar-width: none; }
	.hg-rcards::-webkit-scrollbar { display: none; }
	.hg-rcard { flex: 0 0 82%; scroll-snap-align: start; padding: 20px; border-radius: 20px; }
	.hg-rcard-quote { font-size: 15px; }
	.hg-rc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
	.hg-qual { grid-template-columns: 1fr; padding-left: 30px; }
	.hg-qual::before { left: 0; }
	.hg-qual::after { left: 5px; }
	.hg-qual-date { text-align: left; }
	.hg-quals-more-wrap { padding-left: 30px; }
	.hg-tilt-card { transform: none; padding: 26px; }
	.hg-endcard { padding: 28px; }
	.hg-endcard + .hg-endcard { margin-top: 16px !important; }
	.hg-hero { padding-top: 28px !important; padding-bottom: 36px !important; }
	.hg-hero-cols { gap: 24px !important; }
	.hg-hero .wp-block-buttons:not(.hg-chips) > .wp-block-button { width: 100%; }
	.hg-hero .wp-block-buttons:not(.hg-chips) .wp-block-button__link { width: 100%; text-align: center; }
	.hg-creds { gap: 6px 16px; }
	/* Home hero: slider between the text and the buttons */
	.hg-hero:has(.hg-reveal) .hg-hero-cols { display: flex !important; flex-direction: column; gap: 18px !important; }
	.hg-hero:has(.hg-reveal) .hg-hero-cols > .wp-block-column:first-child { display: contents; }
	.hg-hero:has(.hg-reveal) .hg-hero-cols > .wp-block-column:first-child > * { margin: 0 !important; }
	.hg-hero:has(.hg-reveal) .hg-hero-cols > .wp-block-column:last-child { order: 1; }
	.hg-hero:has(.hg-reveal) .hg-hero-cols > .wp-block-column:first-child > .wp-block-buttons { order: 2; }
	.hg-hero:has(.hg-reveal) .hg-hero-cols > .wp-block-column:first-child > .hg-creds { order: 3; }
	/* Slider card: smaller labels and text */
	.hg-reveal { padding: 14px; gap: 12px; border-radius: 22px; }
	.hg-reveal-box { border-radius: 14px; }
	.hg-reveal-tags { font-size: 10px; letter-spacing: .06em; gap: 8px; }
	.hg-reveal-tags span, .hg-reveal-photo .hg-reveal-tags > * { padding: 4px 9px; white-space: nowrap; }
	.hg-reveal-label { font-size: 12px; gap: 6px; }
	.hg-reveal-note { font-size: 11px; line-height: 1.4; }
	/* Questionnaire: one question at a time */
	.hg-quiz { grid-template-columns: 1fr; gap: 16px; margin-top: 22px !important; }
	.hg-qprog { display: none; }
	.hg-quiz-ready .hg-qstep { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-bottom: 6px !important; }
	.hg-qstep-n { font-size: 13px; font-weight: 700; }
	.hg-qback { background: none; border: 0; padding: 4px 0; font: 600 13px var(--wp--preset--font-family--body); color: var(--wp--preset--color--muted); cursor: pointer; }
	.hg-qback[disabled] { visibility: hidden; }
	.hg-qstep-bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--wp--preset--color--latte); overflow: hidden; }
	.hg-qstep-bar i { display: block; height: 100%; width: calc((var(--hg-qs, 0) + 1) * 25%); background: var(--wp--preset--color--accent); transition: width .35s ease; }
	.hg-quiz-ready .hg-q:not(.is-current) { display: none !important; }
	.hg-quiz-ready .hg-q { border-top: 0; padding: 8px 0 4px; }
	.hg-quiz-ready .hg-q-title { font-size: 21px; }
	.hg-quiz-ready .hg-q-title::before { display: none; }
	.hg-quiz-ready .hg-qopts { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
	.hg-quiz-ready .hg-qo, .hg-quiz-ready .hg-qo > .wp-block-button__link { width: 100%; height: 100%; }
	.hg-quiz-ready .hg-qo > .wp-block-button__link { display: flex; align-items: center; min-height: 48px; border-radius: 14px !important; text-align: left; padding: 12px !important; font-weight: 600 !important; box-sizing: border-box; }
	.hg-quiz-ready:not(.is-complete) .hg-qreset { display: none; }
	.hg-quiz-ready .hg-qwait { flex-direction: row; min-height: 0; padding: 14px; gap: 12px; text-align: left; border: 0; border-radius: 16px; background: var(--wp--preset--color--latte); }
	.hg-qwait-ring { width: 40px; height: 40px; flex: none; }
	.hg-qwait-ring span { width: 32px; height: 32px; font-size: 11px; font-family: var(--wp--preset--font-family--body); font-weight: 700; }
	.hg-qwait-h, .hg-qwait-p, .hg-qwait-hint { display: none; }
	.hg-qwait-m { display: block; font-size: 13px; font-weight: 600; }
	.hg-qres-head { grid-template-columns: 1fr; grid-template-areas: "eb" "name" "sub" "price" "note"; }
	.hg-qres-price, .hg-qres-note { text-align: left; }
	.hg-qres-cols, .hg-qres-foot { grid-template-columns: 1fr; }
	.hg-qalt + .hg-qalt { border-left: 0; border-top: 1px solid var(--wp--preset--color--line); }
	.hg-qres-head, .hg-qres-cols, .hg-qalt { padding-left: 22px; padding-right: 22px; }
	.hg-qres-btns { padding: 0 22px 22px; }
	/* Note card: small round photo beside the signature, no tilt */
	.hg-note { display: grid !important; grid-template-columns: 84px 1fr; gap: 12px 14px !important; transform: none; padding: 20px; }
	.hg-note-body { display: contents; }
	.hg-note-body > * { grid-column: 1 / -1; margin: 0 !important; }
	.hg-note-photo { grid-column: 1; grid-row: 1 / span 2; margin: 0 !important; }
	.hg-note-photo, .hg-note-photo img { width: 84px; height: 84px !important; border-radius: 50%; flex-basis: auto; }
	.hg-note-body > .is-style-eyebrow { grid-column: 2; grid-row: 1; align-self: end; }
	.hg-note-body > .hg-sign { grid-column: 2; grid-row: 2; align-self: start; }
	.hg-note-body:not(:has(.is-style-eyebrow)) > .hg-sign { grid-row: 1 / span 2; align-self: center; }
	.hg-note-text { font-size: 17px; }
	.hg-note .wp-block-buttons > .wp-block-button, .hg-note .wp-block-button__link { width: 100%; text-align: center; }
	/* GBT facts: a short list, no cards */
	.hg-facts { grid-template-columns: 1fr !important; gap: 12px !important; margin-top: 22px !important; }
	.hg-fact { background: transparent; padding: 4px 0 0 42px; border-radius: 0; position: relative; min-height: 30px; }
	.hg-fact::before { content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 14s-6-3.6-6-7.6A3 3 0 018 5a3 3 0 016 1.4C14 10.4 8 14 8 14z' fill='%23A65E2E'/%3E%3C/svg%3E") center / 13px no-repeat; }
	.hg-fact > * { margin: 0 !important; display: inline; font-size: 15px !important; line-height: 1.5; }
	.hg-fact h3 { font-family: var(--wp--preset--font-family--body); font-weight: 700; }
	.hg-fact h3::after { content: " · "; font-weight: 400; color: var(--wp--preset--color--muted); }
	/* Reviews: swipe, dots instead of arrows */
	.hg-rv-prev, .hg-rv-next, .hg-rv-pos { display: none !important; }
	.hg-rv-dots, .hg-rc-dots { display: flex; gap: 6px; justify-content: center; }
	.hg-rv-dots button, .hg-rc-dots i { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--wp--preset--color--line); cursor: pointer; }
	.hg-rv-dots button.is-on, .hg-rc-dots i.is-on { background: var(--wp--preset--color--ink); }
	.hg-rv-quote { font-size: 24px; }
	/* Clinics: shorter map */
	.hg-map, .hg-map iframe { min-height: 200px; height: 200px; border-radius: 20px; }
	.hg-ctabs { gap: 8px !important; margin-top: 18px !important; }
	.hg-ctab > .wp-block-button__link { padding: 9px 14px !important; font-size: 14px !important; }
	/* Contact: Call and Email buttons above the form */
	.hg-big-phone, .hg-contact-email { display: none; }
	.hg-mbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px !important; }
	.hg-mbtns a { text-align: center; padding: 14px; border-radius: 99px; background: var(--wp--preset--color--accent-light); color: var(--wp--preset--color--ink) !important; font-weight: 700; text-decoration: none; }
	.hg-mbtns a.is-ghost { background: transparent; color: #fff !important; border: 1.5px solid var(--wp--preset--color--dark-line); }
	/* Clinics & contact page: tap rows with icons */
	.hg-qcards { grid-template-columns: 1fr !important; gap: 10px !important; margin-top: 22px !important; }
	.hg-qcard { display: grid !important; grid-template-columns: 40px 1fr auto; column-gap: 12px; align-items: center; padding: 14px; border-radius: 18px; position: relative; }
	.hg-qcard::before { content: ""; grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--wp--preset--color--latte) center / 18px no-repeat; }
	.hg-qcard.is-dark::before { background-color: var(--wp--preset--color--accent-light); }
	.hg-qc-call::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h3l2 5-2.5 1.5a11 11 0 006 6L16 13l5 2v3a3 3 0 01-3 3A17 17 0 013 6a3 3 0 013-3z' fill='none' stroke='%233A2A20' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
	.hg-qc-email::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' fill='none' stroke='%233A2A20' stroke-width='2'/%3E%3Cpath d='m4 7 8 6 8-6' fill='none' stroke='%233A2A20' stroke-width='2'/%3E%3C/svg%3E"); }
	.hg-qc-message::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v11H9l-5 4z' fill='none' stroke='%233A2A20' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
	.hg-qcard::after { content: "→"; grid-column: 3; grid-row: 1 / span 2; font-size: 18px; color: var(--wp--preset--color--ink); }
	.hg-qcard.is-dark::after { color: #fff; }
	.hg-qcard > * { grid-column: 2; }
	.hg-qc-label { margin-bottom: 0 !important; font-size: 11px; }
	.hg-qc-value a { font-size: 17px; }
	.hg-qc-value a::after { content: ""; position: absolute; inset: 0; }
	/* Footer: logo centred, links in two columns */
	.hg-footer-cols { display: grid !important; grid-template-columns: 1fr 1fr; gap: 22px 14px !important; }
	.hg-footer-cols > .wp-block-column:first-child { grid-column: 1 / -1; text-align: center; }
	.hg-footer-cols > .wp-block-column:first-child .hg-footer-text { line-height: 1.6 !important; }
	.hg-footer-line { margin: 28px 0 16px !important; }
	.hg-footer-small { text-align: center; }
	.hg-footer { padding-top: 44px !important; }
	.hg-footer-text { line-height: 1.45 !important; font-size: 14px !important; }
	.hg-footer-cols .hg-footer-text a { display: inline-block; padding: 4px 0; }
	.hg-footer-text a[href^="mailto"] { word-break: break-all; }
	.hg-mq-set { font-size: 22px; gap: 28px; padding-right: 28px; }
	.hg-field-row { grid-template-columns: 1fr; }
	.hg-form-card { padding: 22px; }
	.hg-ccard { padding: 26px; }
	.alignfull:is([style*="padding-top:112px"], [style*="padding-top:104px"]) { padding-top: 60px !important; }
	.alignfull:is([style*="padding-bottom:112px"], [style*="padding-bottom:104px"]) { padding-bottom: 60px !important; }
}

/* ---------- Motion: subtle, off for "reduce motion" ---------- */
@keyframes hg-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hg-motion main .wp-block-post-content > .alignfull:first-child :is(h1, .hg-lede, .wp-block-buttons, .hg-creds, .is-style-eyebrow) { animation: hg-rise .9s cubic-bezier(.2,.7,.2,1) .15s both; }
.hg-motion main .wp-block-post-content > .alignfull:first-child .hg-reveal { animation: hg-rise 1.1s cubic-bezier(.2,.7,.2,1) .35s both; }
.hg-reveal-on { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--hg-d, 0s); }
.hg-reveal-on.hg-in { opacity: 1; transform: none; }
.wp-block-image.hg-reveal-on img { transform: scale(1.04); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.wp-block-image.hg-reveal-on.hg-in img { transform: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	:is(main, header) .wp-block-button__link { transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease; }
	main .hg-fact, main .hg-ccard { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease; }
	main .hg-fact:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(58,42,32,.4); }
}
