/* =========================================================
   Inspired by Premier Arts Dental structure & tone
   Content: Dr. Reyhaneh Saatchi
   ========================================================= */

:root {
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --teal-soft: #ccfbf1;
  --ink: #14212b;
  --muted: #5b6b76;
  --line: #e5ecef;
  --bg: #ffffff;
  --bg-soft: #f3f8f9;
  --bg-deep: #0f2f33;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(15, 47, 51, 0.1);
  --radius: 18px;
  --container: 1180px;
  --header: 84px;
  --font: "Vazirmatn", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, 820px);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #050505;
  color: #fff;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

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

.preloader.is-done .preloader__portrait {
  animation: none;
  transform: scale(1.85);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.55s ease;
}

.preloader.is-done .preloader__title {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.preloader__box {
  display: grid;
  justify-items: center;
  justify-content: center;
  gap: 5rem;
  text-align: center;
  width: 100%;
}

.preloader__portrait {
  position: relative;
  width: min(42vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  animation: loaderGrow 4.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.preloader__portrait::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #0b5f59 0deg,
    #5eead4 55deg,
    #14b8a6 120deg,
    #ccfbf1 180deg,
    #0f766e 240deg,
    #2dd4bf 300deg,
    #0b5f59 360deg
  );
  animation: goldSpin 1.8s linear infinite;
  box-shadow:
    0 0 18px rgba(20, 184, 166, 0.5),
    0 0 40px rgba(94, 234, 212, 0.28);
  z-index: 0;
}

.preloader__portrait::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.85) 28deg,
    transparent 70deg,
    transparent 360deg
  );
  animation: goldSpin 1.8s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
}

.preloader__portrait img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.preloader__title {
  display: inline-block;
  min-height: 1.6em;
  text-align: center;
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  white-space: nowrap;
}

.preloader__title.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-right: 3px;
  background: #5eead4;
  vertical-align: -0.12em;
  animation: caretBlink 0.75s step-end infinite;
}

@keyframes loaderGrow {
  0% { transform: scale(0.62); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 1; }
}

@keyframes goldSpin {
  to { transform: rotate(360deg); }
}

@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 47, 51, 0.06);
}

.header-row {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #14b8a6, var(--teal));
  color: #fff;
  font-size: 1.15rem;
}

.brand__text {
  display: grid;
  line-height: 1.25;
}

.brand__text strong {
  font-size: 0.95rem;
}

.brand__text small {
  font-size: 0.72rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.45rem;
  margin-inline: auto;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.25s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--teal-dark);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  transition: 0.3s;
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem;
}

.btn-accent {
  background: var(--teal);
  color: #fff;
}

.btn-accent:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: #c9d7dc;
  background: #fff;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 18, 22, 0.55) 0%, rgba(6, 18, 22, 0.45) 35%, rgba(6, 18, 22, 0.88) 100%),
    linear-gradient(270deg, rgba(6, 18, 22, 0.72) 0%, rgba(6, 18, 22, 0.35) 55%, transparent 85%),
    radial-gradient(ellipse 80% 70% at 70% 60%, rgba(0, 0, 0, 0.35), transparent 70%);
}

.hero__shell {
  position: relative;
  z-index: 2;
  width: min(100% - clamp(2.5rem, 8vw, 6rem), var(--container));
  margin-inline: auto;
  padding-block: 5rem 4.5rem;
}

