/* ==========================================================================
   FONTS & CUSTOM TYPOGRAPHY (Reference: euro-pass.co.il)
   ========================================================================== */
@font-face {
  font-family: 'ploni';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('ploni-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'ploni';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('ploni-demibold.woff2') format('woff2');
}
@font-face {
  font-family: 'ploni';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('ploni-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'ploni';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('ploni-ultrabold.woff2') format('woff2');
}

/* ==========================================================================
   DESIGN SYSTEM - LUXURY LIGHT (Black, White, Gold, & Deep Red)
   ========================================================================== */

:root {
  --bg-dark: #ffffff;
  --bg-panel: #fcfcfc;
  --bg-input: #f5f5f5;
  --text-main: #141414;
  --text-muted: #4a4a4a;
  --text-dark: #ffffff;
  --accent-gold: #c5a028;
  --accent-gold-hover: #a8841a;
  --accent-red: #8b0000;
  --accent-red-hover: #b30000;
  --border-color: rgba(197, 160, 40, 0.3);
  --border-color-muted: rgba(0, 0, 0, 0.08);
  
  --font-display: 'ploni', 'Alef', sans-serif;
  --font-sans: 'ploni', 'Alef', 'Inter', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  --gold-shadow: 0 4px 20px rgba(197, 160, 40, 0.1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, .logo-name, .footer-logo {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.4;
}

p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
}

.section-header .sub-title {
  color: var(--accent-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  margin-bottom: 0.75rem;
}

.section-header .title {
  margin-bottom: 1.25rem;
}

.title-divider {
  width: 60px;
  height: 2px;
  background-color: var(--accent-gold);
  margin: 1.25rem auto;
}

.section-header .description {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-gold {
  display: inline-block;
  background-color: var(--accent-gold);
  color: var(--text-dark);
  border: 1px solid var(--accent-gold);
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: var(--gold-shadow);
  transition: var(--transition-fast);
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-outline:hover {
  background-color: rgba(212, 175, 55, 0.05);
  border-color: var(--accent-gold);
}

.btn-full {
  width: 100%;
  text-align: center;
}

.mt-2 {
  margin-top: 1.5rem;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
  direction: ltr !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.main-header.scroll {
  height: 95px;
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-container {
  display: flex;
  flex-direction: row !important; /* Force Left-to-Right layout on all directions */
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
}

.header-logo-png {
  height: 68px; /* Slightly larger and beautifully balanced now that tagline is removed */
  width: auto;
  display: block;
  filter: none !important; /* Original color of black */
  transition: var(--transition-fast);
}

.logo-area:hover .header-logo-png {
  transform: scale(1.02);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: 100%;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
  color: #030303 !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Header Actions: Lang selector + Quick contact */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-gold);
  color: #ffffff !important; /* Dark text to contrast gold */
  font-weight: 700; /* Bold */
  padding: 0.5rem 1.4rem;
  border-radius: 30px; /* Highly rounded pill shape (circle behind it) */
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  border: 2px solid var(--accent-gold);
  white-space: nowrap;
  font-family: var(--font-sans);
  line-height: 1;
}

.nav-cta-btn:hover {
  background-color: transparent;
  color: var(--accent-gold) !important;
  border-color: var(--accent-gold);
  transform: scale(1.02);
}

.header-phone-btn, .header-whatsapp-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ffffff !important;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.header-phone-btn {
  background-color: var(--accent-gold);
}

.header-phone-btn:hover {
  background-color: #dcb332;
  transform: scale(1.05);
}

.header-whatsapp-btn {
  background-color: #25D366; /* Native WhatsApp Green */
}

.header-whatsapp-btn:hover {
  background-color: #20ba5a;
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .header-phone-btn, .header-whatsapp-btn {
    display: none !important;
  }
  .nav-cta-btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
  }
}

.custom-language-selector {
  display: flex;
  gap: 0.4rem;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 0.3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color-muted);
}

.lang-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 15px;
  transition: var(--transition-fast);
  opacity: 0.6;
  text-decoration: none;
  color: inherit;
}

.lang-btn:hover, .lang-btn.active {
  opacity: 1;
  background-color: rgba(212, 175, 55, 0.15);
}

.contact-quick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--text-main);
}

.whatsapp-btn-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #25d366;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.whatsapp-btn-header:hover {
  background-color: #128c7e;
  transform: translateY(-1px);
}

/* Hamburger Menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: rgba(212, 175, 55, 0.05) !important;
  border: 1px solid var(--accent-gold) !important;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.menu-toggle:hover {
  background: rgba(212, 175, 55, 0.15) !important;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background-color: var(--accent-gold) !important;
  transition: var(--transition-fast);
}

/* ==========================================================================
   SECTION 1: HERO BANNER
   ========================================================================== */
.hero-section {
  scroll-margin-top: 110px;
  position: relative;
  height: calc(100vh - 110px); /* Viewport height minus header height */
  min-height: 550px;
  margin-top: 110px; /* Starts exactly where desktop header ends */
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('new2-hero-leon.webp') !important;
  background-size: 100% 100% !important; /* Stretch and scale exactly to width and height */
  background-position: center;
  background-repeat: no-repeat;
  padding: 1.5rem 2rem; /* compact padding to prevent text overflow */
  overflow: hidden;
  direction: rtl;
}

.hero-center-container {
  width: 100%;
  max-width: 840px; /* Leaves side space for the columns */
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}



.hero-header-text {
  margin-bottom: 1.5rem;
}

.hero-main-title {
  font-family: 'ploni', sans-serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-name-title {
  font-family: 'ploni', sans-serif;
  font-size: 3.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-tagline-text {
  font-family: 'ploni', sans-serif;
  font-size: 1.35rem;
  color: #f3cf65; /* Gold tagline */
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  line-height: 1.5;
}

.hero-gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 250px;
  margin: 1.5rem 0 2.5rem 0;
  gap: 1rem;
}

.hero-gold-divider .divider-line {
  height: 1px;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
  flex-grow: 1;
}

.hero-gold-divider .divider-diamond {
  color: #d4af37;
  font-size: 0.8rem;
}

.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  text-align: right; /* RTL alignment */
}

/* LTR layout alignment override */
body.translated-ltr .hero-features-list {
  text-align: left !important;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background-color: rgba(11, 26, 48, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 160, 40, 0.2);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hero-feature-item:hover {
  border-color: rgba(197, 160, 40, 0.4);
  background-color: rgba(11, 26, 48, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feature-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: rgba(197, 160, 40, 0.1);
}

.feature-icon-circle .gold-icon {
  width: 22px;
  height: 22px;
  color: #f3cf65;
}

.feature-text {
  flex-grow: 1;
}

.feature-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin: 0;
}

.hero-cta-btn-wrapper {
  margin-top: 1rem;
}

.hero-gold-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background-color: var(--accent-gold);
  color: #030303;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  padding: 0.8rem 2.2rem 0.8rem 1rem; /* More padding on right (start), less on left (icon) */
  border-radius: 50px;
  transition: var(--transition-medium);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.hero-gold-pill-btn:hover {
  background-color: #e5c04f;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
  color: #030303;
}

.hero-gold-pill-btn .btn-arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: #ffffff;
  border-radius: 50%;
  color: var(--accent-gold);
  transition: var(--transition-fast);
}

.hero-gold-pill-btn:hover .btn-arrow-circle {
  transform: translateX(-4px); /* Moves left on hover in RTL mode */
}

@media (max-width: 991px) {
  .hero-pillar {
    display: none !important;
  }
  .hero-section {
  scroll-margin-top: 110px;
    min-height: auto;
    padding: 4rem 1.5rem;
    margin-top: 80px; /* Match mobile header height */
  }
  .hero-center-container {
    max-width: 95%;
  }
  .hero-main-title {
    font-size: 2.2rem;
  }
  .hero-name-title {
    font-size: 3rem;
  }
  .hero-tagline-text {
    font-size: 1.15rem;
  }
  .hero-feature-item {
    padding: 1.2rem 1.5rem;
    gap: 1rem;
  }
}

/* ==========================================================================
   SECTION 2: NOTARY SERVICES
   ========================================================================== */
.notary-section {
  scroll-margin-top: 110px;
  background-color: #ffffff;
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(197, 160, 40, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(197, 160, 40, 0.05) 0%, transparent 45%),
    linear-gradient(to right, rgba(0, 0, 0, 0.01) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  position: relative;
}

.notary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.notary-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color-muted);
  border-radius: 4px;
  padding: 2.25rem;
  transition: var(--transition-slow);
}

.notary-card:hover {
  border-color: var(--border-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.notary-card.highlighted {
  border-color: var(--border-color);
  background-image: linear-gradient(to bottom, rgba(212, 175, 55, 0.02), rgba(0,0,0,0));
  position: relative;
  overflow: hidden;
}

.notary-card.highlighted::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-gold);
}

.card-icon {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  color: var(--accent-gold);
}

.notary-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 700;
}

