/* =============================================
   Summer Homes Landing Page — Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Open+Sans:wght@400;500;600;700&family=Vazirmatn:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy: #1a3a5c;
  --navy-dark: #0f2840;
  --navy-light: #2a5a8c;
  --gold-start: #b8862d;
  --gold-mid: #e8c36a;
  --gold-end: #c6953b;
  --gold-gradient: linear-gradient(135deg, var(--gold-start), var(--gold-mid), var(--gold-end));
  --white: #ffffff;
  --off-white: #fcfcfc;
  --light-gray: #f5f5f5;
  --text-dark: #1a1a1a;
  --text-body: #444444;
  --text-muted: #777777;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --section-max-width: 1000px;
  /* Increased for more breathing room */
  --section-padding: 80px 80px;
  /* More generous side padding */
  --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: #ebebeb;
  line-height: 1.6;
  padding: 40px 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Language Selector */
.custom-lang-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  font-family: var(--font-heading);
}

[dir="rtl"] .custom-lang-selector {
  right: auto;
  left: 20px;
}

.current-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #5d6674;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-weight: 700;
  color: #ffffff;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.current-lang:hover {
  background: #4b5563;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.current-lang .lang-text {
  font-size: 0.95rem;
}

.current-lang .chevron {
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.custom-lang-selector.open .current-lang .chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  width: max-content;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 16px;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #e5e7eb;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.custom-lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border-radius: 6px;
  white-space: nowrap;
}

.lang-option:hover {
  background: var(--light-gray);
  color: var(--navy);
}

.lang-option.active {
  color: #ffffff;
  background: var(--navy);
}

.lang-flag-img {
  width: 20px;
  height: auto;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
  border-radius: 2px;
  vertical-align: middle;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lang-dropdown {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Sticky Navbar ---------- */
.sticky-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 10px 40px;
}

.sticky-navbar.scrolled {
  transform: translateY(0);
}

.navbar-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gold-mid);
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--gold-end);
}

.nav-link:hover::after {
  width: 100%;
}

/* ---------- Navbar Phone Button (Modern) ---------- */
.navbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 28px;
  background: var(--gold-gradient);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(184, 134, 45, 0.35);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  letter-spacing: 0.3px;
  margin-left: 8px;
}

.navbar-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 134, 45, 0.5);
  filter: brightness(1.08);
}

.navbar-phone .phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  flex-shrink: 0;
}

.navbar-phone .phone-icon svg {
  width: 14px;
  height: 14px;
}

.navbar-phone .phone-number {
  direction: ltr;
  unicode-bidi: embed;
  white-space: nowrap;
}

/* Adjust language selector inside navbar */
#navbarLangContainer .custom-lang-selector {
  position: relative;
  top: 0;
  right: 0;
  left: 0;
}
[dir="rtl"] #navbarLangContainer .custom-lang-selector {
  left: 0;
  right: 0;
}

@media (max-width: 768px) {
  .navbar-links {
    display: none; /* Hide links on mobile for simplicity, keep logo and language */
  }
  .sticky-navbar {
    padding: 10px 20px;
  }
}

/* ---------- Responsive Navbar ---------- */

/* Hamburger Button */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1002;
}

.navbar-hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.navbar-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.navbar-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Icon-only logo (hidden by default, shown on small screens) */
.navbar-logo-icon {
  display: none;
  height: 35px;
  width: auto;
  object-fit: contain;
}

/* Mobile overlay */
.navbar-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.navbar-mobile-overlay.active {
  opacity: 1;
}

