:root{
  --radius-btn:999px;
  --radius-card:20px;
  --radius-sm:12px;
  --maxw:1180px;
  --shadow-gold: 0 18px 45px -18px rgba(201,158,74,.35);
}
html[data-theme="dark"]{
  --bg:#0C0A08;
  --bg-soft:#120F0B;
  --surface:#1A1611;
  --surface-2:#221C15;
  --text:#F3ECDC;
  --text-dim:#B7AD98;
  --text-faint:#7C7565;
  --gold:#D8AE5C;
  --gold-soft:#F0CE8C;
  --wine:#C4707A;
  --border:rgba(216,174,92,.16);
  --border-strong:rgba(216,174,92,.32);
  --glow: radial-gradient(circle at 78% 8%, rgba(216,174,92,.16), transparent 42%);
}
html[data-theme="light"]{
  --bg:#FAF6EC;
  --bg-soft:#F1EADA;
  --surface:#FFFFFF;
  --surface-2:#F3ECDB;
  --text:#22190F;
  --text-dim:#5C523F;
  --text-faint:#8A8067;
  --gold:#A5732A;
  --gold-soft:#8A5E22;
  --wine:#8A3440;
  --border:rgba(34,25,15,.1);
  --border-strong:rgba(34,25,15,.2);
  --glow: radial-gradient(circle at 78% 8%, rgba(165,115,42,.1), transparent 42%);
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} *{animation-duration:.001ms !important; transition-duration:.001ms !important;} }
body{
  font-family:'Vazirmatn',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.9;
  overflow-x:hidden;
  transition:background .4s ease, color .4s ease;
}
h1,h2,h3,.display{font-family:'Aref Ruqaa','Vazirmatn',serif; font-weight:700;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
ul{list-style:none;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 28px;}
:focus-visible{outline:2px solid var(--gold); outline-offset:3px; border-radius:4px;}

header{position:fixed; inset-inline:0; top:0; z-index:100; transition:background .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;}
header.scrolled{background:color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter:blur(14px); box-shadow:0 1px 0 var(--border);}
.nav{display:flex; align-items:center; justify-content:space-between; padding:20px 0; gap:20px;}
.brand{display:flex; align-items:center; gap:12px;}
.brand-seal{width:38px; height:38px; flex:none;}
.brand-text{line-height:1.35;}
.brand-text strong{display:block; font-family:'Aref Ruqaa',serif; font-size:18px; color:var(--text);}
.brand-text span{display:block; font-size:11px; color:var(--gold); letter-spacing:.5px;}
nav.links{display:flex; align-items:center; gap:6px; background:var(--surface); border:1px solid var(--border); padding:6px; border-radius:var(--radius-btn);}
nav.links a{color:var(--text-dim); font-size:14px; padding:9px 18px; border-radius:var(--radius-btn); transition:background .25s ease, color .25s ease;}
nav.links a:hover, nav.links a:focus-visible{background:var(--surface-2); color:var(--text);}
nav.links a[aria-current="page"]{background:var(--gold); color:var(--bg); font-weight:700;}
.nav-right{display:flex; align-items:center; gap:10px;}
.theme-toggle{
  width:44px; height:44px; border-radius:50%; border:1px solid var(--border); background:var(--surface);
  display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--gold);
  transition:background .25s ease, transform .25s ease, border-color .25s ease;
}
.theme-toggle:hover{border-color:var(--border-strong); transform:translateY(-2px);}
.theme-toggle svg{width:19px; height:19px;}
.icon-sun{display:none;} html[data-theme="light"] .icon-sun{display:block;} html[data-theme="light"] .icon-moon{display:none;}
.nav-cta{
  display:inline-flex; align-items:center; gap:8px; background:var(--gold); color:var(--bg);
  padding:11px 22px; font-size:13.5px; font-weight:700; border-radius:var(--radius-btn);
  box-shadow:var(--shadow-gold); transition:transform .25s ease, filter .25s ease;
}
.nav-cta:hover{transform:translateY(-2px); filter:brightness(1.08);}
.burger{display:none; flex-direction:column; gap:5px; background:var(--surface); border:1px solid var(--border); border-radius:12px; cursor:pointer; padding:12px;}
.burger span{width:20px; height:2px; background:var(--text); border-radius:2px;}
.mobile-menu{display:none; position:fixed; inset:0; z-index:99; background:var(--bg); flex-direction:column; align-items:center; justify-content:center; gap:30px;}
.mobile-menu.open{display:flex;}
.mobile-menu a{color:var(--text); font-size:22px; font-family:'Aref Ruqaa',serif;}
.mobile-menu a[aria-current="page"]{color:var(--gold);}
.mobile-close{position:absolute; top:24px; left:24px; background:var(--surface); border:1px solid var(--border); border-radius:50%; width:44px; height:44px; color:var(--text); font-size:22px; cursor:pointer;}

