/* =====================================================================
   NoticeFix — Design DNA layer: "Glowdent / Clinical Calm Editorial"
   Source: design/glowdent-design-dna.json
   Loaded LAST on every page (after style.css and page CSS), so it can
   restyle shared components without touching their markup.
   Colours come only from :root tokens in style.css.
   No preloader by request.
   ===================================================================== */

/* ===== Base ===== */
:root { --animate-duration: 1s; --dna-ease: cubic-bezier(.25, 1, .5, 1); }
body { font-size: 1rem; line-height: 1.5; font-weight: 400; color: var(--body); background: var(--bg); }
body::before { display: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 400; letter-spacing: -.025em; color: var(--secondary-color); }
h3 { font-weight: 500; letter-spacing: -.02em; }
strong, b { font-weight: 500; }
.mono { font-family: var(--font); font-variant-numeric: tabular-nums; }
::selection { background: rgba(var(--primary-rgb), .16); }

/* Section rhythm: 120px bands; "alt" sections become white bands with grey cards */
.section { padding: 120px 0; }
.section-alt { background: var(--white); }
.section-alt .glass, .section-alt .glass-strong { background: var(--bg); }

/* Section heads: quiet label + oversized light headline */
.overline { font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); gap: 0; margin-bottom: 16px; }
.overline::before, .overline::after, .section-head-center .overline::after { display: none; }
.section-title { font-size: clamp(2.3rem, 5.2vw, 5rem); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
.section-head-center .section-title { max-width: 15ch; margin-left: auto; margin-right: auto; }
.section-sub { font-size: 1.0625rem; color: var(--muted); }
/* Small labels: sentence case, no tracking (DNA never uses uppercase eyebrows) */
.qa-label, .q-result .q-badge { text-transform: none; letter-spacing: 0; font-size: .9375rem; font-weight: 500; }
.text-blue { color: var(--primary-color); }

/* Long-form reading keeps a comfortable measure and leading */
.nd-article p, .legal-doc p, .nd-article li, .legal-doc li { line-height: 1.65; }

/* ===== Surfaces: flat white cards, no glass, no shadow ===== */
.glass, .glass-strong {
    background: var(--white);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border: 0; box-shadow: none;
}
.glass::after, .glass-strong::after { display: none; }
.spotlight::before { display: none; }

/* Cards: no lift; a hairline appears on hover instead (service-item feel) */
.svc-card, .step-body, .review, .why-item, .opt-card, .n-card, .ans-card, .who-item, .post-card, .svc-mini, .fix-row, .area, .way, .value, .role, .c-method, .acc-item, .price-card {
    border-radius: var(--r-md); box-shadow: none;
}
.svc-card:hover, .step-body:hover, .review:hover, .why-item:hover, .opt-card:hover, .n-card:hover, .ans-card:hover, .who-item:hover, .post-card:hover, .svc-mini:hover, .fix-row:hover, .area:hover, .way:hover, .value:hover, .role:hover, .c-method:hover, .price-card:hover {
    transform: none; box-shadow: inset 0 0 0 1px var(--line);
}
.acc-item.open { box-shadow: inset 0 0 0 1px var(--line); }
.answer-card, .quick-answer { background: var(--white); border: 0; }
.section-alt .answer-card, .section-alt .quick-answer { background: var(--bg); }

/* Icon tiles: small grey squares with line icons */
.svc-icon, .price-icon, .why-point svg, .fc-icon, .role-ic, .way-ic, .area-pin, .cm-icon {
    border-radius: var(--r-sm); background: var(--bg); color: var(--primary-color);
}
.section-alt .svc-icon, .section-alt .price-icon { background: var(--white); }
.svc-card:hover .svc-icon { transform: none; background: var(--primary-color); color: var(--on-primary); }
.why-point:hover svg { transform: none; }

/* ===== Buttons: pill, arrow in a circle, fill-disc + label swap on hover ===== */
.btn {
    isolation: isolate; overflow: hidden;
    padding: 14px 16px 14px 22px; border-radius: 40px; border: 1px solid transparent;
    font-weight: 400; font-size: 1rem; letter-spacing: 0; gap: 12px;
    transform: none; box-shadow: none;
    transition: color .5s ease, border-color .5s ease, background .5s ease;
}
.btn-lg { padding: 16px 18px 16px 26px; font-size: 1rem; min-height: 58px; }
.btn-sm { padding: 10px 12px 10px 18px; font-size: .9375rem; }
.btn:active { transform: scale(.98); }
/* Growing fill disc, anchored at the arrow (replaces the shine sweep) */
.btn::before {
    content: ""; position: absolute; z-index: -1; top: 50%; right: 22px; left: auto;
    width: 220%; aspect-ratio: 1; height: auto; border-radius: 50%;
    background: var(--btn-fill, var(--secondary-color));
    transform: translate(50%, -50%) scale(0); transition: transform .5s ease; skew: none;
}
.btn:hover::before { left: auto; transform: translate(50%, -50%) scale(1); }
/* Arrow sits in a small circle and swaps out/in on hover */
.btn > svg:last-child {
    width: 30px; height: 30px; padding: 7px; border-radius: 50%; flex: none;
    background: rgba(var(--white-rgb), .18); transition: background .5s ease;
}
.btn:hover > svg:last-child { transform: none; animation: dnaArrowSwap .5s ease; }
.btn > svg:first-child:not(:last-child) { width: 18px; height: 18px; padding: 0; background: none; }
@keyframes dnaArrowSwap { 0% { transform: translateX(0); } 45% { transform: translateX(140%); opacity: 0; } 46% { transform: translateX(-140%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
/* Two-line label roll (markup added by main.js: .btn-label > .bl-a + .bl-b) */
.btn-label { display: inline-grid; overflow: hidden; height: 1.3em; line-height: 1.3em; vertical-align: top; }
.btn-label > span { grid-area: 1 / 1; transition: transform .5s ease; }
.btn-label .bl-b { transform: translateY(110%); }
.btn:hover .btn-label .bl-a { transform: translateY(-110%); }
.btn:hover .btn-label .bl-b { transform: none; }

.btn-primary { background: var(--primary-color); color: var(--on-primary); box-shadow: none; --btn-fill: var(--secondary-color); }
.btn-primary:hover { background: var(--primary-color); color: var(--on-primary); box-shadow: none; }
.btn-success { background: var(--accent-color); color: var(--on-primary); box-shadow: none; --btn-fill: var(--secondary-color); }
.btn-success:hover { filter: none; color: var(--on-primary); }
.btn-ghost {
    background: var(--white); color: var(--secondary-color); border-color: var(--line);
    -webkit-backdrop-filter: none; backdrop-filter: none; --btn-fill: var(--primary-color);
}
.btn-ghost > svg:last-child { background: var(--bg); }
.btn-ghost:hover { background: var(--white); border-color: var(--primary-color); color: var(--on-primary); }
.btn-ghost:hover > svg:last-child { background: rgba(var(--white-rgb), .18); }
.ripple-ink { display: none; }

.link-arrow { font-weight: 500; color: var(--primary-color); }

/* Chips and code pills */
.chip { background: var(--white); font-weight: 500; }
.chip svg { background: var(--bg); color: var(--primary-color); }
.code-pill { font-family: var(--font); font-weight: 500; border-radius: var(--r-pill); padding: 2px 10px; letter-spacing: .01em; }

/* ===== Navigation: floating white pill ===== */
.site-header { padding: 16px 0; }
.site-header.scrolled { padding: 10px 0; }
.nav-bar, .site-header.scrolled .nav-bar {
    height: 64px; padding: 0 8px 0 22px; border-radius: 100px;
    background: var(--white); border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header.scrolled .nav-bar { box-shadow: inset 0 0 0 1px var(--line); }
.brand-mark { border-radius: 12px; background: var(--primary-color); box-shadow: none; }
.brand-text strong { font-weight: 500; letter-spacing: -.03em; }
.nav-links > li > a { font-weight: 400; border-radius: 100px; }
.nav-links > li > a.active { color: var(--secondary-color); font-weight: 500; }
.nav-links > li > a.active::after { background: var(--primary-color); width: 5px; height: 5px; border-radius: 50%; bottom: 0; }
.nav-indicator { border-radius: 100px; background: var(--bg); }
.nav-phone { font-weight: 500; }
.nav-toggle { background: var(--bg); border: 0; border-radius: 50%; }
.mega, .mobile-sheet { border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.mega-cta { border-radius: var(--r-md); }
.scroll-progress span { background: var(--primary-color); }

/* ===== Home hero ===== */
.hero-haze { display: none; }
.hero-title { font-size: clamp(2.8rem, 5.4vw, 5.2rem); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.hero-sub { font-size: 1.0625rem; color: var(--muted); }
.trust-row li { font-weight: 400; color: var(--secondary-color); border-left-color: var(--line); }
.trust-row svg { color: var(--primary-color); }
/* Blue gradient feature panel replaces the morphing blob (Glowdent feature card) */
.hero-blob { display: none; }
.hero-visual::before {
    content: ""; position: absolute; inset: 24px 2% 24px 10%; z-index: 0; border-radius: var(--r-lg);
    background: linear-gradient(155deg, var(--primary-color) 0%, rgba(var(--primary-rgb), .78) 55%, rgba(var(--primary-rgb), .38) 100%);
}
.letter, .float-card { border-radius: var(--r-lg); }
.letter-title, .fc-title { font-weight: 500; }
.fc-amount { font-weight: 400; letter-spacing: -.03em; }
.letter-scan { display: none; }

/* Stats band: deep navy, flat, big light numerals */
.stats-band { background: var(--secondary-color); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.stats-waves { display: none; }
.stat-num { font-weight: 400; font-size: clamp(2.4rem, 4.2vw, 3.6rem); letter-spacing: -.03em; }

/* Lookup + result */
.lookup-form { box-shadow: inset 0 0 0 1px var(--line); }
.lookup-form:focus-within { box-shadow: inset 0 0 0 1px var(--primary-color), 0 0 0 4px rgba(var(--primary-rgb), .14); }
.lookup-btn { background: var(--primary-color); }
.lookup-result { border-radius: var(--r-lg); }
.quick-chips button { border-radius: var(--r-pill); font-family: var(--font); font-weight: 500; }

/* Pricing: featured plan is the solid blue card */
.price-card { transform: none; padding: 32px 28px; }
.price-featured, .section-alt .price-featured.glass-strong, .section-alt .price-featured.glass { background: var(--primary-color); border: 0; color: rgba(var(--white-rgb), .85); }
.price-featured::before { display: none; }
.price-featured h3, .price-featured .price { color: var(--on-primary); }
.price-featured .price-for { color: rgba(var(--white-rgb), .78); }
.price-featured .price-icon { background: rgba(var(--white-rgb), .16); color: var(--on-primary); }
.price-featured .checklist li { color: var(--on-primary); }
.price-featured .checklist svg { background: rgba(var(--white-rgb), .16); color: var(--on-primary); }
.price-featured .btn-primary { background: var(--white); color: var(--secondary-color); --btn-fill: var(--secondary-color); }
.price-featured .btn-primary:hover { color: var(--on-primary); }
.price-featured .btn-primary > svg:last-child { background: var(--bg); }
.price-featured .ribbon { background: var(--white); color: var(--primary-color); }
.price { font-weight: 400; letter-spacing: -.03em; }
.checklist svg { background: var(--accent-tint); color: var(--accent-color); }

/* Comparison + reviews */
.compare { border-radius: var(--r-lg); }
.review { border-radius: var(--r-md); }

/* ===== Closing CTA: Glowdent blue feature card ===== */
.cta-panel, .cta-panel.glass-strong {
    border-radius: var(--r-lg); color: rgba(var(--white-rgb), .85);
    background: linear-gradient(155deg, var(--primary-color) 0%, rgba(var(--primary-rgb), .86) 60%, rgba(var(--primary-rgb), .62) 100%);
}
.cta-panel::before, .cta-dots, .cta-panes { display: none; }
.cta-panel .section-title, .cta-panel h2 { color: var(--on-primary); }
.cta-panel .section-title .text-blue { color: rgba(var(--white-rgb), .72); }
.cta-panel .overline, .cta-panel .section-sub, .cta-panel p { color: rgba(var(--white-rgb), .82); }
.cta-panel a:not(.btn) { color: var(--on-primary); }
.cta-panel .btn-primary { background: var(--white); color: var(--secondary-color); --btn-fill: var(--secondary-color); }
.cta-panel .btn-primary:hover { color: var(--on-primary); }
.cta-panel .btn-primary > svg:last-child { background: var(--bg); }
.cta-panel .btn-ghost { background: transparent; color: var(--on-primary); border-color: rgba(var(--white-rgb), .45); --btn-fill: var(--white); }
.cta-panel .btn-ghost:hover { color: var(--secondary-color); }
.cta-panel .btn-ghost > svg:last-child { background: rgba(var(--white-rgb), .16); }

/* ===== Footer: flat deep navy ===== */
.site-footer { background: var(--secondary-color); }
.footer-wave { display: none; }
.footer-title { font-weight: 500; }

/* ===== Inner-page heroes and titles ===== */
.nh-title { font-size: clamp(2.3rem, 4.4vw, 4.2rem); font-weight: 400; line-height: 1.04; letter-spacing: -.03em; }
.hub-hero .hero-title, .hub-hero h1 { font-weight: 400; }
.meta-pill { background: var(--white); border-radius: var(--r-pill); }

/* ===== Forms ===== */
.f input, .f select, .f textarea, .calc input, .stepper input {
    border-radius: var(--r-sm); background: var(--bg); border: 1px solid transparent;
}
.f input, .f select { height: 56px; }
.f input:focus, .f select:focus, .f textarea:focus { background: var(--white); border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12); }
.wiz { border-radius: var(--r-lg); }
.drop { border-radius: var(--r-md); background: var(--bg); }
.ask-form { box-shadow: inset 0 0 0 1px var(--line); border: 0; }
.ask-btn { background: var(--primary-color); }

/* ===== Photos: grow-in reveal and 1.1 zoom inside the mask ===== */
.photo { border-radius: var(--r-md); box-shadow: none; }
.photo::after { box-shadow: none; background: none; }
.photo img { transition: transform .5s ease; }
.photo:hover img, .photo.reveal.in:hover img { transform: scale(1.1); }
.photo.reveal { clip-path: none; opacity: 0; transform: scale(.75); transition: opacity 1s var(--dna-ease), transform 1s var(--dna-ease); }
.photo.reveal img { transform: none; }
.photo.reveal.in { opacity: 1; transform: none; }
.photo-badge { border-radius: var(--r-md); }
.svc-thumb img, .pc-thumb img { transition: transform .5s ease; }
.svc-card:hover .svc-thumb img, .post-card:hover .pc-thumb img { transform: scale(1.1); }

/* ===== Motion: Glowdent slide reveals (100px, 1000ms outQuart) ===== */
.animate__animated.animate__fadeInUp { animation-name: dnaSlideUp; animation-timing-function: var(--dna-ease); }
.animate__animated.animate__fadeInDown { animation-name: dnaSlideDown; animation-timing-function: var(--dna-ease); }
.animate__animated.animate__fadeInLeft { animation-name: dnaSlideLeft; animation-timing-function: var(--dna-ease); }
.animate__animated.animate__fadeInRight { animation-name: dnaSlideRight; animation-timing-function: var(--dna-ease); }
.animate__animated.animate__zoomIn { animation-name: dnaGrowIn; animation-timing-function: var(--dna-ease); }
.animate__animated.animate__fadeIn { animation-timing-function: var(--dna-ease); }
@keyframes dnaSlideUp { from { opacity: 0; transform: translate3d(0, 100px, 0); } to { opacity: 1; transform: none; } }
@keyframes dnaSlideDown { from { opacity: 0; transform: translate3d(0, -100px, 0); } to { opacity: 1; transform: none; } }
@keyframes dnaSlideLeft { from { opacity: 0; transform: translate3d(-100px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes dnaSlideRight { from { opacity: 0; transform: translate3d(100px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes dnaGrowIn { from { opacity: 0; transform: scale(.75); } to { opacity: 1; transform: none; } }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .section { padding: 90px 0; }
    .hero-title { font-size: clamp(2.6rem, 9vw, 4rem); }
}
@media (max-width: 767.98px) {
    .section { padding: 72px 0; }
    .section-title { font-size: clamp(2.1rem, 9vw, 3rem); }
    .nav-bar, .site-header.scrolled .nav-bar { height: 58px; padding: 0 6px 0 16px; }
    .cta-panel { padding: 48px 24px; }
}
@media (max-width: 575.98px) {
    .btn-lg { min-height: 54px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .photo.reveal { opacity: 1; transform: none; }
    .btn-label .bl-a, .btn-label .bl-b { transition: none; }
    .btn:hover > svg:last-child { animation: none; }
}

/* ===== WhatsApp CTAs (primary contact channel) ===== */
.wa-icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
.btn-wa { background: var(--wa-green); color: var(--wa-ink); font-weight: 500; --btn-fill: var(--wa-deep); }
.btn-wa:hover { background: var(--wa-green); color: var(--on-primary); }
.btn > .wa-icon:first-child:not(:last-child) { width: 20px; height: 20px; }
.nav-wa { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 40px; background: var(--wa-green); color: var(--wa-ink); font-weight: 500; font-size: .9375rem; white-space: nowrap; transition: background .3s ease, color .3s ease; }
.nav-wa:hover { background: var(--wa-deep); color: var(--on-primary); }
.nav-wa .wa-icon { width: 18px; height: 18px; }
.wa-float { background: var(--wa-green); color: var(--white); box-shadow: 0 12px 30px -8px rgba(var(--wa-rgb), .65); }
.wa-float:hover { color: var(--white); }
.wa-float::before { border-color: var(--wa-green); }
.wa-float .wa-icon { width: 30px; height: 30px; }
.side-wa { margin-top: 10px; }
.side-links .wa-icon, .contact-mini .wa-icon, .gs-alt .wa-icon { color: var(--wa-deep); }
.pill-link .wa-icon { width: 16px; height: 16px; color: var(--wa-green); }
.cm-wa { background: rgba(var(--wa-rgb), .14); color: var(--wa-deep); }
.cm-icon .wa-icon { width: 24px; height: 24px; }
.way-ic .wa-icon { width: 24px; height: 24px; color: var(--wa-deep); }
.sh-btn .wa-icon { width: 18px; height: 18px; }
@media (max-width: 1399.98px) {
    .nav-wa { padding: 10px; }
    .nav-wa span { display: none; }
}
/* Header room for the WhatsApp button: phone shows as an icon, links tighten on smaller desktops */
.nav-phone span { display: none; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .nav-links > li > a { padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .nav-phone { display: none; }
    .nav-links > li > a { padding-left: 7px; padding-right: 7px; font-size: .875rem; }
}
