/* Site-wide header + footer – dental clinic design, RTL.
   Loaded on every page: before dental-home.css on the home page, after medicare.css on inner pages
   (selectors are written to win over the older medicare.css header/footer rules). */
:root{--sky:#03a9f4;--blue:#0277bd;--sky-soft:#e1f5fe;--navy:#1f3a56;--navy-2:#16293d;--cloud:#f4f6f8;--text:#5b6b7b;--line:#e3e8ee;--radius:20px;--ease:cubic-bezier(.22,1,.36,1);--font:Rubik,Heebo,Arial,sans-serif}

/* ---------- Header (boxed, floating) ---------- */
.header{position:fixed;top:20px;left:0;right:0;z-index:50;background:transparent;box-shadow:none;font-family:var(--font);transition:top .3s var(--ease)}
.header.is-stuck{top:10px;box-shadow:none}
.header .header-inner{width:calc(100% - 80px);max-width:1280px;margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;height:84px;padding-inline:28px;background:#ffffffeb;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:var(--radius);box-shadow:0 10px 40px #1f3a561f;transition:height .3s var(--ease),box-shadow .3s ease}
.header.is-stuck .header-inner{height:74px;box-shadow:0 12px 40px #1f3a5633}
.admin-bar .header{top:52px}.admin-bar .header.is-stuck{top:42px}
.header .brand{display:flex;flex-direction:column;color:var(--navy);font-size:26px;font-weight:700;letter-spacing:0;line-height:1.1}
.header .brand small{font-size:12px;font-weight:500;color:var(--blue);margin-top:4px;letter-spacing:0}
.header .brand img{max-height:52px;width:auto}
.header .site-nav{display:flex;gap:6px;font-size:16px;font-weight:500;color:var(--navy)}
.header .site-nav a{position:relative;padding:10px 14px;border:0;border-radius:30px;text-decoration:none;transition:color .2s ease,background .2s ease}
.header .site-nav a:hover,.header .site-nav a[aria-current]{color:var(--blue);background:var(--sky-soft);text-decoration:none}
.header .header-actions{display:flex;align-items:center;gap:12px}
.header .button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:12px 26px;border:2px solid var(--blue);border-radius:8px;background:var(--blue);color:#fff;font-weight:600;font-size:15px;line-height:1.2;white-space:nowrap;overflow:visible;transition:background .25s ease,border-color .25s ease,transform .2s var(--ease)}
.header .button:before,.header .button span{display:none}
.header .button:hover,.header .button:focus,.header .button:active{color:#fff}
@media(hover:hover) and (pointer:fine){.header .button:hover{background:var(--navy);border-color:var(--navy);color:#fff}}
.header .button:active{transform:scale(.97)}
.header .whatsapp-link{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:#25d366;color:#fff;transition:transform .25s var(--ease),box-shadow .25s ease}
.header .whatsapp-link:hover{transform:translateY(-2px);box-shadow:0 6px 16px #25d36655}
.header .menu-toggle{display:none}

/* ---------- Footer ---------- */
.clinic-footer{position:relative;overflow:hidden;margin:0;background:var(--navy);color:#ffffffbf;padding:80px 0 30px;border-radius:28px 28px 0 0;font-family:var(--font)}
.clinic-footer .clinic-footer-inner{position:relative;width:calc(100% - 80px);max-width:1280px;margin-inline:auto}
.clinic-footer .contact-heading{padding-bottom:50px}
.clinic-footer .contact-heading p{color:#7fd3fa;font-size:15px;font-weight:600;margin:0 0 12px}
.clinic-footer .contact-heading h2{color:#fff;font-size:clamp(30px,3.4vw,44px);font-weight:700;line-height:1.2;letter-spacing:-.5px}
.clinic-footer .clinic-footer-columns{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:40px;max-width:none;margin:0;padding:0 0 56px}
.clinic-footer-columns section{flex:0 1 auto;min-width:220px;padding:30px 0}
.clinic-footer-columns section:first-child{padding:30px;background:#ffffff0f;border-radius:var(--radius)}
.clinic-footer-columns section:not(:first-child){padding-inline:0}
.clinic-footer .clinic-footer-columns h2{color:#fff;font-size:22px;font-weight:600;line-height:1.3;letter-spacing:0;margin:0 0 18px}
.clinic-footer .clinic-footer-columns p,.clinic-footer .clinic-footer-columns a{display:block;font-size:16px;line-height:1.9;margin:0}
.clinic-footer .clinic-footer-columns a{position:relative;padding-inline-start:24px;margin:6px 0;text-decoration:none;transition:color .2s ease}
.clinic-footer .clinic-footer-columns a:before{content:"";position:absolute;right:0;top:.62em;width:10px;height:10px;border-radius:50%;border:2px solid var(--sky)}
.clinic-footer .clinic-footer-columns a:hover,.clinic-footer .clinic-footer-columns a:focus-visible{color:#7fd3fa;text-decoration:none}
.clinic-footer .clinic-contact-link{color:#fff;font-weight:600}
.clinic-footer .clinic-footer-columns .footer-icon{display:inline-block;vertical-align:-3px;margin-inline-end:8px;color:var(--sky)}
.clinic-footer .clinic-footer-columns a:has(.footer-icon){padding-inline-start:0}
.clinic-footer .clinic-footer-columns a:has(.footer-icon):before{display:none}
.clinic-footer .clinic-footer-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;padding-top:26px;border-top:1px solid #ffffff1a;font-size:14px;color:#ffffff99}
.clinic-footer .clinic-footer-bottom nav{display:flex;flex-wrap:wrap;gap:24px}
.clinic-footer .clinic-footer-bottom a{font-size:14px}
.clinic-footer .clinic-footer-bottom a:hover{color:#fff}

.clinic-footer .footer-social{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:22px 0 0;padding:0}
.clinic-footer .clinic-footer-columns .footer-social a{display:grid;place-items:center;width:40px;height:40px;margin:0;padding:0;border-radius:50%;background:var(--sky);color:#fff;transition:background .25s ease,color .25s ease,transform .25s var(--ease)}
.clinic-footer .clinic-footer-columns .footer-social a:before{display:none}
.clinic-footer .clinic-footer-columns .footer-social a:hover,.clinic-footer .clinic-footer-columns .footer-social a:focus-visible{background:#fff;color:var(--navy);transform:translateY(-2px)}
.clinic-footer .footer-social a:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* ---------- Responsive ---------- */
@media(max-width:1180px){.header .site-nav a{padding:10px 9px;font-size:15px}}
@media(max-width:960px){
 .clinic-footer .clinic-footer-inner{width:calc(100% - 40px)}
 .header{top:12px}.admin-bar .header{top:58px}
 .header .header-inner{width:calc(100% - 40px);position:relative;height:72px;min-height:0;padding-inline:18px;gap:12px}
 .header.is-stuck .header-inner{height:68px}
 .header .brand{margin-inline-end:auto;font-size:21px}.header .brand small{font-size:11px}
 .header .menu-toggle{display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;flex:0 0 46px;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:var(--sky-soft);color:var(--blue)}
 .header .menu-toggle span{display:block;width:20px;height:2px;border-radius:2px;background:currentColor;transition:transform .25s var(--ease),opacity .2s ease}
 .menu-open .menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
 .menu-open .menu-toggle span:nth-child(2){opacity:0}
 .menu-open .menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
 .header .site-nav{display:none;position:absolute;top:calc(100% + 10px);right:0;left:0;width:auto;order:0;flex-direction:column;gap:2px;padding:12px;background:#fff;border:0;border-radius:var(--radius);box-shadow:0 20px 40px #1f3a5633;font-size:17px}
 .header.menu-open .site-nav{display:flex}
 .header .site-nav a{padding:14px 16px;font-size:17px;border:0}
 .header .button{min-height:44px;padding:10px 18px;font-size:14px}
 .header .whatsapp-link{flex-basis:44px;width:44px;height:44px}
}
@media(max-width:782px){.admin-bar .header{top:58px}}
@media(max-width:600px){
 .admin-bar .header{top:12px}
 .clinic-footer .clinic-footer-inner{width:calc(100% - 32px)}
 .header .button{display:none}
 .header .header-inner{width:calc(100% - 32px)}
 .clinic-footer{padding:60px 0 26px;border-radius:20px 20px 0 0}
 .clinic-footer .clinic-footer-columns{flex-direction:column;align-items:stretch;gap:8px;padding:40px 0}
 .clinic-footer-columns section:not(:first-child){padding-block:20px 0}
 .clinic-footer .clinic-footer-bottom{flex-direction:column}
}
@media(prefers-reduced-motion:reduce){.header,.header .header-inner,.header .button,.header .whatsapp-link{transition:none}}

/* ---------- Inner pages (articles, text pages): room for the floating header + matching palette ---------- */
body:not(#home){font-family:var(--font);background:#fff}
body:not(#home) .content-masthead{padding-top:150px;background:var(--cloud);border-radius:0 0 28px 28px}
body:not(#home) .content-masthead h1{color:var(--navy);font-weight:700}
body:not(#home) .eyebrow{color:var(--blue)}
body:not(#home) .breadcrumbs a:hover{color:var(--blue)}
body:not(#home) .content-tags span{color:var(--blue);border-color:#b3e5fc;background:#fff}
body:not(#home) .article-body li::marker{color:var(--sky)}
body:not(#home) .article-body a,body:not(#home) .article-sources a{color:var(--blue)}
body:not(#home) .article-note{background:var(--sky-soft);border-inline-start-color:var(--sky)}
body:not(#home) .contents-card a:hover{color:var(--blue)}
body:not(#home) .doctor-card{background:var(--cloud)}
body:not(#home) .doctor-card .button{background:var(--blue);border-color:var(--blue);border-radius:8px}
body:not(#home) main{padding-bottom:60px}
@media(max-width:960px){body:not(#home) .content-masthead{padding-top:118px}}
