@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root{
  /* colors sampled directly from the reference hero design */
  --navy-900:#0E1730;
  --navy-800:#161F3B;
  --ink:#15213D;
  --muted:#5B6472;
  --muted-light:#93A0B3;
  --line:#E7EAF0;
  --bg:#FFFFFF;
  --bg-soft:#F7F8FB;
  --gold:#C8963E;
  --flame-1:#E91E8C;
  --flame-2:#8B2FE8;
  --flame-3:#FF7A18;
  --grad: linear-gradient(120deg, var(--flame-1), var(--flame-2) 55%, var(--flame-3));
  --radius-lg:18px;
  --radius-md:12px;
  --shadow-soft:0 16px 40px rgba(14,23,48,.08);
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Vazirmatn', Tahoma, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
img{display:block; max-width:100%; height:auto;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer;}
.wrap{max-width:1240px; margin:0 auto; padding:0 32px;}
:focus-visible{outline:2px solid var(--flame-2); outline-offset:3px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}

/* ============ HEADER ============ */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-row{display:flex; align-items:center; justify-content:space-between; padding:14px 0;}
.brand{display:flex; align-items:center; gap:12px;}
.brand img{width:64px; height:64px; object-fit:contain;}
.brand-text{display:flex; flex-direction:column; line-height:1.25;}
.brand-text b{font-size:18px; font-weight:800; color:#1C71C9; letter-spacing:.5px;}
.brand-text span{font-size:10.5px; color:var(--muted-light); letter-spacing:1px;}

.main-nav ul{display:flex; align-items:center; gap:34px;}
.main-nav a{font-size:14.5px; font-weight:500; color:var(--navy-800); transition:color .15s;}
.main-nav a:hover{color:var(--flame-2);}
.nav-cta{
  background:var(--navy-900); color:#fff !important; padding:10px 22px;
  border-radius:9px; font-weight:600; font-size:13.5px;
}
.nav-toggle{display:none; background:none; border:none; padding:6px;}
.nav-toggle span{display:block; width:22px; height:2px; background:var(--navy-900); margin:5px 0; border-radius:2px;}

/* ============ HERO ============ */
.hero{padding:64px 0 40px;}
.hero-grid{display:grid; grid-template-columns:.95fr 1.2fr; gap:30px; align-items:center;}

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:600; color:var(--flame-2);
  background:#FBF0FF; border:1px solid #F0DBFF; padding:6px 14px;
  border-radius:99px; margin-bottom:22px;
}
.eyebrow i{width:6px; height:6px; border-radius:50%; background:var(--grad); flex-shrink:0;}

.hero h1{
  font-size:44px; font-weight:800; color:var(--navy-900);
  line-height:1.5; letter-spacing:-.5px; margin-bottom:22px;
}
.hero-lead{font-size:16px; color:var(--muted); max-width:480px; margin-bottom:8px;}
.hero-lead-en{
  font-size:12px; color:var(--muted-light); letter-spacing:4px; font-weight:600; margin-bottom:34px;
}

.feature-row{display:flex; gap:36px; margin-bottom:36px;}
.feature-item{display:flex; flex-direction:column; align-items:flex-start; gap:10px;}
.feature-item svg{width:26px; height:26px; stroke:var(--navy-900);}
.feature-item strong{font-size:12.5px; font-weight:700; color:var(--navy-900); display:block;}
.feature-item span{font-size:10px; color:var(--muted-light); letter-spacing:.5px;}

.cta-row{display:flex; gap:14px; margin-bottom:44px;}
.btn{
  padding:14px 26px; border-radius:9px; font-weight:700; font-size:14.5px;
  display:inline-flex; align-items:center; gap:8px; border:1px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{transform:translateY(-2px); box-shadow:var(--shadow-soft);}
.btn-primary{background:var(--navy-900); color:#fff !important;}
.btn-ghost{background:#fff; color:var(--navy-900) !important; border-color:var(--line);}

.stats-row{display:flex; gap:34px; flex-wrap:wrap;}
.stat-item{display:flex; align-items:center; gap:10px;}
.stat-item svg{width:22px; height:22px; stroke:var(--navy-900); flex-shrink:0;}
.stat-num{font-size:19px; font-weight:800; color:var(--navy-900); display:block;}
.stat-label{font-size:11px; color:var(--muted); display:block;}

.hero-visual{position:relative;}
.hero-visual img{width:100%; height:auto;}

/* ============ SECTION HEADERS ============ */
.section{padding:96px 0;}
.section-soft{background:var(--bg-soft);}
.sec-head{max-width:600px; margin:0 auto 52px; text-align:center;}
.sec-eyebrow{font-size:12px; font-weight:700; color:var(--flame-2); letter-spacing:1px; margin-bottom:12px;}
.sec-title{font-size:30px; font-weight:800; color:var(--navy-900); margin-bottom:14px;}
.sec-sub{font-size:15px; color:var(--muted);}

/* ============ SERVICES ============ */
.services-intro{
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; margin-bottom:64px;
}
.services-intro p{font-size:15px; color:var(--muted); margin-bottom:16px;}
.services-intro p:last-child{margin-bottom:0;}
.services-intro-media{position:relative; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-soft);}
.services-intro-media img{width:100%; height:380px; object-fit:cover;}

.services-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.service-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden;
  transition:box-shadow .2s ease, transform .2s ease;
}
.service-card:hover{box-shadow:var(--shadow-soft); transform:translateY(-4px);}
.service-card .service-img{height:190px; overflow:hidden;}
.service-card .service-img img{width:100%; height:100%; object-fit:cover;}
.service-card-body{padding:26px;}
.service-num{
  font-size:11px; font-weight:700; color:var(--flame-2); letter-spacing:1px; margin-bottom:10px; display:block;
}
.service-card h3{font-size:17px; font-weight:700; color:var(--navy-900); margin-bottom:10px;}
.service-card p{font-size:13.5px; color:var(--muted);}

/* ============ PROJECTS ============ */
.projects-toolbar{
  display:flex; align-items:center; justify-content:space-between; margin-bottom:36px; flex-wrap:wrap; gap:16px;
}
.projects-count{font-size:13.5px; color:var(--muted);}
.projects-count b{color:var(--navy-900); font-weight:800;}

.projects-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
}
.project-card{
  position:relative; border-radius:var(--radius-md); overflow:hidden; cursor:pointer;
  background:var(--bg-soft); border:1px solid var(--line);
  transition:transform .25s ease, box-shadow .25s ease;
}
.project-card:hover{transform:translateY(-5px); box-shadow:var(--shadow-soft);}
.project-thumb{position:relative; aspect-ratio:4/3; overflow:hidden;}
.project-thumb img{
  width:100%; height:100%; object-fit:cover; transition:transform .5s ease;
}
.project-card:hover .project-thumb img{transform:scale(1.08);}
.project-thumb::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(14,23,48,.75) 0%, rgba(14,23,48,0) 45%);
}
.project-badge{
  position:absolute; top:10px; left:10px; z-index:2;
  background:rgba(255,255,255,.92); color:var(--navy-900); font-size:10.5px; font-weight:700;
  padding:4px 10px; border-radius:99px; display:flex; align-items:center; gap:4px;
}
.project-info{
  position:absolute; bottom:0; right:0; left:0; z-index:2; padding:14px 16px; text-align:right;
}
.project-info h4{color:#fff; font-size:13.5px; font-weight:700; margin-bottom:4px; line-height:1.4;}
.project-info span{color:#C9D2E0; font-size:11px;}

.projects-more{text-align:center; margin-top:40px;}

/* ============ MODAL / GALLERY ============ */
.modal-overlay{
  position:fixed; inset:0; background:rgba(10,15,30,.72); backdrop-filter:blur(4px);
  display:none; align-items:center; justify-content:center; z-index:200; padding:24px;
}
.modal-overlay.open{display:flex;}
.modal-box{
  background:#fff; border-radius:22px; max-width:920px; width:100%; max-height:88vh;
  overflow:hidden; display:grid; grid-template-columns:1.3fr 1fr; box-shadow:0 30px 80px rgba(0,0,0,.35);
  animation:modalIn .35s cubic-bezier(.2,.8,.3,1);
}
@keyframes modalIn{from{opacity:0; transform:translateY(18px) scale(.98);} to{opacity:1; transform:translateY(0) scale(1);}}

.modal-gallery{position:relative; background:var(--navy-900); min-height:340px;}
.modal-slides{position:relative; width:100%; height:100%; min-height:340px;}
.modal-slide{
  position:absolute; inset:0; opacity:0; transition:opacity .5s ease;
  display:flex; align-items:center; justify-content:center;
}
.modal-slide.active{opacity:1;}
.modal-slide img{width:100%; height:100%; object-fit:cover;}

.modal-nav-btn{
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.3); color:#fff; display:flex; align-items:center; justify-content:center;
  backdrop-filter:blur(6px); transition:background .15s ease;
}
.modal-nav-btn:hover{background:rgba(255,255,255,.3);}
.modal-prev{right:14px;}
.modal-next{left:14px;}

.modal-dots{position:absolute; bottom:16px; right:0; left:0; display:flex; justify-content:center; gap:6px; z-index:5;}
.modal-dots span{width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.35); transition:background .2s, width .2s;}
.modal-dots span.active{background:#fff; width:18px; border-radius:4px;}

.modal-body{padding:36px 32px; display:flex; flex-direction:column; overflow-y:auto;}
.modal-close{
  position:absolute; top:18px; left:18px; z-index:10;
  width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.9);
  border:none; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 14px rgba(0,0,0,.15);
}
.modal-eyebrow{font-size:11.5px; color:var(--flame-2); font-weight:700; letter-spacing:.5px; margin-bottom:10px;}
.modal-body h3{font-size:21px; font-weight:800; color:var(--navy-900); margin-bottom:18px; line-height:1.5;}
.modal-meta{display:flex; flex-direction:column; gap:14px; margin-bottom:20px;}
.modal-meta-item{display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--ink);}
.modal-meta-item svg{width:18px; height:18px; stroke:var(--flame-2); flex-shrink:0;}
.modal-meta-item b{font-weight:700;}
.modal-note{
  margin-top:auto; padding-top:20px; border-top:1px solid var(--line);
  font-size:12.5px; color:var(--muted-light);
}

