/* ==========================================================================
   Custom Utility Classes & Elementor Enhancements
   Mahshid Rahmani Personal Brand
   ========================================================================== */

/* Reveal on scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Force visible & immediately editable in Elementor Editor */
body.elementor-editor-active .reveal-on-scroll,
body.elementor-editor-preview .reveal-on-scroll {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Eyebrow badge */
.gold-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
}

.gold-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background-color: var(--accent-gold);
}

/* Handwritten signature in Elementor */
.editorial-signature {
  display: inline-block;
  min-height: 48px;
  position: relative;
  z-index: 2;
}

.editorial-signature img {
  width: clamp(180px, 20vw, 240px) !important;
  height: auto !important;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.editorial-signature:hover img {
  transform: scale(1.03) rotate(-1deg);
}

/* Number markers: 01, 02, 03 */
.editorial-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent-gold);
  line-height: 1;
}

/* Subtle card elevation */
.editorial-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.editorial-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold-soft) !important;
  box-shadow: 0 16px 36px rgba(44, 51, 60, 0.08) !important;
}



/* ==========================================================================
   Luxury Hamburger Button & Navigation Drawer (Auto-Injected)
   ========================================================================== */

:root {
  --accent-gold: #B4872E;
  --text-navy: #2C333C;
  --bg-offwhite: #F5F1E6;
  --border-line-light: rgba(44, 51, 60, 0.08);
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hamburger button: 2 sleek lines converting to X */
.menu-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s ease;
  z-index: 100;
}

.menu-toggle:hover {
  background-color: rgba(44, 51, 60, 0.06);
}

.menu-toggle .line {
  width: 26px;
  height: 2px;
  background-color: var(--text-navy);
  border-radius: 2px;
  transition: transform 0.35s var(--transition-smooth), opacity 0.25s ease;
  transform-origin: center;
  display: block;
}

.menu-toggle.open .line-1 {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle.open .line-2 {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Navigation Drawer Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(32, 38, 46, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

/* Drawer Container */
.nav-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(440px, 88vw);
  height: 100%;
  background-color: var(--bg-offwhite);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 3vw, 2.75rem);
  z-index: 2;
  overflow-y: auto;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border-inline: 1px solid var(--border-line-light);
  box-sizing: border-box;
}

/* RTL: Opens from LEFT */
html[dir="rtl"] .nav-drawer,
body.rtl .nav-drawer {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

html[dir="rtl"] .nav-overlay.open .nav-drawer,
body.rtl .nav-overlay.open .nav-drawer {
  transform: translateX(0);
}

/* LTR: Opens from RIGHT */
html[dir="ltr"] .nav-drawer,
body:not(.rtl) .nav-drawer {
  right: 0;
  left: auto;
  transform: translateX(100%);
}

html[dir="ltr"] .nav-overlay.open .nav-drawer,
body:not(.rtl) .nav-overlay.open .nav-drawer {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-line-light);
}

.nav-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(44, 51, 60, 0.06);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-navy);
  font-size: 1.1rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.nav-drawer-close:hover {
  background: var(--text-navy);
  color: #FFFFFF;
  transform: rotate(90deg);
}

.nav-links {
  list-style: none !important;
  margin: 2rem 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.nav-link-item a {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--text-navy);
  text-decoration: none !important;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
  font-family: 'Vazirmatn', -apple-system, sans-serif;
}

.nav-link-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.nav-link-item a:hover {
  color: var(--accent-gold);
  transform: translateX(-6px);
}

html[dir="ltr"] .nav-link-item a:hover,
body:not(.rtl) .nav-link-item a:hover {
  transform: translateX(6px);
}

.nav-drawer-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-line-light);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nav-drawer-footer .drawer-contact-email {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
}

.nav-socials {
  display: flex;
  gap: 1.25rem;
}

