/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
  --color-bg-dark: #1a1a1d;
  --color-bg-darker: #0f0f11;
  --color-bg-panel: #232328;
  --color-bg-panel-2: #2c2c32;

  --color-gold: #c9a14a;
  --color-gold-light: #e6c873;
  --color-gold-dark: #9a7a2e;

  --color-text: #f0f0f0;
  --color-text-muted: #a8a8a8;

  --color-shadow-dark: rgba(0, 0, 0, 0.65);
  --color-shadow-gold: rgba(201, 161, 74, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(35, 35, 40, 0.35);
  --glass-bg-strong: rgba(30, 30, 35, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-gold: rgba(201, 161, 74, 0.35);
  --glass-blur: 22px;
  --glass-shadow: rgba(0, 0, 0, 0.4);
  --glass-highlight: rgba(255, 255, 255, 0.08);

  --transition-main: 0.65s cubic-bezier(0.7, 0, 0.2, 1);
  --transition-fast: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  --menu-width: 360px;
}
@import url(../../fonts/fontawesome4/css/font-awesome.css);
@import url(../../fonts/fontawesome6/css/fontawesome.css);
@import url(../../fonts/fontawesome6/css/brands.css);
@import url(../../fonts/fontawesome6/css/solid.css);
@import url(../../fonts/elegant_font/HTML_CSS/style.css);
@import url(../../fonts/et-line-font/style.css);
@import url(../../fonts/icofont/icofont.min.css);
@import url(../../fonts/iransans/iransans.css);
/* ============================================
   RESET & BASE
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  font-family: 'IRANSans_Fa', sans-serif;
  background: var(--color-bg-darker);
  color: var(--color-text);
}

/* صفحه اصلی: overflow hidden برای اسلایدر */
body:not(.inner-page) {
  overflow: hidden;
}

/* صفحات داخلی: اسکرول آزاد */
body.inner-page {
  overflow-x: hidden;
  overflow-y: auto;
}


/* ============================================
   GLASS UTILITY (شیشه‌ای مات اپل‌مانند)
   ============================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}
.glass-box{
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}
/* درخشش لبه بالا (مانند اپل) */
.glass::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--glass-highlight) 30%,
    rgba(255,255,255,0.25) 50%,
    var(--glass-highlight) 70%, transparent);
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.page-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  transition: transform var(--transition-main), border-radius var(--transition-main);
  transform-origin: left center;
  will-change: transform;
}
body.menu-open .page-wrapper {
  transform: translateX(calc(var(--menu-width) - 30px)) scale(0.88) perspective(1400px) rotateY(-7deg);
  box-shadow: 40px 0 100px var(--color-shadow-dark);
}

/* ============================================
   HEADER
   ============================================ */
/* ============================================
   HEADER - پایه مشترک
   ============================================ */
.site-header {
  top: 0; left: 0; right: 0;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  z-index: 100;
  pointer-events: none;
  transition: 
    background var(--transition-fast),
    backdrop-filter var(--transition-fast),
    box-shadow var(--transition-fast),
    height var(--transition-fast),
    padding var(--transition-fast);
}
.site-header > * { pointer-events: auto; }

/* صفحه اصلی: fixed بدون پس‌زمینه */
body:not(.inner-page) .site-header {
  position: fixed;
  background: transparent;
  border-bottom: 1px solid transparent;
}

/* صفحات داخلی: absolute در بالای hero */
body.inner-page .site-header {
  position: absolute;
  background: transparent;
  border-bottom: 1px solid transparent;
}

/* ============================================
   HEADER STICKY - فقط صفحات داخلی
   ============================================ */
body.inner-page .site-header.header-sticky {
  position: fixed;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px var(--glass-shadow);
  height: 72px;
  padding: 0 36px;
}

/* لوگو و آیتم‌ها کوچکتر در حالت sticky */
body.inner-page .site-header.header-sticky .logo-text {
  font-size: 1.1rem;
}
body.inner-page .site-header.header-sticky .logo-mark svg {
  width: 28px;
  height: 28px;
}
body.inner-page .site-header.header-sticky .menu-toggle,
body.inner-page .site-header.header-sticky .theme-toggle {
  width: 48px;
  height: 48px;
}

/* لایت مود sticky */
body.theme-light.inner-page .site-header.header-sticky {
  background: var(--glass-bg-strong);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px var(--glass-shadow);
}

/* دکمه منو */
.menu-toggle {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  cursor: pointer;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  transition: var(--transition-fast);
}
.menu-toggle:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-gold);
  box-shadow: 0 14px 32px var(--glass-shadow), 0 0 24px var(--color-shadow-gold);
}
.menu-toggle .bar-icon {
  width: 26px; height: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu-toggle .bar-icon span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--color-gold-light);
  transition: var(--transition-fast);
}
.menu-toggle .bar-icon span:nth-child(2) { width: 70%; }
.menu-toggle:hover .bar-icon span:nth-child(2) { width: 100%; }

/* لوگو */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logo .logo-mark svg {
  width: 34px; height: 34px;
  stroke: var(--color-gold);
  filter: drop-shadow(0 2px 6px var(--color-shadow-gold));
}
.site-logo .logo-text {
  font-weight: 800; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   SLIDER
   ============================================ */
.slider {
  position: relative;
  width: 100%; height: 100vh;
  overflow-y: scroll; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  width: 100%; height: 100vh;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.slide-bg {
  position: absolute; inset: 0;
  z-index: 1;
  transform: scale(1.12);
  transition: transform 1.4s cubic-bezier(0.2,0.8,0.2,1);
}
.slide-bg img, .slide-bg video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.75) 55%, rgba(0, 0, 0, 0.9) 100%);
}

