@font-face{
  font-family:'Vazirmatn';
  src:url('assets/fonts/vazirmatn-400.woff2') format('woff2');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Vazirmatn';
  src:url('assets/fonts/vazirmatn-500.woff2') format('woff2');
  font-weight:500;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Vazirmatn';
  src:url('assets/fonts/vazirmatn-600.woff2') format('woff2');
  font-weight:600;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Vazirmatn';
  src:url('assets/fonts/vazirmatn-700.woff2') format('woff2');
  font-weight:700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Vazirmatn';
  src:url('assets/fonts/vazirmatn-800.woff2') format('woff2');
  font-weight:800;
  font-style:normal;
  font-display:swap;
}
:root{
  --bg:            #F4F5F8;
  --bg-alt:        #E9EBF1;
  --panel:         #FFFFFF;
  --ink:           #10182A;
  --muted:         #56607A;
  --line:          #DCDFE8;

  --pcb:           #0B2158;
  --pcb-2:         #163B7E;
  --pcb-ink:       #EDF1F9;
  --pcb-line:      rgba(237,241,249,.16);

  --copper:        #EC1D25;
  --copper-light:  #F4767C;
  --copper-ink:    #7A0B10;

  --radius-s:      10px;
  --radius-m:      16px;
  --radius-l:      26px;

  --shadow-card:   0 1px 2px rgba(17,32,26,.04), 0 12px 28px -18px rgba(17,32,26,.28);
  --shadow-card-hover: 0 1px 2px rgba(17,32,26,.05), 0 22px 40px -20px rgba(17,32,26,.32);

  --container:     1180px;
  --ff:            'Vazirmatn', 'Tahoma', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--ff);
  background:var(--bg);
  color:var(--ink);
  font-size:17px;
  line-height:1.9;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{ margin:0; font-weight:800; letter-spacing:-.01em; line-height:1.25; }
p{
  margin:0;
  text-align:justify;
  text-align-last:right;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

:focus-visible{
  outline:2.5px solid var(--copper);
  outline-offset:3px;
  border-radius:4px;
}

/* subtle full-page circuit-trace backdrop */
.trace-bg{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:64px 64px;
  opacity:.35;
  -webkit-mask-image:linear-gradient(to bottom, black, transparent 720px);
  mask-image:linear-gradient(to bottom, black, transparent 720px);
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-weight:600; font-size:15.5px;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--copper);
  color:#fff;
  box-shadow:0 10px 24px -10px rgba(236,29,37,.45);
}
.btn-primary:hover{ background:#AC6F31; transform:translateY(-1px); }
.btn-ghost{
  background:transparent;
  color:var(--pcb-ink);
  border:1.5px solid var(--pcb-line);
}
.btn-ghost:hover{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.32); }

/* ===========================================================
   Header
   =========================================================== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(242,244,239,.7);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease, background .25s ease;
}
.site-header.scrolled{
  background:rgba(242,244,239,.92);
  border-bottom-color:var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:78px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{
  width:40px; height:40px; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
}
.brand-mark img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.35; }
.brand-text strong{ font-size:16.5px; font-weight:700; }
.brand-text small{ font-size:12px; color:var(--muted); font-weight:400; }

.main-nav{ display:flex; align-items:center; gap:34px; }
.main-nav a{
  font-size:15px; font-weight:500; color:var(--ink);
  position:relative; padding:6px 0;
}
.main-nav a::after{
  content:""; position:absolute; right:0; bottom:0; height:2px; width:0;
  background:var(--copper); transition:width .2s ease;
}
.main-nav a:hover::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:14px; }
.phone-pill{
  display:flex; align-items:center; gap:8px;
  background:var(--pcb); color:var(--pcb-ink);
  padding:5px 10px; border-radius:999px;
  font-size:14.5px; font-weight:600;
  direction:ltr;
}
.phone-pill svg{ width:16px; height:16px; color:var(--copper-light); }
.phone-pill:hover{ background:var(--pcb-2);  }
@media (min-width: 761px){
  .phone-pill{
    background:var(--pcb);
    padding:10px;
    transition:padding .2s ease;
  }
  .phone-pill span{
    display:none;
  }
  .phone-pill:hover{
    background:var(--pcb-2);
    padding:10px 18px;
  }
  .phone-pill:hover span{
    display:inline;
  }
}

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:40px; height:40px; border:none; background:none; border-radius:8px;
}
.nav-toggle span{ height:2px; width:22px; background:var(--ink); margin:0 auto; border-radius:2px; transition:transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ===========================================================
   Hero
   =========================================================== */