.notary-card p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.notary-footer-banner {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notary-footer-banner h3 {
  font-size: 1.2rem;
  color: var(--accent-gold);
}

.notary-footer-banner p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 3: CITIZENSHIP / RESIDENCY TABS SYSTEM
   ========================================================================== */
.citizenship-section {
  scroll-margin-top: 110px;
  background-color: var(--bg-panel);
}

.residency-section {
  scroll-margin-top: 110px;
  background-color: var(--bg-dark);
}

/* Tabs Header Controls */
.custom-tabs-wrapper {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color-muted);
  border-radius: 4px;
  overflow: hidden;
}

.tabs-header {
  display: flex;
  background-color: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-color-muted);
}

.tab-trigger {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 1.25rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tab-trigger:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.02);
}

.tab-trigger.active {
  color: var(--accent-gold);
  background-color: var(--bg-panel);
  border-bottom: 2px solid var(--accent-gold);
}

/* Tabs Content Body */
.tabs-content {
  background-color: var(--bg-panel);
  padding: 3rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.tab-text h3 {
  font-size: 1.45rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.tab-text p {
  margin-bottom: 1.25rem;
}

.gold-subtitle {
  color: var(--accent-gold);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bullet list specs */
.spec-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.spec-list li {
  position: relative;
  padding-right: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.spec-list li::before {
  content: '✦';
  position: absolute;
  right: 0;
  color: var(--accent-gold);
}

.spec-list li strong {
  color: var(--text-main);
}

/* Media/Image preview in tabs */
.tab-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.tab-img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: var(--transition-slow);
}

.tab-media:hover .tab-img {
  transform: scale(1.03);
}

.overlay-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 60%, rgba(0,0,0,0));
  padding: 1.5rem 1rem 1rem 1rem;
  text-align: center;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   SECTION 5: REAL ESTATE
   ========================================================================== */
.realestate-section {
  scroll-margin-top: 110px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.realestate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.estate-card {
  background-color: rgba(13, 13, 13, 0.85);
  border: 1px solid var(--border-color-muted);
  border-radius: 4px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-slow);
}

.estate-card:hover {
  border-color: var(--border-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.estate-badge {
  display: inline-block;
  background-color: var(--accent-gold);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.estate-card h3 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.estate-card p {
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.estate-list {
  list-style: none;
}

.estate-list li {
  position: relative;
  padding-right: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.estate-list li::before {
  content: '✔';
  position: absolute;
  right: 0;
  color: var(--accent-gold);
}

.estate-list li strong {
  color: var(--text-main);
}

.estate-footer-box {
  background-color: rgba(13, 13, 13, 0.9);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 4px;
  max-width: 900px;
  margin: 0 auto;
}

.estate-footer-box h3 {
  font-size: 1.35rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.estate-footer-box p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   SECTION 6: ABOUT US
   ========================================================================== */
.about-section {
  scroll-margin-top: 110px;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-color-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: flex-start;
}

.about-image-wrapper {
  position: relative;
  border-radius: 40px; /* Highly rounded corners */
  overflow: hidden;
  border: 8px solid var(--accent-gold); /* Bold gold border */
  box-shadow: 0 20px 40px rgba(0,0,0,0.12); /* Premium deep shadow */
  transform: rotate(-2.5deg); /* Custom aesthetic rotation */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  max-width: 88%; /* Made it smaller */
  margin: 0 auto;
}

.about-image-wrapper:hover {
  transform: rotate(0deg) scale(1.02); /* Straightens and scales on hover */
  box-shadow: 0 25px 50px rgba(0,0,0,0.18);
}

.about-img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.about-experience-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--glass-shadow);
}

.about-experience-badge .number {
  font-size: 2.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
}

.about-experience-badge .text {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

.about-text-content .title {
  margin-bottom: 1rem;
}

.about-text-content p {
  margin-bottom: 1.5rem;
}

.about-credentials {
  list-style: none;
  margin-bottom: 1.5rem;
}

.about-credentials li {
  position: relative;
  padding-right: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.about-credentials li strong {
  color: var(--text-main);
}

/* ==========================================================================
   SECTION 7: CONTACT FORM
   ========================================================================== */
.contact-section {
  scroll-margin-top: 110px;
  background-color: var(--bg-panel);
}

.contact-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
}

.contact-form-wrapper {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color-muted);
  padding: 3rem;
  border-radius: 4px;
}

.contact-form-wrapper h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.contact-form-wrapper p {
  margin-bottom: 2rem;
}

/* Form Styling */
.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color-muted);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
  resize: vertical;
}

/* Success notification message */
.form-success-alert {
  background-color: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--accent-gold);
  padding: 1.5rem;
  border-radius: 2px;
  margin-top: 1.5rem;
  text-align: center;
}

.form-success-alert h3 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.form-success-alert p {
  color: var(--text-main);
}

/* Side Contact info column */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 2rem;
}

.contact-info-wrapper h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.info-icon {
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.info-item h3 {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.info-item p {
  font-size: 0.88rem;
}

.office-hours {
  margin-top: 2rem;
  padding: 1.5rem;
  border-top: 1px dashed var(--border-color-muted);
}

.office-hours h3 {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.office-hours p {
  font-size: 0.85rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: #030303;
  border-top: 1px solid var(--border-color-muted);
  padding: 1.5rem 0;
}

.copyright {
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: bold;
}

/* ==========================================================================
   GOOGLE TRANSLATE AUTO-ALIGNMENT RULES
   ========================================================================== */
body.translated-ltr {
  direction: ltr !important;
  text-align: left !important;
}

body.translated-ltr .nav-menu {
  flex-direction: row !important;
}

body.translated-ltr .spec-list li,
body.translated-ltr .estate-list li,
body.translated-ltr .about-credentials li {
  padding-right: 0 !important;
  padding-left: 1.25rem !important;
}

body.translated-ltr .spec-list li::before,
body.translated-ltr .estate-list li::before {
  right: auto !important;
  left: 0 !important;
}

body.translated-ltr .about-credentials li {
  padding-left: 1.75rem !important;
}

body.translated-ltr .tab-grid,
body.translated-ltr .about-grid,
body.translated-ltr .contact-box {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 992px) {
  body.translated-ltr .tab-grid,
  body.translated-ltr .about-grid,
  body.translated-ltr .contact-box {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN / MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  
  .tab-grid, .about-grid, .contact-box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-info-wrapper {
    padding-left: 0;
  }
  
  .about-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 991px) {
  .main-header {
    height: 80px !important;
  }
  .main-header.scroll {
    height: 80px !important;
  }
  .header-logo-png {
    height: 55px !important;
  }

  /* Navigation mobile layout (Default RTL - slide from left) */
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    right: auto;
    width: 250px;
    height: calc(100vh - 80px);
    background-color: #121e2e !important; /* Premium dark navy blue to match header and brand colors */
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: var(--transition-slow);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
    right: auto;
  }

  /* Navigation mobile layout override (Translated LTR - slide from right) */
  body.translated-ltr .nav-menu {
    left: auto;
    right: -100%;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: none;
  }
  
  body.translated-ltr .nav-menu.active {
    right: 0;
    left: auto;
  }
  
  /* Hamburger to Close Icon Micro-animation */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  .menu-toggle {
    display: flex;
  }

  .header-actions {
    gap: 0.5rem !important;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Spacing and Padding Adjustments for Mobile */
  .contact-form-wrapper {
    padding: 1.5rem !important;
  }

  .estate-footer-box {
    padding: 1.5rem !important;
  }
  
  /* Responsive typography scaling and space consolidation */
  .section-padding {
    padding: 3.5rem 0 !important;
  }

  .section-header {
    margin-bottom: 2rem !important;
  }

  h1 { font-size: 1.85rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.15rem !important; }

  .hero-section {
  scroll-margin-top: 110px;
    height: auto !important;
    min-height: auto !important;
    margin-top: 80px !important;
    padding: 0 !important; /* Zero padding as children handle margins */
    display: flex !important;
    flex-direction: column !important;
    background-color: #f7f9fc !important;
  }

  .hero-text-side-wrapper {
    width: 100% !important;
    height: auto !important;
    background-image: url('europe_map_highlighted.png') !important;
    background-size: cover !important;
    background-position: center !important;
    display: block !important;
    position: relative !important;
  }

  .hero-overlay {
    background: rgba(247, 249, 252, 0.85) !important; /* Light transparent overlay on mobile */
  }

  .hero-text-side {
    width: 100% !important;
    padding: 3rem 1.5rem 2rem 1.5rem !important;
    box-sizing: border-box !important;
    text-align: right !important;
    align-items: flex-start !important;
  }

  .hero-visual-side {
    display: flex !important;
    width: 100% !important;
    height: 380px !important; /* Leon portrait height on mobile */
    background-color: #ffffff !important; /* Dark header color */
    justify-content: center !important;
    align-items: flex-end !important;
    margin-top: 0 !important;
    position: relative !important;
  }

  .leon-portrait-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
  }

  .leon-portrait-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    transform: scale(1.05) !important;
  }

  .gold-trust-badge {
    display: none !important; /* Hide badges on mobile to keep it clean */
  }

  .hero-stat-badge-inline {
    display: inline-flex !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    margin-top: 1.5rem !important;
  }

  .hero-main-title {
    font-size: 2.3rem !important;
    line-height: 1.25 !important;
    align-items: flex-start !important;
    color: #030303 !important; /* Dark text on mobile */
    text-shadow: none !important;
  }

  .hero-main-title .gold-pill-row {
    margin: 0.2rem 0 !important;
  }

  .hero-main-title .gold-pill-text {
    font-size: 1.8rem !important;
    padding: 0.1rem 1.2rem !important;
    border-width: 2px !important;
    background-color: #0b1a30 !important; /* Retain contrast */
    color: #f3cf65 !important;
  }

  .hero-description-text {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.75rem !important;
    color: #333333 !important; /* Dark description on mobile */
  }

  .hero-gold-pill-btn {
    font-size: 1.05rem !important;
    padding: 0.7rem 1.5rem 0.7rem 0.8rem !important;
    width: 100% !important;
    justify-content: space-between !important;
  }
  
  .tabs-header {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide default scrollbar Firefox */
  }
  
  .tabs-header::-webkit-scrollbar {
    display: none; /* Hide default scrollbar Chrome/Safari */
  }
  
  .tab-trigger {
    flex: none !important;
    flex-shrink: 0 !important;
    padding: 1rem 1.25rem !important;
    font-size: 0.82rem !important;
  }
  
  .tabs-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo-tagline {
    display: none !important;
  }
  .logo-icon {
    font-size: 1.15rem !important;
  }
  .logo-name {
    font-size: 0.95rem !important;
  }
  .header-container {
    padding: 0 0.4rem !important;
  }
  .header-actions {
    gap: 0.25rem !important;
  }
  .custom-language-selector {
    gap: 0.05rem !important;
  }
  .lang-btn {
    padding: 0.2rem 0.35rem !important;
    font-size: 0.68rem !important;
  }

  /* Compact Experience Badge on small mobile viewports */
  .about-experience-badge {
    bottom: 1rem !important;
    right: 1rem !important;
    padding: 0.75rem !important;
  }
  
  .about-experience-badge .number {
    font-size: 1.7rem !important;
  }
  
  .about-experience-badge .text {
    font-size: 0.52rem !important;
    margin-top: 0.1rem !important;
  }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   GOOGLE TRANSLATE WIDGET OVERRIDES
   ========================================================================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}

html, body {
  top: 0 !important;
  position: static !important;
}

.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Force Google Translate default widgets and wrappers to stay completely hidden */
#google_translate_element,
.skiptranslate,
.goog-te-banner-frame,
.goog-te-banner,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body {
  top: 0 !important;
}

/* ==========================================================================
   PREMIUM CUSTOM LANGUAGE SELECTOR
   ========================================================================== */
.custom-language-dropdown {
  position: relative !important;
  display: inline-block !important;
}

.lang-dropdown-btn {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(197, 160, 40, 0.4) !important;
  padding: 0.5rem 0.8rem !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  transition: var(--transition-fast) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

.lang-dropdown-btn:hover {
  border-color: var(--accent-gold) !important;
}

.lang-dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background-color: var(--bg-panel) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 4px !important;
  list-style: none !important;
  padding: 0.4rem 0 !important;
  margin: 4px 0 0 0 !important;
  min-width: 100px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) !important;
  transition: all 0.2s ease !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

.custom-language-dropdown:hover .lang-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.lang-dropdown-menu li {
  width: 100% !important;
  display: block !important;
}

.lang-btn {
  width: 100% !important;
  display: block !important;
  background: none !important;
  border: none !important;
  font-size: 0.8rem !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  cursor: pointer !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-fast) !important;
  text-align: center !important;
  border-radius: 0 !important;
}

.lang-btn:hover {
  color: var(--accent-gold) !important;
  background-color: rgba(0, 0, 0, 0.02) !important;
}

.lang-btn.active {
  color: var(--accent-gold) !important;
  background-color: rgba(197, 160, 40, 0.08) !important;
}



/* ==========================================================================
   FLOATING ACTION BUTTONS STACK (BOTTOM LEFT)
   ========================================================================== */
.floating-stack-left {
  position: fixed !important;
  bottom: 28px !important;
  left: 28px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  z-index: 1050 !important;
  align-items: center !important;
}

.floating-btn {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  transition: var(--transition-fast) !important;
  cursor: pointer !important;
  border: none !important;
  outline: none !important;
  background: linear-gradient(135deg, var(--accent-gold), #b8972f) !important;
  color: var(--text-dark) !important;
}

.floating-btn svg {
  fill: currentColor !important;
  stroke: none !important;
}

.floating-btn.phone-floating svg {
  fill: none !important;
  stroke: currentColor !important;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4) !important;
  background: linear-gradient(135deg, var(--accent-gold-hover), var(--accent-gold)) !important;
  color: var(--text-dark) !important;
}

.whatsapp-floating {
  font-size: 1.4rem !important;
  background: #25D366 !important;
  color: #ffffff !important;
}

.whatsapp-floating:hover {
  background: #20ba5a !important;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4) !important;
  color: #ffffff !important;
}

.phone-floating {
  font-size: 1.4rem !important;
}

/* ==========================================================================
   AI CHATBOT FLOATING WIDGET (METAFLUX STYLE)
   ========================================================================== */
#chatFab {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  width: 56px !important;
  height: 56px !important;
  background: #1A2B42 !important; /* Dark header navy background */
  border: 1px solid var(--accent-gold) !important; /* Gold border */
  color: var(--text-dark) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1050;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 15px rgba(212, 175, 55, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
}

#chatFab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4);
  background: #243e60 !important; /* Slightly lighter navy on hover */
  border-color: var(--accent-gold-hover) !important;
  color: var(--text-dark) !important;
}

#chatFab.active {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: rotate(90deg);
}

#chatFab.active .chat-fab-icon {
  transform: rotate(45deg) scale(0.8);
}

