/* ============================================
   AHAD COOLING — RTL ↔ LTR AUTO-SWITCH
   Handles layout when Google Translate / browser
   translation switches site from Arabic to English
   ============================================ */

/* ============ BRAND PROTECTION ============ */
.notranslate,
[translate="no"],
.logo-text,
.logo,
.footer-logo-text {
  font-family: 'Cairo', sans-serif !important;
  unicode-bidi: isolate;
}

/* ============ PHONE NUMBERS — ALWAYS LTR ============ */
.fc-phone,
a[href^="tel:"] span[dir="ltr"],
span[dir="ltr"] {
  direction: ltr !important;
  unicode-bidi: embed !important;
}

/* ============ LTR MODE — GLOBAL ============ */
[dir="ltr"] body,
.is-translated,
html.translated-ltr body {
  text-align: left;
  direction: ltr;
}

[dir="ltr"] .container,
html.translated-ltr .container {
  direction: ltr;
}

/* ============ LTR — HERO SECTION ============ */
[dir="ltr"] .hero,
html.translated-ltr .hero {
  direction: ltr;
}

[dir="ltr"] .hero-content,
html.translated-ltr .hero-content {
  text-align: left;
  direction: ltr;
}

[dir="ltr"] .hero-subtitle,
html.translated-ltr .hero-subtitle {
  text-align: left;
}

[dir="ltr"] .hero h1,
html.translated-ltr .hero h1 {
  text-align: left;
}

[dir="ltr"] .hero-buttons,
html.translated-ltr .hero-buttons {
  direction: ltr;
  justify-content: flex-start;
}

[dir="ltr"] .hero-visual,
html.translated-ltr .hero-visual {
  left: auto !important;
  right: 5% !important;
}

[dir="ltr"] .hero-badge,
html.translated-ltr .hero-badge {
  direction: ltr;
}

/* ============ LTR — APPOINTMENT BAR ============ */
[dir="ltr"] .appointment-bar,
html.translated-ltr .appointment-bar {
  direction: ltr;
}

[dir="ltr"] .appointment-inner,
html.translated-ltr .appointment-inner {
  direction: ltr;
}

[dir="ltr"] .appointment-fields,
html.translated-ltr .appointment-fields {
  direction: ltr;
}

[dir="ltr"] .appointment-fields input,
[dir="ltr"] .appointment-fields select,
html.translated-ltr .appointment-fields input,
html.translated-ltr .appointment-fields select {
  text-align: left;
  direction: ltr;
}

/* ============ LTR — HEADER / NAVBAR ============ */
[dir="ltr"] .top-bar .container {
  flex-direction: row-reverse;
}

[dir="ltr"] .top-bar-right {
  order: 2;
}

[dir="ltr"] .top-bar-left {
  order: 1;
}

[dir="ltr"] .nav-inner {
  flex-direction: row;
}

[dir="ltr"] .nav-links {
  direction: ltr;
}

[dir="ltr"] .nav-links a {
  text-align: left;
}

[dir="ltr"] .logo {
  flex-direction: row;
}

[dir="ltr"] .logo-text {
  text-align: left;
}

/* ============ LTR — MOBILE MENU ============ */
[dir="ltr"] .mobile-menu {
  right: auto;
  left: -100%;
  text-align: left;
  box-shadow: 10px 0 40px rgba(0,0,0,0.15);
}

[dir="ltr"] .mobile-menu.open {
  left: 0;
  right: auto;
}

[dir="ltr"] .mobile-menu a {
  text-align: left;
  padding-left: 0;
}

[dir="ltr"] .mobile-menu a:hover {
  padding-left: 0.5rem;
  padding-right: 0;
}

[dir="ltr"] .mobile-menu .close-menu {
  left: auto;
  right: 1rem;
}

/* ============ LTR — SECTIONS ============ */
[dir="ltr"] .section-header,
[dir="ltr"] .section-title,
[dir="ltr"] .section-desc {
  text-align: center; /* Keep center for section headers */
}

