/* =====================================================
   Root Variables
===================================================== */
:root {
  --primary: #3396D3;
  --secondary: #00b894;
  --dark: #1e1e1e;
  --gray: #6b7280;
  --light: #f9fafb;
  --border: #e5e7eb;
  --radius: 12px;
}

/* =====================================================
   Local Font: Vazirmatn
   Path: assets/fonts/vazirmatn/*
   base.css is in assets/css/
===================================================== */

/* Regular - 400 */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2"),
       url("../fonts/vazirmatn/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Medium - 500 */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2"),
       url("../fonts/vazirmatn/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* SemiBold - 600 */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2"),
       url("../fonts/vazirmatn/Vazirmatn-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Bold - 700 */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2"),
       url("../fonts/vazirmatn/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =====================================================
   Base Reset
===================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.8;
  direction: rtl;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* =====================================================
   Header
===================================================== */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

/* =====================================================
   Back To Top Button
===================================================== */
#backToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background-color 0.2s ease;
}

#backToTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTopBtn:hover {
  background-color: #1e40af;
}
