/* ===== New Modern Header ===== */
header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3d3d3d 100%);
  color: var(--off-white);
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  flex-direction: row-reverse; /* RTL */
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo img {
  height: 48px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #c9a882 0%, #d4b896 50%, #e0c8a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo p {
  font-size: 13px;
  opacity: .95;
  margin: 0;
  color: #c9a882;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ===== Desktop Navigation ===== */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a {
  color: var(--off-white);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.desktop-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #c9a882;
  transition: width 0.3s ease;
}

.desktop-nav a:hover {
  color: #c9a882;
  background: rgba(201, 168, 130, 0.1);
}

.desktop-nav a:hover::before {
  width: 80%;
}

.desktop-nav a.active {
  color: #c9a882;
  background: rgba(201, 168, 130, 0.15);
}

.desktop-nav a.active::before {
  width: 80%;
}

/* ===== Header Actions ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switch */
.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-switch a {
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid rgba(201, 168, 130, 0.3);
  font-weight: 600;
  font-size: 13px;
  color: var(--off-white);
  transition: all 0.3s ease;
  background: rgba(201, 168, 130, 0.1);
}

.lang-switch a:hover {
  background: rgba(201, 168, 130, 0.2);
  border-color: #c9a882;
  color: #c9a882;
}

.lang-switch a.active {
  background: #c9a882;
  border-color: #c9a882;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(201, 168, 130, 0.4);
}

/* CTA Button */
.header-cta {
  background: linear-gradient(135deg, #c9a882 0%, #d4b896 50%, #e0c8a8 100%);
  color: #1a1a1a;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(201, 168, 130, 0.3);
  letter-spacing: 0.5px;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 168, 130, 0.5);
  background: linear-gradient(135deg, #d4b896 0%, #e0c8a8 50%, #f0d8b8 100%);
}

/* ===== Mobile Menu Button ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(201, 168, 130, 0.1);
  border: 1px solid rgba(201, 168, 130, 0.3);
  position: relative;
  z-index: 1001;
}

.mobile-menu-btn:hover {
  background: rgba(201, 168, 130, 0.2);
  border-color: #c9a882;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: #c9a882;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: #c9a882;
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: #c9a882;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  position: fixed !important;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 330px;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3d3d3d 100%);
  z-index: 99999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

/* Open state */
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu.open {
  inset-inline-start: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(201, 168, 130, 0.2);
  background: rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 168, 130, 0.2);
  border: 1px solid rgba(201, 168, 130, 0.4);
  color: #c9a882;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(201, 168, 130, 0.3);
  border-color: #c9a882;
  transform: rotate(90deg);
  color: #e0c8a8;
}

.mobile-menu-content {
  padding: 30px 20px;
  min-height: calc(100vh - 180px);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu a {
  display: block;
  padding: 16px 20px;
  color: var(--off-white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  letter-spacing: 0.5px;
  text-align: inherit;
}

.mobile-menu a:hover {
  background: rgba(201, 168, 130, 0.15);
  border-color: rgba(201, 168, 130, 0.3);
  transform: translateX(4px);
  color: #c9a882;
}

.mobile-menu a.active {
  background: linear-gradient(135deg, #c9a882 0%, #d4b896 100%);
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(201, 168, 130, 0.4);
  font-weight: 700;
}

.mobile-menu-footer {
  padding: 20px;
  border-top: 1px solid rgba(201, 168, 130, 0.2);
  margin-top: 20px;
  background: rgba(0,0,0,0.2);
  position: sticky;
  bottom: 0;
}

.mobile-menu .lang-switch {
  justify-content: center;
}

/* ===== Backdrop ===== */
.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

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

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Ensure menu doesn't affect header */
header {
  position: relative;
  z-index: 100000;
}

/* Keep hero stable */
.hero {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Mobile images */
img {
  max-width: 100%;
  height: auto;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  header .container {
    position: relative;
  }
}

@media (max-width: 768px) {
  header .container {
    padding: 10px 0;
    gap: 12px;
  }

  .logo img {
    height: 40px;
  }

  .logo h1 {
    font-size: 18px;
  }

  .logo p {
    font-size: 10px;
  }

  .mobile-menu {
    width: 90%;
  }

  /* Custom scrollbar for mobile menu */
  .mobile-menu::-webkit-scrollbar {
    width: 6px;
  }

  .mobile-menu::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
  }

  .mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 130, 0.4);
    border-radius: 3px;
  }

  .mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 130, 0.6);
  }
}

/* Small mobile phones (375px - 430px) */
@media (max-width: 430px) {
  header .container {
    padding: 8px 0;
    gap: 10px;
  }

  .logo img {
    height: 36px;
  }

  .logo h1 {
    font-size: 16px;
  }

  .logo p {
    font-size: 9px;
  }

  .logo-text {
    gap: 4px;
  }

  .mobile-menu-btn {
    padding: 6px;
  }

  .mobile-menu-btn span {
    width: 20px;
    height: 2px;
  }

  .mobile-menu {
    width: 95%;
  }

  .mobile-menu-header {
    padding: 15px;
  }

  .mobile-menu-content {
    padding: 20px 15px;
  }

  .mobile-menu a {
    padding: 14px 16px;
    font-size: 15px;
  }

  .mobile-menu-footer {
    padding: 15px;
  }
}

/* Very small phones (320px - 375px) */
@media (max-width: 375px) {
  header .container {
    padding: 6px 0;
    gap: 8px;
  }

  .logo img {
    height: 32px;
  }

  .logo h1 {
    font-size: 14px;
  }

  .logo p {
    font-size: 8px;
  }

  .logo-text {
    gap: 2px;
  }

  .mobile-menu-btn {
    padding: 5px;
  }

  .mobile-menu-btn span {
    width: 18px;
    height: 2px;
  }

  .mobile-menu {
    width: 100%;
    max-width: none;
  }

  .mobile-menu-header {
    padding: 12px;
  }

  .mobile-menu-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .mobile-menu-content {
    padding: 15px 12px;
  }

  .mobile-menu a {
    padding: 12px 14px;
    font-size: 14px;
  }

  .mobile-menu-footer {
    padding: 12px;
  }

  .lang-switch a {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* Extra small phones (up to 320px) */
@media (max-width: 320px) {
  header .container {
    padding: 4px 0;
    gap: 6px;
  }

  .logo img {
    height: 28px;
  }

  .logo h1 {
    font-size: 12px;
  }

  .logo p {
    font-size: 7px;
  }

  .mobile-menu-btn {
    padding: 4px;
  }

  .mobile-menu-btn span {
    width: 16px;
    height: 2px;
  }

  .mobile-menu-header {
    padding: 10px;
  }

  .mobile-menu-close {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .mobile-menu-content {
    padding: 12px 10px;
  }

  .mobile-menu a {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Update header height */
:root { --header-h: 80px; }
body { padding-top: var(--header-h); }