.hero{
  background:linear-gradient(165deg, var(--pcb) 0%, #081A47 62%, #061238 100%);
  color:var(--pcb-ink);
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  min-height:100vh;
  min-height:100dvh;
  padding:56px 0;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(var(--pcb-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--pcb-line) 1px, transparent 1px);
  background-size:46px 46px;
  opacity:.5;
  mask-image:radial-gradient(ellipse 90% 70% at 70% 20%, black 30%, transparent 78%);
  -webkit-mask-image:radial-gradient(ellipse 90% 70% at 70% 20%, black 30%, transparent 78%);
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:56px;
  align-items:center;
}
.eyebrow{
  font-size:14px; font-weight:600; color:var(--copper-light);
  margin:0 0 18px;
}
.hero h1{
  font-size:clamp(2rem, 3.6vw, 2.9rem);
  color:#fff;
  margin-bottom:22px;
}
.hero-desc{
  font-size:17px; color:rgba(234,243,236,.82);
  max-width:52ch; margin-bottom:34px;
}
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:38px; }
.hero-badges{ display:flex; flex-wrap:wrap; gap:10px 22px; }
.hero-badges li{
  font-size:13.5px; color:rgba(234,243,236,.75);
  display:flex; align-items:center; gap:8px;
}
.hero-badges li::before{
  content:""; width:6px; height:6px; border-radius:50%;
  background:var(--copper-light); flex:0 0 auto;
}

/* stack diagram */
.hero-visual{ position:relative; }
.stack{
  display:flex; align-items:stretch; gap:14px;
  animation:stack-in .8s cubic-bezier(.2,.7,.2,1) both;
  animation-delay:.15s;
}
@keyframes stack-in{
  from{ opacity:0; transform:translateY(18px); }
  to{ opacity:1; transform:translateY(0); }
}
.stack-bracket{
  writing-mode:vertical-rl;
  display:flex; align-items:center; justify-content:center;
  padding:10px 4px;
  border-right:1.5px dashed var(--pcb-line);
  color:rgba(234,243,236,.55);
  font-size:12.5px; font-weight:600; letter-spacing:.02em;
}
.stack-layers{
  flex:1; display:flex; flex-direction:column-reverse; gap:12px;
}
.layer{
  background:rgba(255,255,255,.05);
  border:1px solid var(--pcb-line);
  border-radius:14px;
  padding:18px 22px;
  display:flex; align-items:center; justify-content:space-between;
  transition:background .25s ease, border-color .25s ease, transform .25s ease;
}
.layer:hover{
  background:rgba(255,255,255,.09);
  border-color:rgba(236,29,37,.55);
  transform:translateX(-4px);
}
.layer-num{
  font-size:12px; color:var(--copper-light); font-weight:700;
  direction:ltr;
}
.layer-name{ font-size:15.5px; font-weight:600; color:#fff; }
.layer[data-layer="1"]{ background:rgba(236,29,37,.12); border-color:rgba(236,29,37,.45); }

/* ===========================================================
   About strip
   =========================================================== */
.about-strip{ padding:64px 0; }
.about-inner p{
  max-width:74ch;
  font-size:30px;
  color:var(--muted);
  line-height:2;
  display:flex;
  align-items:center;
  justify-content:center;
}
.stats-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:44px;
  margin-top:40px;
  padding-top:36px;
  border-top:1px solid var(--line);
}
.stat-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
}
.stat-number{
  font-size:clamp(2.1rem, 5vw, 3.2rem);
  font-weight:800;
  color:var(--pcb);
  line-height:1;
  direction:ltr;
  unicode-bidi:isolate;
}
.stat-label{
  font-size:16px;
  color:var(--muted);
  font-weight:500;
}
.stat-divider{
  width:1px;
  align-self:stretch;
  background:var(--line);
}

