:root {
  /* =========================
     Backgrounds
     ========================= */

  --color-background: #fbf8f6;
  --color-surface: #ffffff;
  --color-surface-soft: #f5ede8;

  /* =========================
     Brand
     ========================= */

  --color-primary: #d8b4a0;
  --color-primary-dark: #b98f79;
  --color-primary-soft: #f3e4dc;

  /* =========================
     Text
     ========================= */

  --color-text: #5a4a42;
  --color-text-dark: #3f332e;
  --color-text-muted: #8c7d75;

  /* =========================
     Borders
     ========================= */

  --color-border: #eadfd9;
  --color-border-light: #f1e8e4;

  /* =========================
     Status
     ========================= */

  --color-error: #b85c5c;
  --color-error-background: #fdf1f1;

  --color-success: #6d9279;
  --color-success-background: #f1f7f3;

  /* =========================
     Shape
     ========================= */

  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 20px;

  /* =========================
     Shadows
     ========================= */

  --shadow-card: 0 8px 30px rgba(90, 74, 66, 0.06);
  --shadow-button: 0 6px 18px rgba(185, 143, 121, 0.2);

  /* =========================
     Spacing
     ========================= */

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;

  /* =========================
     Typography
     ========================= */

  --font-body: "Vazirmatn", sans-serif;

  /* =========================
     Transitions
     ========================= */

  --transition-fast: 160ms ease;
  --transition-normal: 240ms ease;
}

/* ========================================================
   Global
   ======================================================== */

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  direction: rtl;
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

button,
input,
select,
textarea,
h1,
h2,
h3,
h4 {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ========================================================
   Common Direction Rules
   ======================================================== */

.date-day,
.time-option,
.price-box strong,
.payment-summary strong {
  direction: rtl;
}

/* ========================================================
   Site header
   ======================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: var(--space-4) var(--space-5);

  background: rgba(251, 248, 246, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--color-border-light);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);

  color: var(--color-text-dark);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.brand-logo img {
  width: 105px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px var(--space-5);
  color: #fff;
  background: var(--color-primary-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-button);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
}

.header-cta:hover {
  background: #a97d68;
}

.header-cta:active {
  transform: scale(0.97);
}

@media (max-width: 405px) {
  .site-header .brand-logo img {
    width: 90px;
  }
  .site-header .brand {
    font-size: 16px;
  }
  .header-cta {
    padding: 5px var(--space-2);
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  .site-header .brand-logo img {
    width: 80px;
  }
  .site-header .brand {
    font-size: 15px;
  }
}

/* ========================================================
   Footer
   ======================================================== */

.site-footer {
  padding: var(--space-7) var(--space-5) var(--space-6);
  text-align: center;
  border-top: 1px solid var(--color-border-light);
}

.site-footer .brand {
  justify-content: center;
  margin-bottom: var(--space-3);
}

.site-footer p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--color-text-muted);
  background: var(--color-surface-soft);
  border-radius: 50%;
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
}