/* محتوای اسلاید روی باکس شیشه‌ای */
.slide-content {
  position: relative;
  z-index: 5;
  max-width: 720px;
  margin: 0 24px;
  padding: 48px 44px;
  border-radius: 28px;
  text-align: center;

  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 20px 60px var(--glass-shadow),
    inset 0 1px 0 var(--glass-highlight);

  opacity: 0;
  transform: translateY(70px) scale(0.96);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slide-content::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
.slide.active .slide-content {
  opacity: 1; transform: translateY(0) scale(1);
}

.slide-tag {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--color-gold-light);
  border: 1px solid var(--glass-border-gold);
  border-radius: 50px;
  background: rgba(201,161,74,0.08);
  letter-spacing: 1px;
}
.slide-title {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 20%, var(--color-gold-light) 60%, var(--color-gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.slide-desc {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--color-text);
  line-height: 2;
  margin-bottom: 36px;
  opacity: 0.92;
}

/* 5 دکمه شیشه‌ای 3D */
.slide-buttons {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.btn-3d {
  position: relative;
  padding: 13px 26px;
  font-family: inherit; font-weight: 600; font-size: 0.98rem;
  color: var(--color-gold-light);
  text-decoration: none;
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform-style: preserve-3d;
  transition: var(--transition-fast);
  box-shadow:
    0 6px 18px var(--glass-shadow),
    inset 0 1px 0 var(--glass-highlight);
  overflow: hidden;
}
.btn-3d::after {
  content: "";
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}
.btn-3d:hover::after { left: 100%; }
.btn-3d:hover {
  color: var(--color-bg-darker);
  background: linear-gradient(145deg, var(--color-gold-light), var(--color-gold));
  border-color: var(--color-gold-light);
  transform: translateY(-5px) perspective(700px) rotateX(10deg);
  box-shadow: 0 18px 38px var(--glass-shadow), 0 0 28px var(--color-shadow-gold);
}
.btn-3d:active { transform: translateY(-1px); }

/* ============================================
   آخرین اسلاید - افکت فوق‌العاده
   ============================================ */
.slide-final {
  background: radial-gradient(ellipse at center, var(--color-bg-panel) 0%, var(--color-bg-darker) 100%);
}
.final-stage {
  position: relative; z-index: 5;
  text-align: center; perspective: 1200px;
}
.final-ring {
  position: absolute; top: 50%; left: 50%;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  opacity: 0.12;
}
.final-ring.r1 { width: 420px; height: 420px; margin: -210px; animation: pulseRing 5s ease-in-out infinite; }
.final-ring.r2 { width: 640px; height: 640px; margin: -320px; animation: pulseRing 5s ease-in-out infinite 1.2s; }
.final-ring.r3 { width: 860px; height: 860px; margin: -430px; animation: pulseRing 5s ease-in-out infinite 2.4s; }
@keyframes pulseRing {
  0%, 100% { transform: scale(0.85) rotate(0deg); opacity: 0.04; }
  50% { transform: scale(1.08) rotate(180deg); opacity: 0.28; }
}
.final-box {
  position: relative;
  padding: 56px 60px;
  border-radius: 32px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(calc(var(--glass-blur) + 8px)) saturate(180%);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 8px)) saturate(180%);
  border: 1px solid var(--glass-border-gold);
  box-shadow: 0 30px 80px var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  animation: floatBox 6s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes floatBox {
  0%, 100% { transform: rotateX(0) rotateY(0) translateZ(0); }
  25% { transform: rotateX(6deg) rotateY(-6deg) translateZ(30px); }
  75% { transform: rotateX(-6deg) rotateY(6deg) translateZ(30px); }
}
.final-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold), var(--color-gold-dark));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.final-sub { color: var(--color-text-muted); font-size: 1.1rem; }

/* ============================================
   SIDE MENU - بازطراحی حرفه‌ای
   ============================================ */
.side-menu {
  position: fixed; top: 0; left: 0;
  width: var(--menu-width); height: 100vh;
  z-index: 999999;
  padding: 32px 26px;
  display: flex; flex-direction: column;

  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(calc(var(--glass-blur) + 6px)) saturate(180%);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 6px)) saturate(180%);
  border-right: 1px solid var(--glass-border);

  transform: translateX(-100%);
  transition: transform var(--transition-main);
  box-shadow: -20px 0 60px var(--color-shadow-dark);
}
body.menu-open .side-menu { transform: translateX(0); }
body.menu-open .menu-toggle{ display:none }
/* درخشش طلایی پس‌زمینه منو */
.side-menu::after {
  content: "";
  position: absolute; bottom: -120px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--color-shadow-gold), transparent 70%);
  pointer-events: none;
}

.menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 22px; margin-bottom: 22px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}
.menu-header h3 {
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.menu-close {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  transition: var(--transition-fast);
}
.menu-close:hover { background: rgba(201,161,74,0.15); transform: rotate(90deg); }
.menu-close svg { width: 22px; height: 22px; stroke: var(--color-gold); }

/* ============================================
   لیست منو - با اسکرول شیک طلایی
   ============================================ */
.menu-list {
  list-style: none;
  flex: 1;
  position: relative;
  overflow: hidden;          /* برای انیمیشن زیرمنوها */
  min-height: 0;             /* مهم: اجازه می‌دهد flex درست کوچک شود */
  /* ماسک محوشدگی شیک بالا و پایین */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    black 18px,
    black calc(100% - 18px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    black 18px,
    black calc(100% - 18px),
    transparent 100%
  );
}

/* هر پنل داخلش اسکرول می‌شود */
.menu-panel {
  position: absolute;
  inset: 0;
  list-style: none;
  transition: transform var(--transition-main), opacity 0.4s ease;

  /* اسکرول روان */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;  /* اسکرول نرم در iOS */
  scroll-behavior: smooth;
  overscroll-behavior: contain;       /* جلوگیری از کشیده شدن صفحه پشتی */
  padding: 4px 4px 6px 10px;           /* فضا برای اسکرول‌بار + لبه‌ها */
}

/* اسکرول‌بار شیک طلایی - وب‌کیت */
.menu-panel::-webkit-scrollbar { width: 6px; }
.menu-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}
.menu-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold-dark));
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-fast);
}
.menu-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold));
  box-shadow: 0 0 8px var(--color-shadow-gold);
}
/* اسکرول‌بار شیک - فایرفاکس */
.menu-panel {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) rgba(255, 255, 255, 0.04);
}

.menu-panel.sub { transform: translateX(110%); opacity: 0; }
.menu-panel.sub.active { transform: translateX(0); opacity: 1; }
.menu-panel.main.shifted { transform: translateX(-110%); opacity: 0; }

.menu-item { margin-bottom: 8px; }
.menu-item a, .menu-item .sub-btn {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 15px 18px;
  color: var(--color-text); text-decoration: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  font-family: inherit; font-size: 1.05rem;
  cursor: pointer; border-radius: 14px;
  transition: var(--transition-fast);
  text-align: right;
  position: relative; overflow: hidden;
}
/* درخشش متحرک هنگام hover */
.menu-item a::before, .menu-item .sub-btn::before {
  content: "";
  position: absolute; top: 0; right: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,161,74,0.12), transparent);
  transition: right 0.5s ease;
}
.menu-item a:hover, .menu-item .sub-btn:hover {
  background: rgba(201,161,74,0.1);
  border-color: var(--glass-border-gold);
  color: var(--color-gold-light);
  transform: translateX(-8px);
}
.menu-item a:hover::before, .menu-item .sub-btn:hover::before { right: 100%; }

.menu-item .icon-wrap {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: rgba(201,161,74,0.1);
  border: 1px solid var(--glass-border-gold);
  transition: var(--transition-fast);
}
.menu-item a:hover .icon-wrap, .menu-item .sub-btn:hover .icon-wrap {
  background: linear-gradient(145deg, var(--color-gold-light), var(--color-gold));
}
.menu-item svg.menu-icon { width: 24px; height: 24px; stroke: var(--color-gold); transition: var(--transition-fast); }
.menu-item a:hover svg.menu-icon, .menu-item .sub-btn:hover svg.menu-icon { stroke: var(--color-bg-darker); }
.menu-item .arrow { margin-right: auto; width: 18px; height: 18px; stroke: var(--color-text-muted); }