[dir="ltr"] .text-center {
  text-align: center;
}

[dir="ltr"] h1,
[dir="ltr"] h2,
[dir="ltr"] h3,
[dir="ltr"] h4,
[dir="ltr"] h5,
[dir="ltr"] h6 {
  text-align: left;
}

[dir="ltr"] .section-header h1,
[dir="ltr"] .section-header h2,
[dir="ltr"] .section-header h3 {
  text-align: center;
}

[dir="ltr"] p,
[dir="ltr"] li,
[dir="ltr"] td,
[dir="ltr"] th,
[dir="ltr"] label,
[dir="ltr"] span {
  direction: ltr;
}

/* ============ LTR — GRID / FLEX ============ */
[dir="ltr"] .grid {
  direction: ltr;
}

[dir="ltr"] .footer-grid {
  direction: ltr;
}

[dir="ltr"] .footer-grid > div {
  text-align: left;
}

[dir="ltr"] .footer-links a {
  text-align: left;
}

[dir="ltr"] .footer-contact li {
  direction: ltr;
  text-align: left;
}

/* ============ LTR — SERVICE CARDS ============ */
[dir="ltr"] .service-card {
  text-align: left;
  direction: ltr;
}

[dir="ltr"] .service-card h3,
[dir="ltr"] .service-card p {
  text-align: left;
}

/* ============ LTR — BLOG CARDS ============ */
[dir="ltr"] .blog-card {
  direction: ltr;
  text-align: left;
}

/* ============ LTR — FAQ ============ */
[dir="ltr"] .faq-question {
  text-align: left;
  flex-direction: row;
}

[dir="ltr"] .faq-question i {
  margin-left: 0;
  margin-right: auto;
}

[dir="ltr"] .faq-answer {
  text-align: left;
}

/* ============ LTR — BREADCRUMB ============ */
[dir="ltr"] .breadcrumb {
  direction: ltr;
}

[dir="ltr"] .breadcrumb span {
  margin: 0 0.25rem;
}

/* ============ LTR — BUTTONS ============ */
[dir="ltr"] .btn i.fa-arrow-left {
  transform: rotate(180deg);
}

[dir="ltr"] .btn i.fa-arrow-right {
  transform: rotate(180deg);
}

/* ============ LTR — STATS ============ */
[dir="ltr"] .stats-bar {
  direction: ltr;
}

[dir="ltr"] .stat-item {
  direction: ltr;
  text-align: center;
}

/* ============ LTR — ABOUT SECTION ============ */
[dir="ltr"] .about-image {
  order: 1;
}

[dir="ltr"] .reveal-right {
  order: 2;
  text-align: left;
}

[dir="ltr"] .check-list li {
  direction: ltr;
  text-align: left;
}

[dir="ltr"] .check-list li i {
  margin-right: 0.5rem;
  margin-left: 0;
}

/* ============ LTR — CONTACT FORM ============ */
[dir="ltr"] .form-group,
[dir="ltr"] .form-control,
[dir="ltr"] input,
[dir="ltr"] textarea,
[dir="ltr"] select {
  text-align: left;
  direction: ltr;
}

[dir="ltr"] .form-group label {
  text-align: left;
}

/* ============ LTR — CTA ============ */
[dir="ltr"] .cta-section {
  direction: ltr;
  text-align: center;
}

/* ============ LTR — FLOATING BUTTONS ============ */
[dir="ltr"] .float-btns,
html.translated-ltr .float-btns {
  left: auto !important;
  right: 1.25rem !important;
}

[dir="ltr"] .float-label,
html.translated-ltr .float-label {
  left: auto !important;
  right: calc(100% + 0.75rem) !important;
}

/* ============ LTR — LEAD BAR ============ */
[dir="ltr"] .lead-bar .container {
  direction: ltr;
}

/* ============ LTR — GALLERY ============ */
[dir="ltr"] .gallery-grid {
  direction: ltr;
}

/* ============ LTR — EXPERIENCE BADGE ============ */
[dir="ltr"] .exp-badge {
  left: auto;
  right: -1rem;
}