.hero__content {
  max-width: 720px;
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: right;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.hero .eyebrow {
  color: #99f6e4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.hero h1,
.hero__slogan {
  font-size: clamp(1.85rem, 4.4vw, 3.4rem);
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .hero__slogan {
    white-space: normal;
    font-size: clamp(1.55rem, 6.5vw, 2.1rem);
  }
}

.hero__lead {
  font-size: 1.08rem;
  font-weight: 300;
  max-width: 52ch;
  opacity: 0.92;
  margin-bottom: 1.6rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero-call {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 1rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
  position: relative;
}

.hero-call:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero-call img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.hero-call__badge {
  position: absolute;
  right: 2.55rem;
  bottom: 0.2rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.hero-call__text {
  display: grid;
  line-height: 1.25;
  text-align: right;
  padding-inline-end: 0.15rem;
}

.hero-call__text small {
  font-size: 0.72rem;
  opacity: 0.78;
  font-weight: 500;
}

.hero-call__text strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 560px;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__stats strong {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
  font-weight: 500;
}

.hero__stats span {
  font-size: 1rem;
  font-weight: 600;
}

/* Media strip — seamless infinite loop */
.media-strip {
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  direction: ltr; /* keep marquee math stable */
}

.media-strip__track {
  display: flex;
  width: max-content;
  animation: strip 32s linear infinite;
  will-change: transform;
}

.media-strip__group {
  display: flex;
  gap: 0.85rem;
  padding-inline-end: 0.85rem;
  flex-shrink: 0;
}

.media-strip img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}

.media-strip:hover .media-strip__track {
  animation-play-state: paused;
}

@keyframes strip {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--soft {
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(204, 251, 241, 0.55), transparent 60%),
    var(--bg-soft);
}

.section-intro {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-intro--center {
  text-align: center;
  margin-inline: auto;
}

.section-intro h2,
.contact-layout h2,
.final-cta h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.35;
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}

.section-intro p,
.contact-lead {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
}

/* Before / After slider */
.ba-showcase {
  width: min(100%, 860px);
  margin-inline: auto;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  background: #102428;
  direction: ltr;
}

.ba-slider__after,
.ba-slider__before {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider__before-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  border-right: 3px solid rgba(255, 255, 255, 0.9);
}

.ba-slider__before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--slider-w, 100%);
  max-width: none;
  object-fit: cover;
}

.ba-slider__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  z-index: 2;
}

.ba-slider__handle span {
  width: 18px;
  height: 2px;
  background: var(--teal-dark);
  position: relative;
}

.ba-slider__handle span::before,
.ba-slider__handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--teal-dark);
  border-right: 2px solid var(--teal-dark);
}

.ba-slider__handle span::before {
  left: -11px;
  transform: translateY(-50%) rotate(-135deg);
}

.ba-slider__handle span::after {
  right: -11px;
  transform: translateY(-50%) rotate(45deg);
}

.ba-slider__label {
  position: absolute;
  top: 1rem;
  z-index: 2;
  background: rgba(15, 47, 51, 0.65);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  backdrop-filter: blur(6px);
}

.ba-slider__label--before { left: 1rem; }
.ba-slider__label--after { right: 1rem; }

/* Reviews marquee */
.reviews-marquee {
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.reviews-marquee__track {
  display: flex;
  width: max-content;
  animation: reviewsScroll 95s linear infinite;
  will-change: transform;
}

.reviews-marquee:hover .reviews-marquee__track {
  animation-play-state: paused;
}

.reviews-marquee__group {
  display: flex;
  gap: 1rem;
  padding-inline-end: 1rem;
  flex-shrink: 0;
}

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.3rem;
  width: min(320px, 78vw);
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(15, 47, 51, 0.04);
  text-align: right;
  direction: rtl;
}

.review-card__stars {
  color: #14b8a6;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1;
}

.review-card__stars .star-empty {
  color: #cbd5d8;
}

.review-card p {
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0.95rem;
  font-weight: 400;
  line-height: 1.75;
}

.review-card strong {
  color: var(--muted);
  font-size: 0.86rem;
}

@keyframes reviewsScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 200px 1fr;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  position: relative;
  z-index: 1;
  padding: 1.3rem 1.25rem 1.45rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  background: #fff;
}

.service-card h3 {
  font-size: 1.2rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.service-card a {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card a:hover {
  color: var(--teal-dark);
}

/* Difference */
.section--dark {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.difference__bg {
  position: absolute;
  inset: 0;
}

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

.difference__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 35, 38, 0.88), rgba(10, 35, 38, 0.62));
}

.difference__inner {
  position: relative;
  z-index: 1;
}

.section-intro--light .eyebrow {
  color: #99f6e4;
}

