/* ============================================================
   YEKTAVASH — Premium Architecture Studio
   Design System: Architectural Editorial Luxury
   Palette: Pure Black / Off-White / Warm Grays
   RTL: Full Persian/Arabic direction support
   ============================================================ */
@font-face {
    font-family: 'BYekan';
    src: url('Fonts/BYekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Future Sallow';
    src: url('Fonts/Future Sallow.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ─── SELF-HOSTED: Cormorant Garamond ────────────────────── */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('Fonts/CormorantGaramond-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('Fonts/CormorantGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('Fonts/CormorantGaramond-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('Fonts/CormorantGaramond-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('Fonts/CormorantGaramond-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('Fonts/CormorantGaramond-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('Fonts/CormorantGaramond-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('Fonts/CormorantGaramond-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* ─── SELF-HOSTED: DM Mono ───────────────────────────────── */
@font-face {
    font-family: 'DM Mono';
    src: url('Fonts/DMMono-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Mono';
    src: url('Fonts/DMMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Mono';
    src: url('Fonts/DMMono-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Mono';
    src: url('Fonts/DMMono-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'DM Mono';
    src: url('Fonts/DMMono-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ─── SELF-HOSTED: Scheherazade New ──────────────────────── */
@font-face {
    font-family: 'Scheherazade New';
    src: url('Fonts/ScheherazadeNew-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Scheherazade New';
    src: url('Fonts/ScheherazadeNew-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Scheherazade New';
    src: url('Fonts/ScheherazadeNew-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Scheherazade New';
    src: url('Fonts/ScheherazadeNew-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
  --black:       #000000;
  --gray-950:    #080808;
  --gray-900:    #111111;
  --gray-800:    #1c1c1c;
  --gray-700:    #2a2a2a;
  --gray-600:    #3d3d3d;
  --gray-400:    #888888;
  --gray-300:    #aaaaaa;
  --gray-200:    #cccccc;
  --gray-100:    #e5e5e5;
  --white:       #f5f2ee;

  --font-display: 'Cormorant Garamond', serif;
  --font-mono:    'DM Mono', monospace;

  --ease-expo:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);

  --max-w: 1400px;
}

/* ─── PERSIAN FONT OVERRIDE ──────────────────────────────── */
/* Apply shabnam to all elements that carry Persian text   */

:lang(fa),
:lang(fa) *,
.nav-links a,
.hero-sub,
.hero-cta span,
.section-title,
.section-label,
.modern-content p,
.footer-tagline,
.footer-links h4,
.footer-contact h4,
.footer-links a,
.footer-contact p,
.about-block h2,
.about-block p,
.scroll-label {
  font-family: 'BYekan', 'BYekan', var(--font-display);
}

/* Keep Latin/brand text in original fonts */
.brand-text h1,
.brand-text p,
.modern-content h3,
.footer-brand h3,
.footer-brand > p,
.hero h2,
.footer-bottom p {
  font-family: var(--font-display);
}

/* ─── RESET ──────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
}

body {
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, #0e0b08 0%, #000000 55%),
    radial-gradient(ellipse 120% 50% at 50% 100%, #0a0806 0%, #000000 50%),
    #000000;
  color: var(--white);
  font-family: var(--font-display);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  cursor: none;
  direction: rtl;
  text-align: right;
    /* پشتیبانی برای فایرفاکس */
  scrollbar-width: thin;
  scrollbar-color: #4a4a4a transparent;
}

/* --- تنظیمات مرورگرهای WebKit (کروم، اج، سافاری) --- */

/* عرض و ارتفاع کل اسکرول‌بار */
::-webkit-scrollbar {
  width: 6px; /* عرض بسیار ظریف برای حفظ مینیمالیسم */
  height: 6px; /* برای اسکرول افقی */
}

/* مسیر یا پس‌زمینه اسکرول‌بار */
::-webkit-scrollbar-track {
  background: transparent; /* پس‌زمینه شفاف برای یکپارچگی با طراحی سایت */
  /* در صورت نیاز به پس‌زمینه، می‌توانید از رنگ بسیار روشن مانند #f9f9f9 استفاده کنید */
}

/* نوار لغزان (Thumb) */
::-webkit-scrollbar-thumb {
  background-color: #4a4a4a; /* خاکستری تیره و حرفه‌ای */
  /* برای معماری مدرن، خطوط تیز (بدون انحنا) یا انحنای بسیار کم جذاب است */
  border-radius: 0px; 
  /* اگر می‌خواهید کمی نرم‌تر باشد، border-radius را به 4px تغییر دهید */
}

/* حالت هاور (Hover) نوار لغزان */
::-webkit-scrollbar-thumb:hover {
  background-color: #1a1a1a; /* مشکی مات برای کنتراست بهتر هنگام تعامل کاربر */
}



/* ─── CUSTOM CURSOR ──────────────────────────────────────── */

.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(245,242,238,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-expo), height 0.35s var(--ease-expo),
              border-color 0.3s;
  mix-blend-mode: difference;
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 56px; height: 56px;
  border-color: rgba(245,242,238,0.8);
}
/* مخفی کردن نشانگر پیش‌فرض سیستم برای کل صفحه و عناصر تعاملی */
body, a, button, input, select, textarea {
  cursor: none !important;
}


/* ─── DAY / NIGHT THEME ──────────────────────────────────── */

body.day-mode {
  --black:       #faf7f2;
  --gray-950:    #f4f0e8;
  --gray-900:    #ece7dc;
  --gray-800:    #d9d2c5;
  --gray-700:    #b5ad9e;
  --gray-600:    #8a8278;
  --gray-400:    #80002290;
  --gray-300:    #7e0022d0;
  --gray-200:    #800022;
  --gray-100:    #800022; /* تغییر یافت */
  --white:       #800022; /* تغییر یافت */

  background:
    radial-gradient(ellipse 140% 70% at 50% -10%, #e8dfd0 0%, transparent 60%),
    radial-gradient(ellipse 100% 60% at 80% 100%, #ddd5c8 0%, transparent 55%),
    radial-gradient(ellipse 80%  50% at 10% 60%, #e4ddd2 0%, transparent 50%),
    #f0ece4;

  color: #800022; /* تغییر یافت */
}

/* Softer grain in day mode */
body.day-mode::before {
  opacity: 0.018;
  filter: contrast(120%) brightness(95%);
}

/* Warm ambient glow layer */
body.day-mode::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(210,185,150,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 75% 80%, rgba(190,170,140,0.09) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Header ── */
body.day-mode header {
  background: rgba(240,236,228,0.6);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

body.day-mode header.scrolled {
  border-color: rgba(100,85,65,0.1);
  background: rgba(240,236,228,0.88);
  box-shadow: 0 1px 0 rgba(100,85,65,0.07),
              0 4px 24px rgba(80,65,45,0.06);
}

/* ── Divider ── */
body.day-mode .divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100,85,65,0.18) 20%,
    rgba(120,100,75,0.22) 50%,
    rgba(100,85,65,0.18) 80%,
    transparent
  );
}

/* ── Section header ── */
body.day-mode .section-header {
  border-bottom-color: rgba(100,85,65,0.1);
}

/* ── Cards ── */
body.day-mode .card-container {
  background: rgba(100,85,65,0.07);
}

body.day-mode .modern-card {
  box-shadow:
    0 2px 8px rgba(80,65,45,0.08),
    0 8px 32px rgba(80,65,45,0.06);
  transition: box-shadow 0.4s var(--ease-expo),
              transform   0.4s var(--ease-expo);
}

body.day-mode .modern-card:hover {
  box-shadow:
    0 4px 16px rgba(80,65,45,0.14),
    0 16px 48px rgba(80,65,45,0.10);
}

body.day-mode .modern-card::before {
  background: linear-gradient(
    to top,
    rgba(244,240,232,0.96) 0%,
    rgba(244,240,232,0.72) 35%,
    rgba(244,240,232,0.28) 65%,
    rgba(244,240,232,0.04) 100%
  );
}

body.day-mode .modern-card::after {
  color: rgba(80,65,45,0.22);
}

body.day-mode .modern-card:hover::after {
  color: rgba(80,65,45,0.55);
}

/* ── Card typography ── */
body.day-mode .modern-content h3 {
  color: #800022; /* تغییر یافت */
  text-shadow: none;
}

body.day-mode .modern-content p {
  color: #800022; /* تغییر یافت */
}

body.day-mode .modern-content .tag,
body.day-mode .modern-content .label {
  background: rgba(100,85,65,0.09);
  color: #800022; /* تغییر یافت */
  border-color: rgba(100,85,65,0.15);
}

/* ── Navigation buttons ── */
body.day-mode .nav {
  border-color: rgba(100,85,65,0.18);
  background: rgba(240,236,228,0.75);
  color: #800022; /* تغییر یافت */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(80,65,45,0.08);
}

body.day-mode .nav:hover {
  background: rgba(100,85,65,0.1);
  border-color: rgba(100,85,65,0.40);
  box-shadow: 0 2px 12px rgba(80,65,45,0.12);
}

/* ── Hero CTA ── */
body.day-mode .hero-cta {
  border-color: rgba(80,65,45,0.30);
  color: #800022; /* تغییر یافت */
}

body.day-mode .hero-cta::before {
  background: #800022; /* تغییر یافت */
}

body.day-mode .hero-cta:hover {
  color: #f4f0e8;
  border-color: #800022; /* تغییر یافت */
}

/* ── Logo ── */
body.day-mode .hero-logo img,
body.day-mode .loader-logo {
  filter: 
    brightness(0) saturate(100%) 
    invert(11%) 
    sepia(98%) 
    saturate(7500%) 
    hue-rotate(352deg) 
    brightness(45%) 
    contrast(120%) !important;
}


/* ── About blocks ── */
body.day-mode .about-block {
  border-bottom-color: rgba(100,85,65,0.09);
}

body.day-mode .about-block::before {
  background: rgba(100,85,65,0.025);
}

/* ── Footer ── */
body.day-mode .footer {
  border-top-color: rgba(100,85,65,0.10);
  background: #ece7dc;
}

body.day-mode .footer-container {
  border-bottom-color: rgba(100,85,65,0.09);
}

body.day-mode .footer-links a {
  border-bottom-color: rgba(100,85,65,0.08);
  color: #800022; /* تغییر یافت */
}

body.day-mode .footer-links a:hover {
  color: #800022; /* تغییر یافت */
  opacity: 0.8; /* اضافه شده برای ایجاد تمایز در هاور به دلیل یکسان بودن رنگ */
}

/* ── Loader ── */
body.day-mode .loader {
  background: #f4f0e8;
}

/* ── Mobile nav ── */
body.day-mode .nav-links {
  background: #ece7dc;
  border-left-color: rgba(100,85,65,0.10);
  box-shadow: -8px 0 32px rgba(80,65,45,0.08);
}

/* ── Cursor ── */
body.day-mode .cursor {
  background: #800022; /* تغییر یافت */
  mix-blend-mode: multiply;
}

body.day-mode .cursor-ring {
  border-color: rgba(128,0,34,0.35); /* هماهنگ شده با رنگ جدید */
  mix-blend-mode: multiply;
}

body:has(a:hover) body.day-mode .cursor-ring,
body.day-mode:has(a:hover) .cursor-ring,
body.day-mode:has(button:hover) .cursor-ring {
  border-color: rgba(128,0,34,0.65); /* هماهنگ شده با رنگ جدید */
}

/* ── Scrollbar ── */
body.day-mode ::-webkit-scrollbar {
  width: 6px;
}

body.day-mode ::-webkit-scrollbar-track {
  background: #f0ece4;
}

body.day-mode ::-webkit-scrollbar-thumb {
  background: rgba(128,0,34,0.25); /* هماهنگ شده با رنگ جدید */
  border-radius: 3px;
}

body.day-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(128,0,34,0.45); /* هماهنگ شده با رنگ جدید */
}

/* ── Text selection ── */
body.day-mode ::selection {
  background: rgba(128,0,34,0.18); /* هماهنگ شده با رنگ جدید */
  color: #800022; /* تغییر یافت */
}


/* ─── THEME TOGGLE BUTTON ────────────────────────────────── */

.theme-toggle {
  position: fixed;
  bottom: 36px;
  left: 36px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245,242,238,0.18);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(16px);
  border-radius: 50%;
  cursor: none;
  display: grid;
  place-items: center;
  isolation: isolate; /* ✅ این رو اضافه کن */
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease-expo);
  overflow: hidden;
}


.theme-toggle:hover {
  border-color: rgba(245,242,238,0.45);
  transform: scale(1.1) rotate(20deg);
}

body.day-mode .theme-toggle {
  border-color: #80002274;
  background: rgba(245,242,238,0.75);
}

body.day-mode .theme-toggle:hover {
  border-color: #800022;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  grid-area: 1 / 1;
  transition: opacity 0.3s, transform 0.4s var(--ease-expo);
  pointer-events: none;
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
  color: #800022 !important; 
}



body.day-mode .theme-toggle .icon-moon {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

body.day-mode .theme-toggle .icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@media (max-width: 768px) {
  .theme-toggle {
    bottom: 24px;
    left: 24px;
    cursor: pointer;
  }
}
body.theme-transition::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 200, 0.25) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  animation: themeFlash 0.8s ease-in-out forwards;
  mix-blend-mode: overlay;
  z-index: 9999;
}

@keyframes themeFlash {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}


/* ─── GRAIN OVERLAY ──────────────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
  z-index: 9000;
}

/* ─── LOADER ─────────────────────────────────────────────── */

.loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 0.8s var(--ease-smooth), visibility 0.8s;
}

.loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 160px;
  animation: loaderSpin 2.2s var(--ease-expo) forwards;
  filter: drop-shadow(0 0 40px rgba(245,242,238,0.15));
}

@keyframes loaderSpin {
  0%   { transform: rotate(0deg) scale(0.7); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: rotate(270deg) scale(3.5); opacity: 0; }
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}

.site-header.scrolled {
  border-color: rgba(245, 242, 238, 0.06);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
}

/* =========================
   DESKTOP NAV
========================= */

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 8px 24px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 24px;
  bottom: 4px;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-expo);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* =========================
   HEADER ACTIONS
========================= */

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.lang-switcher,
.search-trigger {
  background: none;
  border: none;
  padding: 6px;
  color: var(--gray-300);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.lang-switcher:hover,
.search-trigger:hover {
  color: var(--white);
  transform: scale(1.1);
}

.globe-icon {
  width: 20px;
  height: 20px;
}
/* =========================
   STANDARD HAMBURGER MENU ICON
========================= */

.menu {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  z-index: 1200;
  padding: 0;
  box-sizing: border-box;
}

.menu span {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
  transform-origin: center;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    background-color 0.25s ease,
    width 0.25s ease;
}

/* Day mode */
body.day-mode .menu span {
  background: var(--gray-100);
}

/* Hover */
.menu:not(.active):hover span {
  width: 25px;
}

/* Active X state */
.menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hide on desktop */
@media screen and (min-width: 1024px) {
  .menu {
    display: none !important;
  }
}
/* =========================
   FIX MOBILE MENU DIRECTION
   LTR / RTL ALIGNMENT
========================= */

/* English / LTR */
html[dir="ltr"] .mobile-menu-overlay,
html[dir="ltr"] .mobile-nav {
  direction: ltr !important;
  text-align: left !important;
}

html[dir="ltr"] .mobile-nav a {
  direction: ltr !important;
  text-align: left !important;
  transform: translateX(-20px);
}

html[dir="ltr"] .mobile-menu-overlay.active .mobile-nav a {
  transform: translateX(0);
}

/* فارسی / RTL */
html[dir="rtl"] .mobile-menu-overlay,
html[dir="rtl"] .mobile-nav {
  direction: rtl !important;
  text-align: right !important;
}

html[dir="rtl"] .mobile-nav a {
  direction: rtl !important;
  text-align: right !important;
  transform: translateX(20px);
}

html[dir="rtl"] .mobile-menu-overlay.active .mobile-nav a {
  transform: translateX(0);
}
html[dir="rtl"] .mobile-menu-close {
  align-self: flex-start !important;
}
/* =========================
   RTL / LTR DESKTOP LAYOUT
========================= */

/* RTL desktop */
html[dir="rtl"] .site-header {
  flex-direction: row;
}

html[dir="rtl"] .nav-links {
  flex-direction: row;
}

html[dir="rtl"] .header-actions {
  flex-direction: row;   /* Lang left of Search in the actions group */
}

/* LTR desktop */
html[dir="ltr"] .site-header {
  flex-direction: row-reverse;
}

html[dir="ltr"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="ltr"] .header-actions {
  flex-direction: row-reverse;   /* Lang left of Search in the actions group */
}

/* =========================
   MOBILE / TABLET
========================= */

@media (max-width: 991.98px) {
  .site-header,
  .site-header .container,
  .site-header .header-inner,
  .site-header .header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .site-header .nav-links {
    display: none !important;
  }

.site-header .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-direction: row !important;
}

.site-header .menu {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}


  .site-header .menu,
  .site-header .header-actions,
  .site-header .lang-switcher,
  .site-header .search-trigger,
  .site-header .menu-toggle,
  .site-header .hamburger {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
  }

  .site-header .lang-switcher,
  .site-header .search-trigger,
  .site-header .menu-toggle,
  .site-header .hamburger,
  .site-header .menu {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    flex: 0 0 auto !important;
  }

  /* ===== ORDER: LTR ===== */
  html[dir="ltr"] .site-header .header-actions {
    order: 1 !important;
    flex-direction: row-reverse !important;
  }

  html[dir="ltr"] .site-header .menu {
    order: 2 !important;
  }

  /* ===== ORDER: RTL ===== */
  html[dir="rtl"] .site-header .menu {
    order: 1 !important;
  }

  html[dir="rtl"] .site-header .header-actions {
    order: 2 !important;
  }

  .site-header .logo,
  .site-header .brand,
  .site-header .site-logo {
    position: static !important;
    margin: 0 auto !important;
    transform: none !important;
    flex: 0 1 auto !important;
    text-align: center !important;
  }

  .site-header .lang-switcher svg,
  .site-header .search-trigger svg,
  .site-header .menu-toggle svg,
  .site-header .hamburger svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
  }
}

@media (max-width: 767.98px) {
  .site-header {
    padding: 16px 20px;
  }

  .header-actions {
    gap: 12px;
  }

  .globe-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 479.98px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-actions {
    gap: 10px;
  }

  .lang-switcher,
  .search-trigger {
    padding: 4px;
  }

  .globe-icon {
    width: 16px;
    height: 16px;
  }
}

/* =========================
   MOBILE MENU OVERLAY
========================= */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 320px;
  max-width: 85vw;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(5, 5, 5, 0.7) 100%);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  transition: transform 0.45s var(--ease-expo);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}

/* LTR: slide from left */
html[dir="ltr"] .mobile-menu-overlay {
  left: 0;
  transform: translateX(-100%);
  box-shadow: 4px 0 60px rgba(0, 0, 0, 0.6);
}

html[dir="ltr"] .mobile-menu-overlay.active {
  transform: translateX(0);
}

/* RTL: slide from right */
html[dir="rtl"] .mobile-menu-overlay {
  right: 0;
  transform: translateX(100%);
  box-shadow: -4px 0 60px rgba(0, 0, 0, 0.6);
}

html[dir="rtl"] .mobile-menu-overlay.active {
  transform: translateX(0);
}

/* =========================
   DAY MODE: MOBILE MENU OVERLAY
========================= */

body.day-mode .mobile-menu-overlay {
  /* تبدیل متغیرهای --black (#faf7f2) و --gray-950 (#f4f0e8) به فرمت rgba برای حفظ افکت شیشه‌ای (Blur) */
  background: linear-gradient(135deg, rgba(250, 247, 242, 0.85) 0%, rgba(244, 240, 232, 0.9) 100%);
  
  /* تغییر حاشیه به یک رنگ تیره/شرابی بسیار ملایم (متناسب با تِم رنگی شما) */
  border-inline-start: 1px solid rgba(128, 0, 34, 0.15); 
}

/* LTR: ملایم کردن سایه در حالت روز */
html[dir="ltr"] body.day-mode .mobile-menu-overlay {
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.12);
}

/* RTL: ملایم کردن سایه در حالت روز */
html[dir="rtl"] body.day-mode .mobile-menu-overlay {
  box-shadow: -4px 0 40px rgba(0, 0, 0, 0.12);
}
body.day-mode .mobile-nav a {
  border-bottom: 1px solid rgba(128, 0, 34, 0.15) !important;
}
/* =========================
   MOBILE MENU CLOSE
========================= */

.mobile-menu-close {
  width: 42px;
  height: 42px;
  margin: 24px 24px 0;
  align-self: flex-end;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 1px;
  background: var(--gray-300);
  transition: all 0.35s var(--ease-expo);
}

.mobile-menu-close::before {
  transform: rotate(45deg);
}

.mobile-menu-close::after {
  transform: rotate(-45deg);
}

.mobile-menu-close:hover::before,
.mobile-menu-close:hover::after {
  background: var(--white);
  width: 26px;
}

.mobile-menu-close:active {
  transform: scale(0.95);
}

/* =========================
   MOBILE NAV
========================= */

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 40px;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav a {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--gray-300);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition:
    color 0.35s ease,
    opacity 0.4s ease,
    transform 0.4s var(--ease-expo);
  transform: translateX(-20px);
}

html[dir="rtl"] .mobile-nav a {
  transform: translateX(20px);
}

.mobile-nav a::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: -32px;
  width: 2px;
  height: 0;
  background: var(--white);
  transform: translateY(-50%);
  transition: height 0.3s var(--ease-expo);
}

.mobile-nav a:hover {
  color: var(--white);
}

.mobile-nav a:hover::before {
  height: 24px;
}

.mobile-menu-overlay.active .mobile-nav a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-nav a:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu-overlay.active .mobile-nav a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu-overlay.active .mobile-nav a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-nav a:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu-overlay.active .mobile-nav a:nth-child(6) { transition-delay: 0.35s; }

/* =========================
   BACKDROP
========================= */

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-expo), visibility 0.4s var(--ease-expo);
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* =========================
   UTILITIES
========================= */

body.no-scroll {
  overflow: hidden;
}

.mobile-nav::-webkit-scrollbar {
  width: 4px;
}

.mobile-nav::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.mobile-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Desktop: hide mobile menu system */
@media (min-width: 992px) {
  .mobile-menu-overlay,
  .mobile-menu-backdrop {
    display: none !important;
  }
}

/* ─── HERO ───────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 60px 80px;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  margin-bottom: 40px;
}

.hero-logo img {
  width: clamp(160px, 18vw, 280px);
  animation: rotate 180s linear infinite;
  filter: drop-shadow(0 0 60px rgba(245,242,238,0.10));
  opacity: 0.9;
}

/* ── Mobile Hero Fix (RTL) ── */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    height: auto;
  }

  .hero-inner {
    padding: 100px 24px 60px;
    min-height: 100svh;
    box-sizing: border-box;
  }

  .hero-logo img {
    width: clamp(100px, 30vw, 160px);
  }

  .hero-logo {
    gap: 20px;
    margin-bottom: 24px;
  }
}

