/* متغیرهای اصلی */
:root {
  --brand: #003087;
  --accent: #FFD700;
  --accent-dark: #E6C200;
  --primary: #00adef;
  --bg: #fff;
  --text: #1e2226;
  --container: 1200px;
  --fab-size: 62px;
  --fab-gap: 16px;
  --fab-base-bottom: 34px;
  --spacer: calc(var(--fab-size) + 2 * var(--fab-gap));
  --fab-bottom: var(--fab-base-bottom);
  --radius: 12px;
  --shadow: 0 6px 15px rgba(0,0,0,.1);
}

/* فونت‌ها */
@font-face {
  font-family: 'YekanBakhFaNum-Light';
  src: url('https://lolebargh.com/wp-content/uploads/2025/09/YekanBakhFaNum-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakhFaNum-Bold';
  src: url('https://lolebargh.com/wp-content/uploads/2025/09/YekanBakhFaNum-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* استایل‌های عمومی */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'YekanBakhFaNum-Light', sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 88px;
}
a {
  text-decoration: none; 
}
button{font-family: 'YekanBakhFaNum-Light', sans-serif;}
/* هدر */
header {width: 100%;box-sizing: border-box;
  background: var(--bg);
  border-bottom: 1px solid #eceff1;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container, .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 70px;
}

.logo img {
  height: 40px;
  width: auto;
  transition: transform .3s ease, filter .3s ease;
}

.logo img:hover {
  transform: rotate(-4deg) scale(1.05);
  filter: brightness(1.2);
}

.site-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  white-space: nowrap;
}

/* ناوبری پایین */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0e1114;
  color: #fff;
  z-index: 60;
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
  transition: transform .35s ease;
}

.bottom-nav.collapsed {
  transform: translateY(calc(100% - 64px));
}

.bottom-nav .wrap {
  max-width: var(--container);
  margin: 0 auto;
}

.bottom-nav .grid {
  display: grid;
  grid-template-columns: 1fr var(--spacer) 1fr;
  align-items: stretch;
}

.group {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: stretch;
  justify-items: stretch;
  height: 64px;
}

.group.right { justify-content: start; }
.group.left { justify-content: end; }
.spacer { height: 64px; }

.bottom-nav a, .has-submenu > button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #c9d3dc;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 8px;
}

.group.right a + a, .group.left a + a, .has-submenu + a {
  border-inline-start: 1px solid rgba(255,255,255,.06);
}

.bottom-nav a[aria-current="page"] {
  color: #58d5ff;
}

.bottom-nav a:focus-visible, .has-submenu > button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* زیرمنوی درباره ما */
.has-submenu {
  position: relative;
}

.has-submenu > button {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 12px;
  font-weight: 800;
  font-size: 13px;
  color: #c9d3dc;
  white-space: nowrap;
}

.submenu {
  position: absolute;
  bottom: 72px;
  right: 0;
  background: #14181c;
  color: #e9eef2;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  padding: 8px;
  min-width: 200px;
  display: none;
  z-index: 62;
}

.submenu.open { display: block; }

.submenu a {
  display: block;
  padding: 10px 12px;
  color: #cfe8f6;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}

.submenu a + a { margin-top: 4px; }
.submenu a:hover { background: rgba(255,255,255,.06); }

/* پنل تماس */
.contact-info {
  padding: 12px 16px;
  background: #1a1d21;
  font-size: 14px;
  line-height: 1.8;
  position: relative;
  border-top: 1px solid rgba(255,255,255,.06);
  max-height: 42vh;
  overflow: auto;
  scrollbar-width: thin;
}

.close-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.contact-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.card {
  background: #161a1e;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #58d5ff;
}

.phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.phones a {
  color: #e0f7ff;
  text-decoration: none;
}

.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge img {
  max-width: 110px;
  height: auto;
}

/* FAB + برچسب‌های رولی */
.fab-wrap {
  position: fixed;
  left: 50%;
  bottom: var(--fab-bottom);
  transform: translateX(-50%);
  z-index: 61;
  pointer-events: none;
}

.fab-call {
  position: relative;
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  background: linear-gradient(180deg, #00adef, #008ccc);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(0,173,239,.35), 0 4px 10px rgba(0,0,0,.2);
  text-decoration: none;
  transition: transform .25s ease, filter .25s ease;
  pointer-events: auto;
}

.fab-call:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

.fab-call svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.fab-badge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scaleX(0) rotate(0.001deg);
  transform-origin: center;
  background: #14181c;
  color: #e9eef2;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  white-space: nowrap;
  font-weight: 800;
  font-size: 12px;
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
  will-change: transform, opacity;
  pointer-events: none;
}

.fab-badge::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  background: inherit;
  border: inherit;
}