/* ---- Tablet breakpoint (<=1024px) ---- */
@media (max-width: 1024px) {
  .sticky-navbar {
    padding: 10px 20px;
  }

  .navbar-logo-img {
    height: 35px;
  }

  .navbar-links {
    gap: 15px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .navbar-phone {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .navbar-phone .phone-number {
    display: none;
  }
}

/* ---- Mobile breakpoint (<=768px) ---- */
@media (max-width: 768px) {
  /* Show hamburger */
  .navbar-hamburger {
    display: flex;
  }

  /* Show icon-only logo, hide full logo */
  .navbar-logo-img {
    display: none;
  }
  .navbar-logo-icon {
    display: block;
  }

  /* Mobile slide-in menu */
  .navbar-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    padding: 80px 30px 30px;
    gap: 0;
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
  }

  [dir="rtl"] .navbar-links {
    right: auto;
    left: -280px;
    box-shadow: 5px 0 25px rgba(0,0,0,0.15);
    transition: left 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .navbar-links.mobile-open {
    right: 0;
  }
  [dir="rtl"] .navbar-links.mobile-open {
    left: 0;
  }

  .navbar-links .nav-link {
    font-size: 1.1rem;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }

  .navbar-links .nav-link::after {
    display: none;
  }

  .navbar-links .navbar-phone {
    margin-top: 20px;
    justify-content: center;
    width: 100%;
  }

  .navbar-links .navbar-phone .phone-number {
    display: inline;
  }

  /* Mobile overlay shown */
  .navbar-mobile-overlay.active {
    display: block;
    opacity: 1;
  }

  .sticky-navbar {
    padding: 8px 15px;
  }

  /* Hide standalone lang selector on mobile navbar */
  #navbarLangContainer {
    display: none;
  }
}

/* ---------- Scroll to Top Button ---------- */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--white);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(232, 195, 106, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[dir="rtl"] .scroll-to-top {
  right: auto;
  left: 30px;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(232, 195, 106, 0.6);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Slick Scroll Animations ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.revealed {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
}

/* RTL Font Overrides */
[dir="rtl"] {
  --font-heading: 'Vazirmatn', sans-serif;
  --font-body: 'Vazirmatn', sans-serif;
}

/* ---------- Section Base ---------- */
.section {
  max-width: var(--section-max-width);
  margin: 0 auto 60px;
  background: var(--white);
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.section:hover {
  box-shadow: var(--shadow-hover);
}

/* ---------- Logo ---------- */
.logo {
  display: flex;
  align-items: center;
  z-index: 10;
  position: relative;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Hide redundant logo text if using official logo image that includes text */
.logo-text {
  display: none;
}

/* ---------- Gold Footer Bar ---------- */
.gold-bar {
  background: var(--gold-gradient);
  padding: 20px 40px;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 50;
}

.gold-bar p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.gold-bar .footer-brand {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 5px;
  display: block;
}

.gold-bar .footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  font-size: 0.8rem;
  font-weight: 500;
}

.gold-bar .footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Ensure URLs and phone numbers maintain correct left-to-right sequence on RTL pages */
[dir="rtl"] .gold-bar .footer-contact span {
  direction: ltr;
}

.gold-bar-thin {
  background: var(--gold-gradient);
  height: 10px;
  width: 100%;
}

/* =============================================
   SECTION 1 — Hero / First Steps
   ============================================= */
.section-hero {
  padding: 0;
  position: relative;
  min-height: 1000px;
  background: linear-gradient(to bottom, #f0f4f8, #ffffff);
}

.section-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  z-index: 0;
  filter: grayscale(30%);
}

.section-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 60px 0;
}

.section-hero .hero-heading {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin: 40px 0 50px;
  max-width: 80%;
  letter-spacing: -1px;
  position: relative;
  z-index: 10;
}

.section-hero .services-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 50%;
  position: relative;
  z-index: 10;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.5);
  padding: 15px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.service-item:hover {
  background: var(--white);
  transform: translateX(10px);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.03);
}

.service-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-mid);
  box-shadow: 0 4px 10px rgba(26, 58, 92, 0.2);
}

.service-item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.service-item p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

.section-hero .hero-image-container {
  position: absolute;
  bottom: 0;
  right: -20px;
  width: 55%;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.section-hero .hero-image-container img {
  width: 100%;
  max-width: 450px;
  object-fit: contain;
  /* mix-blend-mode: multiply; Only if confirmed white background */
}

.section-hero .hero-bottom-spacer {
  height: 160px;
}

/* =============================================
   SECTION 2 — Office Locations
   ============================================= */
.section-offices {
  padding: 60px 60px 0;
  min-height: 650px;
  background: var(--white);
}

.section-offices .logo {
  justify-content: center;
  margin-bottom: 50px;
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.office-card {
  padding: 25px;
  background: var(--off-white);
  border-radius: 15px;
  border: 1px solid #f0f0f0;
  transition: var(--transition-smooth);
}

.office-card:hover {
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: var(--shadow-premium);
}

.office-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.office-number {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.office-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.office-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.office-address .pin-icon {
  color: var(--gold-end);
  font-size: 1.3rem;
  margin-top: 2px;
}

.office-address p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* =============================================
   SECTION 3 — Required Documents
   ============================================= */
.section-documents {
  padding: 60px 60px 0;
  position: relative;
  min-height: 1000px;
  background: linear-gradient(135deg, var(--white) 60%, #f0f4f8 100%);
}

.section-documents .doc-heading {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--navy);
  margin: 30px 0 8px;
  position: relative;
  z-index: 10;
}

.section-documents .doc-subtitle {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-end);
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
}

.section-documents .doc-description {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 40px;
  max-width: 50%;
  line-height: 1.7;
  position: relative;
  z-index: 10;
}

.documents-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 10;
  max-width: 50%;
}

.doc-column h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--gold-mid);
  text-transform: uppercase;
}

