/* ==========================================================================
   موسسه دادمهر یزد — Design Tokens (Luxury Bright Theme v2)
   Palette:
     --white        #FFFFFF
     --ivory        #FAF8F5
     --beige        #F7F3EC
     --gold         #C9A227   champagne gold — accents, borders, CTAs
     --gold-light   #E8CC6E
     --navy         #0F172A   dark navy — headings, footer, contrast text
     --navy-2       #1E293B
     --gray         #F3F4F6
     --ink          #2A2A28
   Type:
     Display/UI : "Vazirmatn" (700-900)
     Body       : "Vazirmatn" (400-500)
     Signature  : "Noto Naskh Arabic" — used sparingly for the justice emblem
   ========================================================================== */

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

:root{
  --white:#FFFFFF;
  --ivory:#FAF8F5;
  --beige:#F7F3EC;
  --gold:#C9A227;
  --gold-light:#E8CC6E;
  --gold-dim:rgba(201,162,39,0.35);
  --navy:#0F172A;
  --navy-2:#1E293B;
  --gray:#F3F4F6;
  --ink:#2A2A28;

  --font-display:'Vazirmatn', sans-serif;
  --font-body:'Vazirmatn', sans-serif;
  --font-seal:'Noto Naskh Arabic', serif;

  --container: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-soft: 0 20px 45px -20px rgba(15,23,42,0.14);
  --shadow-hard: 0 30px 70px -25px rgba(15,23,42,0.22);
  --shadow-gold: 0 18px 40px -16px rgba(201,162,39,0.45);
  --glass-bg: rgba(255,255,255,0.62);
  --glass-border: rgba(201,162,39,0.28);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  background:var(--ivory);
  color:var(--ink);
  direction:rtl;
  line-height:1.9;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; color:var(--navy); }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

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

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

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

/* ---------------------------- Top Notice Bar ---------------------------- */
.topbar{
  background:var(--navy);
  color:#CBD3E6;
  font-size:12.5px;
}
.topbar .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:8px;
  padding-bottom:8px;
  gap:12px;
  flex-wrap:wrap;
}
.topbar a{ color:var(--gold-light); }
.topbar-links{ display:flex; gap:18px; flex-wrap:wrap; }