.hero{position:relative; background:var(--bg); background-image:var(--glow); padding:170px 0 120px; overflow:hidden;}
.hero::after{
  content:''; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size:34px 34px; mask-image:linear-gradient(180deg, black, transparent 75%);
}
.hero-grid{display:grid; grid-template-columns:1.15fr .85fr; gap:64px; align-items:center; position:relative;}
.eyebrow{display:inline-flex; align-items:center; gap:10px; font-size:12.5px; letter-spacing:1.4px; color:var(--gold); border:1px solid var(--border-strong); padding:7px 16px; border-radius:var(--radius-btn); margin-bottom:28px; background:var(--surface);}
.eyebrow .dot{width:6px; height:6px; border-radius:50%; background:var(--gold);}
.hero h1{font-size:clamp(32px,4.4vw,52px); line-height:1.45; color:var(--text); margin-bottom:22px;}
.hero h1 em{font-style:normal; color:var(--gold-soft); background:linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--gold) 28%, transparent) 62%);}
.hero-name-row{display:flex; align-items:center; gap:14px; margin-bottom:20px; flex-wrap:wrap;}
.hero-name-row .name{font-family:'Aref Ruqaa',serif; font-size:21px; color:var(--text);}
.hero-name-row .sep{width:1px; height:18px; background:var(--border-strong);}
.hero-name-row .title{font-size:14px; color:var(--text-dim);}
.hero p.lede{max-width:520px; font-size:16px; color:var(--text-dim); line-height:2; margin-bottom:36px;}
.badges{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:44px;}
.badge{font-size:12.5px; color:var(--gold); border:1px solid var(--border); padding:8px 16px; border-radius:var(--radius-btn); background:var(--surface);}
.hero-ctas{display:flex; gap:16px; flex-wrap:wrap;}
.btn{display:inline-flex; align-items:center; gap:10px; font-size:14.5px; padding:15px 28px; border-radius:var(--radius-btn); transition:transform .25s ease, filter .25s ease, background .25s ease, border-color .25s ease;}
.btn-primary{background:var(--gold); color:var(--bg); font-weight:700; box-shadow:var(--shadow-gold);}
.btn-primary:hover{transform:translateY(-2px); filter:brightness(1.08);}
.btn-outline{border:1px solid var(--border-strong); color:var(--text); background:var(--surface);}
.btn-outline:hover{border-color:var(--gold); color:var(--gold-soft); transform:translateY(-2px);}

.seal-wrap{position:relative; display:flex; align-items:center; justify-content:center;}
.seal{width:min(100%,340px); animation:spin-slow 70s linear infinite; filter:drop-shadow(0 20px 40px rgba(0,0,0,.25));}
@keyframes spin-slow{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion: reduce){.seal{animation:none;}}
.seal-ring{fill:none; stroke:var(--gold);}
.seal-ring-outer{stroke-width:1;}
.seal-ring-inner{stroke-width:.6; opacity:.6;}
.seal-icon path, .seal-icon line, .seal-icon circle{stroke:var(--gold-soft); fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;}
.seal-text{fill:var(--gold-soft); font-size:10.5px; letter-spacing:2.5px; font-family:'Vazirmatn',sans-serif;}

.page-banner{position:relative; background:var(--bg); background-image:var(--glow); padding:158px 0 70px; overflow:hidden;}
.page-banner::after{
  content:''; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size:34px 34px; mask-image:linear-gradient(180deg, black, transparent 75%);
}
.page-banner .wrap{position:relative;}
.breadcrumb{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-faint); margin-bottom:20px;}
.breadcrumb a:hover{color:var(--gold);}
.page-banner h1{font-size:clamp(28px,3.8vw,44px); color:var(--text);}
.page-banner p{color:var(--text-dim); margin-top:16px; font-size:15.5px; max-width:560px;}

section{padding:112px 0;}
.page-banner + section{padding-top:70px;}
.section-head{max-width:640px; margin-bottom:64px;}
.kicker{display:flex; align-items:center; gap:12px; font-size:12.5px; letter-spacing:1.4px; color:var(--wine); margin-bottom:16px;}
.kicker::before{content:''; width:28px; height:1px; background:var(--wine);}
.section-head h2{font-size:clamp(26px,3.2vw,38px); color:var(--text); line-height:1.55;}
.section-head p{color:var(--text-dim); margin-top:16px; font-size:15.5px; max-width:520px;}
.section-soft{background:var(--bg-soft);}

.about-grid{display:grid; grid-template-columns:.72fr 1.28fr; gap:70px; align-items:start;}
.monogram-card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-card); padding:48px 30px; text-align:center; box-shadow:0 24px 50px -30px rgba(0,0,0,.35);}
.monogram{width:118px; height:118px; margin:0 auto 22px; border-radius:50%; border:1px solid var(--border-strong); background:var(--surface-2); display:flex; align-items:center; justify-content:center; font-family:'Aref Ruqaa',serif; font-size:36px; color:var(--gold);}
.monogram-card h3{color:var(--text); font-size:19px; margin-bottom:6px;}
.monogram-card .role{color:var(--gold); font-size:13px; margin-bottom:26px;}
.cred-list{text-align:right; border-top:1px solid var(--border); padding-top:22px;}
.cred-list li{display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:var(--text-dim); padding:9px 0;}
.cred-list li svg{flex:none; width:16px; height:16px; margin-top:3px; stroke:var(--gold); fill:none; stroke-width:1.8;}

