/* ========================================
   A2Z MENU - COMPLETE STYLES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700&display=swap');

/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Header Container */
.a2z-menu-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid #EFEFEF;
  transition: all 300ms ease;
  height: 72px;
  box-sizing: border-box;
}

.a2z-menu-header.scrolled {
  border-bottom: 1px solid #D9D9D9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.a2z-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: nowrap;
}

/* Logo */
.a2z-logo-menu {
  display: flex;
  align-items: center;
  height: 100%;
  max-height: 100%;
  /* Match contact button height (doubled): font-size (14px) * line-height (1.2) + padding (6px * 2) + border (1px * 2) = 30.8px * 2 = 61.6px */
  max-height: calc((14px * 1.2 + 12px + 2px) * 2);
  flex-shrink: 0;
  z-index: 2;
}

.a2z-logo-menu a {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  height: 100%;
  max-height: 100%;
}

.a2z-logo-menu a:focus-visible {
  outline: 2px solid #0A0A0A;
  outline-offset: 4px;
  border-radius: 2px;
}

/* Logo Text */
.a2z-logo-menu .logo-bold,
.a2z-logo-menu .logo-light {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  color: #0A0A0A;
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-block;
  max-height: 100%;
}

.a2z-logo-menu .logo-bold {
  font-weight: 700;
}

.a2z-logo-menu .logo-light {
  font-weight: 300;
}

/* Logo Image */
.a2z-logo-image {
  display: block;
  max-width: 120px;
  width: auto;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.a2z-logo-menu img {
  width: 250px;
}

.a2z-logo-svg {
  width: auto;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/* Desktop Navigation */
.a2z-nav-desktop {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  white-space: nowrap;
  z-index: 1;
}

.a2z-nav-link {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  color: #0A0A0A;
  text-decoration: none;
  transition: opacity 200ms ease-out;
  white-space: nowrap;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  opacity: 1;
}

.a2z-nav-link:hover {
  opacity: 0.4;
}

.a2z-nav-link:active {
  opacity: 0.4;
}

/* Underline Animation */
.a2z-nav-link::after {
  content: '';
  position: absolute;
  bottom: calc(50% - 13px);
  left: 0;
  height: 1px;
  background-color: #0A0A0A;
  width: 0;
  transform-origin: left;
  transition: width 300ms ease-out;
}

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

.a2z-nav-link:focus-visible {
  outline: 2px solid #0A0A0A;
  outline-offset: 4px;
  border-radius: 2px;
  opacity: 1;
}

.a2z-nav-link:focus-visible::after {
  width: 100%;
}

/* Right Section */
.a2z-right-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  height: 100%;
  flex-shrink: 0;
  z-index: 2;
}

/* Contact Button */
.a2z-contact-btn {
  font-family: 'Inter', sans-serif;
  border: 1px solid #0A0A0A;
  border-top-color: #0A0A0A;
  border-right-color: #0A0A0A;
  border-bottom-color: #0A0A0A;
  border-left-color: #0A0A0A;
  border-radius: 9999px;
  background: transparent;
  background-color: transparent;
  color: #0A0A0A;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  transition: all 200ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-width: 44px;
  cursor: pointer;
  box-shadow: none;
}

.a2z-contact-btn:hover {
  background: #0A0A0A;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.a2z-contact-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.a2z-contact-btn:focus-visible {
  outline: 2px solid #0A0A0A;
  outline-offset: 2px;
  border-radius: 9999px;
}

/* Language Switcher */
.a2z-lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  transition: opacity 200ms ease;
  text-decoration: none;
}

.a2z-lang-switcher:hover {
  opacity: 0.5;
}

.a2z-lang-switcher span {
  font-family: 'Almarai', sans-serif;
  font-size: 14px;
  color: #0A0A0A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.a2z-lang-switcher svg {
  width: 16px;
  height: 16px;
  color: #0A0A0A;
}

/* Hamburger Menu - Minimal Style */
.hamburger-toggle {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 50;
  transition: opacity 0.2s ease;
  margin: 0;
  align-self: center;
}

