/*
Theme Name: Impala Dental
Description: Multilingual dental clinic site with conversational setup and WhatsApp appointments.
Version: 1.1.0
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 }
.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; z-index:5; inset-inline-end:24px; bottom:max(20px,env(safe-area-inset-bottom)); 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:repeat(2,minmax(0,1fr)) }
    .whatsapp { inset-inline-start:12px; inset-inline-end:auto; bottom:max(12px,env(safe-area-inset-bottom)); max-width:calc(100% - 24px) }
}
@media(max-width:370px) { .cards { grid-template-columns: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 }
.photo-label { position:absolute; inset-inline-end:12px; bottom:12px; background:#132f2be8; color:#fff; padding:.25rem .6rem; border-radius:6px; font-size:.78rem }
.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)) }
}
