/* ==========================================================================
   BAHADI ESTABLISHMENT - DEDICATED TABLET STYLESHEET
   Applies STRICTLY to tablet viewports: (min-width: 768px) and (max-width: 1024px)
   Does NOT affect mobile (< 768px) or desktop (> 1024px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

  /* --------------------------------------------------------------------------
     1. FLOATING HEADER / NAVBAR (TABLET OPTIMIZED)
     -------------------------------------------------------------------------- */
  body .site-header,
  body .site-header.scrolled {
    top: 14px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body .site-header .header-container,
  body .site-header.scrolled .header-container,
  body .header-container {
    width: calc(100% - 36px) !important;
    max-width: 980px !important;
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
    padding: 0 24px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(11, 20, 102, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }

  body .logo,
  body .site-header .logo {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  body .logo img,
  body .header-logo-img,
  body .site-header.scrolled .logo img,
  body .site-header.scrolled .header-logo-img {
    height: 72px !important;
    max-height: 72px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    transform: none !important;
  }

  .nav-menu {
    display: none !important; /* Drawer menu for tablet */
  }

  .hamburger-btn {
    display: flex !important;
    width: 28px !important;
    height: 20px !important;
    cursor: pointer !important;
  }

  .hamburger-bar {
    height: 2.5px !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
  }

  .lang-switcher,
  #langSwitcherBtn {
    font-size: 15px !important;
    font-weight: 700 !important;
    gap: 8px !important;
    cursor: pointer !important;
  }

  .globe-icon,
  .lang-switcher svg,
  #langSwitcherBtn svg {
    width: 17px !important;
    height: 17px !important;
  }

  /* --------------------------------------------------------------------------
     2. HERO CINEMATIC SECTION (TABLET)
     -------------------------------------------------------------------------- */
  .hero {
    height: 85vh !important;
    min-height: 620px !important;
    max-height: 860px !important;
    position: relative !important;
  }

  .hero-bg {
    background-image: url("../images/hero_bg.jpg") !important;
    background-position: center right !important;
    background-size: cover !important;
  }

  .hero-content {
    left: 6% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    max-width: 580px !important;
    width: fit-content !important;
    padding: 0 !important;
  }

  [dir="ltr"] .hero-content {
    right: 6% !important;
    left: auto !important;
  }

  .hero-title {
    font-size: 40px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
  }

  .hero-title span {
    margin-top: 6px !important;
  }

  .hero-subtitle {
    font-size: 18px !important;
    line-height: 1.65 !important;
    margin-top: 18px !important;
    padding-right: 32px !important;
  }

  [dir="ltr"] .hero-subtitle {
    padding-right: 0 !important;
    padding-left: 32px !important;
  }

  .hero-sub-line {
    display: block !important;
    white-space: normal !important;
  }

  .hero-discover {
    left: 6% !important;
    bottom: 35px !important;
    font-size: 15px !important;
    gap: 12px !important;
  }

  [dir="ltr"] .hero-discover {
    right: 6% !important;
    left: auto !important;
  }

  /* --------------------------------------------------------------------------
     3. THE SECTION RIGHT AFTER HERO (#explore) - FULLY RESTRUCTURED FOR TABLET
     -------------------------------------------------------------------------- */
  body #explore.elementor-element-a762e4a,
  body #explore.explore-enma-section,
  body section#explore,
  .explore-enma-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: linear-gradient(180deg, #F8FAFC 0%, #E8F0F7 100%) !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Show desktop view on tablet, hide phone-only mobile view */
  .explore-desktop-view {
    display: block !important;
    width: 100% !important;
  }

  .explore-mobile-view {
    display: none !important;
  }

  body #explore .explore-enma-container,
  body #explore .elementor-container,
  .explore-enma-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 36px !important;
    width: 100% !important;
    max-width: 940px !important;
    padding: 0 28px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
  }

  .explore-desktop-view .explore-logo-column {
    flex-shrink: 0 !important;
    width: 160px !important;
    max-width: 160px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    order: 1 !important;
  }

  .explore-desktop-view .explore-brand-logo {
    max-height: 190px !important;
    max-width: 155px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  .explore-desktop-view .explore-text-column {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: calc(100% - 196px) !important;
    order: 2 !important;
    text-align: right !important;
  }

  [dir="ltr"] .explore-desktop-view .explore-text-column {
    text-align: left !important;
  }

  body .explore-desktop-view h2.ui-e--highlighted-text,
  body .explore-desktop-view .explore-enma-headline,
  .explore-desktop-view .explore-enma-headline {
    font-size: 25px !important;
    line-height: 1.4 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .explore-desktop-view .explore-enma-brand,
  body .explore-desktop-view .explore-enma-brand-navy,
  .explore-desktop-view .explore-enma-brand-navy {
    font-family: 'Readex Pro', sans-serif !important;
    font-size: 25px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #0B1466 !important;
    display: block !important;
    white-space: normal !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 12px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  body .explore-desktop-view .explore-enma-desc,
  .explore-desktop-view .explore-enma-desc {
    font-family: 'Readex Pro', sans-serif !important;
    font-size: 17.5px !important;
    line-height: 1.68 !important;
    font-weight: 400 !important;
    color: #475569 !important;
    display: block !important;
    white-space: normal !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    text-align: right !important;
  }

  [dir="ltr"] body .explore-desktop-view .explore-enma-desc,
  [dir="ltr"] .explore-desktop-view .explore-enma-desc {
    text-align: left !important;
  }

  body .explore-desktop-view .explore-desc-line,
  .explore-desktop-view .explore-desc-line {
    display: inline !important;
    width: auto !important;
    text-align: right !important;
    text-align-last: right !important;
  }

  [dir="ltr"] body .explore-desktop-view .explore-desc-line,
  [dir="ltr"] .explore-desktop-view .explore-desc-line {
    text-align: left !important;
    text-align-last: left !important;
  }

  body .explore-desktop-view .explore-btn-wrapper,
  .explore-btn-wrapper {
    margin-top: 22px !important;
    display: flex !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .enma-profile-btn {
    padding: 8px 12px 8px 28px !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    gap: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .enma-profile-btn-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }

  .enma-profile-btn-icon svg {
    width: 15px !important;
    height: 15px !important;
    stroke-width: 2.8 !important;
  }

  .enma-profile-btn-text {
    font-size: 15.5px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  /* --------------------------------------------------------------------------
     4. INNOVATION & SUSTAINABILITY HERO BANNER
     -------------------------------------------------------------------------- */
  #innovation-sustainability,
  .innovation-banner-section {
    min-height: 440px !important;
    height: 440px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  h2.innovation-banner-title,
  .innovation-banner-title {
    font-size: 38px !important;
    line-height: 1.35 !important;
    padding: 0 20px !important;
  }

  /* --------------------------------------------------------------------------
     5. FERRIS WHEEL (SERVICES RADIAL ORBIT) - PROPER SIZING ON TABLET
     -------------------------------------------------------------------------- */
  .ferris-section {
    padding: 70px 20px 75px 20px !important;
  }

  .ferris-header-block {
    margin-bottom: 25px !important;
  }

  h2.ferris-title,
  .ferris-title {
    font-size: 34px !important;
    margin-bottom: 12px !important;
  }

  .ferris-sub-desc {
    font-size: 16px !important;
    line-height: 1.65 !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    display: block !important;
    padding: 0 16px !important;
  }

  .ferris-sub-desc .ferris-sub-desktop {
    display: inline !important;
  }

  .ferris-sub-desc .ferris-sub-mobile {
    display: none !important;
  }

  .ferris-stage {
    height: 620px !important;
    width: 100% !important;
    max-width: 720px !important;
    margin: 25px auto 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }

  .ferris-wheel-wrapper {
    width: 480px !important;
    height: 480px !important;
    margin: 0 auto !important;
    position: relative !important;
  }

  .ferris-ring-outer {
    border-width: 2px !important;
  }

  .ferris-pod {
    position: absolute !important;
    width: 130px !important;
    height: 130px !important;
    margin-top: -65px !important;
    margin-left: -65px !important;
    z-index: 20 !important;
  }

  /* 8 Pod Positions around 240px radius */
  .ferris-pod[data-index="0"] { transform: rotate(0deg) translateY(-240px) !important; }
  .ferris-pod[data-index="1"] { transform: rotate(45deg) translateY(-240px) !important; }
  .ferris-pod[data-index="2"] { transform: rotate(90deg) translateY(-240px) !important; }
  .ferris-pod[data-index="3"] { transform: rotate(135deg) translateY(-240px) !important; }
  .ferris-pod[data-index="4"] { transform: rotate(180deg) translateY(-240px) !important; }
  .ferris-pod[data-index="5"] { transform: rotate(225deg) translateY(-240px) !important; }
  .ferris-pod[data-index="6"] { transform: rotate(270deg) translateY(-240px) !important; }
  .ferris-pod[data-index="7"] { transform: rotate(315deg) translateY(-240px) !important; }

  .ferris-pod-inner {
    border-width: 3px !important;
    padding: 6px !important;
  }

  .pod-img-icon {
    width: 60px !important;
    height: 42px !important;
    max-height: 42px !important;
    margin-bottom: 2px !important;
  }

  .pod-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    padding: 0 4px !important;
  }

  .ferris-center-card {
    width: 210px !important;
    height: 210px !important;
  }

  .center-card-content {
    padding: 8px 10px !important;
    max-width: 180px !important;
  }

  .center-card-logo-wrapper {
    height: 68px !important;
    max-height: 68px !important;
    margin-bottom: 4px !important;
  }

  .center-card-brand-logo {
    height: 68px !important;
    max-height: 68px !important;
    max-width: 125px !important;
  }

  .center-card-title {
    font-size: 14px !important;
    max-width: 160px !important;
    margin-bottom: 4px !important;
  }

  .center-card-desc {
    font-size: 9.5px !important;
    max-width: 155px !important;
    line-height: 1.4 !important;
  }

  /* --------------------------------------------------------------------------
     6. MISSION & VISION SECTION
     -------------------------------------------------------------------------- */
  #mission-vision,
  .mission-vision-section {
    padding: 75px 0 85px 0 !important;
  }

  .mission-vision-container {
    padding: 0 28px !important;
    max-width: 920px !important;
  }

  .mission-vision-header-block {
    margin-bottom: 30px !important;
  }

  h2.mission-vision-main-title,
  .mission-vision-main-title {
    font-size: 34px !important;
    margin-bottom: 12px !important;
  }

  .mission-vision-sub-desc {
    font-size: 16px !important;
    line-height: 1.7 !important;
    max-width: 700px !important;
  }

  .mission-vision-label-top {
    font-size: 15px !important;
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
  }

  h3.mission-vision-item-title,
  .mission-vision-item-title {
    font-size: 26px !important;
  }

  .mission-vision-icon-wrap {
    width: 42px !important;
    height: 42px !important;
  }

  .mission-vision-text {
    font-size: 16px !important;
    line-height: 1.8 !important;
  }

  /* --------------------------------------------------------------------------
     7. CORE VALUES SECTION - 2x2 BALANCED LUXURY GRID
     -------------------------------------------------------------------------- */
  #our-core-values,
  .core-values-section {
    padding: 70px 0 80px 0 !important;
  }

  .core-values-container {
    padding: 0 28px !important;
    max-width: 920px !important;
  }

  .core-values-header {
    margin-bottom: 35px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 24px !important;
  }

  h2.core-values-title,
  .core-values-title {
    font-size: 34px !important;
    line-height: 1.25 !important;
  }

  .core-values-desc {
    font-size: 16px !important;
    line-height: 1.65 !important;
    max-width: 440px !important;
  }

  .core-values-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 22px !important;
    width: 100% !important;
  }

  .core-value-card {
    width: 100% !important;
    padding: 26px 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .core-value-card:not(:last-child)::after {
    display: none !important;
  }

  .core-value-icon-circle,
  .core-value-icon {
    width: 88px !important;
    height: 88px !important;
    margin-bottom: 14px !important;
  }

  .core-value-icon svg,
  .core-value-icon-circle svg,
  .core-value-icon img,
  .core-value-icon-circle img {
    width: 76px !important;
    height: 76px !important;
    filter: brightness(0) invert(1) drop-shadow(0 3px 8px rgba(255, 255, 255, 0.15)) !important;
  }

  h3.core-value-name,
  .core-value-name,
  .core-value-card-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: #FFFFFF !important;
  }

  .core-value-card-desc,
  .core-value-sub {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  /* --------------------------------------------------------------------------
     8. 3D PROJECTS SHOWCASE CAROUSEL
     -------------------------------------------------------------------------- */
  .wix-3d-showcase-section {
    padding: 75px 0 85px 0 !important;
  }

  .wix-showcase-header {
    margin-bottom: 28px !important;
  }

  h2.wix-showcase-title,
  .wix-showcase-title {
    font-size: 34px !important;
    margin-bottom: 12px !important;
  }

  .wix-showcase-desc {
    font-size: 16px !important;
    max-width: 680px !important;
  }

  .wix-3d-stage-wrapper {
    height: 380px !important;
    margin-top: 15px !important;
  }

  .wix-3d-card {
    width: 380px !important;
    height: 310px !important;
    margin-left: -190px !important;
    margin-top: -155px !important;
  }

  .wix-3d-card.active {
    transform: translate3d(0, 0, 60px) scale(1) !important;
    opacity: 1 !important;
    z-index: 10 !important;
  }

  .wix-3d-card.next-1 {
    transform: translate3d(180px, 0, -30px) rotateY(-20deg) scale(0.85) !important;
    opacity: 0.85 !important;
    z-index: 6 !important;
  }

  .wix-3d-card.prev-1 {
    transform: translate3d(-180px, 0, -30px) rotateY(20deg) scale(0.85) !important;
    opacity: 0.85 !important;
    z-index: 6 !important;
  }

  .wix-3d-card.next-2,
  .wix-3d-card.prev-2 {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .wix-showcase-cta {
    margin-top: 24px !important;
  }

  .wix-showcase-btn {
    font-size: 15px !important;
    padding: 11px 28px !important;
  }

  /* --------------------------------------------------------------------------
     9. SATELLITE MAP
     -------------------------------------------------------------------------- */
  .footer-satellite-section {
    padding: 30px 24px 50px 24px !important;
  }

  .map-section-header {
    gap: 16px !important;
    margin-bottom: 18px !important;
  }

  .map-header-icon {
    height: 50px !important;
    width: auto !important;
  }

  .map-header-title {
    font-size: 32px !important;
  }

  .map-iframe-wrapper {
    height: 280px !important;
  }

  /* --------------------------------------------------------------------------
     10. FOOTER SECTION
     -------------------------------------------------------------------------- */
  .enma-footer-container {
    max-width: 940px !important;
    padding: 0 32px !important;
  }

  .enma-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 36px 32px !important;
    padding-top: 40px !important;
    padding-bottom: 50px !important;
  }

  .enma-col-brand {
    grid-column: span 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 8px !important;
  }

  .enma-footer-logo {
    height: 90px !important;
    max-height: 90px !important;
    margin: 0 auto 10px auto !important;
  }

  .enma-footer-tagline {
    font-size: 15px !important;
    text-align: center !important;
  }

  .enma-col-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
  }

  .enma-footer-list li a {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  .enma-social-icons {
    justify-content: flex-start !important;
    margin-top: 14px !important;
  }

  /* --------------------------------------------------------------------------
     11. ABOUT PAGE SERVICES & SPECIALIZATIONS (TABLET)
     -------------------------------------------------------------------------- */
  .services-investment-section {
    padding: 60px 0 70px 0 !important;
  }

  .services-header-top {
    gap: 20px !important;
    margin-bottom: 40px !important;
    padding: 0 24px !important;
  }

  .services-page-title {
    font-size: 32px !important;
  }

  .services-header-desc {
    font-size: 16px !important;
  }

  .services-investment-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 32px !important;
    padding: 0 24px !important;
    max-width: 940px !important;
    margin: 40px auto 0 auto !important;
  }

  .services-investment-container.reverse-layout {
    flex-direction: row !important;
  }

  .services-text-col {
    flex: 1 1 55% !important;
    min-width: 0 !important;
  }

  .services-slider-col {
    flex: 1 1 45% !important;
    min-width: 0 !important;
  }

  .services-main-title {
    font-size: 26px !important;
    margin-bottom: 12px !important;
  }

  .services-lead-desc {
    font-size: 15.5px !important;
    line-height: 1.65 !important;
  }

  .services-bullets-list {
    margin-top: 16px !important;
    gap: 12px !important;
  }

  .services-bullet-item {
    font-size: 14.5px !important;
  }

  .slider-img {
    height: 280px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
  }

  /* --------------------------------------------------------------------------
     12. PORTFOLIO PAGE PHOTO GRID (TABLET)
     -------------------------------------------------------------------------- */
  .simple-gallery-page {
    padding-top: 130px !important;
    padding-bottom: 70px !important;
    min-height: auto !important;
  }

  .aesthetic-gallery-top {
    margin: 0 auto 36px auto !important;
    padding: 0 24px !important;
    text-align: center !important;
    max-width: 820px !important;
  }

  .gallery-hero-title {
    font-size: 34px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    color: #0B1466 !important;
  }

  .gallery-hero-sub {
    font-size: 16px !important;
    line-height: 1.65 !important;
    max-width: 660px !important;
    margin: 0 auto !important;
    color: #334155 !important;
  }

  .gallery-cells-container {
    padding: 10px 28px 70px 28px !important;
    max-width: 960px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  .photo-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    justify-items: stretch !important;
    align-items: stretch !important;
  }

  .photo-cell {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    margin: 0 !important;
    background: #0B1466 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 10px 25px rgba(11, 20, 102, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    cursor: default !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
  }

  .photo-cell:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 18px 38px rgba(11, 20, 102, 0.2), 0 0 24px rgba(0, 181, 226, 0.28) !important;
    border-color: rgba(0, 181, 226, 0.6) !important;
  }

  .photo-cell .cell-img,
  .cell-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .photo-cell:hover .cell-img {
    transform: scale(1.05) !important;
  }

  .empty-gallery {
    padding: 40px 20px !important;
    text-align: center !important;
  }

  /* --------------------------------------------------------------------------
     13. CONTACT PAGE (TABLET)
     -------------------------------------------------------------------------- */
  .contact-hero-section {
    padding: 140px 24px 70px 24px !important;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.1fr !important;
    gap: 32px !important;
  }

  .contact-headline {
    font-size: 28px !important;
  }

  .contact-form-card {
    padding: 32px 26px !important;
    border-radius: 22px !important;
  }
}
