/*
Theme Name: Parsian Clinic
Theme URI: https://www.clinicparsian.com/
Author: Parsian & Dey Clinic
Description: Native WordPress theme for Parsian and Dey Clinics. Preserves existing layouts with the V68 sitewide design system, integrates WordPress Posts with Yoast SEO or Rank Math, supports Gutenberg, and does not require Elementor.
Version: 3.1.27
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: parsian-clinic
*/

/* Global viewport safety: prevent legacy sections and wide flex children from widening the site. */
html,body{max-width:100%;overflow-x:clip}
body{width:100%;}
img,video,iframe,svg,canvas{max-width:100%;}
.site-header,.topline,.site-footer{width:100%;max-width:100%;}
.site-header .header__inner{width:min(1220px,calc(100% - 36px));max-width:100%;min-width:0;box-sizing:border-box;}
.site-header .header__inner>*{min-width:0;}
.site-header .nav{min-width:0;max-width:100%;}
@media(max-width:1100px){.site-header .header__inner{gap:12px}.site-header .nav{flex:1 1 auto;overflow-x:auto;overscroll-behavior-inline:contain}.site-header .brand{flex:0 1 auto}.site-header .header-call{flex:0 0 auto}}
@media(max-width:760px){.site-header .header__inner{width:calc(100% - 28px);gap:10px}.site-header .nav{max-width:100%;}}

/* Insurance page hero stays theme-owned and follows the global header grid. */
.insurance-page--enhanced .page-hero--insurance{width:100%;max-width:100%;overflow:hidden}
.insurance-page--enhanced .page-hero--insurance .container{width:min(1220px,calc(100% - 40px));max-width:100%;margin-inline:auto;box-sizing:border-box}
.insurance-page--enhanced .page-hero--insurance .page-hero__grid{min-width:0;grid-template-columns:minmax(0,1fr) minmax(280px,.92fr);gap:clamp(22px,4vw,56px)}
.insurance-page--enhanced .page-hero--insurance .page-hero__grid>*{min-width:0}
.insurance-page--enhanced .page-hero--insurance h1{max-width:100%;overflow-wrap:anywhere}
.insurance-page--enhanced .page-hero--insurance img{display:block;width:100%;max-width:100%;height:auto;object-fit:cover}
@media(max-width:760px){.insurance-page--enhanced .page-hero--insurance .container{width:calc(100% - 28px)}.insurance-page--enhanced .page-hero--insurance .page-hero__grid{grid-template-columns:1fr;gap:20px}}

/* Homepage grid containment: preserve design while preventing viewport-wide spill. */
.home-page,.home-page main{max-width:100%;min-width:0;overflow-x:clip}
.home-page main>section,.home-page main>section>.container{min-width:0;max-width:100%;box-sizing:border-box}
.home-page main img,.home-page main video,.home-page main iframe{max-width:100%}
.home-page .header__inner,.home-page .header__inner>*{min-width:0;max-width:100%;box-sizing:border-box}
.home-page .header__inner .nav{min-width:0;max-width:100%;}


/* Legal pages: isolated visual system; no global component or site-shell overrides. */
.hp-v23-footer-legal{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-inline-start:auto}
.hp-v23-footer-legal a{display:inline-flex;align-items:center;gap:6px;color:#d7e8f4;font-size:10px;text-decoration:none;padding:5px 9px;border:1px solid #ffffff24;border-radius:999px;transition:background .2s ease,border-color .2s ease,color .2s ease}
.hp-v23-footer-legal a:hover{color:#fff;background:#ffffff12;border-color:#6ddbb5}
@media(max-width:760px){.hp-v23-footer-legal{justify-content:flex-start;margin-inline-start:0}.hp-v23-footer-legal a{font-size:10px}}

/* Accessible keyboard skip link; visually hidden until focused. */
.parsian-skip-link{position:fixed;z-index:99999;top:10px;right:10px;transform:translateY(-160%);padding:10px 16px;border-radius:12px;background:#09245e;color:#fff;font-weight:700;text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.18);transition:transform .18s ease}
.parsian-skip-link:focus{transform:translateY(0);outline:3px solid #61e0bb;outline-offset:3px}