/* دکمه بازگشت */
.menu-back {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 18px; margin-bottom: 14px;
  color: var(--color-gold-light);
  background: rgba(201,161,74,0.08);
  border: 1px solid var(--glass-border-gold);
  font-family: inherit; font-size: 1rem;
  cursor: pointer; border-radius: 14px;
  transition: var(--transition-fast);
}
.menu-back:hover { background: rgba(201,161,74,0.18); transform: translateX(6px); }
.menu-back svg { width: 20px; height: 20px; stroke: var(--color-gold); }

/* فوتر منو */
.menu-footer {
  border-top: 1px solid var(--glass-border);
  padding-top: 22px; position: relative; z-index: 2;
  flex-shrink: 0;
}
.menu-phone {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; margin-bottom: 16px;
  border-radius: 14px; text-decoration: none;
  color: var(--color-gold-light); font-weight: 600; font-size: 1.05rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  direction: ltr; justify-content: center;
  transition: var(--transition-fast);
}
.menu-phone:hover { border-color: var(--glass-border-gold); background: rgba(201,161,74,0.1); }
.menu-phone svg { width: 22px; height: 22px; stroke: var(--color-gold); }
.menu-social { display: flex; gap: 12px; }
.menu-social a {
  flex: 1; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  transition: var(--transition-fast);
}
.menu-social a:hover {
  background: linear-gradient(145deg, var(--color-gold-light), var(--color-gold));
  transform: translateY(-4px);
  box-shadow: 0 10px 22px var(--color-shadow-gold);
}
.menu-social a:hover svg { stroke: var(--color-bg-darker); }
.menu-social svg { width: 22px; height: 22px; stroke: var(--color-gold); }

/* اورلی */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 80;
  opacity: 0; visibility: hidden;
  transition: var(--transition-fast);
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }

/* نشانگر اسلایدها */
.slide-indicator {
  position: fixed; left: 36px; top: 50%;
  transform: translateY(-50%); z-index: 70;
  display: flex; flex-direction: column; gap: 14px;
}
.slide-indicator span {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(201,161,74,0.25);
  cursor: pointer; transition: var(--transition-fast);
  border: 1px solid transparent;
}
.slide-indicator span.active {
  background: var(--color-gold);
  transform: scale(1.4);
  box-shadow: 0 0 14px var(--color-shadow-gold);
  border-color: var(--color-gold-light);
}
/* ===============================
   HEADER ACTIONS + THEME TOGGLE
   =============================== */
.header-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.theme-toggle{
  width:58px; height:58px;
  border-radius:16px;
  border:1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  box-shadow: 0 8px 24px var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  display:grid;
  place-items:center;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transition: var(--transition-fast);
}
.theme-toggle:hover{
  transform: translateY(-3px) rotate(-6deg);
  border-color: var(--glass-border-gold);
  box-shadow: 0 14px 32px var(--glass-shadow), 0 0 24px var(--color-shadow-gold);
}
.theme-toggle:active{ transform: translateY(-1px) scale(0.98); }

/* هاله انیمیشنی */
.theme-toggle::after{
  content:"";
  position:absolute; inset:-35%;
  background: conic-gradient(from 0deg, transparent, rgba(230,200,115,.45), transparent 35%);
  opacity:0;
  transform: rotate(0deg);
  transition: opacity .35s ease;
}
.theme-toggle.switching::after{
  opacity:1;
  animation: spinFlash .75s ease;
}
@keyframes spinFlash{
  to{ transform: rotate(360deg); }
}

.theme-icon{
  position:absolute;
  width:24px; height:24px;
  display:grid; place-items:center;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .45s ease, filter .45s ease;
}
.theme-icon svg{
  width:24px; height:24px;
  stroke: var(--color-gold-light);
  stroke-linecap:round;
  stroke-linejoin:round;
  filter: drop-shadow(0 2px 7px var(--color-shadow-gold));
}

/* دارک مود: ماه نمایش */
.moon-icon{ opacity:1; transform: rotate(0deg) scale(1); }
.sun-icon{ opacity:0; transform: rotate(120deg) scale(.4); }

/* لایت مود: خورشید نمایش */
body.theme-light .moon-icon{ opacity:0; transform: rotate(-120deg) scale(.35); }
body.theme-light .sun-icon{ opacity:1; transform: rotate(0deg) scale(1); }

/* ===============================
   LIGHT THEME (جدا از دارک)
   =============================== */
body.theme-light{
  --color-bg-dark: #f2f4f8;
  --color-bg-darker: #e9edf4;
  --color-bg-panel: #ffffff;
  --color-bg-panel-2: #f7f9fc;

  --color-gold: #b8862f;
  --color-gold-light: #d6a84a;
  --color-gold-dark: #8b6a27;

  --color-text: #1d2430;
  --color-text-muted: #5f6a7c;

  --color-shadow-dark: rgba(18, 25, 38, 0.18);
  --color-shadow-gold: rgba(184, 134, 47, 0.26);

  --glass-bg: rgba(255, 255, 255, 0.52);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(24, 32, 48, 0.12);
  --glass-border-gold: rgba(184, 134, 47, 0.42);
  --glass-shadow: rgba(16, 22, 33, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.72);
}

/* بدنه در لایت */
body.theme-light{
  background:
    radial-gradient(1200px 600px at 10% -20%, rgba(214,168,74,.12), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(184,134,47,.10), transparent 55%),
    var(--color-bg-darker);
  color: var(--color-text);
}

/* overlay لایت */
body.theme-light .menu-overlay{
  background: rgba(18, 25, 38, 0.24);
  backdrop-filter: blur(3px);
}

/* لایت: پنل منو روشن‌تر */
body.theme-light .side-menu{
  background: rgba(255,255,255,.72);
  border-right-color: var(--glass-border);
  box-shadow: -20px 0 60px rgba(20,30,48,.18);
}

/* لایت: متن‌ها خواناتر */
body.theme-light .menu-item a,
body.theme-light .menu-item .sub-btn,
body.theme-light .slide-desc,
body.theme-light .final-sub{
  color: var(--color-text);
}
body.theme-light .menu-item .arrow{
  stroke: var(--color-text-muted);
}

/* لایت: پس‌زمینه تیره‌ی اسلایدها کمی ملایم‌تر */
body.theme-light .slide-bg::after{
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0%, rgba(197, 197, 197, 0.38) 55%, rgba(197, 197, 197, 0.52) 100%);
}
@media (max-width: 600px) {
  :root { --menu-width: 88vw; }
  .slide-indicator { display: none; }
  .slide-content { padding: 36px 26px; }
}
/* ============================================
   INNER PAGES
   ============================================ */
