/* Habib Satha Towing: site layer on top of the Harbor theme (global.css). Loaded after it on every page. */

/* ---------- Arabic typography ---------- */
html[lang="ar"] {
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
}
html[lang="ar"] body { font-size: 17px; line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  font-family: var(--font); letter-spacing: 0; line-height: 1.45; text-transform: none;
}
html[lang="ar"] .eyebrow, html[lang="ar"] .btn { letter-spacing: 0; text-transform: none; }
/* Phone numbers keep their digit order inside Arabic text */
.hst-num { direction: ltr; unicode-bidi: isolate; }

/* ---------- Logo: truck mark + two-tone wordmark ---------- */
.brand-mark.hst-mark, .footer .brand-mark.hst-mark { width: 96px; height: 44px; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.brand-mark.hst-mark svg { width: 100%; height: 100%; display: block; }
[dir="ltr"] .brand-mark.hst-mark svg { transform: scaleX(-1); } /* the truck faces left; mirror it on English pages so it drives into the page */
.brand-copy strong { letter-spacing: 0; font-weight: 800; color: #1E2A36; line-height: 1.3; padding-bottom: 1px; }
.footer .brand-copy strong { color: #fff; }
@media (max-width: 420px) { .brand-mark.hst-mark, .footer .brand-mark.hst-mark { width: 72px; height: 34px; } html[lang="en"] .brand-copy strong { font-size: 17px; } }
.brand-copy strong em { font-style: normal; color: #D7301B; }
.footer .brand-copy strong em { color: #FF6B4A; }
.brand-copy span { letter-spacing: 0.06em; }
html[lang="ar"] .brand-copy strong { font-size: 22px; font-weight: 700; }
html[lang="ar"] .brand-copy span { letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 12.5px; }

/* ---------- Right-to-left fixes for physical left/right rules in global.css ---------- */
[dir="rtl"] .skip-link { left: auto; right: 12px; }
[dir="rtl"] .text-link:hover::after { transform: translateX(-4px); }
[dir="rtl"] .nav-dropdown-item:hover { transform: translateX(-2px); }
[dir="rtl"] .nav-dropdown-all:hover span { transform: translateX(-3px); }
[dir="rtl"] .nav-dropdown-panel { border-left: 0; border-right: 3px solid var(--accent); }
[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(5, 35, 58, 0.94) 0%, rgba(7, 44, 70, 0.76) 50%, rgba(7, 44, 70, 0.2) 100%); }
[dir="rtl"] .photo-section::before { background: linear-gradient(270deg, rgba(3, 28, 46, 0.94), rgba(3, 28, 46, 0.45)); }
[dir="rtl"] .contact-banner::before { background: linear-gradient(270deg, rgba(3, 25, 42, 0.96) 0%, rgba(3, 25, 42, 0.74) 55%, rgba(3, 25, 42, 0.2) 100%); }
[dir="rtl"] .inner-hero::before { background: linear-gradient(270deg, rgba(4, 31, 50, 0.95), rgba(4, 31, 50, 0.45)); }
[dir="rtl"] .hero-badges { right: auto; left: 0; }
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }
[dir="rtl"] .mosaic-main { right: auto; left: 0; }
[dir="rtl"] .mosaic-small { left: auto; right: 0; }
[dir="rtl"] .stat-sticker { right: auto; left: 15px; }
[dir="rtl"] .process-step::after { right: auto; left: -30px; }
[dir="rtl"] .floating-note { right: auto; left: -24px; }
[dir="rtl"] .map-label { left: auto; right: 20px; }
[dir="rtl"] .timeline article::before { left: auto; right: 0; }
[dir="rtl"] .timeline article::after { left: 0; right: 14px; }
[dir="rtl"] .motion-ready [data-sal="slide-right"] { transform: translateX(20px); }
[dir="rtl"] .logo-cell, [dir="rtl"] .feature-card, [dir="rtl"] .feature-grid > .included-card { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .logo-cell:last-child, [dir="rtl"] .feature-card:last-child, [dir="rtl"] .feature-grid > .included-card:last-child { border-left: 0; }
@media (max-width: 1100px) {
  [dir="rtl"] .nav-links { right: auto; left: 0; transform: translateX(-110%); }
  [dir="rtl"] .nav-links.open { transform: none; }
  [dir="rtl"] .feature-card:nth-child(2n), [dir="rtl"] .feature-grid > .included-card:nth-child(2n) { border-left: 0; }
}
@media (max-width: 820px) {
  [dir="rtl"] .logo-cell:nth-child(2n), [dir="rtl"] .logo-cell:first-child { border-left: 0; }
  [dir="rtl"] .feature-card, [dir="rtl"] .feature-grid > .included-card { border-left: 0; }
  [dir="rtl"] .timeline article::after, [dir="rtl"] .timeline article:nth-child(3)::after { left: auto; right: 8px; }
  [dir="rtl"] .stat-sticker { left: 5px; right: auto; }
}
@media (max-width: 580px) {
  [dir="rtl"] .floating-note { left: 10px; right: auto; }
}

/* ---------- Language switch (header, always visible) ---------- */
.hst-lang-switch { order: 2; margin-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid #8faabd; border-radius: 10px; color: var(--navy); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.hst-lang-switch svg { width: 20px; height: 20px; flex: none; }
.hst-lang-switch:hover { background: var(--soft); }
.hst-lang-switch:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hst-lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; font-weight: 700; }
.navbar .nav-links { order: 1; }
.navbar .nav-toggle { order: 3; }
@media (max-width: 1100px) {
  .hst-lang-switch { margin-inline-start: auto; margin-inline-end: 10px; }
}

/* ---------- Homepage hero photo (owner's truck) ---------- */
.hst-hero-ar { object-position: 30% 70%; }
.hst-hero-en { object-position: 60% 65%; }
.hero:has(.hst-hero-en)::before { background: linear-gradient(90deg, rgba(5, 35, 58, 0.92) 0%, rgba(7, 44, 70, 0.62) 45%, rgba(7, 44, 70, 0.08) 100%); }
[dir="rtl"] .hero:has(.hst-hero-ar)::before { background: linear-gradient(270deg, rgba(5, 35, 58, 0.92) 0%, rgba(7, 44, 70, 0.62) 45%, rgba(7, 44, 70, 0.08) 100%); }
@media (max-width: 820px) {
  .hero:has(.hst-hero-en)::before, [dir="rtl"] .hero:has(.hst-hero-ar)::before { background: linear-gradient(180deg, rgba(5, 35, 58, 0.30) 0%, rgba(5, 35, 58, 0.62) 40%, rgba(5, 35, 58, 0.90) 75%); }
  .hst-hero-ar, .hst-hero-en { object-position: 22% 30%; }
  .hero h1, .hero .eyebrow { text-shadow: 0 2px 14px rgba(3, 20, 34, 0.55); }
}

/* ---------- Contact block without the form ---------- */
.contact-grid { grid-template-columns: 1fr; max-width: 860px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.contact-card--wa .icon-box { background: #0F7A4A; color: #fff; }

/* ---------- Useful resources block (location pages) ---------- */
.hst-resources { padding-block: 28px; }
.hst-res-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.hst-res-list a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); font-weight: 700; text-underline-offset: 3px; }
.hst-res-list a::before { content: "97"; color: var(--accent-text); }
[dir="rtl"] .hst-res-list a::before { content: "96"; }

/* ---------- Thin newsletter strip (above the footer) ---------- */
.hst-news { background: var(--soft); border-top: 1px solid var(--line); padding: 26px 0; }
.hst-news form { display: grid; grid-template-columns: minmax(220px, 1.1fr) 1fr 1fr auto; gap: 10px 12px; align-items: center; }
.hst-news .hst-news-copy strong { display: block; color: var(--navy); font-size: 17px; }
.hst-news .hst-news-copy span { display: block; color: var(--muted); font-size: 14px; }
.hst-news input[type="email"], .hst-news input[type="tel"] { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #b9cbd8; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.hst-news input[type="tel"] { direction: ltr; }
html[lang="ar"] .hst-news input[type="tel"] { text-align: right; }
.hst-news button { min-height: 48px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.hst-news button:disabled { opacity: .6; }
.hst-news input:focus-visible, .hst-news button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hst-news .hst-consent { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.hst-news .hst-consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hst-news .hst-msg { grid-column: 1 / -1; margin: 0; min-height: 1.2em; font-size: 14px; font-weight: 700; color: var(--success); }
.hst-news .hst-msg.is-error { color: #b42318; }
.hst-news .hst-hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 820px) { .hst-news form { grid-template-columns: 1fr 1fr; } .hst-news .hst-news-copy { grid-column: 1 / -1; } .hst-news button { grid-column: 1 / -1; } }
@media (max-width: 480px) { .hst-news form { grid-template-columns: 1fr; } }

/* ---------- Floating call pill + WhatsApp button (bottom right, every screen size) ---------- */
.hst-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.hst-float a { pointer-events: auto; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hst-call { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 7px 22px 7px 7px; background: var(--navy-deep); color: #fff; border-radius: 999px; box-shadow: 0 14px 34px rgba(8, 42, 69, 0.32); transition: transform .18s ease, box-shadow .18s ease; }
.hst-call:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(8, 42, 69, 0.38); }
.hst-call:focus-visible, .hst-wa:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hst-call__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); }
.hst-call__icon svg { width: 22px; height: 22px; }
.hst-call__txt { display: flex; flex-direction: column; line-height: 1.15; }
.hst-call__txt small { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.hst-call__txt strong { font-size: 17px; font-weight: 800; letter-spacing: 0.2px; direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .hst-call__txt { align-items: flex-end; }
html[lang="ar"] .hst-call { flex-direction: row-reverse; padding: 7px 7px 7px 22px; }
.hst-wa { display: grid; place-items: center; width: 54px; height: 54px; margin-inline-end: 3px; border-radius: 50%; background: #0F7A4A; color: #fff; box-shadow: 0 12px 28px rgba(15, 122, 74, 0.35); transition: transform .18s ease; }
.hst-wa:hover { transform: translateY(-2px); }
.hst-wa svg { width: 28px; height: 28px; }
@media (max-width: 480px) {
  .hst-call { min-height: 54px; gap: 10px; padding-inline-end: 16px; }
  .hst-call__icon { width: 40px; height: 40px; }
  .hst-call__txt strong { font-size: 15px; }
  .hst-wa { width: 50px; height: 50px; }
}
body.menu-open .hst-float { display: none; }
/* Keep the last lines of the page clear of the floating buttons */
.footer-bottom { padding-bottom: 96px; }
@media (prefers-reduced-motion: reduce) { .hst-call, .hst-wa { transition: none; } }