.chat-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: transform var(--transition-fast);
}

#chatFab.active .chat-fab-icon {
  color: var(--text-main);
}

.chat-fab-icon svg {
  width: 24px;
  height: 24px;
}

.chat-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  opacity: 0;
  animation: fabPulse 2.5s infinite;
}

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Chat Panel */
#chatPanel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 380px;
  max-height: 520px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  z-index: 1040;
  overflow: hidden;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(197, 160, 40, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#chatPanel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0));
  border-bottom: 1px solid var(--border-color-muted);
  flex-shrink: 0;
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1A2B42; /* Match theme navy */
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  flex-shrink: 0;
}

.chat-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(65%) sepia(48%) saturate(1243%) hue-rotate(366deg) brightness(94%) contrast(89%) !important;
  transition: transform var(--transition-fast);
}

.chat-header-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(65%) sepia(48%) saturate(1243%) hue-rotate(366deg) brightness(94%) contrast(89%) !important;
}

.chat-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #25d366;
  border-radius: 50%;
  border: 2px solid rgba(13, 13, 13, 0.96);
}

.chat-header-info {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.chat-header-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.chat-header-status {
  font-size: 0.7rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.chat-header-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.25s ease;
  line-height: 1;
}

.chat-header-close:hover {
  color: var(--text-main);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 280px;
  max-height: 340px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  animation: msgFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  align-items: flex-start;
}

.chat-msg.user {
  align-items: flex-end;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  word-wrap: break-word;
  font-family: var(--font-sans);
}

.chat-bubble.bot {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-color-muted);
  border-bottom-left-radius: 2px;
  text-align: right;
}