@media (max-width: 480px){
  .stats-row{ gap:22px; }
  .stat-number{ font-size:1.85rem; }
}

/* ===========================================================
   Section heads
   =========================================================== */
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head h2{ font-size:clamp(1.6rem,2.6vw,2.1rem); margin-bottom:12px; }
.section-head p{ color:var(--muted); font-size:16.5px; }

/* ===========================================================
   Services
   =========================================================== */
.services{ padding:20px 0 88px; }
.service-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.service-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  padding:30px 26px;
  box-shadow:var(--shadow-card);
  transition:box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.service-card:hover{
  box-shadow:var(--shadow-card-hover);
  transform:translateY(-3px);
  border-color:rgba(236,29,37,.3);
}
.service-icon{
  display:flex; align-items:center; justify-content:center;
  width:52px; height:52px;
  border-radius:12px;
  background:var(--bg-alt);
  color:var(--pcb);
  margin-bottom:18px;
}
.service-icon svg{ width:24px; height:24px; }
.service-card h3{ font-size:18px; margin-bottom:10px; }
.service-card p{ color:var(--muted); font-size:15px; line-height:1.85; }

/* ===========================================================
   Licenses
   =========================================================== */
.licenses{ padding:20px 0 88px; }
.license-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
  justify-content: center;
}
.license-card{
  margin:0;
  background:var(--panel);
  border-radius:var(--radius-m);
  border:1px solid var(--line);
  box-shadow:var(--shadow-card);
  overflow:hidden;
  transition:box-shadow .25s ease, transform .25s ease;
  flex:1 1 200px;
  max-width:300px;
}
.license-card:hover{ box-shadow:var(--shadow-card-hover); transform:translateY(-3px); }
.license-frame{
  position:relative;
  padding:16px;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, var(--copper-light), var(--copper)) border-box;
  border:1.5px solid transparent;
  border-radius:var(--radius-s);
  margin:14px;
  aspect-ratio: 4 / 3;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.license-frame img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:6px;
}
.license-dots{ display:none; }
@media (max-width: 980px) and (min-width: 761px){
  .license-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (min-width: 761px){
  .licenses .container{
    max-width: 1300px;
  }
  .license-grid{
    grid-template-columns: repeat(3, 400px);
    justify-content: center;
    gap: 16px;
  }
  .license-frame{
    aspect-ratio: 3 / 2;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    padding:6px;
    margin:4px;
  }
  .license-frame img{
    width:100%;
    height:100%;
    object-fit:contain;
  }
  .license-card figcaption{
    padding:6px 20px 22px;
    font-size:16px;
  }
}

/* ===========================================================
   Customer grid (مشتریان)
   =========================================================== */

.customer-grid{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:12px;
  margin-top:28px;
}
.customer-tile{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px 12px;
  border-radius:18px;
  opacity:0;
  transform:translateY(18px) scale(.92);
  transition:opacity .55s ease, transform .55s cubic-bezier(.22,.68,.32,1), background .3s ease, box-shadow .3s ease;
}
.customer-tile.in{
  opacity:1;
  transform:translateY(0) scale(1);
}
.customer-tile img{
  height:66px;
  width:auto;
  max-width:100%;
  object-fit:contain;
  transition:transform .3s ease;
}
.customer-tile:hover{
  background: radial-gradient(circle, rgba(11,33,88,.07), transparent 72%);
  box-shadow: 0 14px 30px -16px rgba(11,33,88,.28);
  transform: translateY(-5px) scale(1);
}
.customer-tile:hover img{
  transform:scale(1.12);
}

@media (max-width: 980px) and (min-width: 761px){
  .customer-grid{ grid-template-columns:repeat(5, 1fr); }
}

@media (max-width: 760px){
  .customer-grid{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    grid-template-columns:unset;
    gap:6px;
    margin-top:20px;
  }
  .customer-tile{
    flex:0 0 calc(25% - 4.5px);
    padding:12px 6px;
    border-radius:14px;
  }
  .customer-tile img{
     height:48px; 
    }
}

@media (max-width: 420px){
  .customer-tile{ flex:0 0 calc(33.333% - 4px); }
}
/* ===========================================================
   CTA banner
   =========================================================== */
.cta-banner{
  background:var(--bg-alt);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:52px 0;
}
.cta-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; flex-wrap:wrap;
}
.cta-inner h2{ font-size:22px; margin-bottom:8px; }
.cta-inner p{ color:var(--muted); font-size:15.5px; }
.cta-inner .btn-primary{ direction:ltr; }
.cta-phone-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.cta-phone-btn svg{
  width:18px;
  height:18px;
}