.section-intro--light h2,
.section-intro--light p {
  color: #fff;
}

.section-intro--light p {
  opacity: 0.85;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.diff-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 1.5rem 1.3rem;
  backdrop-filter: blur(8px);
}

.diff-card span {
  display: block;
  color: #5eead4;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.diff-card h3 {
  margin-bottom: 0.5rem;
}

.diff-card p {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  font-size: 0.94rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-grid button {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 0;
  background: #dbe7ea;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15, 47, 51, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.gallery-grid button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 47, 51, 0.12);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-grid button:hover img {
  transform: scale(1.04);
}

/* Booking — redesigned panel */
.booking {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(20, 184, 166, 0.16), transparent 55%),
    linear-gradient(180deg, #f3f8f9 0%, #eef5f6 100%);
}

.booking-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 47, 51, 0.14);
  border: 1px solid rgba(15, 118, 110, 0.12);
  background: #fff;
}

.booking-aside {
  background:
    radial-gradient(500px 280px at 20% 0%, rgba(45, 212, 191, 0.22), transparent 60%),
    linear-gradient(165deg, #0f2f33 0%, #0b5f59 55%, #0f766e 100%);
  color: #fff;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.booking-aside__media {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 0.4rem;
}

.booking-aside__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow--light {
  color: #99f6e4;
}

.booking-aside h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.4;
  margin: 0;
}

.booking-aside > p {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  font-size: 0.98rem;
}

.booking-aside__meta {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.booking-aside__meta div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
}

.booking-aside__meta i {
  color: #5eead4;
  width: 1.1rem;
  text-align: center;
}

.booking-aside__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.booking-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.25s, transform 0.25s;
}

.booking-mini:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.booking-mini--wa {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.35);
}

.booking-form {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: grid;
  gap: 1.15rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}

.booking-form__head h3 {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.booking-form__head p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
}

.field-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field-line {
  display: grid;
  gap: 0.4rem;
}

.field-line span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.field-line input,
.field-line textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid #d7e2e6;
  background: transparent;
  border-radius: 0;
  padding: 0.75rem 0.15rem;
  outline: none;
  text-align: right;
  transition: border-color 0.25s, background 0.25s;
}

.field-line input[dir="ltr"] {
  text-align: left;
}

.field-line textarea {
  resize: vertical;
  min-height: 88px;
  border: 1px solid #d7e2e6;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: #fff;
}

.field-line input:focus {
  border-bottom-color: var(--teal);
  background: linear-gradient(180deg, transparent 70%, rgba(204, 251, 241, 0.35));
}

.date-field {
  position: relative;
  display: flex;
  align-items: center;
}

.date-field input {
  width: 100%;
  padding-left: 2rem;
  cursor: pointer;
}

.date-field i {
  position: absolute;
  left: 0.15rem;
  color: var(--teal);
  pointer-events: none;
  font-size: 1rem;
}

/* JalaliDatePicker theme — teal + Vazir */
jdp-container {
  --jdp-primary: #0f766e;
  --jdp-color-0: #ffffff;
  --jdp-color-1: #f0fafa;
  --jdp-color-2: #d9efec;
  --jdp-color-3: #9cc9c3;
  --jdp-color-4: #5b7f7a;
  --jdp-color-5: #14212b;
  --jdp-day-size: 46px;
  font-family: var(--font);
  border-radius: 16px !important;
  box-shadow: 0 18px 50px rgba(15, 47, 51, 0.18) !important;
  border: 1px solid rgba(15, 118, 110, 0.12);
  overflow: hidden;
}

jdp-container .jdp-day:not(.disabled-day):hover {
  background: #ccfbf1 !important;
  color: #0b5f59;
}

jdp-container .jdp-btn-today,
jdp-container .jdp-btn-empty,
jdp-container .jdp-btn-close {
  background: var(--teal) !important;
  border-radius: 999px !important;
  font-family: var(--font);
  font-weight: 600;
}

@media only screen and (max-width: 481px) {
  jdp-container {
    --jdp-day-size: 48px;
    border-radius: 20px 20px 0 0 !important;
  }
}