.chat-buttons-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  direction: rtl !important;
  padding: 0 0.5rem !important;
}

body.translated-ltr .chat-buttons-container {
  direction: ltr !important;
}

.chat-btn-choice {
  background: rgba(212, 175, 55, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--accent-gold) !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  cursor: pointer !important;
  transition: var(--transition-fast) !important;
  font-family: var(--font-sans) !important;
  text-align: center !important;
}

.chat-btn-choice:hover {
  background-color: var(--accent-gold) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3) !important;
}

.chat-bubble.user {
  background: linear-gradient(135deg, var(--accent-gold), #b8972f);
  color: var(--text-dark);
  border-bottom-right-radius: 2px;
  font-weight: 700;
  text-align: right;
}

/* Typing Dots */
.typing-dots {
  display: flex;
  gap: 4px;
  padding: 0.8rem 1.2rem !important;
  align-items: center;
  justify-content: center;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  animation: dotBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Input Area */
.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-color-muted);
  background: rgba(245, 245, 245, 0.9);
  flex-shrink: 0;
  direction: rtl;
}

#chatInput {
  flex: 1;
  border: 1px solid var(--border-color-muted);
  background: #ffffff;
  border-radius: 20px;
  padding: 0.6rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  text-align: right;
}

#chatInput:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
}

#chatSendBtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent-gold);
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

#chatSendBtn:hover {
  background-color: var(--accent-gold-hover);
}

#chatSendBtn svg {
  width: 16px;
  height: 16px;
  transform: scaleX(-1); /* Flips icon direction for RTL */
}

@media (max-width: 480px) {
  #chatPanel {
    width: calc(100% - 32px) !important;
    right: 16px !important;
    left: 16px !important;
    bottom: 80px !important;
  }
  
  .floating-stack-left {
    left: 16px !important;
    bottom: 16px !important;
  }
}

/* ==========================================================================
   DROPDOWN MENU STYLING (CSS only)
   ========================================================================== */
.nav-list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
}
.nav-list li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.menu-item-has-children {
  position: relative;
}
.dropdown-arrow {
  font-size: 0.65rem;
  margin-right: 4px;
  display: inline-block;
  transition: transform 0.2s ease;
}
.sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  list-style: none;
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.menu-item-has-children:hover .dropdown-arrow {
  transform: rotate(180deg);
}
.sub-menu li {
  width: 100%;
  display: block;
  height: auto;
}
.sub-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition-fast);
  text-align: right;
  white-space: nowrap;
}
.sub-menu li a:hover {
  color: var(--accent-gold);
  background-color: rgba(0, 0, 0, 0.02);
}

