/* ==========================================================================
   BENZAT (بنزات) - RESPONSIVE & RTL STYLESHEET
   Mobile, Tablet, Desktop & Bi-Directional RTL Adaptations
   ========================================================================== */

/* --- RTL (Arabic) Specific Logical Adjustments --- */
html[dir="rtl"] {
  letter-spacing: normal;
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title {
  letter-spacing: normal;
}

html[dir="rtl"] .arrow-icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .tachometer-needle {
  transform-origin: 26px 26px;
}

/* --- Large Desktops (1440px and up) --- */
@media (min-width: 1440px) {
  .hero-title {
    font-size: 4.4rem;
  }
}

/* --- Standard Desktops & Tablets Landscape (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .hero-card-wrapper {
    margin-inline: auto;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-pane.active {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* --- Tablets & Mobile Landscape (max-width: 768px) --- */
@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Can be opened via mobile menu or anchor clicks */
  }

  .hero-title {
    font-size: 2.6rem;
  }

  html[dir="rtl"] .hero-title {
    font-size: 2.4rem;
  }

  .hero-section {
    padding-block: 3.5rem 4rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .pipeline-fuel-track {
    inset-inline-start: 24px;
    transform: none;
  }

  .pipeline-step-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-inline-start: 4rem;
  }

  .pipeline-step-item:nth-child(even) .step-content-box {
    grid-column: 1;
  }

  .pipeline-step-item:nth-child(even) .step-visual-box {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }

  .step-visual-box {
    justify-content: flex-start;
  }

  .step-badge-indicator {
    width: 64px;
    height: 64px;
  }

  .step-badge-indicator svg {
    width: 32px;
    height: 32px;
  }

  .calc-card-container {
    padding: 1.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2.1rem;
  }

  html[dir="rtl"] .section-title {
    font-size: 2rem;
  }

  /* Compact Cockpit HUD on Mobile */
  .octane-cockpit-hud {
    bottom: 1rem;
    inset-inline-start: 1rem;
    inset-inline-end: 1rem;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    gap: 0.8rem;
  }

  .hud-tachometer-box {
    gap: 0.5rem;
  }

  .tachometer-gauge {
    width: 38px;
    height: 38px;
  }

  .hud-flow-val {
    font-size: 1.2rem;
  }

  .octane-pill {
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- Small Mobile Phones (max-width: 480px) --- */
@media (max-width: 480px) {
  .hero-stats-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-stat-val {
    font-size: 2rem;
  }

  .hero-3d-card {
    padding: 1.5rem;
  }

  .card-totp-display {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
  }

  .platform-tabs-nav {
    flex-direction: column;
    width: 100%;
  }

  .platform-tab-btn {
    width: 100%;
    text-align: center;
  }

  .calc-result-number {
    font-size: 1.8rem;
  }
}