.sticky-top{top:20px}
/* هدر داخلی 400px */
.inner-hero {
  position: relative;
  min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 16px 40px;
  overflow: hidden;
  margin-top: 0;
}
.inner-hero .hero-bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  transform:scale(1.07);
}
.inner-hero .hero-bg::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at center, rgba(0,0,0,.5), rgba(0,0,0,.82));
}
body.theme-light .inner-hero .hero-bg::after{
  background:radial-gradient(circle at center, rgba(20,24,30,.28), rgba(20,24,30,.5));
}
.inner-hero .hero-inner{
  position:relative; z-index:5;
  padding:36px 40px; border-radius:24px;
  max-width:820px; margin:0 24px;
}
.inner-title{
  font-size:clamp(2rem,4.5vw,3.4rem); font-weight:900; margin-bottom:14px;
  background:linear-gradient(135deg,#fff 20%,var(--color-gold-light),var(--color-gold));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.breadcrumb-line{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--color-text-muted); font-size:.95rem;
}
.breadcrumb-line a{ color:var(--color-gold-light); text-decoration:none; }
.breadcrumb-line a:hover{ text-decoration:underline; }
.breadcrumb-line .sep{ opacity:.5; }

/* container داخلی */
.inner-section{ padding:60px 0; }
.container-inner{ width:min(1240px,92%); margin:0 auto; }

/* کارت مقاله */
.post-card{
  display:block; height:100%; padding:14px;
  border-radius:20px; text-decoration:none; color:inherit;
  transition:var(--transition-fast);
}
.post-card:hover{
  transform:translateY(-8px);
  border-color:var(--glass-border-gold);
  box-shadow:0 18px 40px var(--glass-shadow), 0 0 24px var(--color-shadow-gold);
}
.post-thumb{ position:relative; border-radius:14px; overflow:hidden; aspect-ratio:16/10; }
.post-thumb img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s ease; }
.post-card:hover .post-thumb img{ transform:scale(1.08); }
.post-cat{
  position:absolute; top:10px; right:10px; z-index:2;
  padding:4px 12px; font-size:.78rem; border-radius:50px;
  color:var(--color-gold-light);
  background:rgba(0,0,0,.45); border:1px solid var(--glass-border-gold);
}
.post-body{ padding:14px 8px 6px; }
.post-title{ font-weight:800; font-size:1.05rem; line-height:1.6; margin:0 0 8px; }
.post-excerpt{ color:var(--color-text-muted); font-size:.9rem; line-height:1.9; margin:0 0 12px; }
.post-meta{ display:flex; justify-content:space-between; align-items:center; font-size:.8rem; color:var(--color-text-muted); }
.post-meta .gold{ color:var(--color-gold-light); }

/* صفحه‌بندی */
.pagination-3d{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:48px; }
.pagination-3d a, .pagination-3d span{
  min-width:46px; height:46px; padding:0 12px;
  display:flex; align-items:center; justify-content:center;
  border-radius:13px; text-decoration:none; font-weight:700;
  color:var(--color-gold-light);
  background:rgba(255,255,255,.04); border:1px solid var(--glass-border);
  transition:var(--transition-fast);
}
.pagination-3d a:hover{
  transform:translateY(-4px); border-color:var(--glass-border-gold);
  box-shadow:0 12px 24px var(--glass-shadow), 0 0 18px var(--color-shadow-gold);
}
.pagination-3d .active{
  color:var(--color-bg-darker);
  background:linear-gradient(145deg,var(--color-gold-light),var(--color-gold));
  border-color:var(--color-gold-light);
}

