:root {
  --bg: #faf8f3;
  --bg-soft: #f2efe7;
  --surface: #ffffff;
  --primary: #1e4d3b;
  --primary-dark: #143629;
  --primary-light: #e6efea;
  --sage: #3b7a5e;
  --gold: #b87d3b;
  --gold-soft: #f8efe4;
  --text: #1c2420;
  --text-muted: #526058;
  --border: rgba(30, 77, 59, 0.12);
  --shadow-sm: 0 4px 16px rgba(28, 36, 32, 0.05);
  --shadow-md: 0 12px 32px rgba(28, 36, 32, 0.08);
  --shadow-lg: 0 24px 48px rgba(20, 54, 41, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 77, 59, 0.22);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(20, 54, 41, 0.28);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  padding: 56px 0 40px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
}

.badge-gold {
  background: var(--gold-soft);
  color: #8c5a22;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.3;
  font-weight: 800;
  color: var(--primary-dark);
}

.hero h1 span {
  color: var(--sage);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.quick-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quick-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.hero-media {
  position: relative;
}

.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface);
  aspect-ratio: 4 / 4.4;
  background: var(--bg-soft);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 290px;
}

.float-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2.5px solid var(--primary-light);
  flex-shrink: 0;
}

.doctor-mini-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.doctor-mini-profile img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.float-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.float-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Stats Strip */
.stats-strip {
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.stat-card {
  text-align: center;
  padding: 8px;
  border-left: 1px solid var(--border);
}

.stat-card:last-child {
  border-left: none;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Section Base */
.section {
  padding: 68px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-header {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* About Split */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 5px solid var(--surface);
  aspect-ratio: 4 / 3.4;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-points {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.point-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.point-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Credentials & Timeline */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.credential-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.panel-head h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.timeline {
  position: relative;
  padding-right: 24px;
  border-right: 2px solid var(--primary-light);
  display: grid;
  gap: 22px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: -31px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--primary-light);
}

.timeline-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 4px;
}

.timeline-title {
  margin: 0 0 4px;
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--text);
}

.timeline-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Honors Cards */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.honor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.honor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.honor-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: #8c5a22;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.honor-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.honor-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Services */
.services-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.services-visual {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.services-visual img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 4 / 3.5;
  object-fit: cover;
  margin-bottom: 16px;
}

.services-visual-caption {
  padding: 4px 6px;
}

.services-visual-caption h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.services-visual-caption p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Interactive BMI & Booking Banner */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.bmi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.bmi-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.bmi-card > p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.bmi-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field select {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
}

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.calc-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.calc-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.calc-panel {
  display: none;
}

.calc-panel.active {
  display: block;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.macro-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-size: 0.84rem;
}

.macro-chip strong {
  display: block;
  font-size: 1rem;
  color: var(--primary);
}

.bmi-submit {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.bmi-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: none;
}

.bmi-result.visible {
  display: block;
}

.bmi-score {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.instagram-card {
  background: linear-gradient(135deg, #1e4d3b 0%, #143629 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.insta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 18px;
}

.instagram-card h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.4;
}

.instagram-card p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.96rem;
}

.btn-light {
  background: #fff;
  color: var(--primary-dark);
}

.btn-light:hover {
  background: var(--bg-soft);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: right;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[data-open='true'] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.94rem;
  display: none;
}

.faq-item[data-open='true'] .faq-answer {
  display: block;
}

/* Booking & Contact Footer */
.booking-cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.booking-cta-box h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  color: var(--primary-dark);
}

.booking-cta-box p {
  margin: 0 0 22px;
  color: var(--text-muted);
}

.contact-meta {
  display: grid;
  gap: 14px;
  background: var(--bg-soft);
  padding: 24px;
  border-radius: var(--radius-md);
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-row span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-row strong,
.contact-row a {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.86);
  padding: 34px 0;
  margin-top: 64px;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.mobile-sticky-cta {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    background: var(--surface);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    align-items: flex-start;
    gap: 14px;
  }

  .hero-grid,
  .about-grid,
  .credentials-grid,
  .services-layout,
  .tools-grid,
  .booking-cta-box {
    grid-template-columns: 1fr;
  }

  .honors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    border-left: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-card:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .hero-float-card {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }

  .services-visual {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 32px;
  }

  .hero-quick-info,
  .honors-grid,
  .services-grid,
  .bmi-form {
    grid-template-columns: 1fr;
  }

  .header-actions .btn {
    display: none;
  }

  .booking-cta-box {
    padding: 24px;
  }

  body {
    padding-bottom: 72px;
  }

  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 95;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    gap: 10px;
  }

  .mobile-sticky-cta .btn {
    flex: 1;
    padding: 11px 14px;
    font-size: 0.88rem;
  }
}

.hero-doctor-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.hero-doctor-avatar {
  width: 148px;
  height: 148px;
  border-radius: 28px;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-doctor-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-doctor-avatar {
    width: 116px;
    height: 116px;
  }
}

.hero-doctor-header h1 {
  margin: 0;
}

.ltr-handle {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.insta-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
}