/* ── Hide custom cursor on touch devices ── */
@media (hover: none) and (pointer: coarse) {
  .cursor,
  .cursor-ring {
    display: none !important;
  }

  body,
  a,
  button,
  input,
  select,
  textarea {
    cursor: auto !important;
  }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.brand-text {
  text-align: center;
}

.brand-text h1 {
  font-family: 'Future Sallow', var(--font-display);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 400;
  letter-spacing: 10px;
  color: var(--white);
  text-transform: uppercase;
  direction: ltr;
  line-height: 1;
}

.brand-text p {
  font-family: 'Future Sallow', var(--font-mono);
  font-size: clamp(11px, 1.4vw, 16px);
  letter-spacing: 8px;
  color: var(--gray-300);
  text-transform: uppercase;
  margin-top: 8px;
  direction: ltr;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin: 0;
  text-align: center;
}
/* =========================================
   Modern Minimal Broken Search Bar
   ========================================= */

.search-trigger {
    background: transparent;
    border: none;
    color: var(--white, #f5f2ee);
    cursor: none; /* هماهنگ با نشانگر ماوس اختصاصی شما */
    margin-right: 1.5rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.search-trigger:hover {
    transform: scale(1.1) rotate(-5deg); /* چرخش نامتقارن هنگام هاور */
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    direction: rtl;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.search-close {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    font-size: 2.5rem;
    color: #f5f2ee; /* <--- تغییر به رنگ ثابت */
    cursor: none;
    transition: transform 0.4s ease;
}

.search-close:hover {
    transform: rotate(90deg) scale(0.9);
}

.search-container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    transform: translateY(60px) skewY(2deg); /* شروع با کمی زاویه شکست */
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* 👇 این دو خط را اضافه کنید 👇 */
    display: flex;
    flex-direction: column;
}

.search-overlay.active .search-container {
    transform: translateY(0) skewY(0); /* بازگشت به حالت صاف */
}

.search-box {
    display: flex;
    position: relative;
    background: transparent;
    border-bottom: 2px solid rgba(245, 242, 238, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* خط کج زیرین برای القای حس شکستگی و نامتقارن بودن */
.search-box::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 35%;
    height: 2px;
    background: #f5f2ee; /* <--- تغییر به رنگ ثابت */
    transform-origin: right;
    transform: rotate(0.8deg); 
    transition: width 0.4s ease;
}

.search-box:focus-within::after {
    width: 100%;
    transform: rotate(0deg);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f5f2ee; /* <--- تغییر به رنگ ثابت روشن */
    font-size: 3vw; 
    font-family: 'BYekan', 'BYekan', sans-serif;
    font-weight: 300;
    outline: none;
    cursor: none;
}

.search-box input::placeholder {
    color: rgba(245, 242, 238, 0.2);
    font-weight: 100;
}

/* دکمه شکسته (Deconstructed Button) */
.search-btn {
    background: #800022 !important; /* اعمال قطعی رنگ */
    color: #ffffff !important;
    border: none;
    padding: 0 2.5rem;
    font-family: 'BYekan', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
    cursor: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-right: 1rem;
}

.search-btn:hover {
    background: #5a0018 !important; /* اعمال قطعی رنگ هاور */
    color: #ffffff !important;
    transform: translateX(-10px);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
}


.search-results-info {
    font-family: 'BYekan', sans-serif;
    font-size: 0.9rem;
    color: rgba(245, 242, 238, 0.5);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.3s;
}

.search-overlay.active .search-results-info {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .search-box input { font-size: 2rem; }
    .search-btn { padding: 0 1.5rem; font-size: 1rem; }
}
@media (max-width: 768px) {
    .search-trigger {
        position: absolute;
        top: 24px;     /* دقیقاً همان عددی که منو دارد */
        left: 24px;    /* متقارن با right: 24px منو */
        z-index: 1003; /* کمی بالاتر از منو تا همیشه در دسترس باشد */
        background: none;
        border: none;
        color: var(--white);
        cursor: pointer;
        padding: 0;
        display: flex; /* برای تنظیم دقیق آیکون داخل دکمه */
        align-items: center;
        justify-content: center;
    }
}
/* استایل‌های مربوط به لیست نتایج جستجو */
.search-results-container {
    /* 👇 این یک خط را اضافه کنید 👇 */
    width: 100%;
    
    margin-top: 2rem;
    max-height: 40vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 10px; /* برای فاصله از اسکرول بار */
}

/* استایل اسکرول بار برای نتایج */
.search-results-container::-webkit-scrollbar {
    width: 6px;
}
.search-results-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05); 
}
.search-results-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 10px;
}

.search-result-item {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--white, #f5f2ee);
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--white, #f5f2ee);
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px); /* حرکت ظریف به سمت چپ در حالت rtl */
    border-left-color: #a8d5ba; /* رنگ لبه هنگام هاور */
}