@media (max-width:720px){
  .modal-box{grid-template-columns:1fr; max-height:92vh;}
  .modal-gallery{min-height:220px;}
}

/* ============ CTA BAND ============ */
.cta-band{padding:0 0 96px;}
.cta-inner{
  max-width:1240px; margin:0 auto; background:var(--navy-900); border-radius:24px;
  padding:60px 52px; display:flex; align-items:center; justify-content:space-between; gap:30px;
  position:relative; overflow:hidden;
}
.cta-inner::before{
  content:''; position:absolute; inset:0; opacity:.18; background:var(--grad);
  -webkit-mask:radial-gradient(circle at 15% 30%, #000 0%, transparent 60%);
          mask:radial-gradient(circle at 15% 30%, #000 0%, transparent 60%);
}
.cta-inner h2{color:#fff; font-size:25px; font-weight:800; position:relative; margin-bottom:8px;}
.cta-inner p{color:#B9C4D4; font-size:13.5px; position:relative;}
.cta-inner .btn-primary{background:#fff; color:var(--navy-900) !important; position:relative; white-space:nowrap;}

/* ============ CONTACT ============ */
.contact-grid{display:grid; grid-template-columns:.9fr 1.1fr; gap:56px;}
.contact-cards{display:flex; flex-direction:column; gap:16px;}
.contact-card{
  display:flex; align-items:flex-start; gap:16px; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius-md); padding:20px;
}
.contact-card .ic{
  width:44px; height:44px; border-radius:11px; background:var(--bg-soft); flex-shrink:0;
  display:flex; align-items:center; justify-content:center; border:1px solid var(--line);
}
.contact-card .ic svg{width:20px; height:20px; stroke:var(--navy-900);}
.contact-card strong{font-size:14px; color:var(--navy-900); display:block; margin-bottom:4px;}
.contact-card span, .contact-card a{font-size:13px; color:var(--muted); line-height:1.7;}
.contact-card a:hover{color:var(--flame-2);}

.map-frame{
  border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--line); min-height:360px;
  box-shadow:var(--shadow-soft);
}
.map-frame iframe{width:100%; height:100%; min-height:360px; border:0;}

/* ============ FOOTER ============ */
footer{background:var(--navy-900); padding:44px 0 26px; color:#9AA6B8;}
.footer-row{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; padding-bottom:26px; border-bottom:1px solid rgba(255,255,255,.08);}
.footer-brand{display:flex; align-items:center; gap:10px;}
.footer-brand img{width:34px; height:34px; object-fit:contain;}
.footer-brand b{color:#fff; font-size:14.5px; font-weight:700;}
.footer-links{display:flex; gap:26px;}
.footer-links a{font-size:13px; color:#9AA6B8;}
.footer-links a:hover{color:#fff;}
.footer-bottom{padding-top:22px; text-align:center; font-size:12px; color:#71809A;}

/* ============ RESPONSIVE ============ */
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr; gap:44px;}
  .hero-visual{order:-1;}
  .services-intro{grid-template-columns:1fr;}
  .projects-grid{grid-template-columns:repeat(3,1fr);}
  .contact-grid{grid-template-columns:1fr;}
  .services-grid{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:760px){
  .main-nav{position:fixed; top:70px; right:0; left:0; background:#fff; border-bottom:1px solid var(--line);
    flex-direction:column; padding:16px 24px; display:none; box-shadow:0 12px 24px rgba(0,0,0,.06);}
  .main-nav.open{display:flex;}
  .main-nav ul{flex-direction:column; align-items:flex-start; gap:16px; width:100%;}
  .nav-toggle{display:block;}
  .hero h1{font-size:32px;}
  .feature-row{gap:22px; flex-wrap:wrap;}
  .stats-row{gap:20px;}
  .services-grid{grid-template-columns:1fr;}
  .projects-grid{grid-template-columns:repeat(2,1fr);}
  .cta-inner{flex-direction:column; text-align:center; padding:40px 28px;}
  .section{padding:64px 0;}
}
@media (max-width:480px){
  .projects-grid{grid-template-columns:1fr 1fr; gap:12px;}
  .wrap{padding:0 18px;}
  .hero h1{font-size:27px;}
}