/* -------------------------------- Header -------------------------------- */
header.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,0.72);
  backdrop-filter:blur(18px) saturate(1.4);
  -webkit-backdrop-filter:blur(18px) saturate(1.4);
  border-bottom:1px solid var(--gold-dim);
}
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--navy);
}
.brand-mark{ width:46px; height:46px; flex-shrink:0; object-fit:contain; filter:drop-shadow(0 6px 14px rgba(201,162,39,0.35)); }
.brand-mark-dark{ filter:brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }
.brand-text{ display:flex; flex-direction:column; line-height:1.25; }
.brand-text b{ font-size:18px; font-weight:800; color:var(--navy); letter-spacing:0.2px; }
.brand-text small{ font-size:11.5px; color:#6B5E33; letter-spacing:0.4px; }

nav.main-nav ul{ display:flex; gap:2px; align-items:center; }
nav.main-nav a{
  display:inline-block;
  padding:10px 16px;
  color:var(--navy);
  font-size:14.5px;
  font-weight:500;
  border-radius:999px;
  transition:background .25s ease, color .25s ease;
}
nav.main-nav a:hover{ background:rgba(201,162,39,0.1); color:#8A6D1F; }
nav.main-nav a.active{ color:var(--navy); background:var(--beige); font-weight:700; }

.nav-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(135deg,var(--gold-light),var(--gold));
  color:var(--navy) !important;
  font-weight:700 !important;
  padding:10px 22px !important;
  border-radius:999px !important;
  box-shadow:var(--shadow-gold);
  transition:transform .25s ease, box-shadow .25s ease;
}
.nav-cta:hover{ transform:translateY(-2px); box-shadow:0 22px 45px -14px rgba(201,162,39,0.6); }

.nav-toggle{
  display:none;
  background:none;
  border:1px solid rgba(15,23,42,0.15);
  border-radius:8px;
  width:42px; height:42px;
  color:var(--navy);
  font-size:20px;
  align-items:center;
  justify-content:center;
}

@media (max-width: 900px){
  nav.main-nav{
    position:fixed;
    inset-inline-end:0;
    top:70px;
    bottom:0;
    width:min(320px,80vw);
    background:var(--white);
    box-shadow:var(--shadow-hard);
    transform:translateX(100%);
    transition:transform .35s ease;
    padding:20px;
    overflow-y:auto;
  }
  nav.main-nav.open{ transform:translateX(0); }
  nav.main-nav ul{ flex-direction:column; align-items:stretch; gap:4px; }
  nav.main-nav a{ padding:14px 16px; border-radius:12px; }
  .nav-toggle{ display:flex; }
  .nav-cta{ margin-top:10px; text-align:center; justify-content:center; }
}

/* --------------------------------- Hero ---------------------------------- */
.hero{
  position:relative;
  background:
    radial-gradient(60% 50% at 85% 8%, rgba(201,162,39,0.16), transparent 60%),
    radial-gradient(45% 40% at 10% 90%, rgba(201,162,39,0.10), transparent 60%),
    linear-gradient(180deg, var(--ivory) 0%, var(--beige) 100%);
  color:var(--navy);
  padding:96px 0 40px;
  overflow:hidden;
  perspective:1400px;
}
/* soft floating blur circles — ambient luxury light */
.hero::before{
  content:'';
  position:absolute; inset:0;
  background-image:
    radial-gradient(120px 120px at 78% 20%, rgba(201,162,39,0.20), transparent 70%),
    radial-gradient(160px 160px at 92% 55%, rgba(15,23,42,0.05), transparent 70%),
    radial-gradient(90px 90px at 6% 30%, rgba(201,162,39,0.14), transparent 70%);
  filter:blur(2px);
  pointer-events:none;
  z-index:0;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:40px;
  align-items:center;
  position:relative;
  z-index:3;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:0.4px;
  color:#8A6D1F;
  background:rgba(201,162,39,0.12);
  border:1px solid var(--gold-dim);
  padding:7px 16px;
  border-radius:999px;
  margin-bottom:24px;
}
.hero h1{
  font-size:clamp(32px,4.6vw,54px);
  font-weight:800;
  color:var(--navy);
  line-height:1.35;
}
.hero h1 em{ font-style:normal; background:linear-gradient(120deg,var(--gold),#9C7A1A); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p.lead{
  margin-top:22px;
  font-size:17px;
  color:#54514A;
  max-width:52ch;
}
.hero-actions{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:15px 28px;
  border-radius:999px;
  font-weight:700;
  font-size:15px;
  border:none;
  transition:transform .25s ease, box-shadow .25s ease, filter .2s ease;
}
.btn-primary{
  background:linear-gradient(135deg,var(--gold-light),var(--gold));
  color:var(--navy);
  box-shadow:var(--shadow-gold);
}
.btn-primary:hover{ transform:translateY(-3px); filter:brightness(1.04); }
.btn-ghost{
  background:rgba(255,255,255,0.5);
  color:var(--navy);
  border:1.5px solid rgba(15,23,42,0.14);
  backdrop-filter:blur(6px);
}
.btn-ghost:hover{ background:var(--white); transform:translateY(-3px); }

.hero-stats{
  display:flex;
  gap:16px;
  margin-top:48px;
  flex-wrap:wrap;
}
.hero-stats div{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(10px);
  padding:14px 20px;
  border-radius:16px;
  box-shadow:var(--shadow-soft);
}
.hero-stats div b{ font-size:24px; color:var(--navy); font-family:var(--font-display); font-weight:800; }
.hero-stats div span{ display:block; font-size:12px; color:#7C7669; margin-top:2px; }

/* ---- 3D Golden Scale of Justice — signature element ---- */
.justice-stage{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:440px;
}
.justice-glow{
  position:absolute;
  width:340px; height:340px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(201,162,39,0.28), transparent 70%);
  filter:blur(10px);
  animation:pulseGlow 5s ease-in-out infinite;
}
@keyframes pulseGlow{ 0%,100%{ transform:scale(1); opacity:0.9; } 50%{ transform:scale(1.08); opacity:1; } }

.marble-pedestal{
  position:absolute;
  bottom:14px;
  width:220px; height:46px;
  border-radius:50%;
  background:linear-gradient(180deg, rgba(255,255,255,0.9), rgba(230,225,215,0.6));
  box-shadow:0 30px 40px -10px rgba(15,23,42,0.18), inset 0 1px 0 rgba(255,255,255,0.9);
  border:1px solid rgba(201,162,39,0.25);
}

.justice-scale{
  position:relative;
  width:280px; height:320px;
  transform-style:preserve-3d;
  animation:scaleFloat 7s ease-in-out infinite;
  transition:transform .15s ease-out;
  z-index:2;
}
@keyframes scaleFloat{
  0%,100%{ transform:rotateX(6deg) rotateY(-8deg) translateY(0); }
  50%{ transform:rotateX(3deg) rotateY(8deg) translateY(-16px); }
}
.justice-scale svg{ width:100%; height:100%; filter:drop-shadow(0 25px 30px rgba(15,23,42,0.18)); }
.logo-hero{
  width:100%; height:100%; object-fit:contain;
  filter:drop-shadow(0 30px 34px rgba(15,23,42,0.22)) drop-shadow(0 0 40px rgba(201,162,39,0.25));
}
.yazd-pattern{
  position:absolute;
  width:120%; height:120%;
  opacity:0.16;
  pointer-events:none;
  z-index:0;
}

@media (max-width:940px){
  .hero-grid{ grid-template-columns:1fr; text-align:center; }
  .eyebrow{ margin-inline:auto; }
  .hero p.lead{ margin-inline:auto; }
  .hero-actions{ justify-content:center; }
  .hero-stats{ justify-content:center; }
  .justice-stage{ height:300px; margin-top:10px; }
  .justice-scale{ width:190px; height:220px; }
  .marble-pedestal{ width:160px; height:34px; }
  .justice-glow{ width:230px; height:230px; }
}

.floating-cube, .floating-sphere{
  position:absolute;
  border-radius:16px;
  background:linear-gradient(135deg, rgba(255,255,255,0.55), rgba(201,162,39,0.15));
  border:1px solid rgba(255,255,255,0.6);
  backdrop-filter:blur(6px);
  box-shadow:0 20px 30px -12px rgba(15,23,42,0.15);
}
.floating-sphere{ border-radius:50%; background:radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), var(--gold-light) 55%, var(--gold) 100%); border:none; }
.fc-1{ width:46px; height:46px; top:12%; left:8%; animation:floatY 6s ease-in-out infinite; }
.fc-2{ width:30px; height:30px; bottom:18%; right:6%; animation:floatY 5s ease-in-out infinite 0.8s; }
.fs-1{ width:22px; height:22px; top:20%; right:14%; animation:floatY 4.5s ease-in-out infinite 0.3s; }
.fs-2{ width:16px; height:16px; bottom:26%; left:12%; animation:floatY 5.5s ease-in-out infinite 1.1s; }
@keyframes floatY{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-14px); } }