.search-result-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-family: 'BYekan', sans-serif;
    color: #fff;
}

.search-result-item p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'BYekan', sans-serif;
    line-height: 1.5;
}
/* وقتی صفحه جستجو باز است، موس همیشه سفید بماند */
body.search.search-overlay.active .cursor {
    background: #ffffff !important;
    mix-blend-mode: normal !important;
}

bodysearch.search-overlay.active .cursor-ring {
    border-color: rgba(255, 255, 255, 0.8) !important;
    mix-blend-mode: normal !important;
}

/* برای زمانی که در صفحه جستجو موس روی دکمه‌ها یا لینک‌ها رفت */
bodysearch.search-overlay.active:has(button:hover) .cursor-ring,
bodysearch.search-overlay.active:has(a:hover) .cursor-ring {
    border-color: #ffffff !important;
}
/* =========================================
   LTR / English Version Overrides
   ========================================= */

/* تغییر جهت کلی صفحه جستجو به چپ‌به‌راست */
[dir="ltr"] .search-overlay {
    direction: ltr;
}

/* جابه‌جایی فاصله دکمه تریگر (آیکون ذره‌بین اصلی) */
[dir="ltr"] .search-trigger {
    margin-right: 0;
    margin-left: 1.5rem;
}

/* قرینه کردن خط کج تزئینی زیر فیلد ورودی */
[dir="ltr"] .search-box::after {
    right: auto;
    left: 0;
    transform-origin: left;
    transform: rotate(-0.8deg); 
}

[dir="ltr"] .search-box:focus-within::after {
    transform: rotate(0deg);
}

/* انتقال دکمه جستجو (تایید) به سمت راست و قرینه کردن شکل شکسته آن */
[dir="ltr"] .search-btn {
    margin-right: 0;
    margin-left: 1rem; /* فاصله از سمت چپ با فیلد متنی */
    clip-path: polygon(0 0, 85% 0, 100% 100%, 15% 100%); /* برش قرینه */
}

/* تغییر جهت انیمیشن هاور دکمه به سمت راست */
[dir="ltr"] .search-btn:hover {
    transform: translateX(10px); 
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

/* تغییر جهت انیمیشن هاور نتایج جستجو به سمت راست */
[dir="ltr"] .search-result-item:hover {
    transform: translateX(5px);
}

/* اصلاح جایگاه دکمه جستجو در موبایل برای نسخه انگلیسی */
@media (max-width: 768px) {
    [dir="ltr"] .search-trigger {
        left: auto;
        right: 24px; /* قرارگیری در سمت راست (متقارن با منوی سمت چپ در LTR) */
    }
}

/* ─── PERSIAN LUXURY HERO HEADLINE (sub-pages) ───────────── */

.hero-headline-fa .hero h2,
.hero-headline-fa h2 {
  font-family: 'BYekan', 'Scheherazade New', serif;
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--white);
  margin: 0;
  text-align: center;
  direction: rtl;
}

.hero-headline-fa h2 em {
  font-style: italic;
  color: var(--gray-300);
  font-weight: 300;
}

.hero h2 em {
  font-style: italic;
  color: var(--gray-300);
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-top: 32px;
  direction: rtl;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding: 16px 40px;
  border: 1px solid rgba(245,242,238,0.25);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: transparent;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, color 0.3s;
  direction: rtl;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right; /* RTL: fill from right */
  transition: transform 0.5s var(--ease-expo);
}

.hero-cta:hover { color: var(--black); border-color: var(--white); }
.hero-cta:hover::before { transform: scaleX(1); }
.hero-cta span { position: relative; z-index: 1; }

.hero-cta .arrow {
  display: inline-block;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
  direction: ltr;
}
/* RTL: arrow points left */
.hero-cta:hover .arrow { transform: translateX(-6px); }

/* Hero scroll indicator */
.hero-scroll {
  padding: 32px 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(245,242,238,0.06);
  direction: rtl;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--gray-600);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { width: 40px; background: var(--gray-600); }
  50%       { width: 80px; background: var(--gray-300); }
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gray-400);
  text-transform: uppercase;
  direction: ltr;
}

/* ─── DIVIDER ────────────────────────────────────────────── */

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(245,242,238,0.12) 30%,
    rgba(245,242,238,0.12) 70%, transparent);
}

/* ─── SECTION BASE ───────────────────────────────────────── */

.section {
  padding: 140px 60px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-direction: row-reverse; /* RTL: title on right, label on left */
  margin-bottom: 80px;
  border-bottom: 1px solid rgba(245,242,238,0.06);
  padding-bottom: 32px;
  direction: rtl;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gray-400);
  text-transform: uppercase;
  direction: ltr;
  white-space: nowrap;
  align-self: flex-end;
  padding-bottom: 2px;
}

