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

:root{
  --bg: #E4DEC4;
  --bg-panel: #DAD2AF;
  --bg-panel-2: #CFC59B;
  --ink: #2A2718;
  --ink-dim: #55503A;
  --ink-faint: #85806A;
  --gold: #7A3B22;
  --gold-soft: rgba(122,59,34,0.12);
  --teal: #263449;
  --line: rgba(42,39,24,0.14);
  --serif: 'Noto Naskh Arabic', 'Noto Serif', serif;
  --sans: 'Vazirmatn', sans-serif;
  --maxw: 780px;
}

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

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.9;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(122,59,34,0.10), transparent 60%),
    radial-gradient(ellipse 55% 50% at 5% 100%, rgba(38,52,73,0.10), transparent 60%);
  z-index: 0;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ---------- association line ---------- */
#assoc-line{
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 90px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
#assoc-line path{
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 0.15s linear;
}
@media (max-width: 720px){
  #assoc-line{ display:none; }
}

/* ---------- hero ---------- */
.hero{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 28px 60px;
  position: relative;
  z-index: 1;
}

.portrait{
  width: 224px;
  height: 224px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(44,32,19,0.18);
  box-shadow: 0 0 0 10px var(--gold-soft), 0 0 0 11px var(--gold), 0 30px 60px -18px rgba(42,39,24,0.4);
  margin-bottom: 32px;
  animation: rise 1s ease both;
  position: relative;
}
.portrait img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.hero .eyebrow{
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
  animation: rise 1s ease 0.1s both;
}

.hero h1{
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 52px);
  margin: 0 0 14px;
  color: var(--ink);
  animation: rise 1s ease 0.2s both;
}

.hero .title{
  font-size: 16px;
  color: var(--ink-dim);
  max-width: 480px;
  margin: 0 0 30px;
  font-weight: 400;
  animation: rise 1s ease 0.3s both;
}

.hero .tagline{
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink);
  max-width: 520px;
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  animation: rise 1s ease 0.4s both;
}

@keyframes rise{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------- sections ---------- */
section{
  position: relative;
  z-index: 1;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
section .wrap::before{
  content:"";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 30px;
}

.eyebrow-label{
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

h2{
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3.8vw, 36px);
  margin: 0 0 28px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.lede{
  font-size: 18px;
  line-height: 2;
  color: var(--ink-dim);
}
.lede strong{ color: var(--ink); font-weight: 600; }

.pull{
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.8vw, 25px);
  line-height: 1.85;
  color: var(--ink);
  margin: 44px 0;
  padding: 26px 30px;
  border-right: 4px solid var(--gold);
  background: var(--bg-panel);
  border-radius: 4px;
}

/* ---------- approach cards ---------- */
.cards{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 680px){
  .cards{ grid-template-columns: 1fr; }
}
.card{
  background: var(--bg-panel);
  padding: 32px 28px;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(42,39,24,0.35);
  border-top-color: var(--teal);
}
.card .num{
  font-family: var(--serif);
  font-weight: 700;
  color: var(--bg);
  background: var(--gold);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 18px;
}
.card h3{
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
}
.card p{
  font-size: 15px;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.85;
}

/* ---------- credentials ---------- */
.cred-groups{
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cred-group{
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.cred-group:first-child{ border-top: none; }
.cred-group h4{
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--gold);
}
.cred-group ul{
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}
@media (max-width: 640px){
  .cred-group ul{ columns: 1; }
}
.cred-group li{
  font-size: 14.5px;
  color: var(--ink-dim);
  padding: 6px 0;
  break-inside: avoid;
  position: relative;
  padding-right: 16px;
}
.cred-group li::before{
  content:"";
  position: absolute;
  right: 0;
  top: 14px;
  width: 5px; height: 1px;
  background: var(--gold);
}

.credentials-toggle{
  margin-top: 30px;
  display: none;
}
.credentials-toggle.visible{ display: block; }

#more-credentials{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
#more-credentials.open{
  max-height: 3000px;
}

.toggle-btn{
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.toggle-btn:hover{
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- contact ---------- */
.contact{
  text-align: center;
}
.contact .wrap{ max-width: 560px; }
.contact h2{ }
.contact p{
  color: var(--ink-dim);
  font-size: 16px;
  margin-bottom: 40px;
}

.buttons{
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 340px;
  margin: 0 auto;
}
.btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn.whatsapp{
  background: var(--teal);
  color: #EDE7CC;
  border: 1px solid var(--teal);
}
.btn.whatsapp:hover{ box-shadow: 0 12px 30px -12px rgba(46,74,60,0.5); }
.btn.telegram{
  background: var(--gold);
  color: #EDE7CC;
  border: 1px solid var(--gold);
}
.btn.telegram:hover{ box-shadow: 0 12px 30px -12px rgba(138,46,40,0.4); }

.btn svg{ width: 20px; height: 20px; flex-shrink: 0; }

.social-line{
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-faint);
}
.social-line a{
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-faint);
}
.social-line a:hover{ color: var(--gold); }

.license{
  margin-top: 46px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ---------- footer ---------- */
footer{
  padding: 40px 0 60px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
  position: relative;
  z-index: 1;
}
footer strong{ color: var(--ink-dim); font-weight: 500; }

::selection{
  background: var(--gold-soft);
  color: var(--ink);
}

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  html{ scroll-behavior: auto; }
}