.hero-skyline{
  position:relative;
  inset-inline:0;
  bottom:0;
  height:70px;
  z-index:1;
  opacity:0.55;
  margin-top:20px;
}
.hero-skyline svg{ width:100%; height:100%; display:block; }

.page-hero{ padding:70px 0 60px; }
.page-hero h1{ font-size:clamp(28px,4vw,42px); color:var(--navy); }
.page-hero .crumbs{ font-size:13.5px; color:#5C574C; margin-bottom:16px; }
.page-hero .crumbs a{ color:#8A6D1F; }

/* -------------------------------- Sections -------------------------------- */
section{ padding:88px 0; }
.section-head{ max-width:640px; margin-bottom:52px; }
.section-head.center{ margin-inline:auto; text-align:center; }
.kicker{
  display:inline-block;
  font-size:13px;
  font-weight:700;
  color:#8A6D1F;
  letter-spacing:0.4px;
  margin-bottom:10px;
  position:relative;
  padding-inline-start:22px;
}
.kicker::before{
  content:'';
  position:absolute; inset-inline-start:0; top:50%;
  width:14px; height:2px;
  background:var(--gold);
  transform:translateY(-50%);
}
.section-head h2{ font-size:clamp(24px,3.2vw,36px); margin-top:6px; }
.section-head p{ margin-top:16px; color:#5C574C; font-size:15.5px; }

/* Service cards — glass premium */
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
@media (max-width:980px){ .grid-4{ grid-template-columns:repeat(2,1fr); } .grid-3{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .grid-4,.grid-3,.grid-2{ grid-template-columns:1fr; } }

.card{
  background:rgba(255,255,255,0.7);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(201,162,39,0.18);
  border-radius:var(--radius);
  padding:32px 26px;
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  transform-style:preserve-3d;
}
.card:hover{
  transform:translateY(-8px) rotateX(2deg) rotateY(-2deg);
  box-shadow:var(--shadow-hard);
  border-color:var(--gold);
}
.card-icon{
  width:56px; height:56px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--navy),var(--navy-2));
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
  box-shadow:0 12px 22px -8px rgba(15,23,42,0.35);
}
.card-icon svg{ width:26px; height:26px; stroke:var(--gold-light); }
.card h3{ font-size:19px; margin-bottom:10px; }
.card p{ font-size:14.5px; color:#5C574C; }
.card .card-link{
  display:inline-flex; align-items:center; gap:6px;
  margin-top:18px; font-size:13.5px; font-weight:700; color:var(--navy);
}

/* Stats row */
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:800px){ .stats-grid{ grid-template-columns:repeat(2,1fr); } }
.stat-card{
  background:rgba(255,255,255,0.7);
  border:1px solid rgba(201,162,39,0.22);
  backdrop-filter:blur(12px);
  border-radius:var(--radius);
  padding:26px 22px;
  display:flex; align-items:center; gap:16px;
  box-shadow:var(--shadow-soft);
}
.stat-card .stat-icon{
  width:50px; height:50px; border-radius:14px; flex-shrink:0;
  background:linear-gradient(135deg,var(--gold-light),var(--gold));
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-gold);
}
.stat-card .stat-icon svg{ width:22px; height:22px; stroke:var(--navy); }
.stat-card b{ display:block; font-size:24px; font-family:var(--font-display); color:var(--navy); font-weight:800; }
.stat-card span{ font-size:12.5px; color:#7C7669; }

/* Process / timeline */
.process{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  position:relative;
}
@media (max-width:900px){ .process{ grid-template-columns:1fr; } }
.process-step{
  position:relative;
  padding:0 26px 26px;
  border-inline-start:2px solid var(--gold-dim);
}
.process-step:last-child{ border-inline-start:2px solid transparent; }
.process-step::before{
  content:attr(data-step);
  position:absolute;
  inset-inline-start:-19px;
  top:0;
  width:38px; height:38px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--navy),var(--navy-2));
  color:var(--gold-light);
  font-family:var(--font-display);
  font-weight:800;
  font-size:13px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 20px -8px rgba(15,23,42,0.35);
}
.process-step h4{ font-size:16.5px; margin:6px 0 8px; }
.process-step p{ font-size:14px; color:#5C574C; }

/* Why us / split */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
@media (max-width:900px){ .split{ grid-template-columns:1fr; } }
.check-list li{
  display:flex; gap:12px; align-items:flex-start;
  padding:12px 16px;
  font-size:15px;
  background:rgba(255,255,255,0.5);
  border:1px solid rgba(201,162,39,0.15);
  border-radius:14px;
  margin-bottom:10px;
}
.check-list svg{ flex-shrink:0; width:20px; height:20px; stroke:var(--gold); margin-top:2px; }

/* Panel with navy+gold gradient - CTA band */
.panel-dark{
  background:linear-gradient(135deg,var(--navy) 0%, var(--navy-2) 70%);
  color:var(--white);
  border-radius:var(--radius);
  padding:56px;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(201,162,39,0.3);
}
.panel-dark::before{
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(circle at 85% 20%, rgba(201,162,39,0.25), transparent 45%);
}
.panel-dark .content{ position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.panel-dark h3{ color:var(--white); font-size:clamp(20px,2.6vw,28px); max-width:34ch; }
.panel-dark p{ color:#C9D0E0; margin-top:10px; max-width:46ch; }

/* Testimonials */
.testimonial{
  background:rgba(255,255,255,0.7);
  backdrop-filter:blur(12px);
  border-radius:var(--radius);
  padding:30px;
  border:1px solid rgba(201,162,39,0.2);
  position:relative;
  box-shadow:var(--shadow-soft);
}
.testimonial:before{
  content:'\201D';
  font-family:Georgia, serif;
  position:absolute;
  top:8px; inset-inline-end:22px;
  font-size:64px;
  color:var(--gold-dim);
}
.testimonial p{ font-size:14.5px; color:#4A463D; }
.testimonial .author{ display:flex; align-items:center; gap:12px; margin-top:20px; }
.avatar-dot{
  width:42px;height:42px;border-radius:50%;
  background:linear-gradient(135deg,var(--gold-light),var(--gold));
  display:flex;align-items:center;justify-content:center;
  color:var(--navy); font-weight:800; font-family:var(--font-display);
}
.author b{ display:block; font-size:14px; color:var(--navy); }
.author span{ font-size:12.5px; color:#5C574C; }

/* FAQ accordion */
.faq-item{ border-bottom:1px solid rgba(201,162,39,0.2); }
.faq-q{
  width:100%;
  background:none; border:none;
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 4px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:15.5px;
  color:var(--navy);
  text-align:start;
}
.faq-q .plus{ font-size:22px; transition:transform .3s ease; color:var(--gold); flex-shrink:0; margin-inline-start:16px;}
.faq-item.open .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .35s ease; font-size:14.5px; color:#5C574C; }
.faq-a-inner{ padding:0 4px 22px; }

/* Team */
.team-card{ text-align:center; }
.team-photo{
  width:120px; height:120px; border-radius:50%;
  margin:0 auto 18px;
  background:linear-gradient(135deg,var(--navy),var(--gold));
  display:flex; align-items:center; justify-content:center;
  color:var(--white);
  font-family:var(--font-display); font-weight:800; font-size:30px;
  box-shadow:var(--shadow-soft);
  border:3px solid var(--white);
}
img.team-photo{ object-fit:cover; }
.team-photo svg{ width:46px; height:46px; opacity:0.85; }
.team-card h3{ font-size:17px; }
.team-card .role{ color:#8A6D1F; font-size:13.5px; font-weight:600; margin-top:4px; }
.team-card p.bio{ font-size:13.5px; color:#5C574C; margin-top:12px; }

/* Contact page */
.contact-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:40px; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.info-row{ display:flex; gap:16px; padding:18px 0; border-bottom:1px dashed rgba(201,162,39,0.25); }
.info-row .icon{
  width:46px; height:46px; border-radius:14px; flex-shrink:0;
  background:linear-gradient(135deg,var(--navy),var(--navy-2)); display:flex; align-items:center; justify-content:center;
}
.info-row .icon svg{ width:20px; height:20px; stroke:var(--gold-light); }
.info-row b{ display:block; font-size:14px; margin-bottom:3px; color:var(--navy); }
.info-row span, .info-row a{ font-size:14px; color:#5C574C; }

.form-card{
  background:rgba(255,255,255,0.75);
  backdrop-filter:blur(14px);
  border-radius:var(--radius);
  padding:34px;
  border:1px solid rgba(201,162,39,0.22);
  box-shadow:var(--shadow-soft);
}
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13.5px; font-weight:600; margin-bottom:7px; color:var(--navy); }
.field input, .field select, .field textarea{
  width:100%;
  padding:13px 14px;
  border-radius:12px;
  border:1.5px solid rgba(15,23,42,0.12);
  background:var(--white);
  font-family:inherit;
  font-size:14.5px;
  color:var(--ink);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(201,162,39,0.18);
  outline:none;
}
.field textarea{ resize:vertical; min-height:120px; }
.form-msg{ margin-top:14px; padding:12px 16px; border-radius:12px; font-size:13.5px; display:none; }
.form-msg.show{ display:block; }
.form-msg.ok{ background:rgba(201,162,39,0.14); color:#8A6D1F; }

.map-box{ border-radius:var(--radius); overflow:hidden; border:1px solid rgba(201,162,39,0.22); height:340px; }
.map-box iframe{ width:100%; height:100%; border:0; }

/* Article / blog cards */
.article-card{ background:rgba(255,255,255,0.7); backdrop-filter:blur(12px); border-radius:var(--radius); overflow:hidden; border:1px solid rgba(201,162,39,0.2); transition:transform .3s ease, box-shadow .3s ease; }
.article-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-hard); }
.article-thumb{
  height:150px;
  background:linear-gradient(135deg,var(--navy),var(--navy-2));
  position:relative;
  display:flex; align-items:center; justify-content:center;
}
.article-thumb span{ font-family:var(--font-seal); font-size:34px; color:var(--gold-light); opacity:0.9; }
.article-body{ padding:22px; }
.article-tag{ font-size:11.5px; font-weight:700; color:#8A6D1F; letter-spacing:0.3px; }
.article-body h3{ font-size:16.5px; margin:10px 0 8px; }
.article-body p{ font-size:13.5px; color:#5C574C; }
.article-meta{ display:flex; justify-content:space-between; margin-top:16px; font-size:12px; color:#6B655A; }

/* Full article page content */
.article-content{ max-width:760px; margin:0 auto; }
.article-content > p{ margin-bottom:18px; font-size:15.5px; color:#4A463D; }
.article-content h2{ margin:40px 0 14px; font-size:22px; }
.article-content h3{ margin:28px 0 12px; font-size:17.5px; }
.article-content ul{ margin:16px 0 22px; padding-inline-start:22px; }
.article-content li{ margin-bottom:9px; font-size:15px; list-style:disc; color:#4A463D; }
.article-content blockquote{
  border-inline-start:3px solid var(--gold);
  padding:16px 22px;
  background:rgba(201,162,39,0.08);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  margin:26px 0;
  font-size:15px;
  color:var(--navy);
}
.article-hero-tag{
  display:inline-block; font-size:12.5px; font-weight:700; color:#8A6D1F;
  background:rgba(201,162,39,0.12); border:1px solid var(--gold-dim);
  padding:6px 16px; border-radius:999px; margin-bottom:18px;
}
.article-meta-bar{
  display:flex; gap:20px; align-items:center; flex-wrap:wrap;
  padding:18px 0 36px; margin-bottom:10px; border-bottom:1px solid rgba(201,162,39,0.2);
  font-size:13px; color:#5C574C;
}

/* Service detail sidebar */
.service-layout{ display:grid; grid-template-columns:0.72fr 1.28fr; gap:44px; }
@media (max-width:900px){ .service-layout{ grid-template-columns:1fr; } .side-nav{ position:static; top:auto; } }
.side-nav{ background:rgba(255,255,255,0.7); backdrop-filter:blur(10px); border-radius:var(--radius); padding:10px; border:1px solid rgba(201,162,39,0.2); position:sticky; top:100px; }
.side-nav a{ display:block; padding:13px 16px; border-radius:12px; font-size:14px; font-weight:600; color:#5C574C; }
.side-nav a.active, .side-nav a:hover{ background:var(--navy); color:var(--gold-light); }
.side-cta{ margin-top:16px; padding:20px; border-radius:var(--radius); background:linear-gradient(135deg,var(--navy),var(--navy-2)); color:var(--white); text-align:center; }
.side-cta p{ font-size:13px; color:#C9D0E0; margin-bottom:14px; }

.doc-list li{ display:flex; gap:10px; padding:9px 0; font-size:14px; color:#5C574C; }
.doc-list svg{ width:18px; flex-shrink:0; stroke:var(--gold); margin-top:3px; }

/* -------------------------------- Footer -------------------------------- */
footer{ background:var(--navy); color:#C9D0E0; padding-top:70px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:50px; border-bottom:1px solid rgba(201,162,39,0.18); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
footer h4{ color:var(--white); font-size:15px; margin-bottom:20px; }
footer .brand{ margin-bottom:16px; }
footer .brand b{ color:var(--white); }
footer .brand small{ color:var(--gold-light); }
footer p.desc{ font-size:13.5px; color:#9BA3C0; max-width:34ch; }
.foot-links li{ margin-bottom:12px; font-size:13.5px; }
.foot-links a:hover{ color:var(--gold-light); }
.social-row{ display:flex; gap:10px; margin-top:18px; }
.social-row a{ width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,0.12); }
.social-row a svg{ width:16px; height:16px; stroke:var(--gold-light); }
.social-row a:hover{ background:var(--gold); }
.social-row a:hover svg{ stroke:var(--navy); }

/* Certification badges row */
.cert-row{ display:flex; gap:28px; flex-wrap:wrap; padding:34px 0; border-bottom:1px solid rgba(201,162,39,0.18); }
.cert-badge{ display:flex; align-items:center; gap:12px; }
.cert-badge .ring{
  width:44px; height:44px; border-radius:50%;
  border:1.5px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  background:rgba(201,162,39,0.08);
}
.cert-badge .ring svg{ width:20px; height:20px; stroke:var(--gold-light); }
.cert-badge span{ font-size:12.5px; color:#AEB4CC; max-width:16ch; }

.bottom-bar{ display:flex; justify-content:space-between; align-items:center; padding:22px 0; font-size:12.5px; color:#7D84A8; flex-wrap:wrap; gap:10px; }

/* Reveal-on-scroll */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* Floating action buttons */
.to-top, .whatsapp-float{
  position:fixed;
  bottom:26px;
  width:52px; height:52px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-hard);
  opacity:0; pointer-events:none;
  transition:opacity .3s ease, transform .3s ease;
  z-index:90;
  border:none;
}
.to-top{ inset-inline-end:26px; background:linear-gradient(135deg,var(--gold-light),var(--gold)); color:var(--navy); }
.to-top.show{ opacity:1; pointer-events:auto; }
.to-top:hover{ transform:translateY(-4px); }

.whatsapp-float{
  inset-inline-start:26px;
  background:#25D366;
  color:var(--white);
  opacity:1; pointer-events:auto;
  animation:floatY 4s ease-in-out infinite;
}
.whatsapp-float:hover{ transform:translateY(-4px) scale(1.05); }
.whatsapp-float svg{ width:26px; height:26px; fill:var(--white); }

.eitaa-float{
  inset-inline-start:26px;
  bottom:88px;
  background:#F7941D;
  color:var(--white);
  opacity:1; pointer-events:auto;
  animation:floatY 4s ease-in-out infinite 0.6s;
}
.eitaa-float:hover{ transform:translateY(-4px) scale(1.05); }
.eitaa-float svg{ width:24px; height:24px; fill:var(--white); }

/* ورود به پنل */
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #1a2744, #243562);
  border: 1.5px solid rgba(201,162,39,0.6);
  border-radius: 8px;
  color: #C9A227 !important;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-login:hover {
  background: linear-gradient(135deg, #C9A227, #E8CC6E) !important;
  color: #0F172A !important;
  border-color: #C9A227;
  box-shadow: 0 4px 16px rgba(201,162,39,0.35);
}
.nav-login::before {
  content: "🔐";
  font-size: 0.85em;
}