.section-title {
  font-family: 'BYekan', 'BYekan', var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: 0;
  color: var(--white);
  line-height: 1.1;
  text-align: right;
}

.section-title em {
  font-style: normal;
  color: var(--gray-300);
  font-weight: 200;
}

/* ─── CARD GRID ──────────────────────────────────────────── */

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: rgba(245,242,238,0.06);
}

/* ─── MODERN CARD ────────────────────────────────────────── */

.modern-card {
  position: relative;
  height: 480px;
  overflow: hidden;
  cursor: none;
  background: var(--gray-900);
}

.modern-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 1.4s var(--ease-expo), filter 0.6s;
  filter: grayscale(80%) brightness(0.5);
}

.modern-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.5) 40%,
    rgba(0,0,0,0.1) 80%
  );
  z-index: 1;
}

/* Index number — top LEFT in RTL */
.modern-card::after {
  content: attr(data-index);
  position: absolute;
  top: 28px;
  left: 28px; /* RTL: index in top-left */
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(245,242,238,0.3);
  z-index: 3;
  transition: color 0.3s;
  direction: ltr;
  left: 28px;
}

.modern-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 36px;
  z-index: 3;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s var(--ease-expo), opacity 0.5s;
  text-align: right;
  direction: rtl;
}

.modern-content h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  color: var(--white);
}

.modern-content p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-300);
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.modern-card:hover img {
  transform: scale(1.1);
  filter: grayscale(20%) brightness(0.65);
}

.modern-card:hover .modern-content {
  transform: translateY(0);
  opacity: 1;
}

.modern-card:hover::after { color: rgba(245,242,238,0.7); }

/* تنظیمات تگ لینک برای جلوگیری از بهم ریختگی استایل کارت‌ها */
.card-link {
    text-decoration: none; /* حذف خط زیر لینک */
    color: inherit; /* ارث‌بری رنگ متن از کلاس‌های والد */
    display: block; /* تبدیل لینک به یک بلوک کامل برای پوشش تمام کارت */
    width: 100%;
    height: 100%;
}

/* (اختیاری) افکت هاور برای تعامل بهتر کاربر */
.card-link:hover .modern-card {
    /* می‌توانید افکت‌هایی مانند سایه یا بزرگ‌نمایی ملایم را اینجا اضافه کنید */
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

[dir="ltr"] .modern-card::after,
[lang="en"] .modern-card::after {
  left: auto;
  right: 28px;
}

[dir="ltr"] .modern-card .modern-content,
[lang="en"] .modern-card .modern-content {
  text-align: left;
  direction: ltr;
}

/* ─── PROJECTS V2 SECTION ───────────────────────────────── */

.projects-v2-section {
    padding-top: 100px;
    padding-bottom: 140px;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.projects-v2-header {
    padding: 0 60px 32px;
    margin-bottom: 0;
}

.projects-v2-label {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--gray-400, #999);
}

.projects-v2-title {
    margin: 0;
}

/* ─── PROJECTS V2 GRID ───────────────────────────────── */

.projects-v2-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 100%;
}

/* ─── PROJECT CARD V2 ───────────────────────────────── */

.project-card-v2 {
    position: relative;
    height: 480px;
    overflow: hidden;
    cursor: none;
    background: var(--gray-900, #111);
}

.project-card-v2 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 1.4s var(--ease-expo, cubic-bezier(0.16, 1, 0.3, 1)), filter 0.6s;
    filter: grayscale(80%) brightness(0.5);
}

.project-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.1) 80%
    );
    z-index: 1;
}

/* شماره کارت */
.project-card-v2::after {
    content: attr(data-index);
    position: absolute;
    top: 28px;
    left: 28px;
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(245, 242, 238, 0.3);
    z-index: 3;
    transition: color 0.3s;
    direction: ltr;
}

.project-card-v2-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 36px;
    z-index: 3;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.6s var(--ease-expo, cubic-bezier(0.16, 1, 0.3, 1)), opacity 0.5s;
    text-align: right;
    direction: rtl;
}

.project-card-v2-content h3 {
    font-family: var(--font-display, serif);
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: var(--white, #fff);
}

.project-card-v2-content p {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    color: var(--gray-300, #ccc);
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* Hover */
.project-card-v2:hover img {
    transform: scale(1.1);
    filter: grayscale(20%) brightness(0.65);
}

.project-card-v2:hover .project-card-v2-content {
    transform: translateY(0);
    opacity: 1;
}

.project-card-v2:hover::after {
    color: rgba(245, 242, 238, 0.7);
}

/* حالت LTR اگر لازم شد */
[dir="ltr"] .project-card-v2::after,
[lang="en"] .project-card-v2::after {
    left: auto;
    right: 28px;
}

[dir="ltr"] .project-card-v2-content,
[lang="en"] .project-card-v2-content {
    text-align: left;
    direction: ltr;
}

/* ─── RESPONSIVE ───────────────────────────────────────── */

/* نمایش ۳ کارت در هر ردیف */
@media (max-width: 1199px) {
    .projects-v2-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* تبلت */
@media (max-width: 768px) {
    .projects-v2-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card-v2 {
        height: 420px;
    }

    .projects-v2-header {
        padding: 0 28px 28px;
    }
}

/* موبایل */
@media (max-width: 520px) {
    .projects-v2-grid {
        grid-template-columns: 1fr;
    }

    .project-card-v2 {
        height: 390px;
    }

    .project-card-v2-content {
        padding: 32px 28px;
    }
}
/* ─── PROJECT CARD V2 - DAY MODE (MATCHING MODERN-CARD) ───────────────── */

/* ۱. پس‌زمینه کارت و سایه‌ها دقیقاً مشابه modern-card */
body.day-mode .project-card-v2 {
  background-color: #f4f0e8; /* رنگ پایه استخراج شده از گرادیان شما */
  box-shadow:
    0 2px 8px rgba(80,65,45,0.08),
    0 8px 32px rgba(80,65,45,0.06);
  transition: box-shadow 0.4s var(--ease-expo),
              transform   0.4s var(--ease-expo);
}

body.day-mode .project-card-v2:hover {
  box-shadow:
    0 4px 16px rgba(80,65,45,0.14),
    0 16px 48px rgba(80,65,45,0.10);
}

/* ۲. رفتار تصویر: محو بودن در حالت عادی برای سازگاری با تم روز */
body.day-mode .project-card-v2 img {
  filter: grayscale(80%);
  opacity: 0.3;
  transition: all 0.5s ease;
}

body.day-mode .project-card-v2:hover img {
  filter: grayscale(0%);
  opacity: 1; /* در زمان هاور تصویر رنگی و واضح می‌شود */
}

/* ۳. گرادیان پوششی دقیقاً مشابه modern-card */
body.day-mode .project-card-v2::before {
  background: linear-gradient(
    to top,
    rgba(244,240,232,0.96) 0%,
    rgba(244,240,232,0.72) 35%,
    rgba(244,240,232,0.28) 65%,
    rgba(244,240,232,0.04) 100%
  );
  z-index: 1;
}

/* ۴. شماره ایندکس دقیقاً مشابه modern-card */
body.day-mode .project-card-v2::after {
  color: rgba(80,65,45,0.22);
  z-index: 2;
}

body.day-mode .project-card-v2:hover::after {
  color: rgba(80,65,45,0.55);
}

/* ۵. تایپوگرافی و متون دقیقاً مشابه modern-card */
body.day-mode .project-card-v2-content h3 {
  color: #800022;
  text-shadow: none;
  z-index: 2;
}

body.day-mode .project-card-v2-content p {
  color: #800022;
  z-index: 2;
}

/* ۶. تگ‌ها (در صورت وجود در ساختار کارت دوم) مشابه modern-card */
body.day-mode .project-card-v2-content .tag,
body.day-mode .project-card-v2-content .label {
  background: rgba(100,85,65,0.09);
  color: #800022;
  border-color: rgba(100,85,65,0.15);
  z-index: 2;
}

/* ۷. تغییر رنگ متن در حالت هاور (برای خوانایی روی تصویر تیره) */
body.day-mode .project-card-v2:hover .project-card-v2-content h3,
body.day-mode .project-card-v2:hover .project-card-v2-content p,
body.day-mode .project-card-v2:hover .project-card-v2-content .tag {
  color: #800022; /* چون تصویر واضح می‌شود، متن سفید خواناتر است */
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.6); /* افزودن سایه برای جداسازی متن از پس‌زمینه عکس */
}

/* ─── PROJECTS SECTION ───────────────────────────────────── */

.projects-section {
  padding: 140px 0;
  position: relative;
}

.projects-section .section-header {
  padding-left: 60px;
  padding-right: 60px;
}

/* ─── SLIDER ─────────────────────────────────────────────── */

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 60px 0;
}

.slider-track {
  display: flex;
  align-items: center;
  gap: 24px;
  will-change: transform;
  transition: transform 0.7s var(--ease-expo);
}

.slide {
  flex: 0 0 min(380px, 72vw);
  opacity: 0.3;
  transition: opacity 0.6s;
}

.slide.active { opacity: 1; }

.slide .modern-card {
  transform: scale(0.88);
  transition: transform 0.7s var(--ease-expo);
}

.slide.active .modern-card {
  transform: scale(1.05);
}

/* Slider Nav */
.nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 52px; height: 52px;
  border: 1px solid rgba(245,242,238,0.15);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  color: var(--white);
  cursor: none;
  border-radius: 0;
  font-size: 14px;
  transition: background 0.3s, border-color 0.3s;
  display: grid;
  place-items: center;
}

.nav:hover {
  background: rgba(245,242,238,0.08);
  border-color: rgba(245,242,238,0.4);
}

/* prev (←) on left, next (→) on right — visual positions stay natural */
.prev { left: 24px; right: auto; }
.next { right: 24px; left: auto; }
.slide.adjacent { 
  opacity: 0.65; /* شفافیت میانی */
}

.slide.adjacent .modern-card {
  transform: scale(0.95); /* اندازه میانی */
}

/* برای اینکه کارت‌های خیلی دورتر (ایندکس 0 و 4) بیشتر محو شوند، می‌توانید مقادیر پیش‌فرض را کمی تغییر دهید: */
.slide {
  opacity: 0.25; /* شفافیت کارت‌های دورتر */
}

.slide .modern-card {
  transform: scale(0.85); /* اندازه کارت‌های دورتر */
}
/* ─── FOOTER ─────────────────────────────────────────────── */

.footer {
  border-top: 1px solid rgba(245,242,238,0.06);
  background: var(--gray-950);
  padding-top: 80px;
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 60px 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  border-bottom: 1px solid rgba(245,242,238,0.06);
  
}

/* RTL (فارسی) */
html[dir="rtl"] .footer-container {
  direction: rtl;
}

html[dir="rtl"] .footer-brand h3 {
  font-family: 'Future Sallow', var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 6px;
  color: var(--white);
  margin-bottom: 6px;
  direction: ltr;
  text-align: right;
}

html[dir="rtl"] .footer-brand > p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gray-400);
  text-transform: uppercase;
  direction: ltr;
  text-align: right;
}

