@font-face {
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanX-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanX-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanX-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanX-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #122830;
  --ink-soft: #3d5560;
  --muted: #5e7480;
  --line: #d7e4ea;
  --bg: #f4f8fa;
  --surface: #ffffff;
  --teal: #2b7a8e;
  --teal-dark: #185468;
  --teal-deep: #0e3644;
  --teal-soft: #e5f3f7;
  --gold: #c2783a;
  --danger: #b45309;
  --danger-soft: #fff7ed;
  --shadow: 0 10px 30px rgba(14, 54, 68, 0.08);
  --shadow-lg: 0 18px 50px rgba(14, 54, 68, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --header: 64px;
  --dock: 58px;
  --wrap: 1120px;
  --font: "IRANYekanX", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--dock) + 12px + env(safe-area-inset-bottom));
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; text-align: justify; text-align-last: start; text-justify: inter-word; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}
.skip {
  position: absolute;
  right: -999px;
  background: var(--teal-deep);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 100;
}
.skip:focus { right: 12px; top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215, 228, 234, .8);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo img {
  height: 38px;
  width: auto;
  max-width: min(52vw, 200px);
  object-fit: contain;
}
.logo-text { display: none; }
.nav-desktop { display: none; }
.btn.header-cta {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 11px;
  font-size: 13px;
  border-radius: 12px;
  white-space: nowrap;
  gap: 6px;
}
.wa-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  min-height: 78svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .85s ease, transform 5.5s ease-out;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 54, 68, .32) 0%, rgba(14, 54, 68, .72) 52%, rgba(10, 36, 46, .92) 100%);
  z-index: -1;
}
.hero-inner { padding: 28px 0 36px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 6.4vw, 2.6rem);
  margin-bottom: .35em;
}
.hero .lead {
  color: rgba(255,255,255,.88);
  font-size: 1.02rem;
  max-width: 36ch;
  margin-bottom: 1.2rem;
  text-align: start;
}
.hero-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12.5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}
.btn-outline {
  background: #fff;
  color: var(--teal-dark);
  border: 1px solid var(--line);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-whatsapp { background: #128c7e; color: #fff; }
.btn-block { width: 100%; }

/* Sections */
section { padding: 52px 0; }
.section-head { margin-bottom: 22px; }
.section-head p { color: var(--muted); margin: 0; }
.kicker {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 6px;
  text-align: start;
}

/* About */
.about-card {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  background: var(--teal-soft);
}
.about-body { padding: 22px 20px 24px; }
.about-list { display: grid; gap: 10px; margin: 16px 0 18px; }
.about-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  text-align: justify;
  text-justify: inter-word;
}
.icon-dot {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
}
.icon-dot svg { width: 15px; height: 15px; }

/* Warning */
.warning {
  background: var(--danger-soft);
  border: 1px solid #f6d7b0;
  border-radius: var(--radius);
  padding: 20px;
}
.warning h2 { font-size: 1.15rem; color: #9a3412; }
.media {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.media video { width: 100%; max-height: 62vh; }

/* Services */
.services { background: #fff; }
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 12px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card strong { font-size: 13.5px; line-height: 1.5; text-align: start; }
.service-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
}
.service-ico svg {
  width: 24px;
  height: 24px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Stats */
.stats {
  background:
    linear-gradient(180deg, rgba(14,54,68,.82), rgba(14,54,68,.9)),
    url("../images/clinic.webp") center / cover no-repeat;
  color: #fff;
}
.stats h2 { color: #fff; text-align: center; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}
.stat {
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 18px 10px;
}
.stat b {
  display: block;
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.stat span { color: rgba(255,255,255,.82); font-size: 14px; }

/* Tabs */
.tabs {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tablist {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
}
.tablist button {
  flex: 1 0 auto;
  min-height: 50px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 0 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tablist button[aria-selected="true"] {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}
.tabpanel { padding: 20px 18px 22px; display: none; }
.tabpanel.is-open { display: block; }
.tabpanel ul { display: grid; gap: 8px; margin-top: 10px; }
.tabpanel li {
  text-align: justify;
  text-justify: inter-word;
}
.tabpanel li::before { content: "• "; color: var(--teal); }

/* Fellowship */
.fellowship-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fellowship-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 280px;
  object-fit: cover;
  object-position: center 18%;
}
.check-list { display: grid; gap: 12px; }
.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  text-align: justify;
  text-justify: inter-word;
}
.check { color: var(--teal); margin-top: 4px; }

/* Care cards */
.care-grid { display: grid; gap: 10px; }
.care-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.care-card h3 { font-size: 1rem; margin-bottom: .3em; color: var(--teal-dark); }

/* Accordion */
.accordion { display: grid; gap: 10px; }
.acc-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.acc-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: "+";
  color: var(--teal);
  font-size: 1.3rem;
  line-height: 1;
  flex: 0 0 auto;
}
.acc-item[open] summary::after { content: "–"; }
.acc-item .acc-body { padding: 0 18px 16px; color: var(--ink-soft); text-align: justify; text-justify: inter-word; }

/* Contact / Footer */
.site-footer {
  background: var(--teal-deep);
  color: #e8f3f6;
  padding: 48px 0 28px;
  margin-bottom: 0;
}
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #cfe8ef; }
.footer-grid { display: grid; gap: 28px; }
.contact-list { display: grid; gap: 10px; }
.contact-list li { text-align: justify; text-justify: inter-word; }
.contact-list a, .contact-list span { color: inherit; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: auto;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.site-footer img { max-width: 200px; height: auto; filter: brightness(1.05); }
.acc-item summary { font-size: 15px; }
.credit {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  color: rgba(255,255,255,.7);
  text-align: center;
}
.credit a {
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.credit a:hover { border-bottom-color: #fff; }

/* Mobile dock */
.dock {
  position: fixed;
  inset-inline: 10px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(215, 228, 234, .9);
  border-radius: 16px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  box-shadow: 0 8px 22px rgba(14, 54, 68, .12);
}
.dock a, .dock button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 10px;
  font-weight: 700;
  min-height: 46px;
  justify-content: center;
  cursor: pointer;
  border-radius: 13px;
  line-height: 1.2;
}
.dock svg { width: 18px; height: 18px; }
.dock-menu { color: var(--teal-deep); }
.dock-map { color: var(--teal-dark); }
.dock-tel { color: var(--teal-dark); }
.dock .is-accent {
  background: #128c7e;
  color: #fff;
}
.dock .is-accent svg { width: 18px; height: 18px; }

/* Sheets */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .4s;
}
.sheet.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 38, .48);
  opacity: 0;
  transition: opacity .32s ease;
}
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 82svh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(110%);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}
.sheet.is-open .sheet-panel { transform: translateY(0); }
.sheet-handle {
  width: 42px;
  height: 4px;
  background: #d5dee3;
  border-radius: 99px;
  margin: 0 auto 14px;
}
.sheet-nav a {
  display: block;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}
.map-link {
  display: block;
  margin-top: 12px;
}

.page-hero {
  padding: 28px 0 8px;
  background: linear-gradient(180deg, #e8f3f7, var(--bg));
}
.page-hero h1 { font-size: clamp(1.5rem, 5.5vw, 2.1rem); }

.download-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: var(--teal-soft);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
}
.download-card a { font-weight: 800; }

.not-found { min-height: 70svh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }

/* Light page motion */
.hero-inner > * {
  animation: rise .42s ease both;
}
.hero-inner > :nth-child(2) { animation-delay: .05s; }
.hero-inner > :nth-child(3) { animation-delay: .1s; }
.hero-inner > :nth-child(4) { animation-delay: .15s; }
.hero-inner > :nth-child(5) { animation-delay: .2s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .4s ease;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.service-grid .reveal:nth-child(2) { transition-delay: .04s; }
.service-grid .reveal:nth-child(3) { transition-delay: .08s; }
.service-grid .reveal:nth-child(4) { transition-delay: .12s; }
.service-grid .reveal:nth-child(5) { transition-delay: .04s; }
.service-grid .reveal:nth-child(6) { transition-delay: .08s; }
.service-grid .reveal:nth-child(7) { transition-delay: .12s; }
.service-grid .reveal:nth-child(8) { transition-delay: .04s; }
.service-grid .reveal:nth-child(9) { transition-delay: .08s; }
.service-grid .reveal:nth-child(10) { transition-delay: .12s; }
.service-grid .reveal:nth-child(11) { transition-delay: .04s; }
.service-grid .reveal:nth-child(12) { transition-delay: .08s; }
.stats-grid .reveal:nth-child(2) { transition-delay: .06s; }
.stats-grid .reveal:nth-child(3) { transition-delay: .12s; }
.care-grid .reveal:nth-child(2) { transition-delay: .05s; }
.care-grid .reveal:nth-child(3) { transition-delay: .1s; }
.care-grid .reveal:nth-child(4) { transition-delay: .05s; }
.care-grid .reveal:nth-child(5) { transition-delay: .1s; }
@media (hover: hover) {
  .service-card:hover,
  .care-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #c5dbe3;
  }
  .js .service-card.reveal.is-in:hover,
  .js .care-card.reveal.is-in:hover {
    transform: translateY(-3px);
  }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .nav-desktop {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .nav-desktop a {
    padding: 8px 10px;
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 14.5px;
    border-radius: 10px;
  }
  .nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--teal-dark); background: var(--teal-soft); }
  .btn.header-cta { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .logo img { height: 48px; max-width: 260px; }
  .hero { min-height: 86vh; align-items: center; }
  .hero-slides { display: none; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(14, 54, 68, .28) 0%, rgba(14, 54, 68, .72) 55%, rgba(10, 36, 46, .92) 100%),
      url("../images/clinic.webp") center / cover no-repeat;
  }
  .hero-actions { grid-template-columns: max-content max-content; width: max-content; }
  .about-card, .fellowship-split {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    align-items: start;
  }
  .about-photo { height: 100%; aspect-ratio: auto; }
  .fellowship-card img {
    height: auto;
    max-height: 360px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .care-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1.3fr 1fr; align-items: start; }
  .sheet-panel {
    inset-inline: auto;
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(480px, 92vw);
    border-radius: 20px;
    max-height: 80vh;
    transform: translate(-50%, calc(-50% + 24px)) scale(.96);
    opacity: 0;
    transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
  }
  .sheet.is-open .sheet-panel {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  .split-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-slide { transform: none; opacity: 0; }
  .hero-slide.is-active { opacity: 1; }
}
