/*!
 * SAMYAR theme - main stylesheet.
 * Ported 1:1 from the original index.html. Only image URLs and brand colours
 * are now driven by CSS variables injected from the WordPress settings
 * (see inc/enqueue.php). Additions for inner pages are at the bottom.
 */
@font-face{font-family:"Vazirmatn";src:url("../fonts/Vazirmatn-Variable.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
:root{--navy:#001f3f;--orange:#ff6a00;--samyar-font:Tahoma,Arial,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--samyar-font);background:#061c2d;color:white;line-height:1.9}
nav{position:fixed;right:3%;top:12%;z-index:9;display:grid;gap:18px}
nav a{color:inherit;text-decoration:none;padding:5px 12px;border-right:2px solid transparent;font-size:16px}
nav a.active{color:var(--orange);border-color:var(--orange)}
nav{background:#061c2de8;padding:18px;border-radius:4px}
.hero{height:100svh;min-height:650px;position:relative;overflow:hidden;background:#03162c}
.building{position:absolute;left:0;top:0;height:100%;width:43%;background:var(--samyar-hero) left center/auto 100% no-repeat}
.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 25%,#03162c 49%);pointer-events:none}
.brand{position:absolute;left:4%;top:3%;letter-spacing:9px;z-index:2;font:24px Arial}
.headline{position:absolute;left:43%;top:30%;z-index:2;direction:ltr;font-family:Arial;font-weight:300;line-height:1.1}
.headline h1{font-size:clamp(50px,7vw,112px);font-weight:300;margin:0}
.headline p{font-size:clamp(35px,5vw,76px);margin:12px 0}
.headline span{color:var(--orange)}
.intro{font:16px var(--samyar-font)!important;direction:rtl;max-width:440px;line-height:2!important;color:#bcc8d1;margin-top:36px!important}
.scroll{position:absolute;bottom:30px;left:50%;z-index:3;color:white;text-decoration:none;font-size:14px}
section:not(.hero){padding:100px max(18%,calc((100vw - 1120px)/2)) 100px 7%;min-height:85svh;scroll-margin-top:20px}
h2{font-size:40px;margin:0 0 16px}
h2:before{content:'';display:inline-block;width:12px;height:12px;background:var(--orange);margin-left:18px}
p{max-width:750px}
.light{background:#f4f5f6;color:#092b43}
.eyebrow{color:var(--orange-dark,#cc5800);font-size:14px;letter-spacing:2px}
.services{display:grid;grid-template-columns:1fr 1fr;gap:35px;margin-top:50px}
.service{border-top:1px solid #b9c4ce;padding-top:22px}
.number{color:var(--orange-dark,#cc5800);font:18px Arial}
.service h3{font-size:23px;margin:8px 0}
.projects{background:linear-gradient(#051b2ee8,#051b2ee8),var(--samyar-projects-bg) center/cover}
.project-list{margin-top:45px;display:grid;gap:15px}
.project{border:1px solid #ffffff35;padding:22px 28px;background:#061e32dc;text-align:right;color:white;font:inherit;cursor:pointer;display:flex;justify-content:space-between;align-items:center}
.project strong{font-size:26px}
.project span{color:#bcc8d1}
.project:hover{border-color:var(--orange)}
.project-detail{padding:24px;background:#ffffff0a;border-right:3px solid var(--orange)}
[hidden]{display:none}
.about p{font-size:19px}
.process{margin-top:40px;border-top:1px solid #b9c4ce;padding-top:28px;font-size:22px}
.contact{background:#071c2c}
.contact a{color:white;text-decoration:none}
.contact-row{padding:20px 0;border-bottom:1px solid #ffffff25;display:flex;justify-content:space-between;gap:20px}
.contact-row span{color:#b3c1cc}
.footer{margin-top:70px;color:#a7b4bd;font:16px Arial;direction:ltr}
button:focus-visible,a:focus-visible{outline:2px solid var(--orange);outline-offset:5px}
@media(max-width:760px){nav{right:0;left:0;top:0;display:flex;justify-content:center;gap:0;padding:10px 3px;border-radius:0}
nav a{font-size:13px;padding:6px 9px;border-right:0;border-bottom:2px solid transparent}
.hero{min-height:650px}
.building{width:100%;opacity:.45}
.hero:after{background:linear-gradient(0deg,#03162c 10%,#03162c66 90%)}
.brand{top:90px;font-size:19px}
.headline{left:8%;right:8%;top:40%;text-align:center}
.intro{text-align:center;margin:30px auto!important}
section:not(.hero){padding:85px 25px;scroll-margin-top:50px}
h2{font-size:31px}
.services{grid-template-columns:1fr;gap:25px}
.project{padding:18px}
.project span{font-size:14px}
.contact-row{display:block}
.contact-row a{display:block}
.scroll{left:0;right:0;text-align:center}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.hero{transition:height .65s ease,min-height .65s ease}
.hero.compact{height:240px;min-height:240px}
.hero.compact .headline{top:30%;}
.hero.compact .headline h1{font-size:48px}
.hero.compact .headline>p:not(.intro){font-size:32px}
.hero.compact .intro,.hero.compact .scroll{display:none}
section:not(.hero){min-height:calc(100svh - 240px)}
@media(max-width:760px){nav a{font-size:14px}
.hero.compact{height:280px;min-height:280px}
.hero.compact .headline{top:135px}
.hero.compact .headline h1{font-size:42px}
.hero.compact .headline>p:not(.intro){font-size:28px}}
@media(prefers-reduced-motion:reduce){.hero{transition:none}}
.project-image{display:block;width:100%;height:auto;max-height:80svh;object-fit:contain;background:#03162c;margin:0 0 28px}
.project-detail dl{display:grid;grid-template-columns:max-content 1fr;gap:10px 24px}
.project-detail dd{margin:0}
.project-detail dt{color:#bcc8d1}
@media(max-width:760px){.project-detail{padding:16px}
.project-detail dl{grid-template-columns:1fr;gap:4px}
.project-detail dd{margin-bottom:12px}}
/* Subtle silver treatment of the supplied brand mark. */
.brand{display:flex;align-items:center;gap:12px;direction:ltr;text-decoration:none;color:#d7dfe5;letter-spacing:5px}
.brand img,.footer-logo{display:block;object-fit:contain;filter:grayscale(1) invert(1);mix-blend-mode:screen;opacity:.85}
.brand img{width:60px;height:56px}
.brand span{font-size:22px}
.hero::before{content:'';position:absolute;right:15%;bottom:8%;width:clamp(170px,23vw,340px);aspect-ratio:1;background:var(--samyar-watermark) center/contain no-repeat;filter:grayscale(1) invert(1);mix-blend-mode:screen;opacity:.035;pointer-events:none;z-index:1}
.hero.compact::before{width:150px;bottom:-22px;opacity:.025}
.footer{display:flex;align-items:center;gap:12px}
.footer-logo{width:48px;height:44px;opacity:.55}
@media(max-width:760px){.brand{gap:9px}
.brand img{width:48px;height:45px}
.brand span{font-size:19px;letter-spacing:4px}
.hero::before{right:4%;bottom:12%;width:190px;opacity:.03}
.hero.compact::before{width:120px;bottom:-12px}}
.brand img,.footer-logo{filter:none;mix-blend-mode:normal;opacity:1}
.brand img{width:66px;height:60px}
.footer-logo{opacity:.8}
@media(max-width:760px){.brand img{width:54px;height:49px}}
.services{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:30px}
.service{aspect-ratio:1;border:1px solid #cbd2d8;background:#fff;padding:20px;display:flex;flex-direction:column;justify-content:center;border-radius:8px}
.service h3{font-size:21px;margin:7px 0}
.service p{font-size:13px;line-height:1.9;margin:0}
.number{font-size:14px}
#services{scroll-margin-top:75px}
@media(max-width:760px){.services{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.service{padding:14px}
.service h3{font-size:18px}
.service p{font-size:12px}}
@media(max-width:360px){.services{grid-template-columns:1fr}
.service{aspect-ratio:auto;min-height:180px}}
.annab-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;direction:rtl;overflow:hidden;border-radius:6px;margin-bottom:24px}
.annab-pair figure{margin:0;position:relative;min-width:0}
.annab-pair img{display:block;width:100%;height:460px;object-fit:cover}
.annab-pair figcaption{position:absolute;bottom:12px;right:12px;background:rgba(var(--navy-rgb,0,31,63),.8);color:#fff;padding:3px 12px;border-radius:4px;font-size:13px}
@media(max-width:760px){.annab-pair img{height:300px}}

/* ---- Additions for the WordPress theme (inner pages, a11y, WP core classes) ---- */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:#fff;clip:auto!important;clip-path:none;color:#092b43;display:block;font-size:14px;height:auto;line-height:normal;padding:12px 20px;right:8px;top:8px;width:auto;z-index:100000}
.contact-address{font-style:normal}
.headline-title{font-size:clamp(50px,7vw,112px);font-weight:300;margin:0;line-height:1.1}
.hero.compact .headline>p.headline-title{font-size:48px;margin:0}
@media(max-width:760px){.hero.compact .headline>p.headline-title{font-size:42px}}
section h1.page-title{font-size:40px;margin:0 0 16px;line-height:1.5}
section h1.page-title:before{content:'';display:inline-block;width:12px;height:12px;background:var(--orange);margin-left:18px}
@media(max-width:760px){section h1.page-title{font-size:31px}}
.entry-content{max-width:820px}.entry-content p{max-width:none}
.entry-content a,.entry-meta a{color:var(--orange-dark,#cc5800)}
.entry-content img,.entry-content video,.entry-content iframe{max-width:100%;height:auto}
.entry-content table{border-collapse:collapse;max-width:100%;display:block;overflow-x:auto}
.entry-content th,.entry-content td{border:1px solid #cbd2d8;padding:8px 12px}
.entry-content blockquote{margin:24px 0;padding:4px 22px;border-right:3px solid var(--orange)}
.entry-content ul,.entry-content ol{padding-right:24px}
.alignleft{float:left;margin:0 24px 16px 0}.alignright{float:right;margin:0 0 16px 24px}.aligncenter{display:block;margin-left:auto;margin-right:auto}
.wp-caption{max-width:100%}.wp-caption-text,figcaption{font-size:13px}
.entry-meta{color:#5d7384;font-size:14px;margin-bottom:24px}
.post-list{display:grid;gap:18px;margin-top:35px}
.post-card{border-top:1px solid #b9c4ce;padding-top:18px}
.post-card h2{font-size:24px;margin:0 0 6px}.post-card h2:before{display:none}
.post-card a{color:inherit;text-decoration:none}.post-card a:hover{color:var(--orange-dark,#cc5800)}
.post-card p{margin:6px 0 0}
.navigation.pagination{margin-top:40px}.nav-links{display:flex;gap:10px;flex-wrap:wrap}
.nav-links a,.nav-links span{padding:6px 14px;border:1px solid #cbd2d8;text-decoration:none;color:inherit;border-radius:4px}
.nav-links .current{background:var(--orange);border-color:var(--orange);color:#fff}
.search-form{display:flex;gap:10px;margin-top:24px;max-width:520px}
.search-form input[type=search]{flex:1;padding:10px 14px;border:1px solid #cbd2d8;font:inherit;border-radius:4px}
.search-form input[type=submit]{padding:10px 20px;border:0;background:var(--orange);color:#fff;font:inherit;cursor:pointer;border-radius:4px}
.project-detail.is-single{padding:24px}
.site-footer{background:#071c2c;padding:50px max(18%,calc((100vw - 1120px)/2)) 50px 7%}.site-footer .footer{margin-top:0}
@media(max-width:760px){.site-footer{padding:40px 25px}}
a.project{text-decoration:none}