@media (min-width: 761px){
  .cta-inner{
    justify-content:center;
    text-align:center;
    flex-direction:column;
    gap:20px;
  }
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer{ background:var(--pcb); color:var(--pcb-ink); }
.footer-inner{
  display:grid;
  grid-template-columns:1fr 1.1fr 1.1fr;
  gap:48px;
  padding:29px 24px 20px;
  align-items:start;
}
.footer-brand .brand-mark{ color:var(--copper-light); margin-bottom:16px; }
.footer-name{ font-size:19px; font-weight:700; margin-bottom:8px; }
.footer-tag{ font-size:14px; color:rgba(234,243,236,.65); max-width:32ch; line-height:1.9; }

.footer-col h3{
  font-size:14px; font-weight:600; color:var(--copper-light);
  margin-bottom:20px;
}
.footer-list{ display:flex; flex-direction:column; gap:16px; }
.footer-list li{ display:flex; align-items:flex-start; gap:12px; font-size:14.5px; color:rgba(234,243,236,.86); line-height:1.8; }
.footer-list li svg{ width:18px; height:18px; flex:0 0 auto; margin-top:3px; color:var(--copper-light); }

.map-embed{
  border-radius:var(--radius-s);
  overflow:hidden;
  border:1px solid var(--pcb-line);
  margin-bottom:14px;
}
.map-embed iframe{ width:100%; height:180px; border:0; display:block; filter:grayscale(.15) contrast(1.05); }
.map-link{
  display:inline-flex; align-items:center; gap:8px;
  font-size:14px; font-weight:600; color:var(--copper-light);
}
.map-link svg{ width:15px; height:15px; }
.map-link:hover{ color:#fff; }

.footer-bottom{ border-top:1px solid var(--pcb-line); }
.footer-bottom-inner{
  padding:22px 24px;
  font-size:13px; color:rgba(234,243,236,.55);
  text-align:center;
}
.footer-social{
  display:flex;
  gap:10px;
  margin-top:18px;
}
.footer-social-icon{
  width:38px; height:38px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.08);
  border:1px solid var(--pcb-line);
  border-radius:10px;
  transition:background .2s ease, transform .2s ease;
}
.footer-social-icon:hover{
  background:rgba(255,255,255,.16);
  transform:translateY(-3px);
}
.footer-social-icon img{
  width:20px;
  height:20px;
  object-fit:contain;
  display:block;
}
.footer-hours{ 
  margin-top:14px; 
   max-width:32ch;
}
.footer-hours h4{
  font-size:14px; font-weight:600; color:var(--copper-light);
  margin-bottom:12px;
}
.footer-hours-list{ display:flex; flex-direction:column; gap:5px; }
.footer-hours-list li{
  display:flex; align-items:center; justify-content:flex-start; gap:14px;
  font-size:14px; color:rgba(237,241,249,.86);
  border-bottom:1px dashed var(--pcb-line);
  padding-bottom:4px;
}
.footer-hours-list li:last-child{ border-bottom:none; padding-bottom:0; }

.footer-brand .brand-mark{
  width:80px;
  height:80px;
}
.footer-linkbar{
  border-top:1px solid var(--pcb-line);
  padding:10px 0;
}
.footer-linkbar h4{
  font-size:19px; font-weight:600; color:var(--copper-light);
  margin-bottom:14px;
  text-align:center;
  margin-bottom: 30px;
}
.footer-linkbar-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
}
.footer-linkbar-chip{
  display:inline-flex;
  align-items:center;
  padding:8px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--pcb-line);
  font-size:13px;
  color:rgba(237,241,249,.82);
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.footer-linkbar-chip:hover{
  background:rgba(236,29,37,.14);
  border-color:rgba(236,29,37,.4);
  color:#fff;
}