/* سینگل */
.single-cover{ width:100%; border-radius:20px; margin-bottom:24px; max-height:480px; object-fit:cover; }
.single-meta{ display:flex; gap:18px; flex-wrap:wrap; color:var(--color-text-muted); font-size:.9rem; margin-bottom:20px; }
.single-meta span{ display:inline-flex; align-items:center; gap:6px; }
.prose{ padding:32px; border-radius:22px; }
.prose h2{ color:var(--color-gold-light); margin:26px 0 12px; font-size:1.4rem; }
.prose p{ line-height:2.3; margin-bottom:16px; }
.section-head{ display:flex; align-items:center; gap:12px; margin:48px 0 24px; }
.section-head h2{
  font-size:1.6rem; font-weight:900;
  background:linear-gradient(135deg,var(--color-gold-light),var(--color-gold));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.section-head .bar{ flex:1; height:1px; background:linear-gradient(90deg,var(--glass-border-gold),transparent); }

/* کامنت‌ها */
.comment{ padding:20px; border-radius:18px; margin-bottom:16px; }
.comment.reply{ margin-right:48px; }
.comment-head{ display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.comment-avatar{
  width:46px; height:46px; border-radius:50%;
  display:grid; place-items:center; flex-shrink:0;
  background:linear-gradient(145deg,var(--color-gold-light),var(--color-gold));
  color:var(--color-bg-darker); font-weight:800;
}
.comment-name{ font-weight:700; }
.comment-date{ font-size:.8rem; color:var(--color-text-muted); }
.comment-text{ line-height:2; color:var(--color-text); }
.comment-reply-btn{
  margin-top:8px; font-size:.82rem; color:var(--color-gold-light);
  background:none; border:none; cursor:pointer;
}
.comment-form{ padding:28px; border-radius:22px; margin-top:24px; }

/* درباره */
.about-img{ width:100%; border-radius:22px; object-fit:cover; }
.stat-box{ padding:26px; text-align:center; border-radius:20px; height:100%; }
.stat-num{
  font-size:2.4rem; font-weight:900;
  background:linear-gradient(135deg,var(--color-gold-light),var(--color-gold));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.stat-label{ color:var(--color-text-muted); }
.value-box{ padding:24px; border-radius:20px; height:100%; transition:var(--transition-fast); }
.value-box:hover{ transform:translateY(-6px); border-color:var(--glass-border-gold); }
.value-icon{
  width:54px; height:54px; border-radius:14px; margin-bottom:14px;
  display:grid; place-items:center;
  background:rgba(201,161,74,.1); border:1px solid var(--glass-border-gold);
}
.value-icon svg{ width:26px; height:26px; stroke:var(--color-gold); }

/* تماس */
.contact-box{ padding:26px; border-radius:20px; height:100%; transition:var(--transition-fast); }
.contact-box:hover{ transform:translateY(-6px); border-color:var(--glass-border-gold); box-shadow:0 14px 30px var(--glass-shadow); }
.contact-icon{
  width:56px; height:56px; border-radius:16px; margin-bottom:14px;
  display:grid; place-items:center;
  background:linear-gradient(145deg,var(--color-gold-light),var(--color-gold));
}
.contact-icon svg{ width:26px; height:26px; stroke:var(--color-bg-darker); }
.form-control, .form-select{
  background:rgba(255,255,255,.04)!important;
  border:1px solid var(--glass-border)!important;
  color:var(--color-text)!important; border-radius:13px!important;
  padding:13px 16px!important;
}
.form-control:focus{ border-color:var(--glass-border-gold)!important; box-shadow:0 0 0 3px var(--color-shadow-gold)!important; }
.form-control::placeholder{ color:var(--color-text-muted); }
.form-label{ color:var(--color-text); margin-bottom:6px; font-weight:600; }
.map-wrap{ border-radius:22px; overflow:hidden; }
.map-wrap iframe{ width:100%; height:380px; border:0; filter:grayscale(.2) contrast(1.05); }

/* ============================================
   فوتر 5 باکس
   ============================================ */
.site-footer{
  position:relative; margin-top:60px;
  padding:40px 0 28px; border-top:1px solid var(--glass-border);
}
.footer-grid{
  width:min(1240px,92%); margin:0 auto;
  display:grid; grid-template-columns:repeat(5,1fr); gap:16px;
}
.footer-box{ padding:22px; border-radius:18px; }
.footer-box h4{ font-size:1.05rem; margin-bottom:14px; color:var(--color-gold-light); }
.footer-links{ list-style:none; padding:0; margin:0; }
.footer-links li{ margin-bottom:9px; }
.footer-links a{ color:var(--color-text-muted); text-decoration:none; transition:var(--transition-fast); display:inline-block; }
.footer-links a:hover{ color:var(--color-gold-light); transform:translateX(-5px); }
.footer-center{ text-align:center; }
.footer-center .f-logo{
  font-size:1.5rem; font-weight:900;
  background:linear-gradient(135deg,var(--color-gold-light),var(--color-gold));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.footer-center p{ color:var(--color-text-muted); font-size:.88rem; line-height:1.9; margin:10px 0 14px; }
.footer-social{ display:flex; gap:10px; justify-content:center; }
.footer-social a{
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.04); border:1px solid var(--glass-border);
  transition:var(--transition-fast);
}
.footer-social a:hover{ background:linear-gradient(145deg,var(--color-gold-light),var(--color-gold)); transform:translateY(-4px); }
.footer-social svg{ width:20px; height:20px; stroke:var(--color-gold); }
.footer-social a:hover svg{ stroke:var(--color-bg-darker); }
.footer-license{ display:flex; gap:10px; flex-wrap:wrap; }
.footer-license .lic{
  width:64px; height:64px; border-radius:12px;
  display:grid; place-items:center; font-size:.7rem; text-align:center;
  background:rgba(255,255,255,.04); border:1px solid var(--glass-border-gold); color:var(--color-gold-light);
}
.footer-contact p{ color:var(--color-text-muted); font-size:.9rem; line-height:2; margin:0; display:flex; gap:8px; align-items:flex-start; }
.footer-contact svg{ width:18px; height:18px; stroke:var(--color-gold); flex-shrink:0; margin-top:3px; }
.footer-copy{ text-align:center; color:var(--color-text-muted); font-size:.82rem; margin-top:28px; padding-top:18px; border-top:1px solid var(--glass-border); }

@media (max-width:992px){ .footer-grid{ grid-template-columns:repeat(2,1fr); } .footer-center{ grid-column:1/-1; } }
@media (max-width:576px){ .footer-grid{ grid-template-columns:1fr; } .comment.reply{ margin-right:18px; } }
/* ============================================
   1) گوگل‌مپ تیره (دارک) و روشن (لایت)
   ============================================ */

/* دارک مود: نقشه تیره و هماهنگ با قالب */
.map-wrap iframe{
  filter: invert(0.92) hue-rotate(180deg) brightness(0.92) contrast(0.95) grayscale(0.25);
  transition: filter 0.5s ease;
}

/* لایت مود: نقشه طبیعی و روشن */
body.theme-light .map-wrap iframe{
  filter: grayscale(0.15) contrast(1.05) brightness(1.02);
}
/* فوتر: ستون وسط بزرگ‌تر */
.footer-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1.6fr 1fr 1fr; /* ستون وسط عریض‌تر */
  gap:16px;
}

/* خود باکس‌ها */
.footer-box{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:22px;
  border-radius:18px;
}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{margin-bottom:10px}
.widget a{text-decoration:none;color:var(--color-text-muted);transition:var(--transition-fast)}
.widget a:hover{color:var(--color-gold-light)}
.widget_search .search-form{display:flex;gap:8px}
.widget_search input[type="search"]{
  background:rgba(255,255,255,.04);
  border:1px solid var(--glass-border);
  color:var(--color-text);
  border-radius:12px;
  padding:10px 12px;
  width:100%;
}
.widget_search button{
  border:1px solid var(--glass-border);
  border-radius:12px;
  padding:10px 14px;
  background:rgba(255,255,255,.04);
  color:var(--color-gold-light);
}
/* =========================
   Gravity Forms - MyEagle Glass Theme
   Compatible with GF 2.5+ markup
========================= */

/* wrapper spacing */
.prose.glass .gform_wrapper{
  margin: 0;
}

/* remove default heavy styles */
.prose.glass .gform_wrapper .gform_heading{
  margin-bottom: 18px;
}
.prose.glass .gform_wrapper .gform_title,
.prose.glass .gform_wrapper .gform_description{
  color: var(--color-text);
}

/* grid row spacing */
.prose.glass .gform_wrapper .gform_fields{
  gap: 14px;
}

/* labels */
.prose.glass .gform_wrapper .gfield_label{
  color: var(--color-text);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 8px;
}

/* required star */
.prose.glass .gform_wrapper .gfield_required{
  color: var(--color-gold-light);
  margin-right: 4px;
}

/* all controls */
.prose.glass .gform_wrapper input[type="text"],
.prose.glass .gform_wrapper input[type="email"],
.prose.glass .gform_wrapper input[type="url"],
.prose.glass .gform_wrapper input[type="tel"],
.prose.glass .gform_wrapper input[type="number"],
.prose.glass .gform_wrapper input[type="password"],
.prose.glass .gform_wrapper input[type="search"],
.prose.glass .gform_wrapper input[type="date"],
.prose.glass .gform_wrapper input[type="time"],
.prose.glass .gform_wrapper input[type="datetime-local"],
.prose.glass .gform_wrapper textarea,
.prose.glass .gform_wrapper select{
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
  color: var(--color-text);
  border-radius: 12px;
  min-height: 48px;
  padding: 11px 14px;
  outline: none;
  box-shadow: none;
  transition: var(--transition-fast);
}

/* placeholder */
.prose.glass .gform_wrapper ::placeholder{
  color: var(--color-text-muted);
  opacity: .85;
}

/* focus */
.prose.glass .gform_wrapper input:focus,
.prose.glass .gform_wrapper textarea:focus,
.prose.glass .gform_wrapper select:focus{
  border-color: var(--glass-border-gold);
  box-shadow: 0 0 0 3px rgba(201,161,74,.18), 0 6px 18px rgba(0,0,0,.18);
  background: rgba(255,255,255,.06);
}

/* textarea height */
.prose.glass .gform_wrapper textarea{
  min-height: 140px;
  resize: vertical;
}

/* select arrow fix */
.prose.glass .gform_wrapper select{
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-gold-light) 50%),
    linear-gradient(135deg, var(--color-gold-light) 50%, transparent 50%);
  background-position:
    calc(14px) calc(50% - 3px),
    calc(8px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-left: 28px;
}

/* description/help text */
.prose.glass .gform_wrapper .gfield_description,
.prose.glass .gform_wrapper .instruction{
  color: var(--color-text-muted);
  font-size: .83rem;
  margin-top: 6px;
}

/* validation states */
.prose.glass .gform_wrapper .gfield_error input,
.prose.glass .gform_wrapper .gfield_error textarea,
.prose.glass .gform_wrapper .gfield_error select{
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220,53,69,.15);
}
.prose.glass .gform_wrapper .validation_message,
.prose.glass .gform_wrapper .gfield_validation_message{
  color: #ff8e99;
  font-size: .82rem;
  margin-top: 6px;
}

