:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --ink: #06251f;
  --ink-soft: #33534c;
  --amber: #f59e0b;
  --surface: #f6fbfa;
  --card: #ffffff;
  --line: rgba(13, 148, 136, 0.14);
  --radius-xl: 1.75rem;
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --shadow-soft: 0 20px 50px rgba(15, 118, 110, 0.12);
  --shadow-lift: 0 28px 60px rgba(6, 37, 31, 0.18);
  --font: 'Vazirmatn', Tahoma, sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  direction: rtl;
  line-height: 1.75;
  padding-bottom: 5.5rem;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.6);
  outline-offset: 3px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(6, 37, 31, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  transition: color 0.35s ease;
}

.site-header.is-solid .brand {
  color: var(--ink);
}

.brand__mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: linear-gradient(140deg, var(--teal-400), var(--teal-700));
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.45);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.brand__mark svg {
  width: 1.4rem;
  height: 1.4rem;
}

.brand__name {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.brand__tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease;
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: #fff;
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(13, 148, 136, 0.5);
}

.btn--light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-800);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.btn--light:hover {
  transform: translateY(-2px);
  background: #fff;
}

.btn--ghost {
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-100);
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
}

.btn--ghost:hover {
  background: var(--teal-100);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 780px);
  display: flex;
  align-items: stretch;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
}

.hero__track,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slide {
  opacity: 0;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s linear;
}

.hero__slide.is-active .hero__bg {
  transform: scale(1);
}

.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 37, 31, 0.88) 0%, rgba(15, 94, 84, 0.72) 45%, rgba(13, 148, 136, 0.25) 100%),
    radial-gradient(900px 420px at 15% 110%, rgba(45, 212, 191, 0.35), transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  padding: 6.5rem 0 5rem;
  max-width: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.hero__eyebrow::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--teal-200);
  box-shadow: 0 0 12px var(--teal-200);
}

.hero__title {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
  max-width: 17ch;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero__subtitle {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  opacity: 0.94;
  max-width: 42ch;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(10px);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero__nav--prev {
  right: 1.25rem;
}

.hero__nav--next {
  left: 1.25rem;
}

.hero__dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.hero__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
  transition: width 0.3s var(--ease), background 0.3s ease;
}

.hero__dot.is-active {
  width: 2rem;
  background: #fff;
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 70px;
  color: var(--surface);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.section-head .kicker {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  font-size: 0.82rem;
  font-weight: 700;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.35rem;
  box-shadow: 0 12px 32px rgba(6, 37, 31, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--teal-200);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  background: linear-gradient(140deg, var(--teal-50), var(--teal-100));
  color: var(--teal-700);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.service-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ---------- Stats band ---------- */
.stats {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(45, 212, 191, 0.25), transparent 60%),
    linear-gradient(135deg, var(--teal-900), var(--teal-700));
  border-radius: var(--radius-xl);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  color: #ecfdf5;
  box-shadow: var(--shadow-lift);
}

.stat {
  text-align: center;
}

.stat__value {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, var(--teal-200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  font-size: 0.88rem;
  opacity: 0.85;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.about__media {
  position: relative;
}

.about__img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
}

.about__badge {
  position: absolute;
  bottom: -1.1rem;
  inset-inline-start: -0.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.3rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
}

.about__badge-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  background: linear-gradient(140deg, var(--teal-400), var(--teal-600));
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.about__badge-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.about__badge strong {
  display: block;
  font-size: 0.95rem;
}

.about__badge span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.about__body .kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  font-size: 0.82rem;
  font-weight: 700;
}

.about__body h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.about__body > p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
}

.about__list {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.about__list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.about__list svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--teal-600);
  flex-shrink: 0;
}

/* ---------- Products ---------- */
.products-section {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(45, 212, 191, 0.1), transparent 55%),
    linear-gradient(180deg, #fff, var(--surface));
  border-block: 1px solid var(--line);
}

.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.6rem 0.2rem 1.4rem;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__controls {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.carousel__nav {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal-700);
  font-size: 1.3rem;
  box-shadow: 0 10px 22px rgba(6, 37, 31, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel__nav:hover {
  background: var(--teal-50);
  transform: translateY(-2px);
}

.product-card {
  position: relative;
  flex: 0 0 min(74vw, 250px);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(6, 37, 31, 0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lift);
}

.product-card__media {
  position: relative;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  aspect-ratio: 1.05;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-card__img {
  transform: scale(1.07);
}

.product-card__badge {
  position: absolute;
  top: 0.8rem;
  inset-inline-start: 0.8rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--teal-800);
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(6, 37, 31, 0.16);
}

.product-card__body {
  padding: 1.1rem 1.1rem 1.25rem;
}

.product-card__name {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.product-card__desc {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.product-card__price {
  margin: 0 0 0.9rem;
  color: var(--teal-700);
  font-weight: 800;
  font-size: 1rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 10% 120%, rgba(45, 212, 191, 0.4), transparent 60%),
    linear-gradient(120deg, var(--teal-800), var(--teal-600));
  color: #fff;
  padding: clamp(2rem, 5vw, 3.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-lift);
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -40%;
  inset-inline-end: -10%;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  border: 40px solid rgba(255, 255, 255, 0.07);
}

.cta-banner h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 800;
}

.cta-banner p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(800px 380px at 90% -10%, rgba(45, 212, 191, 0.18), transparent 60%),
    linear-gradient(165deg, #0b3833, var(--teal-900));
  color: #e7fdf7;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

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

.footer-brand .brand__name {
  font-size: 1.2rem;
}

.footer-brand p {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  opacity: 0.8;
  max-width: 34ch;
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--teal-200);
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-contact svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--teal-300, #5eead4);
  flex-shrink: 0;
  margin-top: 0.3rem;
}

.footer-contact a {
  font-weight: 700;
  color: #99f6e4;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(153, 246, 228, 0.15);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* ---------- Sticky call ---------- */
.sticky-call {
  position: fixed;
  z-index: 50;
  inset-inline: 1rem;
  bottom: calc(0.9rem + env(safe-area-inset-bottom));
  height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-700));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(13, 148, 136, 0.45);
}

.sticky-call svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(6, 37, 31, 0.5);
  backdrop-filter: blur(6px);
}

.modal[hidden] {
  display: none;
}

.modal__panel {
  width: min(100%, 400px);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-lift);
  text-align: center;
}

.modal__panel .modal__icon {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.9rem;
  border-radius: 1.1rem;
  background: linear-gradient(140deg, var(--teal-50), var(--teal-100));
  color: var(--teal-700);
  display: grid;
  place-items: center;
}

.modal__panel .modal__icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.modal__panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.modal__panel p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero__nav {
    display: none;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .sticky-call {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg,
  .reveal,
  .product-card,
  .service-card {
    transition: none !important;
  }
}