.doc-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.6);
  padding: 10px;
  border-radius: 8px;
}

.doc-item .doc-checkbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  margin-top: 2px;
  transition: var(--transition-smooth);
}

.doc-item .doc-checkbox.checked {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 4px 8px rgba(26, 58, 92, 0.2);
}

.doc-item .doc-checkbox.checked::after {
  content: '✓';
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  display: block;
  text-align: center;
  line-height: 20px;
}

.doc-item p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
  font-weight: 600;
}

.section-documents .doc-agent-image {
  position: absolute;
  right: -50px;
  bottom: 0;
  width: 50%;
  z-index: 1;
  opacity: 0.95;
}

.section-documents .doc-agent-image img {
  width: 100%;
  object-fit: contain;
}

/* =============================================
   SECTION 4 — Investment Advantages
   ============================================= */
.section-investment {
  padding: 0;
  position: relative;
  min-height: 1100px;
}

.section-investment .invest-hero {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.section-investment .invest-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%; /* Only cover the top half where the logo is */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  z-index: 1;
}

.section-investment .invest-hero>img:not(.logo-img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease;
}

.section-investment:hover .invest-hero>img:not(.logo-img) {
  transform: scale(1.1);
}

.section-investment .invest-hero .logo {
  position: absolute;
  top: 40px;
  left: 50px;
  z-index: 3;
}

.section-investment .invest-hero .logo .brand-name {
  color: var(--white);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.section-investment .invest-hero .logo .brand-tagline {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Contextual Visuals Styling */
.visual-container {
  margin: 40px auto;
  max-width: 680px;
  /* More balanced size */
  text-align: center;
  position: relative;
  z-index: 5;
}

.visual-container img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 4px solid var(--white);
}

.section-investment .invest-content {
  padding: 50px 60px 0;
  position: relative;
}

.section-investment .invest-heading {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 8px;
  position: relative;
  z-index: 10;
}

.section-investment .invest-subheading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-end);
  margin-bottom: 15px;
  position: relative;
  z-index: 10;
}

.section-investment .invest-description {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 45px;
  max-width: 50%;
  line-height: 1.7;
  position: relative;
  z-index: 10;
}

.invest-points {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 50%;
  position: relative;
  z-index: 10;
}

.invest-point {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--off-white);
  padding: 20px;
  border-radius: 15px;
  border-left: 5px solid var(--navy);
  transition: var(--transition-smooth);
}

.invest-point:hover {
  transform: translateX(10px);
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.invest-point .point-number {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.invest-point h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 5px;
}

.invest-point .highlight-value {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin: 5px 0 10px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.invest-point p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

.section-investment .invest-agent {
  position: absolute;
  right: -30px;
  bottom: 0;
  width: 48%;
  z-index: 1;
}

.section-investment .invest-agent img {
  width: 100%;
  object-fit: contain;
}

.section-investment .invest-bottom-spacer {
  height: 100px;
}

.section-citizenship {
  padding: 0;
  position: relative;
  min-height: 1100px;
  background: var(--white);
  overflow: hidden;
}

.section-citizenship .cit-hero {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.section-citizenship .cit-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  z-index: 1;
}

.section-citizenship .cit-hero > img:not(.logo-img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease;
}

.section-citizenship:hover .cit-hero > img:not(.logo-img) {
  transform: scale(1.1);
}

.section-citizenship .cit-hero .logo {
  position: absolute;
  top: 40px;
  left: 50px;
  z-index: 3;
}

.section-citizenship .cit-content {
  padding: 50px 60px 0;
  position: relative;
}

.section-citizenship .cit-agent {
  position: absolute;
  right: -30px;
  bottom: 0;
  width: 48%;
  z-index: 1;
}

.section-citizenship .cit-agent img {
  width: 100%;
  object-fit: contain;
}

.section-citizenship .cit-bottom-spacer {
  height: 100px;
}

.section-citizenship .cit-heading {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--navy);
  margin: 20px 0 8px;
  text-align: center;
  /* Centered for balance */
  position: relative;
  z-index: 10;
}

.section-citizenship .cit-subtitle {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-end);
  margin-bottom: 20px;
  text-align: center;
  /* Centered for balance */
  position: relative;
  z-index: 10;
}

.timeline {
  position: relative;
  max-width: 50%;
  padding-left: 60px;
  z-index: 10;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: var(--light-gray);
  border-radius: 4px;
}