/* top validation box */
.prose.glass .gform_wrapper .validation_error,
.prose.glass .gform_wrapper div.validation_error,
.prose.glass .gform_wrapper .gform_validation_errors{
  background: rgba(220,53,69,.10);
  border: 1px solid rgba(220,53,69,.35);
  color: #ffd3d8;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

/* success message */
.prose.glass .gform_wrapper .gform_confirmation_message{
  background: rgba(25,135,84,.12);
  border: 1px solid rgba(25,135,84,.35);
  color: #c6f6dd;
  border-radius: 12px;
  padding: 12px 14px;
}

/* submit area */
.prose.glass .gform_wrapper .gform_footer,
.prose.glass .gform_wrapper .gform_page_footer{
  margin-top: 10px;
  padding: 0;
}

/* submit button => same as btn-3d */
.prose.glass .gform_wrapper .gform_button,
.prose.glass .gform_wrapper input[type="submit"],
.prose.glass .gform_wrapper button[type="submit"]{
  border: 1px solid var(--glass-border) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg,var(--color-gold-light),var(--color-gold)) !important;
  color: var(--color-bg-darker) !important;
  font-weight: 800 !important;
  padding: 12px 22px !important;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(0,0,0,.22), 0 0 14px var(--color-shadow-gold);
  transition: var(--transition-fast);
}
.prose.glass .gform_wrapper .gform_button:hover,
.prose.glass .gform_wrapper input[type="submit"]:hover,
.prose.glass .gform_wrapper button[type="submit"]:hover{
  transform: translateY(-3px);
  filter: brightness(1.03);
}

/* ajax spinner */
.prose.glass .gform_wrapper .gform_ajax_spinner{
  margin-right: 8px;
  filter: sepia(1) saturate(1.2);
}

/* consent checkbox / radios */
.prose.glass .gform_wrapper input[type="checkbox"],
.prose.glass .gform_wrapper input[type="radio"]{
  accent-color: var(--color-gold);
}

/* file upload */
.prose.glass .gform_wrapper input[type="file"]{
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--glass-border-gold);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: var(--color-text);
}

/* multi page progress */
.prose.glass .gform_wrapper .gf_page_steps{
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 14px;
  padding-bottom: 10px;
}
.prose.glass .gform_wrapper .gf_step{
  opacity: .65;
}
.prose.glass .gform_wrapper .gf_step.gf_step_active{
  opacity: 1;
}
.prose.glass .gform_wrapper .gf_step_number{
  border-color: var(--glass-border-gold);
  color: var(--color-gold-light);
}

/* mobile tweaks */
@media (max-width: 767px){
  .prose.glass .gform_wrapper .gform_button,
  .prose.glass .gform_wrapper input[type="submit"],
  .prose.glass .gform_wrapper button[type="submit"]{
    width: 100%;
  }
}
/* =========================================================
   Gravity Forms 2.9+ Orbital Theme - Hard Override
   Put AFTER all other Gravity styles
========================================================= */

/* Scope only contact form section if you want:
   .contact-page .gform_wrapper ...
   فعلاً سراسری داخل prose glass گذاشته شده */
.prose.glass .gform_wrapper{
  --gf-color-primary: var(--color-gold);
  --gf-color-primary-rgb: 201,161,74;
  --gf-color-text: var(--color-text);
  --gf-color-danger: #dc3545;
  --gf-control-bg: rgba(255,255,255,.04);
  --gf-control-border: var(--glass-border);
  --gf-control-radius: 12px;
  --gf-control-height: 48px;
  --gf-control-focus-ring: 0 0 0 3px rgba(201,161,74,.18);
}

/* kill orbital surfaces/cards */
.prose.glass .gform_wrapper .gform-theme,
.prose.glass .gform_wrapper .gform-theme--framework,
.prose.glass .gform_wrapper .gform_fields,
.prose.glass .gform_wrapper .gfield{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* labels / legends */
.prose.glass .gform_wrapper .gfield_label,
.prose.glass .gform_wrapper legend{
  color: var(--color-text) !important;
  font-weight: 700 !important;
  font-size: .95rem !important;
  margin-bottom: 8px !important;
}

/* text-like controls (2.9 classes + fallbacks) */
.prose.glass .gform_wrapper :is(
  .gfield input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]),
  .gfield textarea,
  .gfield select,
  .ginput_container input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]),
  .ginput_container textarea,
  .ginput_container select
){
  width: 100% !important;
  min-height: var(--gf-control-height) !important;
  padding: 11px 14px !important;
  border-radius: var(--gf-control-radius) !important;
  border: 1px solid var(--gf-control-border) !important;
  background: var(--gf-control-bg) !important;
  color: var(--color-text) !important;
  box-shadow: none !important;
  outline: none !important;
  transition: var(--transition-fast) !important;
}

/* placeholder */
.prose.glass .gform_wrapper :is(input,textarea)::placeholder{
  color: var(--color-text-muted) !important;
  opacity: .9 !important;
}

/* focus */
.prose.glass .gform_wrapper :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]),
  textarea,
  select
):focus{
  border-color: var(--glass-border-gold) !important;
  box-shadow: var(--gf-control-focus-ring), 0 6px 18px rgba(0,0,0,.18) !important;
  background: rgba(255,255,255,.06) !important;
}

/* select arrow */
.prose.glass .gform_wrapper select{
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-gold-light) 50%),
    linear-gradient(135deg, var(--color-gold-light) 50%, transparent 50%) !important;
  background-position:
    calc(14px) calc(50% - 3px),
    calc(8px) calc(50% - 3px) !important;
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
  padding-left: 28px !important;
}

/* textarea */
.prose.glass .gform_wrapper textarea{
  min-height: 140px !important;
  resize: vertical !important;
}

/* check/radio */
.prose.glass .gform_wrapper input[type="checkbox"],
.prose.glass .gform_wrapper input[type="radio"]{
  accent-color: var(--color-gold) !important;
}

/* descriptions/help */
.prose.glass .gform_wrapper .gfield_description,
.prose.glass .gform_wrapper .instruction,
.prose.glass .gform_wrapper .gform-field-label--type-sub{
  color: var(--color-text-muted) !important;
  font-size: .83rem !important;
}

/* errors */
.prose.glass .gform_wrapper .gfield_error :is(input,textarea,select){
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220,53,69,.15) !important;
}
.prose.glass .gform_wrapper .validation_message,
.prose.glass .gform_wrapper .gfield_validation_message{
  color: #ff8e99 !important;
  font-size: .82rem !important;
}
.prose.glass .gform_wrapper .gform_validation_errors{
  background: rgba(220,53,69,.10) !important;
  border: 1px solid rgba(220,53,69,.35) !important;
  color: #ffd3d8 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
}

