:root {
  --sky: #5ba4d6;
  --sky-deep: #3f8fc7;
  --sky-soft: #d7ebf8;
  --sky-mist: #eef6fc;
  --white: #ffffff;
  --ink: #14324a;
  --muted: #5d7d96;
  --line: rgba(91, 164, 214, 0.22);
  --font-display: "IRANSans", Tahoma, sans-serif;
  --font-body: "IRANSans", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  background: #f4f9fd;
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--sky);
  color: white;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  background: #0c243a;
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 700;
  text-align: center;
  color: #fff;
}

.loader__bar {
  width: min(220px, 50vw);
  height: 3px;
  margin-inline: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.loader__bar i {
  display: block;
  height: 100%;
  width: 12%;
  background: linear-gradient(90deg, #9fd0ef, #fff);
  border-radius: inherit;
  transition: width 0.25s linear;
}

.loader__text {
  margin: 0;
  text-align: center;
  color: rgba(220, 236, 248, 0.8);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3.5vw, 2.2rem);
  background: rgba(10, 28, 48, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.brand,
.header-nav,
.header-actions,
.header-call {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand__logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand__text {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.header-nav {
  display: flex;
  justify-content: center;
}

.header-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-menu a {
  color: rgba(236, 246, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}

.header-menu a:hover,
.header-menu a:focus-visible,
.header-menu .current-menu-item > a {
  color: #fff;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
}

.header-call {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #1a4a6e;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(8, 28, 48, 0.3);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.header-call:hover,
.header-call:focus-visible {
  background: #e8f4fc;
  transform: translateY(-1px);
}

/* Hero centered */
.hero {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.04);
  animation: hero-drift 22s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10, 28, 48, 0.25) 0%, rgba(10, 28, 48, 0.72) 70%),
    linear-gradient(180deg, rgba(10, 28, 48, 0.55) 0%, rgba(10, 28, 48, 0.35) 40%, rgba(10, 28, 48, 0.78) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2rem));
  margin: 6.5rem auto 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(186, 220, 242, 0.95);
}

.hero__brand {
  margin: 0;
  font-size: clamp(4.8rem, 14vw, 8.5rem);
  font-weight: 700;
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero__brand-fa {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: rgba(230, 244, 255, 0.92);
}

.hero__title {
  margin: 0 0 1rem;
  max-width: none;
  width: 100%;
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
}

.hero__lead {
  margin: 0 0 1.8rem;
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  font-weight: 500;
  line-height: 1.9;
  color: rgba(214, 232, 246, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.hero__cta,
.hero__phone {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 0;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.hero__cta {
  background: #fff;
  color: #1a4a6e;
  box-shadow: 0 16px 40px rgba(8, 28, 48, 0.35);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: #e8f4fc;
  transform: translateY(-2px);
}

.hero__phone {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.hero__phone:hover,
.hero__phone:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: rgba(220, 236, 248, 0.85);
  animation: bob 2.2s var(--ease) infinite;
}

/* Sections */
.section-head {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sky-deep);
}

.section-head__title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.section-head--light .section-head__eyebrow {
  color: #9fd0ef;
}

.section-head--light .section-head__title {
  color: #fff;
}

.empty-hint {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

.empty-hint--light {
  color: rgba(255, 255, 255, 0.75);
}

/* Services scroll — pinned GSAP stage */
.services-3d {
  position: relative;
  z-index: 6;
  padding: 3.5rem 0 1rem;
  background:
    radial-gradient(700px 360px at 80% 0%, rgba(91, 164, 214, 0.16), transparent 60%),
    linear-gradient(180deg, #f8fcff, #eef6fc);
}

.svc-stage {
  position: relative;
}

.svc-stage__pin {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 5.5rem 1rem 1.25rem;
  perspective: 1400px;
  box-sizing: border-box;
}

.svc-card-stack {
  position: relative;
  width: min(1040px, 100%);
  height: min(560px, 68vh);
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  transform-style: preserve-3d;
}

.svc-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(91, 164, 214, 0.18);
  box-shadow: 0 30px 80px rgba(20, 50, 74, 0.18);
  opacity: 0;
  visibility: hidden;
  transform-origin: center center;
  pointer-events: none;
  z-index: 0;
}

.svc-card.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.svc-card.is-past,
.svc-card.is-next {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.svc-hint {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.svc-card__media {
  min-height: 100%;
  overflow: hidden;
  background: #d7ebf8;
}

.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.35rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  text-align: right;
  background: linear-gradient(160deg, #ffffff 0%, #f3f9fd 100%);
  overflow: auto;
}

.svc-card__index {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sky);
}

.svc-card__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
}

.svc-card__text {
  margin: 0.35rem 0 0.85rem;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.02rem;
}

.svc-card__cta,
.work-card__cta,
.btn-book {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--sky);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(91, 164, 214, 0.32);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.svc-card__cta:hover,
.work-card__cta:hover,
.btn-book:hover {
  background: var(--sky-deep);
  transform: translateY(-2px);
}

.svc-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: min(1040px, 100%);
}

.svc-dots__item {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(91, 164, 214, 0.28);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.svc-dots__item.is-on {
  width: 30px;
  background: var(--sky);
}

/* Works */
.works-3d {
  position: relative;
  z-index: 6;
  padding: 5rem 0 4rem;
  background:
    radial-gradient(800px 420px at 20% 0%, rgba(91, 164, 214, 0.25), transparent 55%),
    linear-gradient(165deg, #163953 0%, #1f4f70 45%, #2a6890 100%);
  overflow: hidden;
}

.works-rail {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  perspective: 1200px;
}

.work-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.35rem;
  align-items: stretch;
  padding: 1.15rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.work-card:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.work-card:nth-child(even) .work-card__visual {
  order: 2;
}

.work-card__visual {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.work-card__frame {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.45s var(--ease);
}

.work-card:hover .work-card__frame {
  transform: scale(1.015);
}

.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.work-card__thumb {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  opacity: 0.72;
  flex: 0 0 auto;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}

.work-card__thumb.is-active,
.work-card__thumb:hover {
  opacity: 1;
  border-color: #fff;
}

.work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__copy {
  color: #fff;
  text-align: right;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.work-card__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 700;
}

.work-card__text {
  margin: 0 0 1.25rem;
  color: rgba(220, 236, 248, 0.88);
  line-height: 1.8;
}

.work-card__cta {
  align-self: flex-start;
  background: #fff;
  color: #1a4a6e;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.work-card__cta:hover {
  background: #e8f4fc;
}

/* Blog */
.blog-cards {
  position: relative;
  z-index: 6;
  padding: 5rem 0;
  background: #f7fbfe;
}

.blog-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(91, 164, 214, 0.16);
  box-shadow: 0 16px 40px rgba(20, 50, 74, 0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(20, 50, 74, 0.14);
}

.blog-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
  text-align: right;
}

.blog-card__body time {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sky-deep);
}

.blog-card__body h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
}

.blog-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* Contact / booking */
.contact {
  position: relative;
  z-index: 8;
  min-height: 88vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(165deg, #3f8fc7 0%, #5ba4d6 48%, #3a7fb3 100%);
  color: #fff;
}

.contact__stage {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.contact__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(63, 143, 199, 0.55), rgba(58, 127, 179, 0.85));
}

.contact__content {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 2rem));
  margin: 5rem auto;
  text-align: center;
}

.contact__eyebrow {
  margin: 0 0 0.65rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(230, 244, 255, 0.95);
}

.contact__brand {
  margin: 0 0 0.9rem;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-shadow: 0 16px 40px rgba(8, 28, 48, 0.28);
}

.contact__lead {
  margin: 0 auto 1.75rem;
  max-width: 28ch;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.75;
  color: #ffffff;
}

.contact__details {
  display: grid;
  gap: 1.15rem;
  width: min(640px, 100%);
  margin: 0 auto 1.75rem;
  text-align: center;
}

.contact__item {
  display: grid;
  gap: 0.4rem;
}

.contact__label {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(186, 220, 242, 0.98);
}

.contact__item p {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.8;
  font-weight: 700;
  color: #fff;
}

.contact__phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.4rem;
}

.contact__phones a {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: #fff;
}

.contact__phones a:hover {
  text-decoration: underline;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.contact__cta {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.9rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1a4a6e;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(8, 28, 48, 0.28);
}

.contact__cta:hover {
  background: #e8f4fc;
}

.contact__cta--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.contact__cta--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
  background: #0c243a;
  color: rgba(220, 236, 248, 0.85);
  font-size: 0.92rem;
}

.site-footer a {
  color: #fff;
  font-weight: 600;
}

.book-cta-wrap {
  margin-top: 0.5rem;
}

.dorsa-book-trigger.contact__cta,
.contact__cta.dorsa-book-trigger,
.dorsa-book-trigger.hero__cta,
.dorsa-book-trigger.header-call {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

@keyframes bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
  }

  .brand {
    grid-area: brand;
  }

  .header-actions {
    grid-area: actions;
  }

  .header-nav {
    grid-area: nav;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .svc-card {
    grid-template-columns: 1fr;
  }

  .svc-card__media {
    min-height: 200px;
    max-height: 220px;
  }

  .svc-card-stack {
    height: min(620px, 72vh);
  }

  .svc-hint {
    display: none;
  }

  .work-card,
  .work-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .work-card:nth-child(even) .work-card__visual {
    order: 0;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-menu a {
    font-size: 0.86rem;
  }

  .hero__title {
    white-space: normal;
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg,
  .hero__scroll {
    animation: none;
  }
}

.page-fallback {
  width: min(860px, calc(100% - 2rem));
  margin: 6.5rem auto 3rem;
}

.content-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(91, 164, 214, 0.16);
}

.content-card h1 {
  margin-top: 0;
}