html[dir="rtl"] .footer-tagline {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gray-400);
  margin-top: 24px;
  line-height: 1.8;
  font-style: italic;
  font-weight: 300;
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .footer-links h4,
html[dir="rtl"] .footer-contact h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 28px;
  text-align: right;
}

html[dir="rtl"] .footer-links {
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] .footer-links a {
  text-decoration: none;
  color: var(--gray-300);
  font-family: byekan !important;
  font-size: 17px;
  font-weight: 300;
  padding: 10px 0;
  border-bottom: 1px solid rgba(245,242,238,0.05);
  transition: color 0.3s, padding-right 0.3s;
  cursor: none;
  text-align: right;
}

html[dir="rtl"] .footer-links a:hover {
  color: var(--white);
  padding-right: 12px;
}

html[dir="rtl"] .footer-contact p {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gray-300);
  margin-bottom: 12px;
  line-height: 1.8;
  direction: ltr;
  text-align: right;
}

html[dir="rtl"] .footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
}

html[dir="rtl"] .footer-bottom p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gray-600);
  direction: ltr;
}

/* LTR (انگلیسی) */
html[dir="ltr"] .footer-container {
  direction: ltr;
}

html[dir="ltr"] .footer-brand h3 {
  font-family: 'Future Sallow', var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 6px;
  color: var(--white);
  margin-bottom: 6px;
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .footer-brand > p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gray-400);
  text-transform: uppercase;
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .footer-tagline {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gray-400);
  margin-top: 24px;
  line-height: 1.8;
  font-style: italic;
  font-weight: 300;
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .footer-links h4,
html[dir="ltr"] .footer-contact h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 28px;
  text-align: left;
}

html[dir="ltr"] .footer-links {
  display: flex;
  flex-direction: column;
}

html[dir="ltr"] .footer-links a {
  text-decoration: none;
  color: var(--gray-300);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 300;
  padding: 10px 0;
  border-bottom: 1px solid rgba(245,242,238,0.05);
  transition: color 0.3s, padding-left 0.3s;
  cursor: none;
  text-align: left;
}

html[dir="ltr"] .footer-links a:hover {
  color: var(--white);
  padding-left: 12px;
}

html[dir="ltr"] .footer-contact p {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gray-300);
  margin-bottom: 12px;
  line-height: 1.8;
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
}

html[dir="ltr"] .footer-bottom p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gray-600);
  direction: ltr;
}
html[dir="rtl"] .footer-contact p {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .footer-contact a[href^="tel"] {
  unicode-bidi: plaintext;
  display: inline-block;

}
.footer {
    padding-bottom: 0;
}
.footer {
    padding-bottom: 0;
    margin-bottom: 0;
}

body {
    margin-bottom: 0;
    padding-bottom: 0;
}
.footer-container {
    padding-bottom: 0 !important;
}
/*──── ABOUT STORY PREMIUM ───────────────── */

.about-story {
  width: 100%;
  padding: 0 0 120px;
  background: transparent;
}

.about-manifesto {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px 40px;
}

.about-manifesto p {
  font-family: 'BYekan', var(--font-display);
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.5;
  font-weight: 300;
  color: var(--white);
  max-width: 950px;
  opacity: 0.96;
  text-align: justify;
}

html[dir="rtl"] .about-manifesto p {
  text-align: justify;
  text-align-last: right;
}

html[dir="ltr"] .about-manifesto p {
  text-align: justify;
  text-align-last: left;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 60px 0;
  display: flex;
  flex-direction: column;
}

.about-block {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  padding: 70px 0;
  border-bottom: 1px solid rgba(245, 242, 238, 0.08);
  overflow: hidden;
}

.about-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.02);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.about-block:hover::before {
  opacity: 1;
}

.about-label span {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(245,242,238,0.35);
}

.about-label h2 {
  font-family: 'BYekan', var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.4;
}

.about-copy p {
  font-family: 'BYekan', var(--font-display);
  font-size: 20px;
  line-height: 2;
  font-weight: 300;
  color: var(--gray-300);
  max-width: 700px;
  text-align: justify;
}

html[dir="rtl"] .about-label,
html[dir="rtl"] .journey-heading,
html[dir="rtl"] .journey-step {
  text-align: right;
}

html[dir="ltr"] .about-label,
html[dir="ltr"] .journey-heading,
html[dir="ltr"] .journey-step {
  text-align: left;
}

html[dir="rtl"] .about-copy p,
html[dir="rtl"] .about-closing p {
  text-align: justify;
  text-align-last: right;
}

html[dir="ltr"] .about-copy p,
html[dir="ltr"] .about-closing p {
  text-align: justify;
  text-align-last: left;
}

/* ─── ABOUT STATS STRIP ──────────────────────────────────── */

.about-stats {
  max-width: 1100px;
  margin: 70px auto 0;
  padding: 0 60px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(245, 242, 238, 0.08);
  border-bottom: 1px solid rgba(245, 242, 238, 0.08);
}

.stat-item {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-inline-start: 1px solid rgba(245, 242, 238, 0.08);
}

.stat-item:first-child {
  border-inline-start: none;
}

.stat-number {
  font-family: 'BYekan', var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  direction: ltr;
}

.stat-label {
  font-family: 'BYekan', var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--gray-400);
}

body.day-mode .about-stats {
  border-color: rgba(128, 0, 34, 0.14);
}

body.day-mode .stat-item {
  border-inline-start-color: rgba(128, 0, 34, 0.14);
}

body.day-mode .stat-number {
  color: #800022;
}

body.day-mode .stat-label {
  color: rgba(128, 0, 34, 0.6);
}

@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 24px;
  }

  .stat-item:nth-child(3) {
    border-inline-start: none;
  }

  .stat-item {
    padding: 28px 16px;
  }

  .stat-number {
    font-size: 30px;
  }
}

/* ─── ABOUT VALUES GRID ──────────────────────────────────── */

.about-values {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 60px 0;
}

.values-heading {
  margin-bottom: 50px;
}

.values-heading span {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(245, 242, 238, 0.35);
}

.values-heading h2 {
  font-family: 'BYekan', var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.4;
}

html[dir="rtl"] .values-heading,
html[dir="rtl"] .value-card {
  text-align: right;
}

html[dir="ltr"] .values-heading,
html[dir="ltr"] .value-card {
  text-align: left;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(245, 242, 238, 0.07);
}

.value-card {
  padding: 40px 32px;
  background: var(--gray-950);
  transition: background 0.4s ease, transform 0.4s var(--ease-expo);
}

.value-card:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-4px);
}

.value-icon {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(128, 0, 34, 0.7);
}

.value-card h3 {
  font-family: 'BYekan', var(--font-display);
  font-size: 21px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 14px;
}

.value-card p {
  font-family: 'BYekan', var(--font-display);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 300;
  color: var(--gray-300);
  text-align: justify;
}

html[dir="rtl"] .value-card p { text-align-last: right; }
html[dir="ltr"] .value-card p { text-align-last: left; }

body.day-mode .about-values .values-heading span {
  color: rgba(128, 0, 34, 0.4);
}

body.day-mode .about-values .values-heading h2 {
  color: #1a1210;
}

body.day-mode .values-grid {
  background: rgba(128, 0, 34, 0.12);
}

body.day-mode .value-card {
  background: #f4f0e8;
}

body.day-mode .value-card:hover {
  background: #ece5da;
}

body.day-mode .value-icon {
  color: #800022;
}

body.day-mode .value-card h3 {
  color: #1a1210;
}

body.day-mode .value-card p {
  color: rgba(50, 30, 25, 0.7);
}

@media (max-width: 991px) {
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .about-values {
    padding: 70px 24px 0;
  }

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

  .value-card {
    padding: 32px 24px;
  }
}

/* JOURNEY */
.about-journey {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 60px 0;
}

.journey-heading {
  margin-bottom: 50px;
}

.journey-heading span {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(245,242,238,0.35);
}

.journey-heading h2 {
  font-family: 'BYekan', var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.4;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.journey-step {
  padding: 34px 30px;
  border: 1px solid rgba(245,242,238,0.08);
  background: rgba(255,255,255,0.015);
  min-height: 220px;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.journey-step:hover {
  transform: translateY(-6px);
  border-color: rgba(245,242,238,0.18);
  background: rgba(255,255,255,0.03);
}

.journey-step span {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(245,242,238,0.35);
}

.journey-step h3 {
  font-family: 'BYekan', var(--font-display);
  font-size: 24px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 18px;
}

.journey-step p {
  font-family: 'BYekan', var(--font-display);
  font-size: 17px;
  line-height: 1.95;
  font-weight: 300;
  color: var(--gray-300);
  text-align: justify;
}

html[dir="rtl"] .journey-step p { text-align-last: right; }
html[dir="ltr"] .journey-step p { text-align-last: left; }

/* CLOSING */
.about-closing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 60px 0;
}

.about-closing p {
  font-family: 'BYekan', var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.7;
  font-weight: 300;
  color: var(--white);
  max-width: 850px;
  opacity: 0.95;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .about-manifesto,
  .about-content,
  .about-journey,
  .about-closing {
    padding-left: 28px;
    padding-right: 28px;
  }

  .about-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 50px 0;
  }

  .about-copy p {
    font-size: 18px;
    line-height: 1.9;
  }

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

  .journey-step {
    min-height: auto;
  }
}

@media (max-width: 575px) {
  .about-manifesto {
    padding-top: 70px;
  }

  .about-manifesto p {
    font-size: 28px;
    line-height: 1.7;
  }

  .about-label h2 {
    font-size: 24px;
  }

  .about-copy p {
    font-size: 17px;
  }

  .journey-heading h2 {
    font-size: 28px;
  }

  .journey-step h3 {
    font-size: 22px;
  }

  .about-closing p {
    font-size: 24px;
  }
}


/* ─── CATEGORIES ─────────────────────────────────────────── */

.categories {
  padding: 120px 0;
}