@media (max-width: 760px){
  .footer-linkbar{ display:none; }
}
@media (min-width: 761px){
  .footer-brand .brand-mark{
    width:80px;
    height:80px;
  }
}
.footer-links{
  margin-top:22px;
  display:flex;
  align-items:center;
  justify-content: center;
  flex-wrap:wrap;
  gap:16px;
}
.footer-links h4{
  font-size:14px; font-weight:600; color:var(--copper-light);
  margin-bottom:10px;
  justify-content: center;
  align-items: center;
}
.footer-links-row{
   display:flex; flex-direction:row; gap:16px; 
   justify-content: center;
   align-items: center;
  }
.footer-link-item{
  display:flex; flex-direction:row; align-items:center; gap:10px;
  text-align:right;
  justify-content: center;
}
.footer-link-icon{
  width:22px; height:22px; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
  
  
  border-radius:8px;
  color:var(--pcb-ink);
  
}
.footer-link-icon svg{ width:14px; height:14px; }

.footer-link-icon:hover{
  background:rgba(255,255,255,.16);
  width: 22px;
  height: 22px;
}
.footer-link-name:hover{
  background:rgba(255,255,255,.16);
  border-radius: 5px;
  padding: 1px 1px;
}
.footer-link-name{
  font-size:13px;
  color:rgba(237,241,249,.8);
  max-width:none;
}
.footer-bottom-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
}
.footer-credit{
  font-size:13px;
  color:rgba(237,241,249,.55);
}
.footer-credit a{
  color:rgba(237,241,249,.8);
  font-weight:600;
  transition:color .2s ease;
}
.footer-credit a:hover{
  color:var(--copper-light);
}
#copy{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  white-space:nowrap;
}
.footer-list li a{
  color:inherit;
  text-decoration:none;
  transition:color .2s ease;
}
.footer-list li a:hover{
  color:var(--copper-light);
}

@media (max-width: 600px){
  .footer-bottom-inner{
    flex-direction:column;
    justify-content:center;
    text-align:center;
    gap:4px;
  }
  #copy{
    position:static;
    transform:none;
  }
}

/* دسکتاپ: فقط نسخه‌ی توی ستون نقشه دیده بشه */
.footer-links--mobile{ display:none; }

/* موبایل: نسخه‌ی نقشه مخفی، نسخه‌ی زیر آیکون‌های اجتماعی نمایان */
@media (max-width: 760px){
  .footer-links--desktop{ display:none; }
  .footer-links--mobile{
    display: block;
    
     
    
    
    }
    .footer-links-row{
      display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:10px;
    margin-top:18px;
    }
    .footer-bottom-inner{
    flex-direction:column;
    justify-content:center;
    text-align:center;
    gap:6px;
  }
  #copy{
    position:static;
    transform:none;
  }

  
}
/* ===========================================================
   Back to top
   =========================================================== */