.field-line textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.field-line.is-invalid input,
.service-pick.is-invalid .service-pick__chips {
  border-color: #dc2626;
}

.field-line.is-invalid input {
  border-bottom-color: #dc2626;
}

.service-pick {
  display: grid;
  gap: 0.65rem;
}

.service-pick__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.service-pick__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.2rem;
  border-radius: 14px;
  border: 1px solid transparent;
}

.chip {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #eef5f6;
  border: 1px solid #d7e2e6;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  transition: 0.25s var(--ease);
}

.chip:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.chip.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.25);
}

.booking-submit {
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1rem 1.4rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f766e, #0b5f59);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.booking-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.34);
}

.form-note {
  min-height: 1.3em;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.form-note.is-success { color: #0f766e; }
.form-note.is-error { color: #b91c1c; }

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.35rem 1.2rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 1.3rem;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  color: var(--muted);
  padding-bottom: 1rem;
  font-weight: 300;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.contact-list a,
.contact-list div {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 500;
}

.contact-list i {
  color: var(--teal);
  margin-top: 0.3rem;
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-visual {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
}

.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

/* Articles — notebook / booklet */
.articles {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 380px at 10% 0%, rgba(15, 118, 110, 0.07), transparent 55%),
    linear-gradient(180deg, #eef6f7 0%, #f5fafb 55%, #ffffff 100%);
}

.articles__intro {
  position: relative;
  max-width: 560px;
}

.mag-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.mag-card {
  position: relative;
  display: flex;
  min-height: 100%;
  perspective: 900px;
  cursor: pointer;
}

.mag-card__spine {
  position: absolute;
  inset-block: 10px;
  inset-inline-end: auto;
  inset-inline-start: 0;
  width: 18px;
  z-index: 3;
  border-radius: 10px 0 0 10px;
  background:
    radial-gradient(circle at 50% 12%, #d7e6e8 0 3px, transparent 3.5px),
    radial-gradient(circle at 50% 28%, #d7e6e8 0 3px, transparent 3.5px),
    radial-gradient(circle at 50% 44%, #d7e6e8 0 3px, transparent 3.5px),
    radial-gradient(circle at 50% 60%, #d7e6e8 0 3px, transparent 3.5px),
    radial-gradient(circle at 50% 76%, #d7e6e8 0 3px, transparent 3.5px),
    radial-gradient(circle at 50% 92%, #d7e6e8 0 3px, transparent 3.5px),
    linear-gradient(90deg, #0f766e 0%, #147f77 55%, #0b5f59 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.18);
}

.mag-card__page {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-inline-start: 10px;
  padding: 0.85rem 0.85rem 1.1rem;
  border-start-start-radius: 4px;
  border-start-end-radius: 14px;
  border-end-end-radius: 14px;
  border-end-start-radius: 4px;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 27px,
      rgba(15, 118, 110, 0.08) 27px 28px
    ),
    linear-gradient(180deg, #fbfdfe 0%, #f4f9fa 100%);
  border: 1px solid rgba(15, 47, 51, 0.08);
  box-shadow:
    -6px 10px 0 -4px rgba(15, 47, 51, 0.04),
    -10px 16px 0 -8px rgba(15, 47, 51, 0.03),
    0 18px 36px rgba(15, 47, 51, 0.1);
  transform-origin: right center;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.mag-card:hover .mag-card__page {
  transform: rotateY(-5deg) translateY(-4px);
  box-shadow:
    -8px 14px 0 -4px rgba(15, 47, 51, 0.05),
    -14px 22px 0 -8px rgba(15, 47, 51, 0.035),
    0 24px 44px rgba(15, 47, 51, 0.14);
}

.mag-card__page::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  bottom: 0.9rem;
  inset-inline-start: 0.55rem;
  width: 1px;
  background: rgba(196, 92, 92, 0.35);
  pointer-events: none;
  z-index: 1;
}

.mag-card__media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 5 / 3.4;
  border-radius: 3px;
  border: 1px solid rgba(15, 47, 51, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  background: #d9e8ea;
}

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

.mag-card:hover .mag-card__media img {
  transform: scale(1.06);
}

.mag-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 0.35rem 0.15rem 0.55rem;
  flex: 1;
}

.mag-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
}

.mag-card__cat {
  color: var(--teal-dark);
  font-weight: 700;
}

.mag-card__issue {
  font-size: 0.72rem;
  color: rgba(15, 47, 51, 0.45);
  font-weight: 600;
}

.mag-card h3 {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
  font-weight: 700;
  min-height: 3.2em;
}

.mag-card__body > p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.85;
  flex: 1;
}

.mag-card__more {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 600;
  border-top: 1px dashed rgba(15, 118, 110, 0.28);
  padding-top: 0.75rem;
}

.mag-card__more i {
  transition: transform 0.35s var(--ease);
  font-size: 0.72rem;
}

.mag-card:hover .mag-card__more i {
  transform: translateX(-4px);
}

.articles__actions {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

@media (max-width: 980px) {
  .mag-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .mag-card__page {
    transform: none;
  }

  .mag-card:hover .mag-card__page {
    transform: translateY(-4px);
  }

  .mag-card h3 {
    min-height: 0;
  }
}

/* Final CTA */
.final-cta {
  background:
    radial-gradient(700px 360px at 20% 0%, rgba(20, 184, 166, 0.28), transparent 55%),
    var(--bg-deep);
  color: #fff;
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
}

.final-cta__inner {
  max-width: 760px;
}

.final-cta h2 {
  margin-bottom: 1.5rem;
}

.final-cta .hero__cta {
  justify-content: center;
  margin-bottom: 0;
}

/* Back to top */
.back-top {
  position: fixed;
  left: 1.15rem;
  bottom: 1.15rem;
  z-index: 950;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 47, 51, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.25s;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: #0b2327;
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.brand--footer {
  margin-bottom: 0.9rem;
}

.brand--footer .brand__text small {
  color: rgba(255, 255, 255, 0.65);
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid a:hover {
  color: #99f6e4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 18, 20, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open[hidden] {
  display: grid;
}

.lightbox img {
  max-width: min(920px, 100%);
  max-height: 85vh;
  border-radius: 14px;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.7rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .diff-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 860px) {
  .menu-btn {
    display: grid;
    margin-inline-start: auto;
  }

  .header-row .btn-accent {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem 1.25rem 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s var(--ease);
  }

  .site-header {
    position: sticky;
  }

  .header-row {
    position: relative;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .services-grid,
  .diff-grid,
  .booking-panel,
  .field-stack,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .reviews-marquee__track {
    animation-duration: 80s;
  }

  .ba-slider {
    aspect-ratio: 4 / 5;
  }

  .hero__shell {
    width: min(100% - 2rem, var(--container));
  }

  .hero__content {
    max-width: none;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .media-strip img {
    width: 170px;
    height: 110px;
  }

  .service-card {
    grid-template-rows: 180px auto;
  }

  .service-card img {
    min-height: 0;
  }

  .service-card__body {
    background:
      linear-gradient(180deg, #ffffff 0%, #f3f8f9 100%);
    border-top: 1px solid rgba(15, 118, 110, 0.12);
    box-shadow: 0 -10px 28px rgba(15, 47, 51, 0.08);
    padding: 1.15rem 1.1rem 1.35rem;
  }

  .service-card h3 {
    color: var(--ink);
    background: rgba(204, 251, 241, 0.55);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
  }

  .service-card p {
    color: #3d4f5a;
  }

  .contact-cta {
    flex-direction: column;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-cta .btn,
  .hero__cta .btn {
    width: 100%;
  }

  .hero-call {
    width: 100%;
    justify-content: flex-start;
    padding: 0.45rem 1rem 0.45rem 0.45rem;
  }

  .hero-call__badge {
    right: auto;
    left: auto;
    inset-inline-start: 2.7rem;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.4rem, var(--container));
  }

  .hero h1 {
    font-size: 2rem;
  }

  .brand__text strong {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