.fab-badge.left { right: calc(100% + 12px); }
.fab-badge.left::before { right: -8px; }
.fab-badge.right { left: calc(100% + 12px); }
.fab-badge.right::before { left: -8px; }

.fab-wrap.show .fab-badge {
  opacity: 1;
  transform: translateY(-50%) scaleX(1) rotate(0.001deg);
}

.fab-wrap.show .fab-badge.left { animation: rollLeft .45s ease forwards; }
.fab-wrap.show .fab-badge.right { animation: rollRight .45s ease .05s forwards; }

@keyframes rollLeft {
  0% { transform: translateY(-50%) translateX(12px) scaleX(0) rotate(-8deg); }
  60% { transform: translateY(-50%) translateX(0) scaleX(1.06) rotate(2deg); }
  100% { transform: translateY(-50%) translateX(0) scaleX(1) rotate(0); }
}

@keyframes rollRight {
  0% { transform: translateY(-50%) translateX(-12px) scaleX(0) rotate(8deg); }
  60% { transform: translateY(-50%) translateX(0) scaleX(1.06) rotate(-2deg); }
  100% { transform: translateY(-50%) translateX(0) scaleX(1) rotate(0); }
}

/* استایل‌های آرشیو */
.archive-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 15px;
  font-family: 'YekanBakhFaNum-Light', 'Roboto', sans-serif;
  direction: rtl;
  text-align: right;
  background-color: #f5f5f5;
}

.archive-container h2 {
  color: var(--brand);
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.archive-card {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: right;
}

.archive-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.archive-card .archive-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--primary);
}

.archive-card h3 {
  color: var(--brand);
  font-size: 1.6em;
  margin: 15px;
  padding: 0 15px;
}

.archive-card h3 a {
  color: var(--brand);
  text-decoration: none;
}

.archive-card h3 a:hover {
  color: #357ABD;
}

.archive-card p {
  color: var(--muted);
  font-size: 1.1em;
  padding: 0 15px 15px;
  margin: 0;
  line-height: 1.6;
}

.archive-card .archive-cta {
  display: inline-block;
  color: var(--primary);
  font-weight: bold;
  text-decoration: none;
  padding: 0 15px 15px;
}

.archive-card .archive-cta:hover {
  color: #357ABD;
  text-decoration: underline;
}

.pagination {
  text-align: center;
  margin: 40px 0;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  color: var(--brand);
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.pagination a:hover {
  background-color: var(--primary);
  color: white;
}

.pagination .current {
  background-color: var(--brand);
  color: white;
}

.archive-footer {
  text-align: center;
  margin-top: 40px;
}

.archive-footer .archive-cta {
  background-color: var(--accent);
  color: var(--brand);
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.archive-footer .archive-cta:hover {
  background-color: var(--accent-dark);
}

/* تنظیمات ریسپانسیو */
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .archive-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (max-width: 768px) {
  .archive-container { padding: 40px 15px; }
  .archive-container h2 { font-size: 2.2em; }
  .archive-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .archive-card img { height: 180px; }
}

@media (max-width: 480px) {
  .archive-container h2 { font-size: 1.8em; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card img { height: 160px; }
  :root { --spacer: calc(var(--fab-size) + 2 * 12px); }
  .bottom-nav a, .has-submenu > button { font-size: 12px; padding: 0 6px; }
}

@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1114; --text: #e9eef2; }
  header { border-bottom-color: #20252a; }
  .bottom-nav { background: #0a0d10; }
}