.nav-socials a {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(44, 51, 60, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-socials a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   Smooth Anchor Scrolling (Native Fluidity - Zero Lag / No Grab)
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Language Switcher (FA / EN Pill Toggle)
   ========================================================================== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(44, 51, 60, 0.06);
  border: 1px solid rgba(44, 51, 60, 0.12);
  border-radius: 50px;
  padding: 3px 5px;
  font-size: 0.8rem;
  font-weight: 600;
  box-sizing: border-box;
}

.lang-btn {
  padding: 4px 11px;
  border-radius: 50px;
  color: rgba(44, 51, 60, 0.65);
  background: transparent;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.2;
}

.lang-btn:hover {
  color: #2C333C;
}

.lang-btn.active {
  background-color: #2C333C;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(44, 51, 60, 0.2);
}

/* ==========================================================================
   About Section: Quote Card Over Portrait (Screenshot 1)
   ========================================================================== */
.about-media {
  position: relative !important;
}

.about-quote-box {
  position: absolute;
  bottom: -24px;
  inset-inline-end: -24px;
  background-color: #F5F1E6;
  padding: 1.25rem 1.6rem;
  border-radius: 12px;
  border: 1px solid rgba(44, 51, 60, 0.12);
  box-shadow: 0 14px 32px rgba(44, 51, 60, 0.09);
  max-width: 275px;
  z-index: 10;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-quote-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(44, 51, 60, 0.12);
}

.about-quote-box p {
  font-size: 0.86rem;
  font-style: italic;
  color: #2C333C;
  line-height: 1.65;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-quote-box {
    position: relative;
    bottom: auto;
    inset-inline-end: auto;
    margin-top: 1rem;
    max-width: 100%;
  }
}

/* ==========================================================================
   About Section: Animated Stats Counter Row (Screenshot 2)
   ========================================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(44, 51, 60, 0.12);
  margin-top: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

html[dir="rtl"] .stat-item {
  align-items: flex-start;
}

.stat-item h4 {
  font-size: clamp(2.2rem, 3.2vw, 2.75rem);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  color: #2C333C;
  line-height: 1;
  margin: 0 0 0.4rem 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.stat-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  transition: color 0.3s ease;
}

.stat-plus {
  color: #B4872E;
  font-weight: 600;
  font-size: 0.8em;
}

.stat-item p {
  font-size: 0.86rem;
  color: rgba(44, 51, 60, 0.68);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    padding-top: 1.25rem !important;
  }

  .stat-item {
    background: rgba(44, 51, 60, 0.04);
    border: 1px solid rgba(44, 51, 60, 0.08);
    border-radius: 8px;
    padding: 10px 4px;
    text-align: center;
    align-items: center;
  }

  .stat-item h4 {
    font-size: 1.45rem;
    margin-bottom: 0.2rem;
    justify-content: center;
  }

  .stat-item p {
    font-size: 0.7rem;
    line-height: 1.35;
  }
}

/* ==========================================================================
   Interactive Brand Diagnostic Quiz & Lead Capture Modal
   ========================================================================== */
.quiz-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(32, 38, 46, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-sizing: border-box;
}

.quiz-modal.open {
  opacity: 1;
  visibility: visible;
}

.quiz-modal-card {
  background-color: #F5F1E6;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  padding: clamp(2rem, 4vw, 2.75rem);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(44, 51, 60, 0.12);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

.quiz-modal.open .quiz-modal-card {
  transform: translateY(0);
}

.quiz-close-btn {
  position: absolute;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(44, 51, 60, 0.08);
  border: 1px solid rgba(44, 51, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #2C333C;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.quiz-close-btn:hover {
  background: #2C333C;
  color: #FFFFFF;
  transform: rotate(90deg);
}

.quiz-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(44, 51, 60, 0.08);
  border-radius: 50px;
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: #B4872E;
  width: 25%;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-step-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  color: #B4872E;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.4rem;
}

.quiz-question-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2C333C;
  margin: 0 0 1.25rem 0;
  line-height: 1.45;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.quiz-option-btn {
  width: 100%;
  text-align: start;
  padding: 1rem 1.25rem;
  background: #F2EEE3;
  border: 1px solid rgba(44, 51, 60, 0.12);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2C333C;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.5;
}

.quiz-option-btn:hover, .quiz-option-btn.selected {
  border-color: #B4872E;
  background-color: rgba(180, 135, 46, 0.12);
  transform: translateX(-4px);
}

html[dir="ltr"] .quiz-option-btn:hover,
html[dir="ltr"] .quiz-option-btn.selected {
  transform: translateX(4px);
}

/* Lead Form */
.quiz-lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.quiz-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: start;
}

.quiz-form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2C333C;
}

.quiz-form-group label .required-star {
  color: #c93b2b;
}

.quiz-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(44, 51, 60, 0.18);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  color: #2C333C;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.quiz-input:focus {
  border-color: #B4872E;
  box-shadow: 0 0 0 3px rgba(180, 135, 46, 0.15);
}

.quiz-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: 50px;
  background: #2C333C;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  margin-top: 0.5rem;
  transition: all 0.25s ease;
  font-family: inherit;
}

.quiz-submit-btn:hover {
  background: #B4872E;
  transform: translateY(-1px);
}

.quiz-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.quiz-form-privacy {
  font-size: 0.78rem;
  color: rgba(44, 51, 60, 0.6);
  text-align: center;
  margin-top: 0.25rem;
}

/* Floating Sticky CTA Bar */
.floating-cta-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 9999;
  width: min(92%, 640px);
  background: rgba(32, 38, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(180, 135, 46, 0.35);
  border-radius: 50px;
  padding: 10px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
  box-sizing: border-box;
}

.floating-cta-bar.visible,
.floating-cta-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.floating-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.floating-cta-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #B4872E;
  box-shadow: 0 0 8px #B4872E;
  flex-shrink: 0;
}

.floating-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #B4872E;
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  font-family: inherit;
}

.floating-cta-btn:hover {
  background: #966f22;
  transform: scale(1.02);
}

.floating-cta-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.floating-cta-close:hover {
  color: #FFFFFF;
}

@media (max-width: 640px) {
  .floating-cta-bar {
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 16px;
  }
  .floating-cta-inner {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .floating-cta-text {
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
  }
}

/* Custom Pointer (Squircle 22px #FFFFFF with Bank into Motion) */
.custom-pointer {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  background-color: #FFFFFF;
  border-radius: 6.5px;
  box-shadow: 0 2px 10px rgba(44, 51, 60, 0.22), 0 0 0 1px rgba(44, 51, 60, 0.14);
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.2s ease, width 0.2s cubic-bezier(0.16, 1, 0.3, 1), height 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.2s ease, box-shadow 0.2s ease;
}

.custom-pointer.pointer-active {
  opacity: 1;
}

.custom-pointer.pointer-interactive {
  width: 28px;
  height: 28px;
  border-radius: 8.5px;
  box-shadow: 0 4px 18px rgba(180, 135, 46, 0.38), 0 0 0 1.5px #B4872E;
}