.timeline-step {
  position: relative;
  margin-bottom: 25px;
  padding-left: 30px;
  background: var(--off-white);
  padding: 20px 25px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.timeline-step:hover {
  background: var(--white);
  box-shadow: var(--shadow-premium);
  transform: translateX(10px);
}

.timeline-step .step-number {
  position: absolute;
  left: -58px;
  top: 20px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 8px var(--white);
  transition: var(--transition-smooth);
}

.timeline-step:hover .step-number {
  background: var(--gold-mid);
  transform: scale(1.1);
}

.timeline-step h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.section-citizenship .cit-agent {
  position: absolute;
  right: -20px;
  bottom: 0;
  /* Changed to sit at bottom under footer */
  width: 45%;
  z-index: 1;
}

.section-citizenship .cit-agent img {
  width: 100%;
  object-fit: contain;
}

.section-citizenship .cit-passport {
  position: absolute;
  left: -20%;
  bottom: 20%;
  width: 45%;
  transform: rotate(-15deg);
  transition: var(--transition-smooth);
  mix-blend-mode: multiply;
}

.section-citizenship:hover .cit-passport {
  transform: rotate(-5deg) scale(1.05);
}

.section-citizenship .cit-passport img {
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.section-citizenship .cit-folder {
  position: absolute;
  left: 10%;
  bottom: 10%;
  width: 60%;
  transform: rotate(5deg);
  transition: var(--transition-smooth);
  mix-blend-mode: multiply;
}

.section-citizenship .cit-folder img {
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.section-citizenship .cit-bottom-spacer {
  height: 80px;
}

/* =============================================
   Logo SVG Animation
   ============================================= */
.logo-svg .circle-main {
  animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    opacity: 0.8;
    transform: scale(1);
  }
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 850px) {
  :root {
    --section-padding: 40px 30px;
  }

  body {
    padding: 20px 0;
  }

  .section {
    margin: 0 auto 30px;
    border-radius: 0;
  }

  .section-hero .hero-heading {
    font-size: 2.2rem;
    max-width: 100%;
  }

  .section-hero .services-list {
    max-width: 100%;
  }

  .section-hero .hero-image-container {
    position: relative;
    width: 80%;
    bottom: auto;
    right: auto;
    margin: 40px auto 0;
    justify-content: center;
  }

  .offices-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .documents-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .section-documents .doc-heading {
    font-size: 2rem;
  }

  .section-documents .doc-agent-image {
    display: none;
  }

  .section-investment .invest-description,
  .invest-points {
    max-width: 100%;
  }

  .section-investment .invest-agent {
    position: relative;
    width: 80%;
    right: auto;
    bottom: auto;
    margin: 40px auto 0;
  }

  .timeline {
    max-width: 100%;
  }

  .section-citizenship .cit-agent {
    width: 60%;
    right: -10%;
  }

  .section-citizenship .cit-passport,
  .section-citizenship .cit-folder {
    position: relative;
    width: 140px;
    right: auto;
    bottom: auto;
    margin: 20px auto;
    display: inline-block;
  }

  .gold-bar .footer-contact {
    flex-direction: column;
    gap: 8px;
  }
}

/* RTL Adjustments — Move agents and fix physical offsets */
[dir="rtl"] .section-hero .hero-image-container {
  right: auto;
  left: -20px;
  justify-content: flex-start;
}

[dir="rtl"] .section-documents .doc-agent-image {
  right: auto;
  left: -50px;
}

[dir="rtl"] .section-investment .invest-agent {
  right: auto;
  left: -30px;
}

[dir="rtl"] .section-citizenship .cit-agent {
  right: auto;
  left: -20px;
}

/* Flip physical properties (Left/Right) */
[dir="rtl"] .service-item:hover,
[dir="rtl"] .invest-point:hover,
[dir="rtl"] .timeline-step:hover {
  transform: translateX(-10px);
}

[dir="rtl"] .invest-point {
  border-left: none;
  border-right: 5px solid var(--navy);
}

[dir="rtl"] .timeline-step {
  padding-left: 25px;
  padding-right: 30px;
}

[dir="rtl"] .timeline-step .step-number {
  left: auto;
  right: -58px;
}

[dir="rtl"] .cit-passport {
  left: auto;
  right: -20%;
  transform: rotate(15deg);
}

[dir="rtl"] .cit-folder {
  left: auto;
  right: 5%;
}

/* Ensure phone numbers don't reverse in RTL layouts */
[dir="rtl"] .footer-contact span:last-child,
[dir="rtl"] .navbar-phone .phone-number {
  direction: ltr !important;
  display: flex !important;
  flex-direction: row !important;
  unicode-bidi: isolate !important;
}