/* ============ LTR — TABLES ============ */
[dir="ltr"] table {
  direction: ltr;
}

[dir="ltr"] th,
[dir="ltr"] td {
  text-align: left;
}

/* ============ LTR — BACK TO TOP ============ */
[dir="ltr"] .back-to-top,
html.translated-ltr .back-to-top {
  left: 1.5rem !important;
  right: auto !important;
}

/* ============ ELEMENTOR LTR OVERRIDES ============ */
[dir="ltr"] .elementor-section {
  direction: ltr;
}

[dir="ltr"] .elementor-container {
  direction: ltr;
}

[dir="ltr"] .elementor-row {
  flex-direction: row;
}

[dir="ltr"] .elementor-column {
  direction: ltr;
}

[dir="ltr"] .elementor-widget-wrap {
  direction: ltr;
  text-align: left;
}

[dir="ltr"] .elementor-widget-text-editor {
  text-align: left;
  direction: ltr;
}

[dir="ltr"] .elementor-widget-heading .elementor-heading-title {
  text-align: left;
}

[dir="ltr"] .elementor-widget-image-box .elementor-image-box-content {
  text-align: left;
}

[dir="ltr"] .elementor-widget-icon-list .elementor-icon-list-items {
  direction: ltr;
}

[dir="ltr"] .elementor-widget-icon-list .elementor-icon-list-item {
  direction: ltr;
  text-align: left;
}

[dir="ltr"] .elementor-form .elementor-field-group {
  direction: ltr;
  text-align: left;
}

[dir="ltr"] .elementor-form input,
[dir="ltr"] .elementor-form textarea,
[dir="ltr"] .elementor-form select {
  text-align: left;
  direction: ltr;
}

[dir="ltr"] .elementor-nav-menu--main .elementor-nav-menu {
  direction: ltr;
}

[dir="ltr"] .elementor-nav-menu--dropdown {
  direction: ltr;
  text-align: left;
}

/* E-containers (Elementor 3.6+) */
[dir="ltr"] .e-con {
  direction: ltr;
}

[dir="ltr"] .e-con--row {
  flex-direction: row;
}

[dir="ltr"] .e-con-inner {
  direction: ltr;
}

/* Elementor Popup */
[dir="ltr"] .elementor-popup-modal .dialog-widget-content {
  direction: ltr;
  text-align: left;
}

/* Elementor Slides */
[dir="ltr"] .elementor-slides .swiper-slide {
  direction: ltr;
  text-align: left;
}

/* ============ LTR — LOCATION PAGES ============ */
[dir="ltr"] .page-hero {
  direction: ltr;
  text-align: center;
}

/* ============ LTR — BLOG SINGLE ============ */
[dir="ltr"] .blog-content {
  direction: ltr;
  text-align: left;
}

[dir="ltr"] .blog-content .entry-content {
  direction: ltr;
  text-align: left;
}

/* ============ PREVENT LAYOUT FLASH ============ */
html:not(.is-ltr-mode) body {
  direction: rtl;
  text-align: right;
}

/* ============ RESPONSIVE — LTR MODE ============ */
@media (max-width: 768px) {
  [dir="ltr"] .mobile-menu,
  html.translated-ltr .mobile-menu {
    right: auto !important;
    left: -100% !important;
  }

  [dir="ltr"] .mobile-menu.open,
  html.translated-ltr .mobile-menu.open {
    left: 0 !important;
    right: auto !important;
  }

  [dir="ltr"] .float-btns,
  html.translated-ltr .float-btns {
    left: auto !important;
    right: 0.75rem !important;
  }

  [dir="ltr"] .lead-bar .container {
    flex-direction: column;
    text-align: center;
  }

  [dir="ltr"] .hero-visual,
  html.translated-ltr .hero-visual {
    display: none;
  }
}

@media (max-width: 480px) {
  [dir="ltr"] .top-bar .container {
    flex-direction: column;
    text-align: center;
  }
}