/* success */
.prose.glass .gform_wrapper .gform_confirmation_message{
  background: rgba(25,135,84,.12) !important;
  border: 1px solid rgba(25,135,84,.35) !important;
  color: #c6f6dd !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
}

/* footer/buttons wrapper */
.prose.glass .gform_wrapper .gform_footer,
.prose.glass .gform_wrapper .gform_page_footer{
  margin-top: 10px !important;
  padding: 0 !important;
  border: 0 !important;
}

/* button override (orbital buttons included) */
.prose.glass .gform_wrapper :is(
  .gform_button,
  input[type="submit"],
  button[type="submit"],
  .gform_next_button,
  .gform_previous_button
){
  border: 1px solid var(--glass-border) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg,var(--color-gold-light),var(--color-gold)) !important;
  color: var(--color-bg-darker) !important;
  font-weight: 800 !important;
  padding: 12px 22px !important;
  line-height: 1.2 !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.22), 0 0 14px var(--color-shadow-gold) !important;
  transition: var(--transition-fast) !important;
}
.prose.glass .gform_wrapper :is(
  .gform_button,
  input[type="submit"],
  button[type="submit"],
  .gform_next_button,
  .gform_previous_button
):hover{
  transform: translateY(-3px) !important;
  filter: brightness(1.03) !important;
}

/* file upload (new uploader + classic) */
.prose.glass .gform_wrapper :is(
  input[type="file"],
  .ginput_container_fileupload .gform_drop_area
){
  width: 100% !important;
  padding: 10px !important;
  border: 1px dashed var(--glass-border-gold) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.03) !important;
  color: var(--color-text) !important;
}

/* progress / multi-page */
.prose.glass .gform_wrapper .gf_page_steps{
  border-bottom: 1px solid var(--glass-border) !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
}
.prose.glass .gform_wrapper .gf_step{ opacity: .65 !important; }
.prose.glass .gform_wrapper .gf_step.gf_step_active{ opacity: 1 !important; }
.prose.glass .gform_wrapper .gf_step_number{
  border-color: var(--glass-border-gold) !important;
  color: var(--color-gold-light) !important;
}

/* ajax spinner */
.prose.glass .gform_wrapper .gform_ajax_spinner{
  margin-right: 8px !important;
  filter: sepia(1) saturate(1.2) !important;
}

/* honeypot/hidden keep hidden */
.prose.glass .gform_wrapper .gform_hidden,
.prose.glass .gform_wrapper .gfield_visibility_hidden{
  display: none !important;
}

