:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --wash: #f5f5f4;
  --r: 20px;          /* گردی لبه‌ها */
  --r-sm: 12px;
  --gap: clamp(1rem, 3vw, 2.25rem);
  --pad: clamp(1.25rem, 6vw, 6rem);
}

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

body {
  font-family: Vazirmatn, system-ui, sans-serif;
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(14px);
}
.nav__brand { font-size: .8rem; letter-spacing: .34em; font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2rem); font-size: .82rem; color: var(--muted); }
.nav__links a:not(.nav__cta):hover { color: var(--ink); }
.nav__cta {
  color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: .25rem 1rem; transition: background .25s, color .25s, border-color .25s;
}
.nav__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding: 7rem var(--pad) 6rem;
}
.hero__type { text-align: center; }
.hero__label { font-size: .72rem; letter-spacing: .3em; color: var(--muted); margin-bottom: 2.2rem; }
.hero__title {
  font-size: clamp(3.2rem, 11vw, 9rem);
  font-weight: 200; line-height: .86;
  letter-spacing: .04em; direction: ltr; text-indent: .04em;
}
.hero__sub { margin-top: 1.8rem; font-size: clamp(.95rem, 2.4vw, 1.15rem); letter-spacing: .12em; color: var(--muted); }

/* ---------- کلیپ هیرو ---------- */
.clip {
  position: relative; flex: 0 0 auto;
  width: clamp(190px, 24vw, 300px);
  aspect-ratio: 9 / 16;            /* تا وقتی ابعاد واقعی ویدیو خوانده شود */
  border-radius: 22px;
  background: var(--wash);
  isolation: isolate;
}
.clip video {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit; display: block;
}
.clip__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
}
.clip__ring rect { fill: none; vector-effect: non-scaling-stroke; }
.clip__track { stroke: var(--line); stroke-width: 2px; }
.clip__bar {
  /* مسیر rect از گوشهٔ بالا-چپ شروع می‌شود و ساعتگرد دور کارت می‌چرخد */
  stroke: var(--ink); stroke-width: 2.5px; stroke-linecap: round;
}
.clip__btn {
  position: absolute; inset: 0; width: 100%;
  border: 0; background: none; padding: 0; cursor: pointer;
  border-radius: inherit;
  display: flex; align-items: flex-end; justify-content: center;
}
.clip__hint {
  margin-bottom: .9rem; padding: .3rem .85rem;
  font-family: inherit; font-size: .7rem; color: var(--ink);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  transition: opacity .3s;
}
.clip__hint:empty { opacity: 0; }
.hero__cue {
  position: absolute; bottom: 2.5rem; left: 50%;
  width: 1px; height: 3.5rem; background: var(--line); overflow: hidden;
}
.hero__cue::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  animation: cue 2.4s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-block; margin-top: 3rem;
  padding: .85rem 2.6rem; border: 1px solid var(--ink); border-radius: 999px;
  font: inherit; font-size: .88rem; letter-spacing: .06em; cursor: pointer;
  background: none; color: var(--ink);
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { margin-top: 1.5rem; background: var(--ink); color: var(--paper); width: 100%; }
.btn--solid:hover { background: #333; }

/* ---------- بخش‌ها ---------- */
section { padding: clamp(5rem, 13vw, 10rem) var(--pad); }
.section-label {
  font-size: .72rem; letter-spacing: .28em; color: var(--muted);
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

/* ---------- دربارهٔ من ---------- */
.about { display: flex; justify-content: center; }
.about__text {
  font-size: clamp(1.15rem, 3.2vw, 2rem); font-weight: 200;
  max-width: 26ch; text-align: center; text-wrap: balance; line-height: 1.8;
}

/* ---------- عکس شاخصِ اسکرول‌محور ---------- */
.expand { padding: 0; height: 100svh; }
.expand__pin {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.expand__frame {
  position: relative;
  width: 100%; height: 100svh; border-radius: 0;
  overflow: hidden; background: var(--wash);
}
.expand__frame img { width: 100%; height: 100%; object-fit: cover; }
.expand__frame::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
  pointer-events: none;
}
.expand__cap {
  position: absolute; bottom: clamp(1.5rem, 5vw, 3rem);
  color: var(--paper); font-size: clamp(1rem, 2.6vw, 1.6rem); font-weight: 200;
  letter-spacing: .06em; text-shadow: 0 1px 24px rgba(0,0,0,.55);
  opacity: 0;
}

@supports (animation-timeline: view()) {
  .expand { height: 320svh; view-timeline: --exp block; }
  .expand__frame {
    animation: openFrame linear both;
    animation-timeline: --exp;
    animation-range: contain 0% contain 55%;
    will-change: width, height;
  }
  .expand__cap {
    animation: capIn linear both;
    animation-timeline: --exp;
    animation-range: contain 55% contain 78%;
  }
}
@keyframes openFrame {
  from { width: min(64vw, 300px); height: 46svh; border-radius: 26px; }
  to   { width: 100%;             height: 100svh; border-radius: 0; }
}
@keyframes capIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- گالری ---------- */
.gallery__grid { columns: 3; column-gap: var(--gap); }
.gallery__grid figure { break-inside: avoid; margin-bottom: var(--gap); }
.gallery__grid img {
  border-radius: var(--r);
  filter: grayscale(1);
  transition: filter .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.gallery__grid figure:hover img { filter: grayscale(0); transform: scale(1.015); }
.gallery__note { margin-top: 2rem; font-size: .78rem; color: var(--muted); text-align: center; }

/* ---------- خدمات ---------- */
.services__list { list-style: none; border-top: 1px solid var(--line); }
.services__list li {
  display: grid; grid-template-columns: 1fr 1.4fr auto;
  gap: var(--gap); align-items: baseline;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.services__list h3 { font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 400; }
.services__list p { color: var(--muted); font-size: .92rem; }
.services__list span { font-size: .85rem; white-space: nowrap; }
.services__note { margin-top: 1.5rem; font-size: .8rem; color: var(--muted); }

/* ---------- قبل و بعد از تتو ---------- */
.faq__list { max-width: 60ch; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.2rem 0; font-size: clamp(.98rem, 2vw, 1.1rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.3rem; font-weight: 200; color: var(--muted);
  transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding-bottom: 1.4rem; color: var(--muted); font-size: .95rem; max-width: 54ch;
}

/* ---------- رزرو ---------- */
.booking { background: var(--wash); }
.bk {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start; max-width: 1100px; margin-inline: auto;
}
.bk__cal, .bk__side {
  background: var(--paper); border-radius: var(--r);
  padding: clamp(1.1rem, 3vw, 1.9rem);
}
.bk__side { display: grid; gap: 1rem; }

.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal__title { font-weight: 400; font-size: 1.05rem; }
.cal__nav {
  font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer;
  width: 2.2rem; height: 2.2rem; border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--ink); transition: background .2s;
}
.cal__nav:hover:not(:disabled) { background: var(--wash); }
.cal__nav:disabled { opacity: .3; cursor: default; }

.cal__dows, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dows { font-size: .7rem; color: var(--muted); text-align: center; margin-bottom: 4px; }
.cal__day {
  font: inherit; font-size: .9rem; cursor: pointer;
  aspect-ratio: 1; display: grid; place-items: center;
  border: 0; border-radius: var(--r-sm); background: none; color: var(--ink);
  transition: background .18s, color .18s;
}
.cal__day:hover:not(:disabled, .is-picked) { background: var(--wash); }
.cal__day:disabled { color: #d4d4d4; cursor: default; }
.cal__day.is-picked { background: var(--ink); color: var(--paper); }
.cal__hint { margin-top: .9rem; font-size: .8rem; color: var(--muted); text-align: center; }

.slots { border: 0; }
.slots legend { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.slots[disabled] { opacity: .4; }
.slots__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot {
  font: inherit; font-size: .85rem; cursor: pointer;
  padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--ink); transition: background .2s, color .2s, border-color .2s;
}
.slot:hover { border-color: var(--ink); }
.slot.is-picked { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.fld { display: grid; gap: .35rem; font-size: .82rem; color: var(--muted); }
.fld em { font-style: normal; opacity: .7; }
.fld input, .fld select, .fld textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); resize: vertical;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--ink); outline: none; }
.bk__err { font-size: .85rem; color: #b00020; }
.bk__fine { font-size: .75rem; color: var(--muted); text-align: center; line-height: 1.7; }

/* ---------- فوتر ---------- */
.foot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad);
  font-size: .82rem; color: var(--muted);
  border-top: 1px solid var(--line);
}
.foot__col strong { display: block; color: var(--ink); font-weight: 400; margin-bottom: .5rem; }
.foot__col em { font-style: normal; opacity: .6; }
.foot a { border-bottom: 1px solid transparent; }
.foot a:hover { color: var(--ink); border-bottom-color: var(--line); }

/* ---------- نمایان‌شدن هنگام اسکرول ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__cue::after { animation: none; }
  .expand { height: 100svh; }
  .expand__frame, .expand__cap { animation: none; }
  .expand__cap { opacity: 1; }
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 900px) {
  .hero { flex-direction: column; justify-content: center; gap: 2.5rem; }
  .clip { width: min(56vw, 240px); }
  .gallery__grid { columns: 2; }
  .services__list li { grid-template-columns: 1fr auto; }
  .services__list p { grid-column: 1 / -1; }
  .bk { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 560px) {
  .gallery__grid { columns: 1; }
  .nav__links a:not(.nav__cta) { display: none; }
  .hero__cue { display: none; }
}