.hamburger-toggle:hover {
  opacity: 0.6;
}

.hamburger-toggle:focus-visible {
  outline: 2px solid #0A0A0A;
  outline-offset: 4px;
  border-radius: 2px;
}

.hamburger-toggle span {
  width: 24px;
  height: 1px;
  background: #0A0A0A;
  transition: all 0.25s ease;
  transform-origin: center;
  position: absolute;
  left: 50%;
  margin-left: -12px;
}

.hamburger-toggle span:nth-child(1) {
  top: 14px;
}

.hamburger-toggle span:nth-child(2) {
  top: 22px;
}

.hamburger-toggle span:nth-child(3) {
  top: 30px;
}

/* Active state - minimal X transformation */
.hamburger-toggle.active span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.hamburger-toggle.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-toggle.active span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  z-index: 48;
  box-sizing: border-box;
}

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

/* Mobile Menu Panel */
.mobile-menu-panel {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #EFEFEF;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  padding: 24px 16px 32px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: none;
  z-index: 49;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 56px);
  box-sizing: border-box;
}

.mobile-menu-panel.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.mobile-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0A0A0A;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid #F5F5F5;
  display: flex;
  align-items: center;
  min-height: 44px;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.mobile-nav a:active,
.mobile-nav a:hover {
  opacity: 0.7;
}

.mobile-nav a:focus-visible {
  outline: 2px solid #0A0A0A;
  outline-offset: -2px;
  border-radius: 2px;
}

.mobile-contact-btn {
  display: block;
  width: 100%;
  text-align: center;
  border: 1px solid #0A0A0A !important;
  border-top: 1px solid #0A0A0A !important;
  border-right: 1px solid #0A0A0A !important;
  border-bottom: 1px solid #0A0A0A !important;
  border-left: 1px solid #0A0A0A !important;
  border-radius: 9999px;
  padding: 8px 16px;
  background: transparent;
  background-color: transparent;
  color: #0A0A0A;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-decoration: none;
  transition: all 200ms ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.mobile-contact-btn:hover,
.mobile-contact-btn:active {
  background: #0A0A0A;
  color: #FFFFFF;
}

.mobile-contact-btn:focus-visible {
  outline: 2px solid #0A0A0A;
  outline-offset: 2px;
  border-radius: 9999px;
}

/* Mobile Social Section */
.mobile-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid #F5F5F5;
  flex-wrap: var(--flex-wrap-mobile, wrap);
}

.social-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-group span {
  font-size: 14px;
  color: rgb(78, 78, 78);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.social-group a {
  color: rgb(78, 78, 78);
  transition: opacity 200ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-group a:hover {
  opacity: 0.6;
}

.social-group a svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .a2z-menu-header {
    height: 64px;
  }

  .a2z-container {
    padding: 0 20px;
    gap: 20px;
  }

  .a2z-nav-desktop {
    gap: 20px;
  }

  .a2z-right-section {
    gap: 20px;
  }

  .hamburger-toggle {
    display: none !important;
  }
}

/* Mobile & Tablet Responsive (Hamburger below 900px) */
@media (max-width: 899px) {
  .a2z-menu-header {
    height: 56px;
  }

  .a2z-container {
    padding: 0 16px;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .a2z-nav-desktop,
  .a2z-contact-btn {
    display: none;
  }

  .hamburger-toggle {
    display: flex !important;
  }

  .a2z-right-section {
    gap: 6px;
  }

  .mobile-menu-panel {
    top: 56px;
  }

  .mobile-menu-backdrop {
    top: 56px;
  }

  .a2z-logo-menu {
    /* Match globe icon height on mobile (doubled): 16px * 2 = 32px */
    max-height: 32px;
  }

  .a2z-logo-image {
    max-width: 95px;
    max-height: 32px;
  }

  .a2z-logo-menu img {
    width: 204px;
  }

  .a2z-logo-menu .logo-bold,
  .a2z-logo-menu .logo-light {
    font-size: 32px;
  }

  .a2z-container {
    padding: 0 16px;
  }
}