/* Call Button in Header */
.btn-header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-gold);
  color: var(--text-dark) !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  transition: var(--transition-fast);
  box-shadow: 0 2px 10px rgba(197, 160, 40, 0.15);
}
.btn-header-phone:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
}
.btn-header-phone .phone-icon {
  font-size: 0.95rem;
}
@media (max-width: 991px) {
  .btn-header-phone .phone-number {
    display: none;
  }
  .btn-header-phone {
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
  
  /* Mobile dropdown spacing overrides */
  .nav-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    height: auto !important;
    width: 100% !important;
  }
  .nav-list li {
    display: block !important;
    height: auto !important;
    position: relative !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  .nav-list li a {
    padding: 1rem 1.5rem !important;
    color: #ffffff !important;
    display: block !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .nav-list li a.active {
    color: var(--accent-gold) !important;
  }
  .sub-menu {
    position: static !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.5rem 0 !important;
    width: 100% !important;
    min-width: 100% !important;
  }
  .sub-menu li a {
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 0.75rem 2rem !important;
    display: block !important;
    height: auto !important;
  }
  .sub-menu li a:hover {
    color: var(--accent-gold) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
  }
  .menu-item-has-children.open .sub-menu {
    display: block !important;
  }

  /* Hero Content Mobile Positioning (Balanced height to keep background image clear and text in proportion) */
  .hero-content-container {
    padding: 2.5rem 1.5rem 7.5rem !important; /* Shifted top up by 1rem, bottom up by 1rem to clear floating buttons */
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }
  .hero-badge {
    font-size: 0.85rem !important;
    margin: 0 auto 1rem auto !important;
    padding: 0.4rem 1rem !important;
  }
}

/* ==========================================================================
   ALTERNATING REAL ESTATE GRID (Cross Layout)
   ========================================================================== */
.alternating-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  margin-top: 3.5rem;
}
.alt-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.alt-row.alt-reverse {
  grid-template-columns: 1fr 1.2fr;
}
.alt-row.alt-reverse .alt-content {
  grid-column: 2;
}
.alt-row.alt-reverse .alt-image {
  grid-column: 1;
  grid-row: 1;
}
.alt-content {
  text-align: right;
}
.alt-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.alt-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 2px;
  background-color: var(--accent-gold);
}
.alt-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.alt-image {
  position: relative;
  border-radius: 40px; /* Highly rounded corners */
  overflow: hidden;
  border: 4px solid var(--accent-gold); /* Gold border frame */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
.alt-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.alt-image:hover img {
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .alt-row, .alt-row.alt-reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .alt-row.alt-reverse .alt-content {
    grid-column: 1;
  }
  .alt-row.alt-reverse .alt-image {
    grid-column: 1;
    grid-row: auto;
  }
  .alternating-container {
    gap: 4.5rem;
  }
  .alt-title {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   GOOGLE TRANSLATE CUSTOM STYLING (HIDES BANNERS & FRAMES)
   ========================================================================== */
body {
  top: 0 !important;
}
.skiptranslate {
  display: none !important;
}
.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}
.goog-te-balloon-frame {
  display: none !important;
}
.goog-tooltip {
  display: none !important;
}
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}
iframe.goog-te-banner-frame {
  display: none !important;
}
#google_translate_element {
  display: none !important;
}

