/* ============ VARIABLES ============ */
:root {
  --cream: #fbf1e1;
  --cream-2: #f6e8d0;
  --olive: #5d6a3a;
  --olive-dark: #4a5530;
  --olive-soft: #d6d9b4;
  --olive-band: #a5ab72;
  --gold: #b8913d;
  --gold-light: #d9bf7c;
  --text: #4b4a3a;
  --radius: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon--gold { color: var(--gold-light); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--olive);
  color: #fff;
  border-radius: 999px;
  font-weight: 500;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn:hover { background: var(--olive-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(93,106,58,.3); }
.btn--sm { padding: 10px 24px; font-size: 14px; }
.btn--lg { padding: 18px 34px; font-size: 16px; }

/* ============ HEADER ============ */
.header {
  background: var(--cream);
  border-bottom: 1px solid rgba(184,145,61,.35);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

/* hamburger (mobile only) */
.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(184,145,61,.55);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--olive-dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: flex; gap: 36px; }
.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--olive-dark);
  padding: 6px 0;
}
.nav__link--active::after,
.nav__link:hover::after {
  content: "";
  position: absolute;
  bottom: -4px; right: -6px; left: -6px;
  height: 2px;
  background: var(--olive);
}

.brand { display: flex; align-items: center; gap: 16px; }
.brand__logo { width: 58px; height: 58px; object-fit: contain; order: 2; }
.brand__text {
  order: 1;
  border-inline-start: 1px solid rgba(184,145,61,.5);
  padding-inline-start: 16px;
  display: flex; flex-direction: column; line-height: 1.4;
}
.brand__text strong { font-size: 18px; color: var(--olive-dark); font-weight: 600; }
.brand__text span { font-size: 12px; color: var(--gold); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 440px;
  background:
    linear-gradient(270deg, rgba(251,241,225,.85) 0%, rgba(251,241,225,.45) 40%, rgba(251,241,225,0) 65%),
    url("../images/hero.jpg") center/cover no-repeat,
    linear-gradient(135deg, #efe2cb, #fbf1e1);
  display: flex;
  align-items: center;
}
.hero__inner { display: flex; justify-content: flex-start; }
.hero__content { max-width: 520px; padding: 40px 0; }

.hero h1 {
  font-size: 40px;
  line-height: 1.75;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 18px;
}
.hero p { font-size: 17px; color: var(--text); margin-bottom: 36px; }

.hero__actions { display: flex; align-items: center; gap: 36px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px;
  color: var(--olive-dark);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  transition: gap .25s;
}
.link-arrow:hover { gap: 16px; }

/* ============ SECTION TITLE ============ */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title__gem { width: 26px; height: 26px; color: var(--gold); margin-bottom: 4px; }
.section-title__row { display: flex; align-items: center; justify-content: center; gap: 26px; }
.section-title__row .line {
  flex: 1; max-width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-title__row .line:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.section-title h2 { font-size: 32px; font-weight: 700; color: var(--olive-dark); }
.section-title__sub { margin-top: 10px; font-size: 14.5px; color: var(--text); }

/* ============ PROCESS ============ */
.process { padding: 44px 0 56px; }

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  position: relative;
}
.step { text-align: center; padding: 0 20px; }
.step__icon {
  width: 80px; height: 80px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--olive-soft);
  color: var(--olive-dark);
  display: grid; place-items: center;
}
.step__icon svg { width: 38px; height: 38px; }
.step h3 { font-size: 19px; font-weight: 600; color: var(--olive-dark); margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text); }
.step__line {
  width: 90px; height: 1px;
  background: var(--gold-light);
  margin-top: 40px;
}

/* ============ GALLERY ============ */
.gallery { padding: 10px 0 56px; }

.slider { position: relative; }

/* direction: ltr => first photo on the left, scroll goes left -> right.
   Delete the "direction: ltr;" line if you want it to start from the right. */
.cards {
  display: flex;
  gap: 16px;
  direction: ltr;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-light) transparent;
}
.cards::-webkit-scrollbar { height: 6px; }
.cards::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 10px; }

