/*
Theme Name: دپارتمان حق‌شناس — طرح ۲۰۲۶
Theme URI: https://mohsenhaghshenas.com/
Author: Mohsen Haghshenas
Description: قالب پروژه HTML با حفظ محتوای وردپرس، المنتور، ووکامرس و امکانات اختصاصی قبلی.
Version: 1.1.0
Template: hello-elementor
Text Domain: mh-department-2026
Requires PHP: 7.4
*/
.mh-wp-main{padding-block:44px 72px;min-height:50vh}.mh-wp-main .wrap{max-width:1180px}.mh-wp-main h1{font-size:clamp(28px,4vw,48px);line-height:1.5;margin-block:0 28px}.mh-post-content{font-size:17px;line-height:2.1;overflow-wrap:anywhere}.mh-post-content img{max-width:100%;height:auto}.mh-post-content iframe{max-width:100%}.mh-post-content table{display:block;overflow-x:auto;max-width:100%}.mh-post-meta{color:#5b6670;margin-block:12px 24px}.mh-wp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.mh-wp-card{padding:22px;border:1px solid #dce2e6;border-radius:18px;background:#fff}.mh-wp-card h2{font-size:21px;line-height:1.7;margin-block:14px}.mh-wp-card img{width:100%;height:210px;object-fit:cover;border-radius:12px}.mh-wp-card p{color:#56616b;line-height:1.9}.mh-wp-pagination{margin-block:32px}.mh-wp-pagination .page-numbers{display:inline-block;padding:8px 16px;border:1px solid #dce2e6;border-radius:8px;margin:4px}.mh-original-link{display:block;text-align:center;padding:12px 18px;background:#edf5f8;border-bottom:1px solid #dce2e6}.mh-native-latest{padding-block:64px}.mh-native-latest .section-head{margin-bottom:24px}.mh-wp-main .woocommerce{width:100%;max-width:1180px;margin:auto}.mh-wp-main .woocommerce input,.mh-wp-main .woocommerce select{font-size:16px;min-height:44px}.mh-wp-main ul.products li.product h2{font-size:20px}.mh-wp-main .elementor{max-width:100%}body.admin-bar .site-header{top:32px}:focus-visible{outline:3px solid #157598;outline-offset:4px}.mh-wp-main .woocommerce-notices-wrapper{margin-bottom:24px}.mh-wp-main .entry-content a{overflow-wrap:anywhere}
@media(max-width:850px){.mh-wp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.mh-wp-grid{grid-template-columns:1fr}.mh-wp-main{padding-block:28px 48px}.mh-wp-card{padding:18px}.mh-post-content{font-size:16px}body.admin-bar .site-header{top:46px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* UI/UX review, 2026-10-11. Existing brand tokens and all content are retained. */
.request-form input,.request-form textarea,.request-form button.form-select{font-size:16px}
.request-form input::placeholder,.request-form textarea::placeholder{color:#526779;opacity:1}
.request-form{scroll-margin-top:120px}
.mh-required-note{margin:0 0 22px;color:#43596c}
.mh-field-error{color:#922e2e;font-size:15px;line-height:1.8;margin:6px 0 16px}
.request-form [aria-invalid=true]{border-color:#922e2e!important}
.mh-error-summary{background:#fff5f3;border:1px solid #b9473c;border-radius:12px;padding:18px;margin-bottom:24px;color:#74261e}
.mh-error-summary h3{font-size:18px;margin:0 0 10px}
.mh-error-summary ul{margin:0;padding-inline-start:24px}
.mh-error-summary a{color:#74261e;text-decoration:underline;text-underline-offset:3px}
.mh-request-options{margin-block:20px;padding:16px;background:#f7f9f7}
.mh-request-options summary{min-height:44px;line-height:1.8;align-content:center;font-weight:700;cursor:pointer}
.mh-request-options .form-section{margin-top:20px}
body:has(.request-form) main>.page-hero{padding-block:28px}
body:has(.request-form) .page-hero h1{font-size:clamp(28px,3.2vw,40px);line-height:1.5}
body:has(.request-form) .page-hero .studio-feature-photo{height:220px;max-height:220px;width:100%;object-fit:cover;object-position:center 28%}
body:has(.request-form) .split-feature{grid-template-columns:minmax(0,1.7fr) minmax(180px,.7fr);gap:36px}
body:has(.request-form) .request-layout{grid-template-columns:minmax(0,1.7fr) minmax(220px,.8fr);gap:36px}
body:has(.request-form) .request-form{grid-column:1;grid-row:1}
body:has(.request-form) .request-info{grid-column:2;grid-row:1}
body:has(.request-form) main>.section{padding-block:32px}
.mh-form-start{margin-top:16px!important}
#main:has(>.persona-home-flow){display:flex;flex-direction:column}
.persona-home-flow{display:contents}
#main>.persona-panel{order:-1;align-self:center;width:calc(100% - 48px);padding:20px;margin-block:20px}
.persona-home-flow>#hero{order:-2}
.persona-home-flow>.wrap{width:calc(100% - 48px);align-self:center}
.home-hero{padding-top:28px!important;padding-bottom:32px!important}
.home-hero h1{font-size:clamp(32px,3.7vw,48px);line-height:1.55}
.home-hero .spatial-stage{max-height:440px}
.language-bar{padding-block:0;gap:12px}
.language-picker-label{display:none}
.language-picker summary{font-size:14px;padding:4px 10px;min-height:44px}
.spatial-toggle{min-height:44px}
.spatial-toggle span,.spatial-toggle small{display:none}
.department-header{padding-block:10px}
.mh-menu-content{display:none}
.mh-education-entry{margin-block:20px;padding:20px 24px;border:1px solid #cedde0;background:#f3f8f7;border-radius:14px;display:flex;gap:24px;align-items:center;justify-content:space-between}
.mh-education-entry strong{font-size:20px}
.mh-education-entry p{font-size:14px;line-height:1.9;max-width:58ch;margin:6px 0 0;color:#43596c}
.mh-education-entry .actions{flex-shrink:0;flex-wrap:wrap;gap:10px;margin:0}
.mh-education-entry .btn{min-height:44px;font-size:14px}
.mh-post-content>.entry-content:not(:has(.elementor)){max-width:760px;margin-inline:auto;font-size:18px;line-height:2}
.mh-post-content>h1,.mh-post-content>.mh-post-meta{max-width:760px;margin-inline:auto}
.mh-post-content>h1{font-size:clamp(28px,3vw,38px);line-height:1.65}
.mh-post-content>.entry-content p{margin-block:0 1.3em}
.mh-article-toc{max-width:760px;margin:24px auto;padding:20px 24px;border:1px solid #cedde0;border-radius:12px;background:#f3f8f7}
.mh-article-toc a{display:block;min-height:44px;line-height:1.8;padding-block:6px;text-decoration:underline;text-underline-offset:4px}
.mh-post-content .entry-content [id]{scroll-margin-top:120px}
.mh-wp-main ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.mh-wp-main ul.products:before,.mh-wp-main ul.products:after{display:none}
.mh-wp-main ul.products li.product{float:none;width:auto;margin:0;padding:22px;border:1px solid #dce2e6;border-radius:16px;background:white}
.mh-wp-main ul.products li.product a.button{min-height:44px;line-height:1.7}
.mh-wp-main ul.products li.product .price{color:#174e3d;font-size:18px;line-height:1.9}
@media(max-width:1000px){.mh-education-entry{flex-direction:column;align-items:flex-start}.mh-wp-main ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){
 .language-area{display:none}
 .department-header{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding-block:12px}
 .department-header>.brand{grid-column:1;justify-content:flex-start;gap:8px}
 .department-header .department-wordmark{font-size:13px;line-height:1.7}
 .department-header .brand small{font-size:11px}
 .department-header .official-logo{width:38px;min-width:38px;height:50px}
 .department-header .official-logo img{width:100%;height:100%;object-fit:contain}
 .department-navigation{grid-column:2;grid-row:1}
 .department-header>.btn{grid-column:1/-1;justify-self:stretch;margin:0;min-height:44px;justify-content:center}
 .mobile-navigation>summary{font-size:13px;gap:5px;padding:8px;min-height:44px}
 .mobile-navigation>summary .lucide-chevron-down{display:none}
 .mh-menu-enhanced>nav{display:none!important}
 .mh-menu-enhanced[open]>.mh-menu-content{display:block;position:absolute;inset-inline:0;top:100%;z-index:70;max-height:min(65dvh,520px);overflow-y:auto;overscroll-behavior:contain;padding:16px;background:#fff;border:1px solid #c4d4df;border-radius:14px;box-shadow:0 16px 32px #18344e20}
 .mh-menu-primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .mh-menu-content a{display:flex;align-items:center;min-height:44px;font-size:14px;line-height:1.7;padding:10px 12px;border:1px solid #dce5e8;border-radius:9px;color:#18344e;background:#f8faf9}
 .mh-menu-content a[aria-current]{background:#edf5f3;border-color:#174e3d}
 .mh-menu-group{margin-top:12px;border-top:1px solid #dce5e8;padding-top:8px}
 .mh-menu-group>summary{cursor:pointer;min-height:44px;align-content:center;font-weight:700;font-size:14px;line-height:1.8}
 .mh-menu-group nav{display:grid;gap:8px;margin-top:8px}
 body:has(.request-form) .split-feature{grid-template-columns:minmax(0,1fr);gap:16px}
 body:has(.request-form) .page-hero .studio-feature-photo{display:none}
 body:has(.request-form) .request-layout{display:flex;flex-direction:column;gap:24px}
 body:has(.request-form) .request-form{order:-1;width:100%;box-sizing:border-box}
 body:has(.request-form) .request-info{width:100%}
 body:has(.request-form) main>.page-hero{padding-block:24px}
 body:has(.request-form) .page-hero .department-label{display:none}
 body:has(.request-form) .page-hero h1 br{display:block}
 body:has(.request-form) .page-hero .lead{font-size:16px;line-height:1.9;margin-block:12px}
 body:has(.request-form) main>.section{padding-block:24px}
 .mh-request-options{padding:12px}
 .mh-request-options summary{font-size:14px}
 .mh-education-entry{padding:16px;margin-block:16px;gap:12px}
 .mh-education-entry strong{font-size:18px}
 .mh-post-content>.entry-content:not(:has(.elementor)){font-size:17px;line-height:2}
 .home-hero .department-label{display:none}
 .home-hero .audience-copy h1{font-size:clamp(30px,7.2vw,38px)}
 .home-hero .audience-copy .lead{font-size:16px;line-height:1.9}
 .home-hero .audience-kicker{font-size:13px}
 .home-hero .audience-copy>.eyebrow{margin-block:8px}
 .home-hero .actions{margin-block:18px}
 #main>.persona-panel,.persona-home-flow>.wrap{width:calc(100% - 32px)}
}
@media(max-width:480px){.mh-wp-main ul.products{grid-template-columns:minmax(0,1fr)}.department-header .department-wordmark{font-size:12px}.department-header .brand small{display:none}.home-hero{padding-block:20px!important}.mh-education-entry .actions{width:100%}.mh-education-entry .btn{flex:1;white-space:normal;text-align:center}}

.mh-wp-main ul.products li.product img{width:100%;aspect-ratio:16/10;height:auto;object-fit:contain;background:#f3f6f5;border-radius:10px}
.mh-wp-main ul.products li.product a.button{background:#174e3d;color:white;border-radius:10px;padding:12px 18px;text-align:center;display:block}
.mh-wp-main ul.products li.product h2{font-size:20px;line-height:1.8;color:#18344e;margin-block:16px}
.mh-wp-main ul.products li.product .onsale{background:#174e3d;color:white;padding:8px;border-radius:8px}