.categories .section-header {
  padding-left: 60px;
  padding-right: 60px;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo       { animation: fadeUp 1s var(--ease-expo) 0.2s both; }
.hero-headline   { animation: fadeUp 1s var(--ease-expo) 0.45s both; }
.hero-cta        { animation: fadeUp 1s var(--ease-expo) 0.65s both; }
.hero-scroll     { animation: fadeUp 0.8s var(--ease-expo) 0.9s both; }

/* ─── UTILITY ────────────────────────────────────────────── */

.no-scroll { overflow: hidden; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 1024px) {
  header { padding: 24px 40px; }
  .section { padding: 100px 40px; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding: 24px 40px; }
  .about-content { padding: 100px 40px; }
}

@media (max-width: 768px) {
  body { cursor: auto; }

  .hero-inner { padding: 120px 24px 60px; }
  .hero-logo img { width: 190px; }
  .hero h2 { font-size: clamp(18px, 5vw, 28px); }

  .brand-text h1 { font-size: clamp(48px, 12vw, 72px); letter-spacing: 6px; }
  .brand-text p  { font-size: clamp(13px, 3.5vw, 18px); letter-spacing: 5px; }
  .hero-scroll { padding: 24px; }

  .section { padding: 80px 24px; }
  .section-header { flex-direction: column; gap: 12px; }
  .section-title { font-size: clamp(28px, 8vw, 48px); }

  .card-container { grid-template-columns: 1fr; }
  .modern-card { height: 360px; }
  .modern-content { transform: translateY(0); opacity: 1; }

  .slide { flex: 0 0 85vw; }
  .slide .modern-card { transform: scale(0.95); }
  .slide.active .modern-card { transform: scale(1); }

  /* RTL */
  html[dir="rtl"] .prev { left: 12px; right: auto; }
  html[dir="rtl"] .next { right: 12px; left: auto; }

  /* LTR */
  html[dir="ltr"] .prev { left: 12px; right: auto; }
  html[dir="ltr"] .next { right: 12px; left: auto; }

  .about-content { padding: 80px 24px; }
  .about-block {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 48px 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    padding: 0 24px 60px;
    gap: 40px;
  }

  .footer-bottom { padding: 24px; flex-direction: column; gap: 8px; }
  .projects-section .section-header { padding-left: 24px; padding-right: 24px; }
  .categories .section-header { padding-left: 24px; padding-right: 24px; }
}

/* =========================================
   Search Bar Styles
   ========================================= */
.search-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: 1px solid rgba(100, 85, 65, 0.3);
    border-radius: 8px;
    font-size: 16px;
    background: transparent;
    color: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

body.day-mode .search-input {
    background-color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    border-color: rgba(100, 85, 65, 0.8);
    box-shadow: 0 0 8px rgba(100, 85, 65, 0.2);
}

.search-btn {
    padding: 15px 30px;
    background-color: rgba(100, 85, 65, 0.8);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: rgba(100, 85, 65, 1);
}

/* =========================================
   Horizontal Cards Styles (Monochrome - RTL/Farsi & Dark Mode Default)
   ========================================= */

.horizontal-card-container {
    max-width: 1000px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0 20px;
    direction: rtl;
}

/* -----------------------------------------
   کارت اصلی - دارک مود پیش‌فرض
   ----------------------------------------- */
.horizontal-card {
    display: flex;
    position: relative;
    height: 260px;
    border-radius: 0px;
    overflow: hidden;
    cursor: pointer;

    background: linear-gradient(
        135deg,
        rgba(15, 15, 15, 0.97) 0%,
        rgba(8, 8, 8, 0.99) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        6px 6px 0px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition:
        transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* نوار رنگی بالایی */
.horizontal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.7) 60%,
        transparent 100%
    );
    z-index: 10;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* شماره / ایندکس پس‌زمینه */
.horizontal-card::after {
    content: attr(data-index);
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.02);
    font-family: 'Georgia', serif;
    pointer-events: none;
    z-index: 1;
    transition: color 0.4s ease;
    letter-spacing: -4px;
}

.horizontal-card:hover {
    transform: translate(5px, -5px);
    box-shadow:
        -5px 5px 0px rgba(255, 255, 255, 0.18),
        0 25px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

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

.horizontal-card:hover::after {
    color: rgba(255, 255, 255, 0.05);
}

/* -----------------------------------------
   بخش تصویر
   ----------------------------------------- */
.horizontal-card-img {
    width: 38%;
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* گرادیان روی تصویر */
.horizontal-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(8, 8, 8, 0.85) 0%,
        rgba(8, 8, 8, 0.25) 50%,
        transparent 100%
    );
    z-index: 2;
    transition: opacity 0.5s ease;
}

.horizontal-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.7s ease;
    filter: brightness(0.75) saturate(0) contrast(1.05);
}

.horizontal-card:hover .horizontal-card-img img {
    transform: scale(1.1);
    filter: brightness(0.65) saturate(0) contrast(1.1);
}

/* برچسب دسته‌بندی روی عکس */
.card-category-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

/* -----------------------------------------
   بخش محتوا
   ----------------------------------------- */
.horizontal-content {
    width: 62%;
    padding: 38px 44px 38px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    text-align: right;
    z-index: 3;
}

/* متادیتا */
.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.card-meta span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta span::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.card-meta span:last-child::before {
    display: none;
}

/* -----------------------------------------
   تایپوگرافی عنوان
   ----------------------------------------- */
.horizontal-content h3 {
    margin: 0 0 14px 0;
    font-size: 21px;
    font-weight: 700;
    position: relative;
    padding-right: 18px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

/* خط عمودی تزئینی */
.horizontal-content h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 35%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.35)
    );
    border-radius: 2px;
    transition: height 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.horizontal-card:hover .horizontal-content h3::before {
    height: 100%;
}

.horizontal-card:hover .horizontal-content h3 {
    color: #ffffff;
}

/* -----------------------------------------
   متن توضیحات
   ----------------------------------------- */
.horizontal-content p {
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 300;
    text-align: justify;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: color 0.3s ease;
}

html[dir="rtl"] .horizontal-content p { text-align-last: right; }
html[dir="ltr"] .horizontal-content p { text-align-last: left; }

.horizontal-card:hover .horizontal-content p {
    color: rgba(255, 255, 255, 0.6);
}


.horizontal-card:hover .read-more {
    color: #000000 !important;
    border-color: transparent;
}

.horizontal-card:hover .read-more::before {
    transform: translateX(0%);
}

.horizontal-card:hover .read-more .arrow {
    width: 20px;
}

/* =========================================
   حالت روز (Day Mode)
   ========================================= */
body.day-mode .horizontal-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        6px 6px 0px rgba(0, 0, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.day-mode .horizontal-card::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 30%,
        rgba(0, 0, 0, 0.55) 60%,
        transparent 100%
    );
}

body.day-mode .horizontal-card:hover {
    box-shadow:
        -5px 5px 0px rgba(0, 0, 0, 0.2),
        0 25px 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.day-mode .horizontal-card::after {
    color: rgba(0, 0, 0, 0.03);
}

body.day-mode .horizontal-card:hover::after {
    color: rgba(0, 0, 0, 0.06);
}

body.day-mode .horizontal-card-img {
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

body.day-mode .horizontal-card-img::after {
    background: linear-gradient(
        to right,
        rgba(245, 245, 245, 0.85) 0%,
        rgba(245, 245, 245, 0.2) 50%,
        transparent 100%
    );
}

body.day-mode .horizontal-card-img img {
    filter: brightness(0.92) saturate(0) contrast(1.05);
}

body.day-mode .horizontal-card:hover .horizontal-card-img img {
    filter: brightness(0.82) saturate(0) contrast(1.1);
}

body.day-mode .card-category-badge {
    color: rgba(0, 0, 0, 0.8);
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 0, 0, 0.15);
}

body.day-mode .card-meta span {
    color: rgba(0, 0, 0, 0.35);
}

body.day-mode .card-meta span::before {
    background: rgba(0, 0, 0, 0.25);
}

body.day-mode .horizontal-content h3 {
    color: rgba(0, 0, 0, 0.85);
}

body.day-mode .horizontal-content h3::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.3)
    );
}

body.day-mode .horizontal-card:hover .horizontal-content h3 {
    color: #000000;
}

body.day-mode .horizontal-content p {
    color: rgba(0, 0, 0, 0.45);
}

body.day-mode .horizontal-card:hover .horizontal-content p {
    color: rgba(0, 0, 0, 0.68);
}

/* =========================================
   موبایل ریسپانسیو
   ========================================= */