.to-top{
  position:fixed; left:24px; bottom:24px; z-index:40;
  width:46px; height:46px; border-radius:50%;
  background:#2E5BB8;
  border:2px solid rgba(255,255,255,.25);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px -8px rgba(11,33,88,.6);
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.to-top:hover{
  background:#3E6FD1;
}
.to-top.visible{ opacity:1; visibility:visible; transform:translateY(0); }
.to-top svg{ width:20px; height:20px; }

/* ===========================================================
   Scroll reveal
   =========================================================== */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
  .footer-inner{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
  .service-grid{ grid-template-columns:repeat(2,1fr); }
  .partner-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (min-width: 761px){
  .license-track{ display:contents; }
}
@media (max-width: 760px){
  .main-nav{
    position:fixed; inset:78px 0 auto 0;
    background:var(--panel);
    border-bottom:1px solid var(--line);
    flex-direction:column; align-items:flex-start; gap:0;
    padding:8px 24px 18px;
    transform:translateY(-12px);
    opacity:0; visibility:hidden;
    transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
    .license-track{
    cursor:grab;
    touch-action:pan-y;
  }
  .license-track.dragging{
    cursor:grabbing;
  }
  .main-nav.open{ opacity:1; visibility:visible; transform:translateY(0); }
  .main-nav a{ width:100%; padding:14px 0; border-bottom:1px solid var(--line); }
  .main-nav a::after{ display:none; }
  .nav-toggle{ display:flex; }
  .phone-pill span{ display:none; }
  .phone-pill{ padding:10px; }
  .phone-pill svg{ width:18px; height:18px; }

  .hero{ padding:44px 0 64px; }
  .hero-cta{ flex-direction:column; align-items:stretch; }
  .hero-cta .btn{ justify-content:center; }
  .hero-badges{ flex-direction:column; gap:10px; }

  .service-grid{ grid-template-columns:1fr; }
     .license-grid{
    overflow:hidden;
    display:block;
  }
  .license-track{
    display:flex;
    direction:ltr;
    transition:transform .5s cubic-bezier(.22,.68,.32,1);
    will-change:transform;
  }
  .license-card{
    flex:0 0 100%;
    max-width:100%;
  }
  .license-dots{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:6px;
  }
  .license-dots button{
    width:8px; height:8px; border-radius:50%;
    border:none; padding:0;
    background:var(--line);
    transition:background .2s ease, transform .2s ease;
  }
  .license-dots button.active{
    background:var(--copper);
    transform:scale(1.3);
  }
  .partner-grid{ grid-template-columns:repeat(2,1fr); }

  .cta-inner{ flex-direction:column; align-items:flex-start; }

  .footer-inner{ grid-template-columns:1fr; padding:56px 24px 40px; gap:36px; }
}

@media (max-width: 480px){
  .partner-grid{ grid-template-columns:1fr 1fr; }
  body{ font-size:16px; }
}
/* license image → clickable */
.license-frame img{ cursor:zoom-in; transition:transform .25s ease; }
.license-frame:hover img{ transform:scale(1.015); }

/* ===========================================================
   Lightbox
   =========================================================== */
.lightbox{
  position:fixed; inset:0; z-index:100;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  background:rgba(10,20,16,.86);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0; visibility:hidden;
  transition:opacity .25s ease, visibility .25s ease;
}
.lightbox.open{ opacity:1; visibility:visible; }

.lightbox-figure{
  margin:0;
  max-width:min(1300px, 96vw);
  max-height:94vh;
  display:flex; flex-direction:column; align-items:center; gap:14px;
  transform:scale(.96) translateY(10px);
  transition:transform .25s ease;
}
.lightbox.open .lightbox-figure{ transform:scale(1) translateY(0); }

.lightbox-figure img{
  max-width:100%;
  max-height:90vh;
  width:auto;
  border-radius:var(--radius-s);
  background:#fff;
  padding:14px;
  border:1.5px solid transparent;
  background-image:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--copper-light), var(--copper)) border-box;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.5);
}
.lightbox-figure figcaption{
  color:#fff; font-size:15px; font-weight:600;
  text-align:center;
}

.lightbox-close{
  position:absolute; top:22px; left:22px;
  width:44px; height:44px; border-radius:50%;
  border:1.5px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s ease, transform .2s ease;
}
.lightbox-close:hover{ background:rgba(255,255,255,.18); transform:rotate(90deg); }
.lightbox-close svg{ width:20px; height:20px; }

@media (max-width: 600px){
  .lightbox{ padding:16px; }
  .lightbox-close{ top:14px; left:14px; width:40px; height:40px; }
  .lightbox-figure img{ padding:8px; max-height:70vh; }
}

/* ===========================================================
   Nav dropdown (درباره ما)
   =========================================================== */
