/*
Theme Name: Impala Dental
Description: Multilingual dental clinic site with conversational setup and WhatsApp appointments.
Version: 1.2.32
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: impala-dental
*/
:root {
    --ink:#123834;
    --muted:#47625c;
    --forest:#104941;
    --paper:#faf8f1;
    --line:#d0ddd3;
    --copper:#b6764f;
    --white:#fffefa;
}
* { box-sizing:border-box }
body { margin:0; min-height:100vh; display:flex; flex-direction:column; background:var(--paper); color:var(--ink); font:16px/1.65 system-ui,Arial,sans-serif }
a { color:inherit; text-underline-offset:.21em }
a:focus-visible,summary:focus-visible { outline:3px solid var(--copper); outline-offset:4px }
img { max-width:100%; height:auto; display:block }
.wrap-inner { width:min(1200px,calc(100% - 64px)); margin-inline:auto }
.top { background:var(--white); border-bottom:1px solid var(--line) }
.top-inner { display:flex; align-items:center; gap:clamp(12px,2vw,28px); min-height:76px }
.brand { display:inline-flex; align-items:center; gap:.33em; font-weight:750; white-space:nowrap; text-decoration:none; font-size:1.24rem }
.brand>span:last-child { color:var(--muted); font-weight:500 }
.brand-mark { width:36px; height:36px; display:grid; place-items:center; margin-right:4px; border-radius:11px; background:var(--forest); color:#f7e1ca; font:italic 26px Georgia,serif }
.menu { display:flex; justify-content:center; flex-wrap:wrap; align-items:center; gap:5px 18px; flex:1 }
.menu a { text-decoration:none; font-size:.9rem; font-weight:650 }
.menu a:hover,.menu a[aria-current] { text-decoration:underline }
.languages { position:relative; margin-inline-start:auto }
.languages summary { cursor:pointer; border:1px solid var(--line); padding:.42rem .65rem; border-radius:8px; white-space:nowrap }
.languages div { position:absolute; inset-inline-end:0; top:calc(100% + 8px); background:var(--white); border:1px solid var(--line); border-radius:10px; min-width:135px; padding:5px; z-index:2; box-shadow:0 10px 22px #143a3022 }
.languages a { display:block; padding:.32rem .6rem; text-decoration:none }
.languages a:hover,.languages a[aria-current] { background:#e8eee6 }
main { flex:1; padding-block:clamp(26px,5vw,70px) 88px }
.hero { display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line); border-radius:28px; overflow:hidden; background:#edf0e6; min-height:430px }
.hero-copy { padding:clamp(24px,5vw,70px); align-self:center }
h1,h2,h3,p { margin-block-start:0 }
h1 { font-size:clamp(2.3rem,4.8vw,4.5rem); line-height:1.12; letter-spacing:-.035em; margin-block-end:.4em; overflow-wrap:anywhere }
:lang(ar) h1 { letter-spacing:normal; line-height:1.22 }
h2 { font-size:clamp(1.55rem,2.7vw,2.45rem); line-height:1.3; margin-block-end:.6em }
p { color:var(--muted) }
.hero-copy p { max-width:46ch; font-size:1.12rem }
.hero-art { min-height:250px; background:#194a42; position:relative }
.hero-art img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover }
.placeholder { display:grid; place-items:center; overflow:hidden; background:radial-gradient(ellipse at 75% 8%,#38766a,#153d37 65%); }
.placeholder span { font:italic clamp(110px,19vw,290px)/1 Georgia,serif; color:#efd8b9; border:1px solid #efd8b988; border-radius:50%; width:1.38em; height:1.38em; display:grid; place-items:center; padding-block-end:.11em; box-shadow:0 0 0 .12em #efd8b920,0 0 0 .24em #efd8b915 }
.actions { display:flex; flex-wrap:wrap; gap:12px }
.btn { display:inline-flex; align-items:center; min-height:46px; padding:8px 16px; border:1px solid var(--forest); border-radius:10px; text-decoration:none; text-align:center; font-weight:700; line-height:1.4 }
.btn.primary { color:white; background:var(--forest) }
.btn:hover,.whatsapp:hover { filter:brightness(1.12) }
.feature { margin-block-start:52px }
.feature h2 a { text-decoration:none }
.imaging { border-radius:18px; background:#e5eee5; padding:clamp(20px,4vw,40px) }
.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px }
.card { border:1px solid var(--line); background:var(--white); border-radius:14px; overflow:hidden; text-decoration:none }
.card:hover { border-color:var(--forest) }
.card-image { width:100%; aspect-ratio:4/3; object-fit:cover }
.card-text { display:grid; gap:6px; padding:16px }
.card-text span { color:var(--muted) }
.page-intro { padding-block:14px 30px }
.page-intro p { max-width:72ch }
.detail-image { max-height:460px; object-fit:contain; border-radius:14px; margin-block:20px }
.contact-data { margin-block:18px }
.contact-list { margin:0; display:grid; gap:0; border:1px solid var(--line); border-radius:14px; background:var(--white); overflow:hidden }
.contact-list > div { display:grid; grid-template-columns:minmax(145px, 22%) 1fr; gap:16px; padding:14px 18px; border-bottom:1px solid var(--line) }
.contact-list > div:last-child { border-bottom:0 }
.contact-list dt { color:var(--muted); font-weight:700 }
.contact-list dd { margin:0; overflow-wrap:anywhere }
.contact-list a { color:var(--forest); font-weight:650 }
.foot { border-top:1px solid var(--line); background:var(--white); padding:24px 0 88px }
.foot .wrap-inner { display:flex; flex-wrap:wrap; gap:10px 20px }
.whatsapp { position:fixed; display:inline-flex; align-items:center; gap:.56em; background:#08663d; color:#fff; border:2px solid #fff; padding:.62em .96em; border-radius:999px; font-weight:760; text-decoration:none; box-shadow:0 6px 20px #11332250 }
.whatsapp svg { width:25px; height:25px; flex:none }
@media(max-width:780px) {
    .wrap-inner { width:calc(100% - 32px) }
    .top-inner { flex-wrap:wrap; min-height:unset; padding-block:12px }
    .menu { flex:0 0 100%; order:3; justify-content:flex-start; gap:6px 14px }
    .hero { grid-template-columns:1fr }
    .hero-art { min-height:235px }
    .cards { grid-template-columns:minmax(0,1fr) }
}

.news { background:#0c5f59; color:#fff; font-size:.9rem }
.news-inner { display:flex; align-items:center; gap:.9rem; min-height:37px; padding-block:6px }
.news strong { flex:none; font-size:.82rem; padding-inline-end:.9rem; border-inline-end:1px solid #ffffff65 }
.news a { text-decoration:none }
.news a:hover { text-decoration:underline }
.top-inner { min-height:72px; justify-content:space-between; border-bottom:1px solid var(--line) }
.brand img { width:43px; height:43px; object-fit:contain; margin-inline-end:5px }
.brand>span:last-child { color:var(--ink); font-weight:760 }
.brand b { font-weight:520; color:var(--muted) }
.menu { justify-content:flex-start; gap:8px 22px; padding-block:12px }
.languages { display:flex; flex-wrap:wrap; gap:4px; margin-inline-start:auto; position:static }
.languages a { border:1px solid transparent; border-radius:6px; padding:.22rem .48rem; font-size:.82rem }
.languages a[aria-current] { color:#0c5f59; border-color:#b7d3ca }
.hero { min-height:470px }
.catalog .card { border-inline-start:3px solid #0c5f59 }
.catalog ul { margin:0; padding-inline-start:1.3em; color:var(--muted); font-size:.92rem }
.feature-pair,.gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px }
.gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); margin-block:16px }
.gallery-grid figure { margin:0; overflow:hidden; background:var(--white); border:1px solid var(--line); border-radius:14px }
.gallery-grid img { width:100%; aspect-ratio:3/2; object-fit:cover }
.gallery-grid figcaption { padding:.75rem; color:var(--muted); font-size:.88rem }
.socials { display:flex; flex-wrap:wrap; gap:.5rem }
.socials a { border:1px solid var(--line); border-radius:999px; font-size:.86rem; text-decoration:none; padding:.25rem .67rem }
.socials a:hover { background:#e2eee8 }
.contact-panel { padding:24px; background:#fffefa; border:1px solid var(--line); border-radius:18px }
@media(max-width:780px){
    .top-inner { padding-block:8px; gap:6px }
    .menu { gap:5px 14px; padding-block:9px }
    .menu a { font-size:.84rem }
    .news-inner { font-size:.8rem; gap:.5rem }
    .news strong { padding-inline-end:.45rem; font-size:.74rem }
    .languages { width:100%; margin-inline-start:0 }
    .feature-pair { grid-template-columns:1fr }
    .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
}

.news-inner { display:grid; grid-template-columns:auto minmax(0,1fr) auto }
.news-window { min-width:0 }
.news-window a { display:block }
.news button { border:1px solid #ffffff80; border-radius:7px; background:transparent; color:#fff; cursor:pointer; min-width:32px; min-height:30px; font-size:.9rem }
.news button[hidden] { display:none }
.news button:focus-visible { outline:2px solid white; outline-offset:2px }
.news-running .news-window { overflow:hidden; direction:ltr }
.news-running .news-window a {
    width:max-content; white-space:nowrap;
    animation:impala-news-rtl var(--news-duration,18s) linear infinite;
}
:lang(ar) .news-running .news-window a { direction:rtl; animation-name:impala-news-ltr }
.news-running .news-window:hover a { animation-play-state:paused }
.news-paused .news-window a,
.news-running .news-window:focus-within a {
    animation:none; width:auto; white-space:normal;
}
@keyframes impala-news-ltr {
    from { transform:translateX(calc(0px - var(--news-text,100%))) }
    to { transform:translateX(var(--news-window,100%)) }
}
@keyframes impala-news-rtl {
    from { transform:translateX(var(--news-window,100%)) }
    to { transform:translateX(calc(0px - var(--news-text,100%))) }
}
.motion-enter { animation:impala-enter .46s cubic-bezier(.2,.65,.28,1) var(--enter-delay,0ms) backwards }
@keyframes impala-enter {
    from { opacity:.55; transform:translateY(10px) }
    to { opacity:1; transform:translateY(0) }
}
@media (prefers-reduced-motion:reduce) {
    .motion-enter,.news-running .news-window a { animation:none }
    .news-running .news-window a { white-space:normal;width:auto }
}
.section-cover { margin:0 0 24px }
.section-cover img { width:100%; max-height:370px; aspect-ratio:16/7; object-fit:cover; border-radius:18px }
.section-cover figcaption { color:var(--muted); font-size:.82rem; margin-top:5px }
.media-collection { align-items:start }
.media-collection figure { margin:0 }
.media-collection img { object-fit:contain; background:#e9eeea }
.catalog .card { padding:0 }
.catalog .card > .card-text { padding:16px }
.catalog details { border-block-start:1px solid var(--line); padding:.4rem 0 }
.catalog summary { cursor:pointer }
.catalog details .gallery-grid { grid-template-columns:1fr }
.section-cover img { object-position:center }
article.page-intro .section-cover img { aspect-ratio:auto; object-fit:contain; background:#e9eeea }
.menu a,.languages a,.btn,.whatsapp,.card,.socials a { transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,filter .2s }
.card:hover { box-shadow:0 8px 20px #17393215 }
@media (prefers-reduced-motion:reduce) {
    .menu a,.languages a,.btn,.whatsapp,.card,.socials a { transition:none }
}

.foot .wrap-inner { align-items:center; gap:16px 24px }
.socials .social-button {
    display:inline-flex; align-items:center; gap:.5rem;
    min-height:44px; padding:.45rem .78rem; font-weight:650;
    color:#134643; background:#fffefa; border-color:#bfd3cd;
}
.social-button img { flex:none; width:25px; height:25px; object-fit:contain }
.socials .social-button:hover,.socials .social-button:focus-visible {
    background:#0c5f59; border-color:#0c5f59; color:white;
}

.brand.motion-enter,.menu a.motion-enter,.languages a.motion-enter,.social-button.motion-enter {
    animation-name:impala-nav-enter;
}
.hero-art.motion-enter,.section-cover.motion-enter,.detail-image.motion-enter,.gallery-grid figure.motion-enter {
    animation-name:impala-image-enter;
}
@keyframes impala-nav-enter {
    from { opacity:.55; transform:translateY(5px) scale(.98) }
    to { opacity:1; transform:translateY(0) scale(1) }
}
@keyframes impala-image-enter {
    from { opacity:.6; transform:translateY(9px) scale(.985) }
    to { opacity:1; transform:translateY(0) scale(1) }
}
.motion-enter:focus-visible,.motion-enter:focus-within { animation:none }
@media (prefers-reduced-motion:reduce) {
    .motion-enter { animation-duration:0s; animation-delay:0s; }
}

@font-face {
    font-family:Impala Cairo; src:url("assets/fonts/Cairo.woff2") format("woff2");
    font-weight:200 1000; font-style:normal; font-display:swap;
}
@font-face {
    font-family:Impala Tajawal; src:url("assets/fonts/Tajawal-Regular.woff2") format("woff2");
    font-weight:400; font-style:normal; font-display:swap;
}
@font-face {
    font-family:Impala Tajawal; src:url("assets/fonts/Tajawal-Medium.woff2") format("woff2");
    font-weight:500; font-style:normal; font-display:swap;
}
@font-face {
    font-family:Impala Tajawal; src:url("assets/fonts/Tajawal-Bold.woff2") format("woff2");
    font-weight:700; font-style:normal; font-display:swap;
}
:lang(ar) body { font-family:Impala Tajawal, Arial, sans-serif; font-size:1.075rem; line-height:1.7 }
:lang(ar) :is(h1,h2,h3,.menu a,.news strong,.btn,.whatsapp,.card-text strong) {
    font-family:Impala Cairo, Arial, sans-serif;
}
:lang(ar) h1 { font-weight:840; line-height:1.24 }
:lang(ar) h2 { font-weight:800; line-height:1.34 }
:lang(ar) .menu a { font-weight:720; font-size:.91rem }
:lang(ar) .news-window a { font-weight:500; }
:lang(ar) :is(.brand,.languages a,.social-button) { font-family:system-ui, Arial, sans-serif }
:lang(ar) .languages a[lang="ar"] { font-family:Impala Cairo, Arial, sans-serif }

.hero-art { display:grid; grid-template-rows:minmax(235px,1fr) auto; margin:0; background:#f2f5f0 }
.hero-image { position:relative; min-height:235px }
:is(.hero-art,.gallery-grid,.section-cover,.record-photo) figcaption,
.card-text .card-caption {
    color:#2b4a45; font-size:.94rem; font-weight:500; line-height:1.58;
}
:is(.hero-art,.gallery-grid,.section-cover,.record-photo) figcaption {
    padding:.72rem 1rem; border-top:1px solid #dce7e0; background:#f1f6f2;
    margin:0; overflow-wrap:anywhere;
}
.section-cover figcaption { border-radius:0 0 10px 10px }
.section-cover img { border-radius:18px 18px 0 0 }
.record-photo { max-width:100%; margin:0 0 1rem }
.record-photo figcaption { border-radius:8px }
:lang(ar) :is(.hero-art,.gallery-grid,.section-cover,.record-photo) figcaption,
:lang(ar) .card-text .card-caption { font-size:1rem; line-height:1.65 }

.site-tree .menu { list-style:none; margin:0; padding-inline-start:0; align-items:center }
.site-tree .menu > li { position:relative }
.site-tree .menu :is(a,summary) { display:block; text-decoration:none; cursor:pointer; border-radius:8px }
.site-tree .menu > li > a,.nav-branch > summary { padding:.42rem .5rem }
.site-tree .menu :is(a,summary):is(:hover,:focus-visible),.nav-branch[open] > summary {
    background:#e6f0eb; color:#0d4e46;
}
.site-tree summary { list-style:none }
.site-tree summary::-webkit-details-marker { display:none }
.site-tree summary::before { content:'▸'; display:inline-block; margin-inline-end:.42rem; color:#397469; transition:rotate .16s }
[dir=rtl] .site-tree summary::before { rotate:180deg }
.site-tree details[open] > summary::before { rotate:90deg }
.nav-tree {
    position:absolute; top:100%; inset-inline-start:0; z-index:12; width:min(405px,calc(100vw - 40px));
    max-height:min(65vh,520px); overflow:auto; overscroll-behavior:contain;
    background:#fffefa; border:1px solid #bfd3cd; box-shadow:0 16px 40px #17393224;
    border-radius:13px; padding:.6rem; margin:.2rem 0 0;
}
.nav-tree,.nav-tree ul { list-style:none }
.nav-tree ul { margin:.1rem .6rem .4rem; padding-inline-start:.6rem; border-inline-start:1px solid #bdd4cb }
.nav-tree :is(a,summary) { padding:.43rem .55rem; line-height:1.45 }
.nav-tree .nav-subtree > summary { font-weight:700; }
.nav-tree .nav-subtree[open] > summary { color:#07594f; background:#edf5f0 }
.site-tree details[open] > ul { animation:impala-unfold .24s ease-out }
:is(figure[id^=media-],.topic-page) { scroll-margin-top:1rem }
.topic-list { padding-inline-start:1.35rem; margin-block:.5rem 1rem }
.topic-list li { margin-block:.32rem }
@keyframes impala-unfold { from { opacity:.5; translate:0 -5px } to { opacity:1; translate:0 0 } }
@media(max-width:780px) {
    .site-tree { padding-block:.5rem }
    .site-tree .menu { display:grid; grid-template-columns:minmax(0,1fr); gap:.2rem; padding-block:.45rem }
    .nav-tree { position:static; width:auto; max-height:45vh; box-shadow:none; margin-inline-start:.7rem }
}
@media(prefers-reduced-motion:reduce) {
    .site-tree details[open] > ul,.site-tree summary::before { animation:none; transition:none }
}
:lang(ar) .site-tree summary { font-family:Impala Cairo,Arial,sans-serif; font-weight:720 }
@media (min-width:781px) and (max-width:1050px) {
    .nav-tree { width:min(370px,39vw) }
}

@media (max-width:780px) {
    .wrap-inner { width:calc(100% - 28px) }
    .top-inner { padding-block:10px; gap:8px }
    .languages a { min-height:34px; display:inline-flex; align-items:center }
    .site-tree { padding-block:8px 12px }
    .site-tree .menu {
        grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start;
        gap:6px; padding:0;
    }
    .site-tree .menu > li:has(> .nav-branch[open]) { grid-column:1 / -1 }
    .site-tree .menu > li > a,.site-tree .nav-branch > summary {
        background:#f4f8f5; border:1px solid #d9e5df;
    }
    .site-tree .menu > li > a[aria-current="page"] { background:#104941; color:white }
    .site-tree .menu :is(a,summary) { min-height:44px; padding:.65rem .55rem }
    .nav-tree { max-height:none; overflow:visible; margin-inline-start:.3rem; padding:.3rem }
    main { padding-block:16px 86px }
    .hero { grid-template-columns:minmax(0,1fr); min-height:0; border-radius:17px }
    .hero-copy { padding:22px 16px }
    h1 { font-size:clamp(1.65rem,6.3vw,2.4rem); line-height:1.22 }
    .hero-copy p { font-size:1rem }
    .hero-art { min-height:0; display:block }
    .hero-image { min-height:0; aspect-ratio:4/3 }
    .hero-image img { object-fit:contain; background:#eaf0ec }
    .page-intro { padding-block:12px 25px }
    .page-intro h1 { border-inline-start:4px solid #158377; padding-inline-start:12px }
    .feature { margin-block-start:30px }
    .feature-pair,.gallery-grid { grid-template-columns:minmax(0,1fr) }
    .gallery-grid img,.section-cover img {
        height:auto; max-height:340px; aspect-ratio:auto; object-fit:contain; background:#eaf0ec;
    }
    .card-image { object-fit:contain; background:#eaf0ec }
    #impala-booking-float { max-width:calc(100% - 32px); font-size:.9rem; line-height:1.3 }
    .foot { padding-bottom:105px }
}

.socials .social-button { width:48px; height:48px; padding:0; justify-content:center }
.social-button img { width:32px; height:32px }
.team-list { list-style:none; margin:0; padding:0 }
.doctor-placeholder { object-fit:contain; background:#eef5f0 }
img.motion-enter { animation:impala-photo-enter .55s ease-out var(--enter-delay,0ms) backwards }
@keyframes impala-photo-enter {
    from { opacity:.35; scale:.98; translate:0 6px }
    to { opacity:1; scale:1; translate:0 0 }
}
.impala-welcome {
    position:fixed; inset:0; z-index:2147483200; display:grid; place-items:center;
    padding:24px; isolation:isolate; overflow:hidden; pointer-events:none;
    background:radial-gradient(ellipse at 50% 35%,#134b44,#061a19 80%);
    animation:impala-welcome-fade .35s ease-in 2.65s forwards,
              impala-welcome-dismiss 3s step-end forwards;
}
.welcome-content {
    position:relative; display:grid; justify-items:center; gap:clamp(14px,3vh,30px);
    width:min(100%,760px);
}
.impala-welcome p {
    margin:0; width:100%; text-align:center; color:#fff2cc;
    font:700 clamp(.95rem,2.8vw,1.75rem)/1.4 Georgia,serif;
    text-shadow:0 2px 18px #c8a26072;
}
.impala-welcome p span,.impala-welcome p strong { display:block }
.impala-welcome p strong {
    margin-block:.12em; color:#ffdc93; white-space:nowrap;
    font-size:clamp(1.7rem,7vw,4.75rem); line-height:1.18;
}
:lang(ar) .impala-welcome p { font-family:"Impala Cairo",Arial,sans-serif; font-weight:850 }
.welcome-emblem {
    position:relative; display:grid; place-items:center; isolation:isolate;
    width:min(48vw,42vh,17rem); aspect-ratio:1; border-radius:50%;
    border:1px solid #6effe78a;
    background:radial-gradient(circle at 40% 30%,#e9fff7,#a0dbc9 72%,#5ba99c);
    box-shadow:0 0 24px #34efcb65,0 0 70px #16c9b24d;
    animation:impala-emblem-enter .7s cubic-bezier(.16,1,.3,1) both;
}
.welcome-emblem img { width:74%; height:auto }
.welcome-emblem::after {
    content:""; position:absolute; inset:-6px; border-radius:50%;
    background:conic-gradient(from 10deg,transparent 55%,#19ffda20 71%,#37ffda 95%,#d7fff6 98%,transparent);
    mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px));
    filter:drop-shadow(0 0 7px #39ffdc);
    animation:impala-emblem-orbit 1.25s linear infinite;
}
@keyframes impala-emblem-enter {
    from { opacity:0; transform:translateY(18px) scale(.76) }
    to { opacity:1; transform:translateY(0) scale(1) }
}
@keyframes impala-emblem-orbit { to { transform:rotate(1turn) } }
@media(max-height:380px) {
    .welcome-content { gap:10px }
    .impala-welcome p strong { font-size:clamp(1.6rem,8vh,2.3rem) }
    .welcome-emblem { width:min(36vh,44vw) }
}
.welcome-fireworks { position:absolute; inset:0; z-index:-1 }
.welcome-burst { position:absolute; left:20%; top:26%; --delay:.10s; --spark:#ffd68a }
.welcome-burst:nth-child(2) { left:78%; top:25%; --delay:.65s; --spark:#9fe5da }
.welcome-burst:nth-child(3) { left:68%; top:74%; --delay:1.2s; --spark:#ffc396 }
.welcome-burst i {
    position:absolute; width:5px; height:5px; border-radius:50%;
    background:var(--spark); box-shadow:0 0 10px var(--spark); opacity:0;
    animation:impala-spark .85s ease-out var(--delay) both;
}
@keyframes impala-spark {
    0% { opacity:0; transform:rotate(var(--angle)) translateX(0) }
    20% { opacity:.85 }
    100% { opacity:0; transform:rotate(var(--angle)) translateX(clamp(60px,15vw,180px)) scale(.15) }
}
@keyframes impala-welcome-fade { to { opacity:0 } }
@keyframes impala-welcome-dismiss { to { visibility:hidden } }
@media(prefers-reduced-motion:reduce) {
    .welcome-fireworks { display:none }
    .welcome-emblem,.welcome-emblem::after { animation:none }
    .impala-welcome { animation:impala-welcome-dismiss 3s step-end forwards }
    img.motion-enter { animation:none }
}

.media-article-title,.media-article-body { display:block }
.media-article-title { font-weight:700; margin-block-end:.35em }
.media-article-body { line-height:1.65 }

.article-cards .card-text { gap:.7rem }
.article-cards h3,.article-cards p { margin:0 }
.article-cards .btn { justify-self:start }
.articles-all { margin-block:1rem 0 }
.dental-article { max-width:780px; margin-inline:auto; padding-block:1rem 3rem }
.dental-article h1 { margin-block:.7rem; font-size:clamp(1.85rem,4vw,3.15rem) }
.dental-article p { line-height:1.85; font-size:1.05rem }
.article-lead { font-weight:600 }
.article-image { margin:1.25rem 0; border-radius:16px; overflow:hidden; background:#eef5f0 }
.article-image img { width:100%; max-height:460px; object-fit:contain }

.article-model { margin-block:2rem }
.article-model .article-image { background:#f4f8f5 }
.article-model .article-image img { max-height:320px }
.article-comparison { margin-block:2rem; overflow-x:auto }
.article-comparison table { width:100%; min-width:480px; border-collapse:collapse; table-layout:fixed }
.article-comparison caption { font-size:1.35rem; font-weight:700; text-align:start; margin-block-end:.55rem }
.article-comparison th,.article-comparison td {
    padding:.75rem; border:1px solid var(--line); text-align:start; vertical-align:top; overflow-wrap:anywhere;
}
.article-comparison thead th { background:var(--forest); color:var(--white) }
.article-comparison tbody th { background:#eaf2ec }
.article-selection { padding-inline-start:1.6em }
.article-selection li { margin-block:.55em }

.specialty-detail section[id] { scroll-margin-top:2rem }
.specialty-share { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem; margin-block-start:1.5rem }
.specialty-share [hidden] { display:none }
.specialty-share input { max-width:100%; padding:.55rem }

/* Orthodontics article photos and responsive Google Maps embed */
.orthodontic-figure{margin:1.5rem auto;max-width:900px;text-align:center}
.orthodontic-figure img{display:block;width:100%;height:auto;border-radius:12px}
.orthodontic-table-wrap{max-width:100%;overflow-x:auto;margin:1.25rem 0}
.orthodontic-table{width:100%;border-collapse:collapse;min-width:600px}
.orthodontic-table th,.orthodontic-table td{padding:.7rem;border:1px solid #d8e2df;text-align:start;vertical-align:top}
.orthodontic-table th{background:#176f68;color:#fff}
.contact-map{position:relative;width:100%;height:360px;margin:1rem 0 0;border-radius:14px;overflow:hidden;cursor:pointer}
.contact-map iframe{pointer-events:none}
.contact-map-confirm{position:absolute;inset:0;z-index:2;display:block;background:transparent}
.contact-map-confirm:focus-visible{outline:4px solid var(--copper);outline-offset:-5px}
.company-logo-section{margin:28px auto 0;padding:24px 0 30px;overflow:hidden}
.company-logo-section h2{margin:0 auto 18px;text-align:center}
.company-logo-marquee{overflow:hidden;width:100%;direction:ltr;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.company-logo-track{display:flex;width:max-content;animation:company-logo-loop 180s linear infinite;will-change:transform}
.company-logo-set{display:flex;flex:none;align-items:stretch;gap:24px;padding-inline-end:24px}
.company-logo-item{width:150px;height:126px;margin:0;padding:14px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1px solid var(--line);border-radius:14px;background:var(--white)}
.company-logo-item img{display:block;width:100%;height:64px;object-fit:contain}
.company-logo-item figcaption{max-width:100%;font-size:.78rem;line-height:1.25;text-align:center;font-weight:650;color:var(--ink)}
@keyframes company-logo-loop{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.company-logo-track{animation:none}}
.contact-map iframe{display:block;width:100%;height:100%;border:0}
@media(max-width:600px){.contact-map{height:280px}.orthodontic-table{min-width:560px}}

@media(max-width:520px){.contact-list > div{grid-template-columns:1fr;gap:3px;padding:12px 14px}.company-logo-item{width:128px;height:116px}.company-logo-item img{height:56px}}