/* mobile */
@media (max-width: 767px){
  .prose.glass .gform_wrapper :is(
    .gform_button,
    input[type="submit"],
    button[type="submit"],
    .gform_next_button,
    .gform_previous_button
  ){
    width: 100% !important;
  }
}
.error-404-section{
  min-height:calc(100vh - 180px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:140px;
  padding-bottom:80px;
}

.error-404-box{
  position:relative;
  overflow:hidden;
  border-radius:32px;
  padding:48px 24px;
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
  text-align:center;
}

@media (min-width: 992px){
  .error-404-box{
    grid-template-columns:1.1fr .9fr;
    align-items:center;
    text-align:right;
    padding:56px 42px;
  }
}

.error-404-art{
  position:relative;
  min-height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.error-orbit{
  position:absolute;
  width:320px;
  height:320px;
  opacity:.34;
  filter:drop-shadow(0 0 18px rgba(212,175,55,.16));
}

.error-orbit circle{
  stroke:rgba(212,175,55,.22);
  stroke-width:1.6;
  stroke-dasharray:8 10;
}

.orbit-1{ animation: orbitSpin 18s linear infinite; }
.orbit-2{ animation: orbitSpinReverse 14s linear infinite; transform:scale(.78); }
.orbit-3{ animation: orbitSpin 10s linear infinite; transform:scale(.56); }

.error-number-wrap{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  direction:ltr;
}

.error-number-wrap .digit{
  font-size:clamp(4rem, 10vw, 8.5rem);
  font-weight:900;
  line-height:1;
  color:var(--color-text);
  text-shadow:0 0 18px rgba(212,175,55,.18);
}

.zero-svg{
  width:clamp(92px, 14vw, 150px);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.zero-svg svg{
  width:100%;
  height:auto;
  display:block;
  filter:drop-shadow(0 8px 28px rgba(212,175,55,.18));
}

.zero-ring{
  stroke:url(#myeagle404gold);
  stroke-width:10;
  fill:rgba(255,255,255,.02);
}

.zero-core{
  fill:rgba(255,255,255,.04);
  stroke:rgba(212,175,55,.16);
  stroke-width:1.5;
}

.zero-shine,
.zero-shine-2{
  stroke:#f5deb3;
  stroke-width:4;
  stroke-linecap:round;
  opacity:.65;
}

.zero-center-icon path{
  fill:rgba(212,175,55,.14);
  stroke:#d4af37;
  stroke-width:2;
  stroke-linejoin:round;
}

.error-404-content{
  position:relative;
  z-index:2;
}

.error-404-content .section-head h1{
  margin:0;
  font-size:clamp(1.8rem, 3.4vw, 3rem);
  font-weight:900;
}

@media (min-width: 992px){
  .error-404-content .section-head{
    justify-content:flex-start !important;
  }
}

.error-desc{
  max-width:680px;
  margin:18px auto 0;
  color:var(--color-text-muted);
  line-height:2;
  font-size:1rem;
}

@media (min-width: 992px){
  .error-desc{
    margin:18px 0 0;
  }
}

.error-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
  margin-top:26px;
}

@media (min-width: 992px){
  .error-actions{
    justify-content:flex-start;
  }
}

.btn-outline-light{
  background:transparent !important;
  color:var(--color-text) !important;
  border:1px solid var(--glass-border-gold);
}

.btn-outline-light:hover{
  background:rgba(212,175,55,.08) !important;
}

.error-search{
  margin-top:24px;
  padding:16px;
  border-radius:20px;
}

.error-search form{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}

@media (min-width: 992px){
  .error-search form{
    justify-content:flex-start;
  }
}

.error-search label{
  flex:1 1 260px;
  margin:0;
}

.error-search .search-field{
  width:100%;
  border-radius:14px;
  border:1px solid var(--glass-border);
  background:rgba(255,255,255,.05);
  color:var(--color-text);
  padding:14px 16px;
  outline:none;
}

.error-search .search-field::placeholder{
  color:var(--color-text-muted);
}

.error-search .search-submit{
  border:none;
  border-radius:14px;
  padding:14px 20px;
  background:linear-gradient(135deg,#d4af37,#8c6a16);
  color:#111;
  font-weight:800;
  transition:.25s ease;
}

.error-search .search-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(212,175,55,.18);
}

.error-links{
  margin-top:22px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

@media (min-width: 992px){
  .error-links{
    justify-content:flex-start;
  }
}

.error-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 14px;
  border-radius:999px;
  text-decoration:none;
  color:var(--color-text);
  border:1px solid rgba(212,175,55,.14);
  background:rgba(255,255,255,.03);
  transition:.25s ease;
}

.error-links a:hover{
  color:var(--color-gold-light);
  border-color:rgba(212,175,55,.28);
  transform:translateY(-2px);
}

.error-404-box::before{
  content:"";
  position:absolute;
  inset:auto auto -80px -80px;
  width:220px;
  height:220px;
  background:radial-gradient(circle, rgba(212,175,55,.14) 0%, rgba(212,175,55,0) 70%);
  pointer-events:none;
}

.error-404-box::after{
  content:"";
  position:absolute;
  inset:30px -60px auto auto;
  width:200px;
  height:200px;
  background:radial-gradient(circle, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 70%);
  pointer-events:none;
}

@keyframes orbitSpin{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}

@keyframes orbitSpinReverse{
  from{ transform:scale(.78) rotate(360deg); }
  to{ transform:scale(.78) rotate(0deg); }
}
/* =========================================================
   THEME CONSISTENCY PATCH (PUT THIS AT VERY END)
   Fixes half-dark/half-light issues without changing structure
========================================================= */

/* ---------- 0) Global theme surfaces ---------- */
:root{
  --surface-0: var(--color-bg-darker);
  --surface-1: var(--color-bg-dark);
  --surface-2: var(--color-bg-panel);
  --surface-3: var(--color-bg-panel-2);

  --overlay-strong: rgba(0,0,0,.50);
  --overlay-soft: rgba(0,0,0,.28);

  --hero-overlay-1: rgba(0,0,0,.50);
  --hero-overlay-2: rgba(0,0,0,.82);

  --slide-overlay-1: rgba(0,0,0,.50);
  --slide-overlay-2: rgba(0,0,0,.75);
  --slide-overlay-3: rgba(0,0,0,.90);

  --side-menu-bg: rgba(0,0,0,.90);
  --side-menu-shadow: -20px 0 60px var(--color-shadow-dark);

  --btn-contrast: #111;
}

/* Light overrides */
body.theme-light{
  --surface-0: var(--color-bg-darker);
  --surface-1: var(--color-bg-dark);
  --surface-2: var(--color-bg-panel);
  --surface-3: var(--color-bg-panel-2);

  --overlay-strong: rgba(18,25,38,.24);
  --overlay-soft: rgba(18,25,38,.16);

  --hero-overlay-1: rgba(20,24,30,.28);
  --hero-overlay-2: rgba(20,24,30,.50);

  --slide-overlay-1: rgba(255,255,255,.18);
  --slide-overlay-2: rgba(197,197,197,.38);
  --slide-overlay-3: rgba(197,197,197,.52);

  --side-menu-bg: rgba(255,255,255,.72);
  --side-menu-shadow: -20px 0 60px rgba(20,30,48,.18);

  --btn-contrast: #111;
}

/* ---------- 1) html/body/background unification ---------- */
html, body{
  background: var(--surface-0);
  color: var(--color-text);
}
html{
  min-height: 100%;
}
body{
  min-height: 100%;
  background-attachment: fixed;
}


/* ---------- 2) overlays / pseudo layers use variables ---------- */
.menu-overlay{
  background: var(--overlay-strong) !important;
}
.inner-hero .hero-bg::after{
  background: radial-gradient(circle at center, var(--hero-overlay-1), var(--hero-overlay-2)) !important;
}
.slide-bg::after{
  background: radial-gradient(circle at center, var(--slide-overlay-1) 0%, var(--slide-overlay-2) 55%, var(--slide-overlay-3) 100%) !important;
}

/* ---------- 3) side menu + fixed layers ---------- */
.side-menu{
  background: var(--side-menu-bg) !important;
  box-shadow: var(--side-menu-shadow) !important;
  border-right-color: var(--glass-border) !important;
}
.side-menu::after{
  background: radial-gradient(circle, var(--color-shadow-gold), transparent 70%) !important;
}

/* ---------- 4) final slide + cards + text consistency ---------- */
.slide-final{
  background: radial-gradient(ellipse at center, var(--surface-2) 0%, var(--surface-0) 100%) !important;
}
.final-sub,
.slide-desc,
.post-excerpt,
.footer-center p,
.footer-contact p,
.footer-copy{
  color: var(--color-text-muted);
}
.menu-item a,
.menu-item .sub-btn,
.prose,
.comment-text{
  color: var(--color-text);
}

/* ---------- 5) buttons readable in both themes ---------- */
.btn-3d:hover{
  color: var(--btn-contrast) !important;
}
.prose.glass .gform_wrapper :is(
  .gform_button,
  input[type="submit"],
  button[type="submit"],
  .gform_next_button,
  .gform_previous_button
){
  color: var(--btn-contrast) !important;
}

/* ---------- 6) form/search controls in both themes ---------- */
.error-search .search-field,
.widget_search input[type="search"],
.form-control, .form-select{
  background: rgba(255,255,255,.05);
  border-color: var(--glass-border);
  color: var(--color-text);
}
body.theme-light .error-search .search-field,
body.theme-light .widget_search input[type="search"],
body.theme-light .form-control,
body.theme-light .form-select{
  background: rgba(255,255,255,.70) !important;
}

/* ---------- 7) map filter theme-safe ---------- */
.map-wrap iframe{
  transition: filter .5s ease;
}
body:not(.theme-light) .map-wrap iframe{
  filter: invert(.92) hue-rotate(180deg) brightness(.92) contrast(.95) grayscale(.25);
}
body.theme-light .map-wrap iframe{
  filter: grayscale(.15) contrast(1.05) brightness(1.02);
}

/* ---------- 8) 404 gradients theme-safe ---------- */
.error-404-box::after{
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 70%);
}
body.theme-light .error-404-box::after{
  background: radial-gradient(circle, rgba(0,0,0,.05) 0%, rgba(0,0,0,0) 70%);
}
body.theme-light .zero-core{
  fill: rgba(0,0,0,.04);
  stroke: rgba(184,134,47,.22);
}

/* ---------- 9) prevent inherited dark hardcodes ---------- */
body.theme-light .menu-close:hover{
  background: rgba(184,134,47,.12);
}
body.theme-light .menu-item a,
body.theme-light .menu-item .sub-btn{
  background: rgba(255,255,255,.45);
}
body.theme-light .menu-item a:hover,
body.theme-light .menu-item .sub-btn:hover{
  background: rgba(184,134,47,.14);
}

/* ---------- 10) ensure full-page sections use theme bg ---------- */
.inner-section,
.site-footer,
.container-inner{
  background-color: transparent;
}
.page-wrapper{
  background: transparent;
}

/* ---------- 11) optional: smooth theme transition ---------- */
html.theme-anim *, body.theme-anim *{
  transition:
    background-color .28s ease,
    color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    filter .28s ease !important;
}

/* ---------- 12) safety for elements injected by plugins ---------- */
body.theme-light .gform_wrapper,
body.theme-light .gform-theme,
body.theme-light .gform-theme--framework{
  color: var(--color-text) !important;
}
.inner-page {height: auto!important;}