@media (max-width: 768px) {
    .horizontal-card-container {
        gap: 24px;
        padding: 0 16px;
    }

    .horizontal-card {
        flex-direction: column;
        height: auto;
        box-shadow:
            3px 3px 0px rgba(255, 255, 255, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    .horizontal-card:hover {
        transform: translate(3px, -3px);
        box-shadow:
            -3px 3px 0px rgba(255, 255, 255, 0.15),
            0 15px 40px rgba(0, 0, 0, 0.7);
    }

    .horizontal-card::after {
        font-size: 52px;
        bottom: 14px;
        left: 14px;
    }

    .horizontal-card-img {
        width: 100%;
        height: 210px;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .horizontal-card-img::after {
        background: linear-gradient(
            to top,
            rgba(8, 8, 8, 0.88) 0%,
            rgba(8, 8, 8, 0.2) 50%,
            transparent 100%
        );
    }

    .card-category-badge {
        top: 14px;
        right: 14px;
        font-size: 9px;
        padding: 4px 10px;
    }

    .horizontal-content {
        width: 100%;
        padding: 28px 22px 24px;
    }

    .horizontal-content h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .horizontal-content p {
        font-size: 13px;
        margin-bottom: 22px;
    }

    .read-more {
        font-size: 11px;
        padding: 8px 16px;
    }

    /* موبایل دی مود */
    body.day-mode .horizontal-card {
        box-shadow:
            3px 3px 0px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }

    body.day-mode .horizontal-card:hover {
        box-shadow:
            -3px 3px 0px rgba(0, 0, 0, 0.18),
            0 15px 40px rgba(0, 0, 0, 0.08);
    }

    body.day-mode .horizontal-card-img {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    body.day-mode .horizontal-card-img::after {
        background: linear-gradient(
            to top,
            rgba(245, 245, 245, 0.9) 0%,
            rgba(245, 245, 245, 0.2) 50%,
            transparent 100%
        );
    }
}

/* =========================================
   انیمیشن ورود کارت‌ها
   ========================================= */
@keyframes cardFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.horizontal-card {
    animation: cardFadeUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.horizontal-card:nth-child(1) { animation-delay: 0.05s; }
.horizontal-card:nth-child(2) { animation-delay: 0.15s; }
.horizontal-card:nth-child(3) { animation-delay: 0.25s; }
.horizontal-card:nth-child(4) { animation-delay: 0.35s; }
.horizontal-card:nth-child(5) { animation-delay: 0.45s; }

/* فوکوس دسترسی‌پذیری */
.horizontal-card:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 3px;
}

body.day-mode .horizontal-card:focus-within {
    outline-color: rgba(0, 0, 0, 0.3);
}
.read-more{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:12px;
    padding:7px 26px;
    font-size:12px;
    letter-spacing:1.5px;
    text-decoration:none;
    color:rgba(255,255,255,0.85);
    border:1px solid rgba(255,255,255,0.2);
    overflow:hidden;
    transition:all .45s cubic-bezier(.22,.61,.36,1);
}

/* background fill */
.read-more::before{
    content:"";
    position:absolute;
    inset:0;
    background:#ffffff;
    transform:scaleX(0);
    transform-origin:right;
    transition:transform .5s cubic-bezier(.22,.61,.36,1);
    z-index:0;
}

/* reveal line */
.read-more::after{
    content:"";
    position:absolute;
    bottom:0;
    right:0;
    height:2px;
    width:0;
    background:currentColor;
    transition:width .45s ease;
}

/* content */
.read-more span{
    position:relative;
    z-index:2;
}

/* arrow line */
.read-more .arrow{
    width:14px;
    height:1px;
    background:currentColor;
    position:relative;
    transition:all .35s ease;
}

/* arrow head */
.read-more .arrow::after{
    content:"";
    position:absolute;
    left:-1px;
    top:-3px;
    width:6px;
    height:6px;
    border-top:1px solid currentColor;
    border-left:1px solid currentColor;
    transform:rotate(-45deg);
}

/* HOVER */

.read-more:hover{
    color:#000;
    border-color:transparent;
    transform:translateY(-2px);
}

.read-more:hover::before{
    transform:scaleX(1);
}

.read-more:hover::after{
    width:100%;
}

.read-more:hover .arrow{
    transform:translateX(-6px);
    width:22px;
}

.read-more:hover .label{
    transform:translateX(-2px);
}
body.day-mode .read-more{
    color:#111;
    border-color:rgba(0,0,0,0.2);
}

body.day-mode .read-more::before{
    background:#000;
}

body.day-mode .read-more:hover{
    color:#fff;
}
body.day-mode .horizontal-card:hover .read-more{
    color:#ffffff !important;
}
.hero-link{
    color: inherit;
    text-decoration: none;
}

.hero-link:hover{
    color: inherit;
    text-decoration: none;
}
/* =========================================
   LTR Mode Overrides (اصلاحات حالت چپ‌به‌راست)
   ========================================= */

/* 1. اصلاحات ساختار کلی و کانتینر */
html[dir="ltr"] .horizontal-card-container {
    direction: ltr;
}

html[dir="ltr"] .horizontal-content {
    text-align: left;
    /* قرینه کردن پدینگ‌ها (جابجایی چپ و راست) */
    padding: 38px 36px 38px 44px; 
}

html[dir="ltr"] .horizontal-content .card-meta {
    flex-direction: row;
}

/* 2. اصلاحات تایپوگرافی و خط تزئینی عنوان */
html[dir="ltr"] .horizontal-content h3 {
    padding-left: 18px;
    padding-right: 0;
}

html[dir="ltr"] .horizontal-content h3::before {
    left: 0;
    right: auto;
}

/* 3. اصلاحات تصویر (گرادیان و خطوط جداکننده) */
html[dir="ltr"] .horizontal-card-img {
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

html[dir="ltr"] .horizontal-card-img::after {
    /* تغییر جهت گرادیان برای محو شدن درست در سمت راست تصویر */
    background: linear-gradient(
        to left,
        rgba(8, 8, 8, 0.85) 0%,
        rgba(8, 8, 8, 0.25) 50%,
        transparent 100%
    );
}

/* اصلاح تصویر برای حالت روز (Day Mode) در LTR */
html[dir="ltr"] body.day-mode .horizontal-card-img {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

html[dir="ltr"] body.day-mode .horizontal-card-img::after {
    background: linear-gradient(
        to left,
        rgba(245, 245, 245, 0.85) 0%,
        rgba(245, 245, 245, 0.2) 50%,
        transparent 100%
    );
}

/* 4. دکمه و فلش (Read More) */
html[dir="ltr"] .read-more::before {
    transform-origin: left;
}

/* تغییر جهت نوک فلش به سمت راست */
html[dir="ltr"] .read-more .arrow::after {
    left: auto;
    right: -1px;
    border-left: none;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}

/* تغییر جهت انیمیشن هاور به سمت راست */
html[dir="ltr"] .read-more:hover .arrow {
    transform: translateX(6px); /* حرکت به راست به جای چپ */
}

html[dir="ltr"] .read-more:hover .label {
    transform: translateX(2px);
}
/* =========================================
   Day Mode - Burgundy #800022
   ========================================= */

body.day-mode .horizontal-card {
    background: linear-gradient(
        135deg,
        #800022 0%,
        #5f0019 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        6px 6px 0px rgba(128, 0, 34, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body.day-mode .horizontal-card:hover {
    box-shadow:
        -5px 5px 0px rgba(255, 255, 255, 0.18),
        0 25px 60px rgba(80, 0, 22, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* نوار بالایی */
body.day-mode .horizontal-card::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 30%,
        rgba(255, 255, 255, 0.75) 60%,
        transparent 100%
    );
}

/* شماره پس‌زمینه */
body.day-mode .horizontal-card::after {
    color: rgba(255, 255, 255, 0.045);
}

body.day-mode .horizontal-card:hover::after {
    color: rgba(255, 255, 255, 0.08);
}

/* تصویر */
body.day-mode .horizontal-card-img {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

body.day-mode .horizontal-card-img::after {
    background: linear-gradient(
        to right,
        rgba(128, 0, 34, 0.88) 0%,
        rgba(128, 0, 34, 0.35) 50%,
        transparent 100%
    );
}

body.day-mode .horizontal-card-img img {
    filter: brightness(0.72) saturate(0.2) contrast(1.08);
}

body.day-mode .horizontal-card:hover .horizontal-card-img img {
    filter: brightness(0.62) saturate(0.2) contrast(1.12);
}

/* badge */
body.day-mode .card-category-badge {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(80, 0, 22, 0.78);
    border-color: rgba(255, 255, 255, 0.22);
}

/* meta */
body.day-mode .card-meta span {
    color: rgba(255, 255, 255, 0.58);
}

body.day-mode .card-meta span::before {
    background: rgba(255, 255, 255, 0.4);
}

/* title */
body.day-mode .horizontal-content h3 {
    color: rgba(255, 255, 255, 0.94);
}

body.day-mode .horizontal-card:hover .horizontal-content h3 {
    color: #ffffff;
}

body.day-mode .horizontal-content h3::before {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.42)
    );
}

/* paragraph */
body.day-mode .horizontal-content p {
    color: rgba(255, 255, 255, 0.64);
}

body.day-mode .horizontal-card:hover .horizontal-content p {
    color: rgba(255, 255, 255, 0.84);
}

/* read more */
body.day-mode .read-more {
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.3);
}

body.day-mode .read-more::before {
    background: #ffffff;
}

body.day-mode .read-more:hover {
    color: #800022;
    border-color: transparent;
}

body.day-mode .horizontal-card:hover .read-more {
    color: #800022 !important;
}

/* focus */
body.day-mode .horizontal-card:focus-within {
    outline-color: rgba(255, 255, 255, 0.45);
}
@media (max-width: 768px) {
    body.day-mode .horizontal-card {
        box-shadow:
            3px 3px 0px rgba(128, 0, 34, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }

    body.day-mode .horizontal-card:hover {
        box-shadow:
            -3px 3px 0px rgba(255, 255, 255, 0.16),
            0 15px 40px rgba(80, 0, 22, 0.42);
    }

    body.day-mode .horizontal-card-img {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    body.day-mode .horizontal-card-img::after {
        background: linear-gradient(
            to top,
            rgba(128, 0, 34, 0.9) 0%,
            rgba(128, 0, 34, 0.35) 50%,
            transparent 100%
        );
    }
}

/* LTR Day Mode */
html[dir="ltr"] body.day-mode .horizontal-card-img {
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

html[dir="ltr"] body.day-mode .horizontal-card-img::after {
    background: linear-gradient(
        to left,
        rgba(128, 0, 34, 0.88) 0%,
        rgba(128, 0, 34, 0.35) 50%,
        transparent 100%
    );
}


/* ─── PROJECT MODAL ───────────────────────────────── */
.project-modal {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999 !important; /* بالاتر از همه چیز */
    backdrop-filter: blur(4px);
}

.project-modal.active {
    display: flex !important;
}

.project-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity .4s ease;
}

.project-modal.active .project-modal-overlay {
    opacity: 1;
}

.project-modal-content {
    position: relative;
    width: 92%;
    max-width: 880px;
    background: var(--card-bg, #1a1714);
    border-radius: 14px;
    padding: 28px;
    z-index: 2;
    transform: translateY(26px);
    opacity: 0;
    transition: all .55s cubic-bezier(0.16,1,0.3,1);
    max-height: 90vh;
    overflow-y: auto; /* برای جلوگیری از بریدگی در موبایل */
}

.project-modal.active .project-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.project-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0,0,0,0.3);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

/* --- GALLERY --- */
.project-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 22px;
    direction: ltr; /* گالری همیشه LTR باشد تا اسکرول درست کار کند */
}

.project-gallery-track {
    display: flex;
    transition: transform .45s ease;
}

.project-gallery-track img {
    min-width: 100%;
    height: 350px;
    object-fit: cover;
}

.pg-prev, .pg-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
}

.pg-prev { left: 12px; }
.pg-next { right: 12px; }

/* Responsive */
@media (max-width: 620px) {
    .project-gallery-track img { height: 240px; }
    .project-modal-content { padding: 20px; }
}
.contact-link {
        color: inherit !important; /* رنگ متن عادی */
        text-decoration: none !important; /* حذف خط زیر لینک */
    }
.contact-item {
        display: block;
        margin-bottom: 5px;
        color: #fff; /* یا رنگ دلخواه متن شما */
    }
/* ── Premium Modal ──────────────────────────────────────── */
.premium-modal {
    max-width: 1000px !important;
    width: 92% !important;
    height: auto !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    background: #0c0a0b !important;
    border: 1px solid rgba(128,0,34,0.25) !important;
    box-shadow: 0 0 80px rgba(128,0,34,0.12), 0 40px 100px rgba(0,0,0,0.6) !important;
    overflow: hidden !important;
}
.premium-gallery-slider {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: 55vh !important;
    max-height: 500px;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.premium-gallery-slider .arch-slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: unset !important;
}
.premium-gallery-slider .nav-btn { z-index: 20; }
.premium-gallery-slider .dots-container { bottom: 16px; }

.premium-info {
    padding: 40px 50px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(180deg, rgba(128,0,34,0.08), transparent 60%);
    border-top: 1px solid rgba(128,0,34,0.15);
    border-right: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(128,0,34,0.3) transparent;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
}
.premium-title {
    color: #f0ece8;
    font-size: 32px;
    font-weight: 300;
    margin: 0;
    line-height: 1.4;
}
.premium-subtitle {
    color: #c0003a;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(128,0,34,0.2);
}
.premium-description {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    line-height: 2.3;
    white-space: pre-line;
}
.premium-specs {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.premium-spec {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    display: flex;
    align-items: center;
    transition: color 0.2s, padding 0.2s;
}
.premium-spec::before {
    content: "✦";
    color: #c0003a;
    margin-left: 10px;
    flex-shrink: 0;
}
.premium-spec:hover { color: #fff; padding-right: 6px; }

/* close btn */
.premium-modal .arch-close-btn {
    position: absolute !important;
    top: 16px !important; right: 16px !important; left: auto !important;
    width: 36px !important; height: 36px !important;
    font-size: 20px !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 50% !important;
    color: rgba(255,255,255,0.6) !important;
    z-index: 100 !important;
}
.premium-modal .arch-close-btn:hover {
    background: rgba(128,0,34,0.3) !important;
    border-color: rgba(128,0,34,0.6) !important;
    color: #fff !important;
    transform: rotate(90deg) !important;
}

/* day mode */
body.day-mode .premium-modal {
    background: #faf7f4 !important;
    border-color: rgba(128,0,34,0.2) !important;
}
body.day-mode .premium-title  { color: #1a1012; }
body.day-mode .premium-subtitle { color: #800022; }
body.day-mode .premium-description { color: rgba(50,30,25,0.65); }
body.day-mode .premium-spec { color: #2e1e22; border-bottom-color: rgba(128,0,34,0.1); }
body.day-mode .premium-spec:hover { color: #800022; }
body.day-mode .premium-info { border-top-color: rgba(128,0,34,0.12); }

/* mobile */
@media (max-width: 820px) {
    .premium-modal {
        max-height: 95vh !important;
        overflow-y: auto !important;
    }
    .premium-gallery-slider {
        height: 50vw;
        min-height: 220px;
        max-height: 320px;
    }
    .premium-info {
        padding: 32px 24px;
    }
    .premium-title { font-size: 22px !important; }
}
/* =====================================================
   RESPONSIVE FIXES — MOBILE
   ===================================================== */

/* 1. GLOBAL overflow prevent */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* 2. HEADER mobile — no overflow */
@media (max-width: 991.98px) {
  .site-header {
    padding: 14px 16px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
}

/* 3. FOOTER mobile fix */
@media (max-width: 768px) {
  .footer {
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-container {
    grid-template-columns: 1fr !important;
    padding: 0 16px 32px !important;
    gap: 28px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* footer-bottom — دو خط مجزا، وسط‌چین */
  .footer-bottom,
  html[dir="rtl"] .footer-bottom,
  html[dir="ltr"] .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-align: center !important;
  }

  .footer-bottom p,
  html[dir="rtl"] .footer-bottom p,
  html[dir="ltr"] .footer-bottom p {
    white-space: normal !important;
    font-size: 11px !important;
    letter-spacing: 0.3px !important;
    word-break: break-word !important;
    text-align: center !important;
    direction: ltr !important;
  }

  .footer-contact .ltr-row {
    flex-wrap: wrap !important;
    font-size: 12px !important;
  }
}

/* 4. SUB-PAGE HERO — کوچک و نواری */
.sub-page-hero {
  min-height: auto !important;
  height: auto !important;
}

.sub-page-hero .hero-inner {
  min-height: auto !important;
}

@media (max-width: 768px) {
  .sub-page-hero {
    min-height: 22svh !important;
  }

  .sub-page-hero .hero-inner {
    padding: 100px 22px 32px !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .sub-page-hero .hero-logo {
    flex-shrink: 0 !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
  }

  .sub-page-hero .hero-logo img {
    width: clamp(42px, 10vw, 58px) !important;
    animation: none !important;
  }

  .sub-page-hero .brand-text h1 {
    font-size: clamp(13px, 3.6vw, 18px) !important;
    letter-spacing: 3px !important;
    white-space: nowrap !important;
  }

  .sub-page-hero .brand-text p {
    font-size: 8px !important;
    letter-spacing: 2px !important;
    white-space: nowrap !important;
  }

  .sub-page-hero .hero-headline {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .sub-page-hero .hero-headline h2 {
    font-size: clamp(14px, 3.8vw, 19px) !important;
    line-height: 1.6 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 480px) {
  .sub-page-hero {
    min-height: 20svh !important;
  }

  .sub-page-hero .hero-inner {
    padding: 92px 16px 26px !important;
    gap: 12px !important;
  }

  .sub-page-hero .hero-logo img {
    width: 38px !important;
  }

  .sub-page-hero .brand-text h1 {
    font-size: 11px !important;
    letter-spacing: 2px !important;
  }

  .sub-page-hero .brand-text p {
    display: none !important;
  }

  .sub-page-hero .hero-headline h2 {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

/* 5. PROJECT CARD V2 day-mode gradient fix */
/* تصویر باید همیشه دیده بشه، گرادیان نباید کل کارت رو بپوشونه */
body.day-mode .project-card-v2 img {
  filter: grayscale(40%) brightness(0.7) !important;
  opacity: 1 !important;
}

body.day-mode .project-card-v2:hover img {
  filter: grayscale(0%) brightness(0.75) !important;
  opacity: 1 !important;
}

body.day-mode .project-card-v2::before {
  background: linear-gradient(
    to top,
    rgba(20, 10, 5, 0.88) 0%,
    rgba(20, 10, 5, 0.45) 45%,
    rgba(20, 10, 5, 0.08) 100%
  ) !important;
  z-index: 1 !important;
}

body.day-mode .project-card-v2-content h3 {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
}

body.day-mode .project-card-v2-content p {
  color: rgba(255,255,255,0.75) !important;
}

/* modern-card day-mode هم همین مشکل داشت */
body.day-mode .modern-card img {
  filter: grayscale(40%) brightness(0.65) !important;
  opacity: 1 !important;
}

body.day-mode .modern-card:hover img {
  filter: grayscale(0%) brightness(0.7) !important;
  opacity: 1 !important;
}

body.day-mode .modern-card::before {
  background: linear-gradient(
    to top,
    rgba(20, 10, 5, 0.88) 0%,
    rgba(20, 10, 5, 0.45) 45%,
    rgba(20, 10, 5, 0.08) 100%
  ) !important;
}

body.day-mode .modern-content h3 {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
}

body.day-mode .modern-content p {
  color: rgba(255,255,255,0.72) !important;
}

/* =====================================================
   SEARCH OVERLAY — MOBILE LUXURY REDESIGN
   ===================================================== */

@media (max-width: 768px) {

  /* ── Overlay: پرده از بالا ── */
  .search-overlay {
    height: 100dvh !important;
    overflow: hidden !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    background: rgba(6, 4, 3, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    /* انیمیشن ورود: clip-path از بالا */
    clip-path: inset(0 0 100% 0) !important;
    transition: clip-path 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .search-overlay.active {
    clip-path: inset(0 0 0% 0) !important;
  }

  /* ── دکمه بستن — بزرگ و واضح ── */
  .search-close {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 64px !important;
    height: 64px !important;
    font-size: 1.4rem !important;
    font-weight: 200 !important;
    color: rgba(245, 242, 238, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.3s ease, transform 0.4s var(--ease-expo) !important;
    z-index: 10 !important;
  }

  .search-close:hover {
    color: var(--white) !important;
    transform: rotate(90deg) !important;
  }

  /* ── کانتینر: از پایین fade در ── */
  .search-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    box-sizing: border-box !important;
    transform: translateY(40px) !important;
    opacity: 0 !important;
    transition:
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
      opacity 0.5s ease 0.15s !important;
  }

  .search-overlay.active .search-container {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  /* ── بخش بالایی: عنوان + input ── */
  .search-box {
    flex-direction: column !important;
    gap: 0 !important;
    border-bottom: none !important;
    padding: 72px 32px 0 !important;
    background: transparent !important;
    position: relative !important;
  }

  /* label کوچک بالای input */
  .search-box::before {
    content: 'SEARCH / جستجو' !important;
    display: block !important;
    font-family: var(--font-mono) !important;
    font-size: 9px !important;
    letter-spacing: 4px !important;
    color: rgba(245, 242, 238, 0.25) !important;
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
  }

  /* ── input: بزرگ و editorial ── */
  .search-box input {
    font-size: clamp(28px, 8vw, 42px) !important;
    font-family: 'BYekan', sans-serif !important;
    font-weight: 300 !important;
    width: 100% !important;
    color: var(--white) !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(245, 242, 238, 0.15) !important;
    padding: 0 0 20px 0 !important;
    line-height: 1.2 !important;
    caret-color: #800022 !important;
    transition: border-color 0.4s ease !important;
  }

  .search-box input:focus {
    outline: none !important;
    border-bottom-color: rgba(245, 242, 238, 0.5) !important;
  }

  .search-box input::placeholder {
    color: rgba(245, 242, 238, 0.12) !important;
    font-weight: 200 !important;
  }

  /* ── خط تزئینی زیر input: حذف ── */
  .search-box::after {
    display: none !important;
  }

  /* ── دکمه جستجو: همان استایل دسکتاپ در موبایل ── */
  .search-btn {
    align-self: flex-start !important;
    width: auto !important;
    margin: 20px 32px 0 !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-family: 'BYekan', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    background: #800022 !important;
    color: #ffffff !important;
    border: none !important;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%) !important;
    border-radius: 0 !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .search-btn:hover,
  .search-btn:active {
    background: #5a0018 !important;
    color: #ffffff !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%) !important;
    transform: translateX(-6px) !important;
  }

  /* ── اطلاعات جستجو ── */
  .search-results-info {
    padding: 16px 32px 0 !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
  }

  /* ── نتایج: کارت‌های minimal ── */
  .search-results-container {
    max-height: none !important;
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 24px 24px 40px !important;
    margin: 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .search-result-item {
    background: transparent !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(245, 242, 238, 0.06) !important;
    padding: 20px 8px !important;
    transition: padding 0.3s ease !important;
  }

  .search-result-item:hover,
  .search-result-item:active {
    background: transparent !important;
    padding-right: 14px !important;
    transform: none !important;
    border-left: none !important;
  }

  .search-result-item h4 {
    font-size: 15px !important;
    font-weight: 400 !important;
    margin-bottom: 6px !important;
    color: rgba(245, 242, 238, 0.85) !important;
  }

  .search-result-item p {
    font-size: 11px !important;
    color: rgba(245, 242, 238, 0.35) !important;
    line-height: 1.7 !important;
  }

  /* ── Day mode overrides ── */
  body.day-mode .search-overlay {
    background: rgba(240, 236, 228, 0.98) !important;
  }

  body.day-mode .search-close {
    color: rgba(128, 0, 34, 0.4) !important;
  }

  body.day-mode .search-close:hover {
    color: #800022 !important;
  }

  body.day-mode .search-box::before {
    color: rgba(128, 0, 34, 0.25) !important;
  }

  body.day-mode .search-box input {
    color: #1a0a0e !important;
    border-bottom-color: rgba(128, 0, 34, 0.15) !important;
    caret-color: #800022 !important;
  }

  body.day-mode .search-box input:focus {
    border-bottom-color: rgba(128, 0, 34, 0.45) !important;
  }

  body.day-mode .search-box input::placeholder {
    color: rgba(128, 0, 34, 0.12) !important;
  }

  body.day-mode .search-btn {
    background: #800022 !important;
    color: #ffffff !important;
    border: none !important;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%) !important;
  }

  body.day-mode .search-btn:hover {
    background: #5a0018 !important;
    color: #ffffff !important;
  }

  body.day-mode .search-result-item {
    border-bottom-color: rgba(128, 0, 34, 0.08) !important;
  }

  body.day-mode .search-result-item h4 {
    color: rgba(26, 10, 14, 0.85) !important;
  }

  body.day-mode .search-result-item p {
    color: rgba(128, 0, 34, 0.4) !important;
  }
}