.card {
  position: relative;
  flex: 0 0 calc((100% - 32px) / 3);
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  background: linear-gradient(135deg, #e8dcc2, #c9c9a0);
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover img { transform: scale(1.06); }

.slider__btn {
  position: absolute;
  top: calc(50% - 20px);
  width: 42px; height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(251,241,225,.92);
  color: var(--olive-dark);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: background .25s, color .25s;
}
.slider__btn:hover { background: var(--olive); color: #fff; }
.slider__btn--prev { left: 10px; }
.slider__btn--next { right: 10px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--olive-band);
  padding: 26px 0;
}
.footer__card {
  width: min(1150px, 94%);
  margin-inline: auto;
  background: var(--olive);
  border-radius: 28px;
  padding: 26px 40px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer__card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(217,191,124,.35);
  border-radius: 26px;
  pointer-events: none;
}

.footer__logo {
  width: 50px; height: 50px;
  margin: 0 auto 6px;
  object-fit: contain;
  background: var(--cream);
  border-radius: 50%;
  padding: 6px;
}
.footer__top h3 { color: #fff; font-size: 18px; font-weight: 600; }
.footer__tagline { color: var(--gold-light); font-size: 14px; margin-top: 2px; }

.footer__divider { display: flex; justify-content: center; margin: 16px 0 14px; }
.footer__divider span {
  width: min(320px, 70%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.footer__contact h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.footer__items { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  padding: 8px 16px;
  background: rgba(251,241,225,.1);
  border: 1px solid rgba(217,191,124,.4);
  border-radius: 18px;
  text-align: right;
  color: #fff;
  transition: background .25s, transform .25s, border-color .25s;
}
.contact-item:hover { background: rgba(251,241,225,.2); transform: translateY(-3px); border-color: var(--gold-light); }

.contact-item__icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--olive-dark);
  display: grid; place-items: center;
}
.contact-item__icon svg { width: 19px; height: 19px; }

.contact-item__text { display: flex; flex-direction: column; line-height: 1.5; }
.contact-item__text small { color: var(--gold-light); font-size: 12.5px; }
.contact-item__text strong { font-size: 14.5px; font-weight: 500; letter-spacing: .3px; }
.contact-item__text strong[dir="ltr"] { text-align: right; }

.footer__copy { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.65); }

/* ============ REQUEST PAGE ============ */
.request { padding: 60px 0 70px; min-height: 60vh; }
.request__box {
  max-width: 560px;
  margin-inline: auto;
  background: #fff8ec;
  border: 1px solid rgba(184,145,61,.35);
  border-radius: 26px;
  padding: 40px 38px 44px;
  box-shadow: 0 18px 50px rgba(93,106,58,.1);
}
.request .section-title { margin-bottom: 28px; }
.request .section-title h2 { font-size: 26px; }

.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--olive-dark); }
.field input {
  font-family: inherit;
  font-size: 15.5px;
  padding: 14px 18px;
  border: 1px solid rgba(184,145,61,.55);
  border-radius: 14px;
  background: var(--cream);
  color: var(--text);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus { border-color: var(--olive); box-shadow: 0 0 0 4px rgba(93,106,58,.15); }
.field input[dir="ltr"] { text-align: right; }
.field__error { color: #a8322d; font-size: 13px; }

.form__submit { justify-content: center; border: none; cursor: pointer; font-family: inherit; margin-top: 8px; }

.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 22px; font-size: 14.5px; text-align: center; }
.alert--success { background: var(--olive-soft); color: var(--olive-dark); }
.alert--error { background: #f3d6d3; color: #8a2a25; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {

  /* header + hamburger menu */
  .header__inner { height: 68px; }
  .burger { display: flex; order: 1; }
  .header__inner { position: relative; }
  .brand { order: 2; }
  .brand__logo { width: 46px; height: 46px; }
  /* name + tagline: centered in the header, no vertical line */
  .brand__text {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    border: none; padding: 0;
    align-items: center; text-align: center;
  }
  .brand__text strong { font-size: 15px; white-space: nowrap; }
  .brand__text span { font-size: 11px; white-space: nowrap; }

  .nav {
    position: absolute;
    top: 100%; right: 0; left: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(184,145,61,.35);
    box-shadow: 0 16px 30px rgba(74,85,48,.15);
    padding: 6px 4%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(184,145,61,.2);
  }
  .nav__link:last-child { border-bottom: none; }
  .nav__link--active { color: var(--olive); }
  .nav__link--active::after, .nav__link:hover::after { display: none; }

  /* hero */
  .hero {
    min-height: 400px;
    background:
      linear-gradient(180deg, rgba(251,241,225,.55) 0%, rgba(251,241,225,.9) 100%),
      url("../images/hero.jpg") 20% center/cover no-repeat,
      linear-gradient(135deg, #efe2cb, #fbf1e1);
    text-align: center;
  }
  .hero__inner { justify-content: center; }
  .hero__content { padding: 34px 0; }
  .hero h1 { font-size: 26px; line-height: 1.7; margin-bottom: 12px; }
  .hero p { font-size: 15px; margin-bottom: 24px; }
  .hero__actions { flex-direction: column; gap: 18px; }
  .btn--lg { padding: 14px 28px; font-size: 15px; }

  /* section titles */
  .section-title { margin-bottom: 26px; }
  .section-title h2 { font-size: 23px; }
  .section-title__row { gap: 12px; }
  .section-title__row .line { max-width: 60px; }
  .section-title__sub { font-size: 13px; padding-inline: 4px; }

  /* process */
  .process { padding: 32px 0 34px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step__line { display: none; }
  .step { padding: 0 8px; }
  .step__icon { width: 64px; height: 64px; margin-bottom: 12px; }
  .step__icon svg { width: 30px; height: 30px; }
  .step h3 { font-size: 17px; }
  .step p br { display: none; }

  /* gallery */
  .gallery { padding: 4px 0 36px; }
  .card { flex-basis: 78%; height: 240px; border-radius: 16px; }
  .slider__btn { display: none; }

  /* footer */
  .footer { padding: 18px 0; }
  .footer__card { padding: 22px 14px 14px; border-radius: 22px; width: 94%; }
  .footer__card::before { inset: 6px; border-radius: 17px; }
  .footer__items { gap: 8px; }
  .contact-item { width: 100%; min-width: 0; padding: 7px 14px; }

  /* request page */
  .request { padding: 28px 0 40px; }
  .request__box { padding: 26px 18px 28px; border-radius: 20px; }
}

/* spam-trap field: invisible, but must NOT sit off-screen
   (off-screen elements made the page scroll sideways in RTL) */
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form { position: relative; }