.nav-dropdown{ position:relative; }
.nav-dropdown-toggle{
  display:flex; align-items:center; gap:6px;
  background:none; border:none; font:inherit;
  font-size:15px; font-weight:500; color:var(--ink);
  padding:6px 0; cursor:pointer;
}
.nav-caret{ width:14px; height:14px; transition:transform .2s ease; }
.nav-dropdown-menu{
  position:absolute; top:calc(100% + 14px); right:0;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  box-shadow:var(--shadow-card-hover);
  padding:10px;
  min-width:200px;
  display:flex; flex-direction:column; gap:2px;
  opacity:0; visibility:hidden; transform:translateY(8px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.nav-dropdown-menu a{
  display:block; padding:10px 14px; border-radius:8px;
  font-size:14.5px; font-weight:500; color:var(--ink);
}
.nav-dropdown-menu a:hover{ background:var(--bg-alt); color:var(--copper); }

@media (min-width: 761px){
  .nav-dropdown:hover .nav-dropdown-menu{
    opacity:1; visibility:visible; transform:translateY(0);
  }
  .nav-dropdown:hover .nav-caret{ transform:rotate(180deg); }
}

@media (max-width: 760px){
  .nav-dropdown-toggle{
    width:100%; justify-content:space-between;
    padding:14px 0; border-bottom:1px solid var(--line);
  }
  .nav-dropdown-menu{
    position:static;
    box-shadow:none; border:none; padding:0;
    min-width:0;
    opacity:1; visibility:visible; transform:none;
    max-height:0; overflow:hidden;
    transition:max-height .3s ease;
  }
  .nav-dropdown-menu a{ padding:12px 0; border-bottom:1px solid var(--line); border-radius:0; }
  .nav-dropdown.open .nav-dropdown-menu{ max-height:260px; }
  .nav-dropdown.open .nav-caret{ transform:rotate(180deg); }
}

/* ===========================================================
   About page (about.html)
   =========================================================== */
.page-banner{
  background:linear-gradient(165deg, var(--pcb) 0%, #081A47 62%, #061238 100%);
  color:var(--pcb-ink);
  padding:64px 0 56px;
}
.page-banner .breadcrumb{ font-size:14px; color:rgba(237,241,249,.65); margin-bottom:14px; }
.page-banner .breadcrumb a{ color:var(--copper-light); }
.page-banner h1{ font-size:clamp(1.8rem, 3.4vw, 2.6rem); color:#fff; font-weight:800; margin:0; }

.about-page-section{ padding:72px 0; }
.about-page-section.alt{ background:var(--bg-alt); }
.about-page-section h2{ font-size:clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom:24px; font-weight:800; }
.about-page-section .prose{
  max-width:74ch;
  font-size:17px;
  color:var(--muted);
  line-height:2.1;
}
.about-page-section .placeholder{
  color:var(--muted); font-size:15.5px;
  background:var(--panel); border:1px dashed var(--line);
  border-radius:var(--radius-m); padding:28px;
}
.about-page-section .prose + .prose{ margin-top:22px; }

.dept-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:22px;
  margin-top:36px;
}
.dept-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  padding:28px 26px;
  box-shadow:var(--shadow-card);
}
.dept-card h3{
  font-size:17px; font-weight:700; margin-bottom:12px; color:var(--pcb);
}
.dept-card p{
  font-size:15px; color:var(--muted); line-height:1.95;
  margin:0;
}

@media (max-width: 760px){
  .dept-grid{ grid-template-columns:1fr; }
}
[id]{ scroll-margin-top: 96px; }

/* ===========================================================
   Staff (about.html)
   =========================================================== */

.staff-leads{
  display:flex; flex-wrap:wrap; justify-content:center; gap:22px;
  margin-bottom:48px;
}
.staff-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  box-shadow:var(--shadow-card);
}
.staff-card--lead{
  flex:1 1 260px;
  max-width:340px;
  padding:30px 26px;
  border-top:3px solid var(--pcb);
  text-align:center;
}
.staff-avatar{
  display:inline-flex; align-items:center; justify-content:center;
  width:56px; height:56px; border-radius:50%;
  background:var(--pcb); color:#fff;
  font-size:20px; font-weight:700;
  margin-bottom:16px;
}
.staff-card--lead h3{ font-size:17px; font-weight:700; margin-bottom:6px; }
.staff-role{ font-size:14px; color:var(--muted); margin-bottom:14px; }
.staff-email{
  font-size:13.5px; font-weight:600; color:var(--copper);
  display:inline-block;
}
.staff-email:hover{ text-decoration:underline; }

.staff-subhead{
  font-size:16.5px; font-weight:700; margin:44px 0 18px;
}

.table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.data-table{
  width:100%;
  min-width:560px;
  border-collapse:collapse;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  overflow:hidden;
}
.data-table thead th{
  background:var(--pcb);
  color:var(--pcb-ink);
  font-size:14px; font-weight:600;
  text-align:right;
  padding:14px 18px;
}
.data-table tbody td{
  padding:13px 18px;
  font-size:14.5px;
  color:var(--ink);
  border-top:1px solid var(--line);
}
.data-table tbody tr:nth-child(even){ background:var(--bg-alt); }
.data-table td a{ color:var(--copper); font-weight:600; }
.data-table td a:hover{ text-decoration:underline; }

.advisor-fields{ margin:0; padding-right:18px; display:flex; flex-direction:column; gap:4px; }
.advisor-fields li{ font-size:14px; color:var(--muted); }
@media (max-width: 640px){
  .table-scroll{ overflow-x:visible; }
  .data-table{ min-width:0; border:none; background:transparent; }
  .data-table thead{ display:none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td{
    display:block;
    width:100%;
  }
  .data-table tr{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:var(--radius-m);
    margin-bottom:14px;
    overflow:hidden;
    box-shadow:var(--shadow-card);
  }
  .data-table tbody tr:nth-child(even){ background:var(--panel); }
  .data-table td{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    padding:13px 16px;
    border-top:1px solid var(--line);
    font-size:14px;
  }
  .data-table td:first-child{ border-top:none; }
  .data-table td::before{
    content: attr(data-label);
    font-weight:700;
    color:var(--muted);
    font-size:12.5px;
    flex:0 0 auto;
    padding-top:1px;
  }
  .advisor-fields{ padding-right:0; text-align:left; }
}
.license-card figcaption{
  text-align:center;
  padding-inline:16px;
}
/* ===========================================================
   Activities page (activities.html)
   =========================================================== */
.activities-section{ padding:72px 0 96px; }
.activities-layout{
  display:flex;
  gap:36px;
  align-items:flex-start;
}

.activities-nav{
  flex:0 0 260px;
  display:flex;
  flex-direction:column;
  gap:4px;
  position:sticky;
  top:100px;
}
.activities-nav-item{
  text-align:right;
  background:var(--panel);
  border:1px solid var(--line);
  border-right:3px solid transparent;
  border-radius:10px;
  padding:14px 18px;
  font-family:inherit;
  font-size:14.5px;
  font-weight:600;
  color:var(--ink);
  cursor:pointer;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.activities-nav-item:hover{ background:var(--bg-alt); }
.activities-nav-item.active{
  background:var(--bg-alt);
  border-right-color:var(--copper);
  color:var(--copper);
}

.activities-content{
  flex:1;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  padding:40px;
  min-height:320px;
  box-shadow:var(--shadow-card);
}
.activities-panel{ display:none; }
.activities-panel.active{ display:block; }
.activities-panel h2{ font-size:1.5rem; font-weight:800; margin-bottom:20px; }

@media (max-width: 900px){
  .activities-layout{ flex-direction:column; }
  .activities-nav{
    position:static;
    flex-direction:row;
    flex-wrap:nowrap;
    overflow-x:auto;
    width:100%;
    gap:8px;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
  }
  .activities-nav-item{
    flex:0 0 auto;
    white-space:nowrap;
    border-right:1px solid var(--line);
    border-bottom:3px solid transparent;
  }
  .activities-nav-item.active{
    border-right-color:var(--line);
    border-bottom-color:var(--copper);
  }
  .activities-content{ padding:28px 22px; width:100%; }
}
/* ===========================================================
   صفحه‌های خیلی بزرگ (مانیتورهای عریض / وایداسکرین)
   =========================================================== */
@media (min-width: 1500px){
  :root{
    --container: 1440px;
  }

  .hero h1{
    font-size: clamp(2.9rem, 3.2vw, 3.8rem);
  }
  .hero-desc{
    font-size: 19px;
    max-width: 58ch;
  }
  .eyebrow{
    font-size: 15px;
  }
  .layer-name{
    font-size: 17px;
  }
  .layer{
    padding: 22px 26px;
  }
  .btn{
    padding: 16px 30px;
    font-size: 16.5px;
  }
  .section-head h2{
    font-size: 2.4rem;
  }
  .section-head p{
    font-size: 18px;
  }
}