/*
Theme Name: Shamsan Studio
Theme URI: https://shamsan.studio/
Author: Shamsan Media
Description: قالب سينمائي داكن لشمسان ميديا — الجهة المشغّلة لخدمات الإعلامي فراس شمسان ودليل سويسرا الرقمي ومنصات القنبوس. يعمل مع إضافة Shamsan Studio Core (الخدمات، الحجز، الأعمال، العملاء).
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: shamsan
*/

html{scroll-behavior:smooth}
body{overflow-x:clip;-webkit-font-smoothing:antialiased}
::selection{background:#FF402D;color:#fff}
:focus-visible{outline:2px solid #FF402D;outline-offset:3px}
img{max-width:100%;height:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}

/* ===== الترويسة: شفافة فوق الواجهة وتصبح داكنة عند التمرير ===== */
header.wp-block-template-part{position:fixed;top:var(--wp-admin--admin-bar--height,0px);inset-inline:0;z-index:200;margin:0}
.sm-header{padding-block:.85rem;transition:background .3s,box-shadow .3s,padding .3s;background:linear-gradient(180deg,rgba(11,11,13,.75),rgba(11,11,13,0))}
.sm-header.is-scrolled,.sm-header:hover{background:rgba(11,11,13,.88);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 1px 0 rgba(246,243,239,.08)}
.sm-header.is-scrolled{padding-block:.55rem}
.sm-header-in{gap:1.2rem}
.sm-logo{display:block;line-height:0;flex:none}
.sm-logo img{height:46px;width:auto;transition:height .3s}
.sm-header.is-scrolled .sm-logo img{height:38px}
.sm-navwrap{flex-wrap:nowrap}
.sm-header .wp-block-navigation a{color:#EDE8E1;transition:color .2s}
.sm-header .wp-block-navigation a:hover{color:#FF6A4F}
.sm-header .wp-block-navigation .current-menu-item>a{color:#FF6A4F}
.sm-header .wp-block-navigation__submenu-container{background:#18181D!important;border:1px solid rgba(246,243,239,.12)!important;border-radius:14px;padding:.4rem!important;min-width:280px!important;box-shadow:0 20px 40px rgba(0,0,0,.5)}
.sm-header .wp-block-navigation__submenu-container a{padding:.55rem .8rem!important;border-radius:9px}
.sm-header .wp-block-navigation__submenu-container a:hover{background:rgba(255,64,45,.14)}
.sm-head-cta .wp-block-button__link{padding:.6rem 1.15rem;white-space:nowrap}
.wp-block-navigation__responsive-container.is-menu-open{padding:2rem 1.5rem!important}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{gap:1.1rem!important;font-size:1.25rem}
.wp-block-navigation__responsive-container-open svg,.wp-block-navigation__responsive-container-close svg{width:28px;height:28px}
@media (max-width:900px){.sm-head-cta{display:none}}
@media (max-width:600px){.sm-logo img{height:38px}.sm-header-in{gap:.6rem}}

/* ===== المحتوى ===== */
.sm-main-wide{margin-top:0!important}
.sm-main-wide>*{margin-block:0}
.sm-main{padding-top:clamp(120px,14vw,170px);padding-bottom:clamp(60px,8vw,100px)}
.sm-title{font-size:clamp(2rem,5vw,3.4rem)!important;margin-bottom:1.5rem}
.sm-main .wp-block-post-content a{text-decoration:underline;text-underline-offset:4px}
.sm-posts .wp-block-post{background:#121215;border:1px solid rgba(246,243,239,.08);border-radius:18px;padding:12px 12px 18px;transition:border-color .25s,transform .25s}
.sm-posts .wp-block-post:hover{border-color:rgba(255,64,45,.5);transform:translateY(-3px)}
.sm-posts .wp-block-post>*:not(.wp-block-post-featured-image){padding-inline:8px}
.sm-404{text-align:center;min-height:60vh}
.sm-404-n{font:700 clamp(6rem,20vw,12rem)/1 'Changa',sans-serif;color:#FF402D;text-align:center;margin:0;text-shadow:0 0 60px rgba(255,64,45,.4)}
.wp-block-button.is-style-sm-ghost .wp-block-button__link{background:transparent;border:1.5px solid rgba(246,243,239,.25);color:#F6F3EF}

/* ===== التذييل ===== */
footer.wp-block-template-part{margin-top:0}
.sm-footer{background:#08080A;border-top:1px solid rgba(246,243,239,.08);padding-top:clamp(50px,7vw,80px);padding-bottom:5.5rem;color:#A19C94;font-size:.95rem}
.sm-f-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:clamp(24px,4vw,48px)}
.sm-f-brand img{height:56px;width:auto}
.sm-f-brand p{margin:1rem 0 1.2rem;max-width:380px}
.sm-footer h3{font-size:1rem;color:#fff;margin:0 0 1rem;letter-spacing:.02em}
.sm-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.sm-footer a{color:#D7D2CA}
.sm-footer a:hover{color:#FF6A4F}
.sm-f-contact li{overflow-wrap:anywhere}
.sm-footer .sm-social{display:flex;flex-wrap:wrap;gap:.4rem}
.sm-footer .sm-social a{padding:.35rem .8rem;font-size:.8rem}
.sm-f-cta{display:inline-block;margin-top:1.2rem;font-weight:700;color:#FF6A4F!important}
.sm-f-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.6rem 1.5rem;margin-top:clamp(36px,5vw,56px);padding-top:1.4rem;border-top:1px solid rgba(246,243,239,.08);font-size:.85rem}
.sm-f-bottom p{margin:0}
@media (max-width:900px){.sm-f-grid{grid-template-columns:1fr 1fr}.sm-f-brand{grid-column:1/-1}}
@media (max-width:520px){.sm-f-grid{grid-template-columns:1fr}}