/* Google Translate Direction overrides to solve alignment bugs */
html.translated-ltr,
html.translated-ltr body {
  direction: ltr !important;
  unicode-bidi: embed;
}
html.translated-rtl,
html.translated-rtl body {
  direction: rtl !important;
  unicode-bidi: embed;
}

/* Custom overrides for translated LTR layout */
body.translated-ltr .hero-section {
  scroll-margin-top: 110px;
  direction: ltr !important;
}

body.translated-ltr .hero-text-side {
  text-align: left !important;
  align-items: flex-start !important;
  padding-left: 8% !important;
  padding-right: 5% !important;
}

body.translated-ltr .hero-stat-badge-inline {
  direction: ltr !important;
}

body.translated-ltr .alt-content {
  text-align: left !important;
}

body.translated-ltr .chat-input-area {
  direction: ltr !important;
}

body.translated-ltr #chatInput {
  text-align: left !important;
}

body.translated-ltr .chat-msg {
  text-align: left !important;
}

body.translated-ltr .chat-header-info {
  text-align: left !important;
}

/* Symmetric padding for hero CTA button to prevent overlap of text and circle arrow in both RTL and LTR modes */
.hero-gold-pill-btn {
  padding: 0.8rem 1.5rem !important;
}

/* For mobile view alignment */
@media (max-width: 992px) {
  body.translated-ltr .hero-text-side {
    text-align: left !important;
    align-items: flex-start !important;
    padding: 3rem 1.5rem 2rem 1.5rem !important;
  }
}

/* Fix desktop overlap for LTR pages */
@media (min-width: 992px) {
  body.translated-ltr .hero-text-side-wrapper {
    align-items: flex-start !important;
    padding-top: 60px !important;
  }
}


/* Circular flag styles in header actions */
.header-flags {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.flag-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 2px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.flag-link.active, .flag-link:hover {
  border-color: var(--accent-gold);
  transform: scale(1.08);
}

.flag-icon-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.header-contact-quick {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Middle Contact group layout */
.header-contact-mid {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 991px) {
  .header-contact-mid {
    display: none !important; /* Hide inside original desktop navbar layout on mobile toggle */
  }
}

@media (max-width: 991px) {
  .hero-section,
  .notary-section,
  .citizenship-section,
  .residency-section,
  .realestate-section,
  .about-section,
  .contact-section {
    scroll-margin-top: 80px !important; /* Mobile header height offset */
  }
}