.about-copy p{font-size:16px; color:var(--text-dim); margin-bottom:22px; max-width:600px;}
.pillars{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:44px;}
.pillar{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:22px 20px;}
.pillar h4{font-family:'Aref Ruqaa',serif; font-size:16.5px; margin-bottom:10px; color:var(--gold-soft);}
.pillar p{font-size:13.5px; color:var(--text-dim); line-height:1.85;}

.services-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.service-card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-card); padding:36px 30px; position:relative; transition:border-color .3s ease, transform .3s ease, box-shadow .3s ease;}
.service-card:hover{border-color:var(--border-strong); transform:translateY(-4px); box-shadow:0 24px 50px -28px rgba(0,0,0,.35);}
.service-num{position:absolute; top:26px; left:28px; font-family:'Aref Ruqaa',serif; font-size:13px; color:var(--gold); opacity:.7;}
.service-icon-wrap{width:52px; height:52px; border-radius:16px; background:var(--surface-2); display:flex; align-items:center; justify-content:center; margin-bottom:22px;}
.service-icon{width:24px; height:24px;}
.service-icon path, .service-icon line, .service-icon circle, .service-icon polyline{stroke:var(--wine); fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;}
.service-card h3{font-size:17.5px; margin-bottom:12px; color:var(--text);}
.service-card p{font-size:14px; color:var(--text-dim); line-height:1.9;}

.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start;}
.contact-cards{display:flex; flex-direction:column; gap:16px;}
.contact-card{display:flex; align-items:flex-start; gap:18px; border:1px solid var(--border); border-radius:var(--radius-sm); padding:22px 24px; background:var(--surface); transition:border-color .25s ease, transform .25s ease;}
.contact-card:hover{border-color:var(--border-strong); transform:translateY(-2px);}
.contact-card .ic{flex:none; width:44px; height:44px; border-radius:12px; background:var(--surface-2); display:flex; align-items:center; justify-content:center;}
.contact-card svg{width:19px; height:19px; stroke:var(--gold); fill:none; stroke-width:1.6;}
.contact-card .label{font-size:12px; color:var(--text-faint); letter-spacing:.5px; margin-bottom:6px;}
.contact-card .value{font-size:15.5px; color:var(--text);}
.contact-card a.value:hover{color:var(--gold-soft);}
.map-frame{border:1px solid var(--border); border-radius:var(--radius-card); overflow:hidden; height:100%; min-height:340px;}
.map-frame iframe{width:100%; height:100%; min-height:340px; border:0; filter:grayscale(.2) contrast(1.05);}
html[data-theme="dark"] .map-frame iframe{filter:grayscale(.3) invert(.92) contrast(.9);}

footer{background:var(--bg-soft); color:var(--text-faint); padding:56px 0 30px; border-top:1px solid var(--border);}
.foot-grid{display:flex; justify-content:space-between; flex-wrap:wrap; gap:30px; padding-bottom:36px; border-bottom:1px solid var(--border);}
.foot-brand strong{display:block; color:var(--text); font-family:'Aref Ruqaa',serif; font-size:18px; margin-bottom:6px;}
.foot-brand span{font-size:13px;}
.foot-links{display:flex; gap:8px; background:var(--surface); border:1px solid var(--border); padding:6px; border-radius:var(--radius-btn); height:fit-content;}
.foot-links a{font-size:13.5px; color:var(--text-dim); padding:8px 16px; border-radius:var(--radius-btn);}
.foot-links a:hover{color:var(--text); background:var(--surface-2);}
.foot-links a[aria-current="page"]{color:var(--gold); font-weight:700;}
.foot-bottom{padding-top:24px; font-size:12.5px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}
.foot-bottom .credit{color:var(--text-faint);}
.foot-bottom .credit a{color:var(--gold);}

@media (max-width: 960px){
  nav.links{display:none;}
  .burger{display:flex;}
  .hero-grid{grid-template-columns:1fr; gap:56px;}
  .seal-wrap{order:-1;}
  .seal{width:220px;}
  .about-grid, .contact-grid{grid-template-columns:1fr; gap:44px;}
  .services-grid{grid-template-columns:1fr;}
  .pillars{grid-template-columns:1fr;}
}
@media (max-width: 560px){
  .wrap{padding:0 20px;}
  .hero{padding:150px 0 90px;}
  .page-banner{padding:140px 0 60px;}
  .hero-ctas{flex-direction:column; align-items:stretch;}
  .foot-grid{flex-direction:column;}
  .foot-bottom{flex-direction:column;}
}
