/* ========== Font (self-hosted, no external requests) ========== */
/* Each weight gets its own unique family name — avoids browser confusion
   caused by these static files having mismatched internal names */
@font-face{
  font-family:'VazirmatnRegular'; src:url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'VazirmatnMedium'; src:url('fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight:500; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'VazirmatnSemiBold'; src:url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight:600; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'VazirmatnBold'; src:url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight:700; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'SahelBold'; src:url('fonts/Sahel-Bold.woff2') format('woff2');
  font-weight:700; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'SahelBlack'; src:url('fonts/Sahel-Black.woff2') format('woff2');
  font-weight:900; font-style:normal; font-display:swap;
}

/* ========== Design tokens ========== */
:root{
  --bg: #FAF3E8;
  --bg-soft: #F1E4CC;
  --ink: #2E241C;
  --ink-soft: #6B5A48;
  --teal: #1F4A46;
  --teal-dark: #16332F;
  --copper: #C46A2E;
  --copper-light: #E2924F;
  --line: #E4D3B0;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(46,36,28,0.25);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'VazirmatnRegular', sans-serif;
  line-height: 1.8;
}
strong{ font-family:'VazirmatnBold', sans-serif; font-weight:normal; }

.wrap{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,h2,h3{ margin:0 0 .5em; font-family:'SahelBlack', sans-serif; font-weight:normal; color: var(--teal-dark); }
p{ margin:0 0 1em; color: var(--ink-soft); }

.section-title{
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  text-align:center;
  margin-bottom: 2.2rem;
  position: relative;
}
.section-title::after{
  content:"";
  display:block;
  width:48px; height:4px;
  background: var(--copper);
  border-radius: 4px;
  margin: 14px auto 0;
}

.btn{
  display:inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-family:'VazirmatnBold', sans-serif; font-weight:normal;
  text-decoration:none;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--copper); color: #fff; box-shadow: 0 8px 20px -6px rgba(196,106,46,.6); }
.btn-outline{ background: transparent; color: var(--teal-dark); border: 2px solid var(--teal-dark); }
.btn-call{ background: var(--teal-dark); color:#fff; padding:10px 20px; white-space:nowrap; }
[dir="ltr"]{ white-space:nowrap; unicode-bidi:embed; }

/* ========== Header ========== */
.site-header{
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top:0; z-index: 50;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 24px;
  gap: 20px;
  flex-wrap: wrap;
  row-gap: 12px;
}
.header-right{ display:flex; align-items:center; gap:16px; }
.social-links{ display:flex; align-items:center; gap:10px; }
.social-links a{
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--teal-dark); border: 1.5px solid var(--line);
  transition: all .18s ease;
}
.social-links a:hover{ color:#fff; background: var(--copper); border-color: var(--copper); }
.social-links svg{ width:17px; height:17px; }
.social-jump-btn{
  display:none; /* only shown on narrow screens, see media query */
  width:34px; height:34px; border-radius:50%;
  align-items:center; justify-content:center;
  color: var(--teal-dark); border: 1.5px solid var(--line);
  transition: all .18s ease;
}
.social-jump-btn svg{ width:17px; height:17px; }
.social-jump-btn:hover{ color:#fff; background: var(--copper); border-color: var(--copper); }
.social-links-footer a{ border-color: rgba(255,255,255,.25); color:#fff; }
.social-links-footer a:hover{ background: var(--copper-light); border-color: var(--copper-light); }
.footer-contact{ gap:10px; }

.brand{ display:flex; align-items:center; gap:10px; font-family:'VazirmatnBold', sans-serif; white-space:nowrap; }
.brand-mark{ font-size:1.3rem; }
.brand-name strong{ color: var(--copper); }

/* ========== Hero ========== */
.hero{ padding: 70px 0 40px; }
.hero-inner{
  display:flex; align-items:center; justify-content:space-between; gap: 50px;
}
.hero-text{ flex: 1 1 520px; }
.eyebrow{
  display:inline-block; background: var(--bg-soft); color: var(--copper);
  padding: 6px 16px; border-radius: 999px; font-size:.85rem; font-family:'VazirmatnBold', sans-serif;
  margin-bottom: 18px;
}
.hero-text h1{ font-size: clamp(1.9rem, 4vw, 2.8rem); line-height:1.35; }
.hero-text .lead{ font-size: 1.05rem; max-width: 520px; }
.hero-actions{ display:flex; gap: 14px; margin-top: 10px; flex-wrap:wrap; }

.hero-badge{ flex: 0 0 auto; }
.badge-ring{
  width: 190px; height: 190px; border-radius: 50%;
  background: var(--teal);
  border: 6px solid var(--copper-light);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  color:#fff; text-align:center; box-shadow: var(--shadow);
}
.badge-time{ font-size: 1.9rem; font-family:'SahelBlack', sans-serif; }
.badge-label{ font-size:.8rem; opacity:.85; margin-top:4px; padding: 0 20px; }

/* ========== Trust bar ========== */
.trust-bar{ background: var(--teal-dark); padding: 22px 0; }
.trust-inner{
  display:flex; justify-content:space-around; flex-wrap:wrap; gap: 20px; text-align:center;
}
.trust-item{ color:#fff; display:flex; flex-direction:column; gap:4px; font-size:.9rem; }
.trust-num{ font-family:'SahelBlack', sans-serif; font-size:1.15rem; color: var(--copper-light); }

/* ========== Services ========== */
.services{ padding: 80px 0; }
.cards{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 24px;
}
.card{
  background:#fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align:center; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon{ font-size: 1.8rem; margin-bottom: 12px; }
.card h3{ font-size: 1.05rem; }
.card p{ font-size: .9rem; }

/* ========== Pricing ========== */
.pricing{ padding: 80px 0; }
.pricing-note-top{
  text-align:center; max-width: 520px; margin: -10px auto 30px;
  font-size:.9rem; color: var(--ink-soft);
}
.price-list{
  max-width: 640px; margin: 0 auto;
  background:#fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.price-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
}
.price-row:last-child{ border-bottom:none; }
.price-row:nth-child(even){ background: var(--bg); }
.price-name{ font-family:'VazirmatnMedium', sans-serif; }
.price-value{ font-family:'VazirmatnBold', sans-serif; color: var(--copper); white-space:nowrap; }

/* ========== Process ========== */
.process{ background: var(--bg-soft); padding: 80px 0; }
.steps{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 30px;
  position: relative;
}
.step{ text-align:center; padding: 0 10px; }
.step-num{
  display:block; font-size: 2.2rem; font-family:'SahelBlack', sans-serif; color: var(--copper);
  opacity:.5; margin-bottom: 6px;
}
.step h3{ font-size: 1.05rem; }
.step p{ font-size:.9rem; }

/* ========== Social section ========== */
.social-section{ padding: 70px 0; }
.social-section-sub{
  text-align:center; max-width: 480px; margin: -10px auto 34px;
  font-size:.95rem;
}
.social-section-grid{
  display:flex; justify-content:center; gap: 28px; flex-wrap:wrap;
}
.social-big{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  text-decoration:none; color: var(--ink); width:88px;
}
.social-big-icon{
  width:60px; height:60px; border-radius:50%; overflow:hidden;
  box-shadow: var(--shadow); transition: transform .18s ease;
  display:flex; align-items:center; justify-content:center;
  background:#fff; border: 1.5px solid var(--line); padding:10px;
}
.social-big-icon svg{ width:100%; height:100%; color: var(--teal-dark); }
.social-big:hover .social-big-icon{ transform: translateY(-4px); border-color: var(--copper); }
.social-big span:last-child{ font-size:.85rem; font-family:'VazirmatnMedium', sans-serif; }

/* ========== Resume / Experience ========== */
.resume{ background: var(--bg-soft); padding: 80px 0; }
.resume-intro{
  max-width: 640px; margin: -10px auto 40px; text-align:center;
  font-size: 1.02rem;
}
.resume-intro strong{ color: var(--teal-dark); }
.expertise-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 22px; margin-bottom: 36px;
}
.expertise-card{
  background:#fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align:center;
}
.expertise-icon{ font-size:1.6rem; margin-bottom:10px; }
.expertise-card h3{ font-size:1rem; }
.expertise-card p{ font-size:.87rem; margin:0; }
.project-tags{
  display:flex; flex-wrap:wrap; gap:10px; justify-content:center;
}
.project-tag{
  background: var(--teal-dark); color:#fff; font-size:.85rem; font-family:'VazirmatnMedium', sans-serif;
  padding: 8px 18px; border-radius: 999px;
}

/* ========== About ========== */
.about{ padding: 80px 0; }
.about-inner{ display:flex; align-items:center; gap: 50px; flex-wrap:wrap; }
.about-photo{
  flex: 0 0 240px; height: 240px; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--teal), var(--copper));
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 6px; /* subtle "frame" so any photo feels intentional */
}
.about-photo img{
  width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  display: block;
}
.about-text{ flex: 1 1 400px; }

/* ========== Booking ========== */
.booking{ background: var(--teal-dark); padding: 80px 0; }
.booking .section-title{ color:#fff; }
.booking .section-title::after{ background: var(--copper-light); }
.booking-sub{ text-align:center; color: #CBD9D6; max-width: 520px; margin: 0 auto 30px; }
.coverage-note{
  text-align:center; color: var(--copper-light); font-size:.9rem;
  margin: -18px auto 30px; font-family:'VazirmatnMedium', sans-serif;
}
.coverage-note strong{ color:#fff; }
.booking .btn-outline{ color:#fff; border-color: rgba(255,255,255,.6); }

.booking-form{
  max-width: 560px; margin: 0 auto;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 32px 28px;
  display:flex; flex-direction:column; gap:16px;
}
.booking-form-row{ display:flex; gap:16px; flex-wrap:wrap; }
.booking-form-row label{ flex:1 1 200px; }
.booking-form label{
  display:flex; flex-direction:column; gap:6px; color:#EAF2F0; font-size:.88rem;
  font-family:'VazirmatnMedium', sans-serif;
}
.booking-form input,
.booking-form select,
.booking-form textarea{
  border:1px solid rgba(255,255,255,.25); border-radius:8px; padding:10px 12px;
  font-family:'VazirmatnRegular', sans-serif; font-size:.92rem;
  background: rgba(255,255,255,.95); color: var(--ink);
}
.booking-form input::placeholder,
.booking-form textarea::placeholder{ color:#9b8f80; }
.booking-form textarea{ resize:vertical; }
.jalali-picker{ display:flex; gap:8px; }
.jalali-picker select{ flex:1; }

/* ---------- Jalali calendar popup (jcal) ---------- */
.jcal{ position:relative; }
.jcal-input{
  width:100%; cursor:pointer; background:#fff; color:var(--ink);
}
.jcal-popup{
  position:absolute; top:calc(100% + 6px); right:0; z-index:60;
  background:#fff; border:1px solid var(--line); border-radius:12px;
  box-shadow: var(--shadow); padding:14px; width:280px;
  color: var(--ink);
}
.jcal-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.jcal-title{ font-family:'VazirmatnMedium', sans-serif; font-size:.95rem; color: var(--teal-dark); }
.jcal-nav{
  background: var(--bg-soft); border:none; border-radius:6px; width:28px; height:28px;
  cursor:pointer; font-size:1rem; color: var(--teal-dark);
}
.jcal-nav:hover{ background: var(--copper); color:#fff; }
.jcal-weekdays{
  display:grid; grid-template-columns:repeat(7,1fr); text-align:center;
  font-size:.75rem; color: var(--ink-soft); margin-bottom:4px;
}
.jcal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:3px; }
.jcal-day{
  aspect-ratio:1; border:none; background:none; border-radius:8px; cursor:pointer;
  font-size:.85rem; font-family:'VazirmatnRegular', sans-serif; color: var(--ink);
}
.jcal-day:not(.jcal-day-disabled):not(.jcal-day-empty):hover{ background: var(--bg-soft); }
.jcal-day-empty{ cursor:default; }
.jcal-day-disabled{ color:#c9c0b3; cursor:not-allowed; text-decoration:line-through; }
.jcal-day-today{ font-family:'VazirmatnBold', sans-serif; color: var(--copper); }
.jcal-day-selected{ background: var(--teal-dark) !important; color:#fff !important; }
.jcal-note{ font-size:.75rem; color: var(--ink-soft); text-align:center; margin:10px 0 0; }
.booking-submit{ align-self:center; margin-top:6px; min-width:200px; }

.booking-alert{
  border-radius:8px; padding:12px 14px; font-size:.88rem; text-align:center;
}
.booking-alert-success{ background:#eaf8ee; color:#2d6a2d; border:1px solid #a8d5a8; }
.booking-alert-error{ background:#fdecec; color:#a12b2b; border:1px solid #e8a6a6; }

.booking-alt{ text-align:center; color:#CBD9D6; font-size:.88rem; margin-top:20px; }
.booking-alt a{ color: var(--copper-light); font-family:'VazirmatnMedium', sans-serif; text-decoration:none; }

/* ========== Footer ========== */
.site-footer{ background: var(--ink); color:#fff; padding: 40px 0 16px; }
.footer-inner{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.footer-inner p{ color:#C9BEAF; font-size:.9rem; }
.footer-contact{ display:flex; flex-direction:column; gap:6px; font-size:.9rem; }
.copyright{ text-align:center; color:#8a7c6c; font-size:.8rem; margin-top: 30px; }

/* ========== Responsive ========== */
@media (max-width: 820px){
  .hero-inner{ flex-direction:column; text-align:center; }
  .hero-actions{ justify-content:center; }
  .about-inner{ flex-direction:column; text-align:center; }
}

/* Narrow phones: swap the 4 messenger icons for a single icon
   that jumps down to the full social section */
@media (max-width: 480px){
  .header-inner{ padding: 12px 14px; gap: 10px; }
  .brand-name{ font-size: .82rem; }
  .social-links{ display:none; }
  .social-jump-btn{ display:flex; }
  .btn-call{ padding: 8px 12px; font-size: .78rem; }
}
