/* ==========================================================================
   Auto Fraction S.A.R.L — Modern Automotive Workshop & Parts Design System
   Brand Palette: Royal Cobalt (#0140AA), Signal Yellow (#FED403), Navy (#071B3E)
   ========================================================================== */

:root {
  --blue-brand: #0140AA;
  --blue-hover: #013182;
  --blue-deep: #071B3E;
  --blue-panel: #0D2654;
  --yellow-signal: #FED403;
  --yellow-hover: #E9C000;
  --surface-white: #FFFFFF;
  --surface-bay: #F3F5F8;
  --border-subtle: #DCE3EE;
  --border-dark: rgba(255, 255, 255, 0.16);
  --ink-strong: #0B192C;
  --ink-body: #334155;
  --ink-muted: #5B6B82;
  --status-open: #16A34A;
  --status-closed: #DC2626;
  --whatsapp: #189D4C;
  --whatsapp-hover: #13823E;

  --font-display: 'Barlow Condensed', 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container-max: 1180px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-body);
  background-color: var(--surface-white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow-signal);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-inline-start: 12px;
  top: 12px;
  transform: translateY(-200%);
  background: var(--yellow-signal);
  color: var(--blue-deep);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
}

/* Typography */
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.9rem, 3.1vw, 2.65rem);
  font-weight: 800;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

p {
  margin: 0;
  max-width: 68ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--yellow {
  background: var(--yellow-signal);
  color: var(--blue-deep);
}

.btn--yellow:hover {
  background: var(--yellow-hover);
}

.btn--primary {
  background: var(--blue-brand);
  color: var(--surface-white);
}

.btn--primary:hover {
  background: var(--blue-hover);
}

.btn--outline-light {
  background: transparent;
  color: var(--surface-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--surface-white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--blue-brand);
  border-color: var(--blue-brand);
}

.btn--outline-dark:hover {
  background: var(--blue-brand);
  color: var(--surface-white);
}

/* Top Utility Bar */
.topbar {
  background: var(--blue-deep);
  color: #D9E4F5;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-block: 6px;
}

.topbar__info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: #FFFFFF;
}

.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-open);
}

.status-pill.is-closed .status-pill__dot {
  background: var(--status-closed);
}

.topbar__address {
  color: #B8CAE6;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar__link {
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
}

.topbar__link:hover {
  color: var(--yellow-signal);
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-subtle);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-brand);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-strong);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--blue-brand);
  border-bottom-color: var(--yellow-signal);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language Switcher (FR / EN / AR) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface-bay);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.lang-switch__btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.lang-switch__btn:hover {
  color: var(--blue-brand);
}

.lang-switch__btn.is-active {
  background: var(--blue-brand);
  color: var(--surface-white);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: var(--surface-bay);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--blue-deep);
}

.mobile-nav {
  background: var(--surface-white);
  border-top: 1px solid var(--border-subtle);
  padding-block: 16px 22px;
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav__link {
  padding: 10px 4px;
  font-weight: 600;
  color: var(--ink-strong);
  border-bottom: 1px solid var(--surface-bay);
}

.mobile-nav__actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-brand) 100%);
  color: var(--surface-white);
  padding-block: 60px 68px;
  border-bottom: 4px solid var(--yellow-signal);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.hero__location {
  display: inline-block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--yellow-signal);
  margin-bottom: 14px;
}

.hero__title {
  color: var(--surface-white);
  margin-bottom: 18px;
}

.hero__lead {
  color: #DCE7F9;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--border-dark);
}

.hero__fact dt {
  font-size: 0.78rem;
  color: #A9C2EB;
  margin-bottom: 3px;
}

.hero__fact dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--surface-white);
}

/* Architectural Workshop Panel in Hero */
.bay-card {
  background: var(--blue-deep);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.bay-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.bay-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--surface-white);
}

.bay-card__tag {
  background: var(--yellow-signal);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.bay-card__graphic {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bay-card__graphic svg {
  width: 100%;
  height: auto;
}

.bay-card__pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.pillar-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pillar-chip:hover {
  background: rgba(254, 212, 3, 0.14);
  border-color: var(--yellow-signal);
}

.pillar-chip strong {
  color: var(--surface-white);
  font-size: 0.92rem;
}

.pillar-chip span {
  color: #B8CAE6;
  font-size: 0.8rem;
}

/* Sections */
.section {
  padding-block: 76px;
}

.section--white {
  background: var(--surface-white);
}

.section--bay {
  background: var(--surface-bay);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section--navy {
  background: var(--blue-deep);
  color: #DCE7F9;
}

.section--navy h2,
.section--navy h3 {
  color: var(--surface-white);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.section-head__text h2 {
  margin-bottom: 10px;
}

.section-head__text p {
  color: var(--ink-muted);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: #EBF2FF;
  color: var(--blue-brand);
  margin-bottom: 16px;
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.94rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
  flex: 1;
}

.service-card__cta {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  color: var(--blue-brand);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid var(--yellow-signal);
  padding-bottom: 2px;
}

.service-card__cta:hover {
  color: var(--blue-deep);
}

/* Catalog Search & Parts */
.catalog-search {
  width: min(100%, 340px);
}

.catalog-search__input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #B9C6DA;
  border-radius: var(--radius-sm);
  background: var(--surface-white);
  color: var(--ink-strong);
  font-size: 0.95rem;
}

.catalog-search__input:focus {
  border-color: var(--blue-brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 64, 170, 0.15);
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 42px;
}

.part-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--blue-brand);
  border-radius: var(--radius-md);
  padding: 20px;
}

.part-card.is-hidden,
.brand-tile.is-hidden {
  display: none;
}

.part-card__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-brand);
  background: #EBF2FF;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.part-card h3 {
  margin-bottom: 8px;
}

.part-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Brands Grid */
.brands-block {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.brands-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.brands-block__head p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.brand-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  background: var(--surface-bay);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.brand-tile:hover {
  border-color: var(--blue-brand);
  background: #EBF2FF;
}

.brand-tile--partner {
  border-left: 4px solid var(--yellow-signal);
}

.brand-tile__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-strong);
}

.brand-tile__type {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* Atelier Section */
.atelier__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
}

.atelier__content h2 {
  margin-bottom: 18px;
}

.atelier__content p {
  margin-bottom: 14px;
  color: #CFE0F7;
}

.atelier__content strong {
  color: var(--surface-white);
}

.atelier__list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.atelier__list li {
  position: relative;
  padding-left: 24px;
  color: var(--surface-white);
  font-weight: 500;
}

.atelier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--yellow-signal);
}

.spec-box {
  background: var(--blue-panel);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.spec-box h3 {
  margin-bottom: 18px;
}

.spec-rows {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.94rem;
}

.spec-row__label {
  color: #A9C2EB;
}

.spec-row__value {
  color: var(--surface-white);
  font-weight: 700;
  text-align: right;
}

.review-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px;
  background: rgba(254, 212, 3, 0.1);
  border: 1px solid rgba(254, 212, 3, 0.35);
  border-radius: var(--radius-md);
}

.review-callout strong {
  display: block;
  color: var(--surface-white);
  margin-bottom: 4px;
}

.review-callout p {
  font-size: 0.88rem;
  color: #DCE7F9;
}

/* FAQ Section */
.faq__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.faq__intro h2 {
  margin-bottom: 12px;
}

.faq__intro p {
  color: var(--ink-muted);
  margin-bottom: 22px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface-bay);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.faq-item__q {
  font-weight: 700;
  color: var(--ink-strong);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-brand);
  line-height: 1;
}

.faq-item[open] .faq-item__q::after {
  content: "−";
}

.faq-item__a {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  color: var(--ink-body);
  font-size: 0.95rem;
}

.faq-item__a a {
  color: var(--blue-brand);
  font-weight: 700;
  text-decoration: underline;
}

/* Contact Section */
.contact__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.devis-form,
.info-card,
.map-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.devis-form {
  padding: 30px;
}

.devis-form h3 {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-strong);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #C6D1E2;
  border-radius: var(--radius-sm);
  background: var(--surface-white);
  color: var(--ink-strong);
  font-size: 0.95rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 64, 170, 0.14);
}

.form-feedback {
  min-height: 22px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--blue-brand);
}

.form-feedback.is-error {
  color: var(--status-closed);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact__info {
  display: grid;
  gap: 20px;
}

.info-card {
  padding: 26px;
}

.info-card h3 {
  margin-bottom: 16px;
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.contact-list dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.contact-list dd {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink-strong);
}

.contact-list a {
  color: var(--blue-brand);
}

.contact-list a:hover {
  text-decoration: underline;
}

.map-card {
  overflow: hidden;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 250px;
  border: 0;
}

.map-card__link {
  display: block;
  padding: 13px 18px;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue-brand);
  background: var(--surface-white);
  border-top: 1px solid var(--border-subtle);
}

.map-card__link:hover {
  background: #EBF2FF;
}

/* Footer */
.site-footer {
  background: var(--blue-deep);
  color: #C7D7EE;
  padding-top: 56px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border-dark);
}

.footer__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--yellow-signal);
  margin-bottom: 10px;
}

.footer__brand p,
.footer__col p {
  font-size: 0.9rem;
  color: #B8CAE6;
  margin-bottom: 8px;
}

.footer__col h3 {
  color: var(--surface-white);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer__col a {
  font-size: 0.9rem;
  color: #C7D7EE;
}

.footer__col a:hover {
  color: var(--yellow-signal);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 18px 28px;
  padding-right: 150px;
  font-size: 0.84rem;
  color: #93ACD2;
}

/* Floating WhatsApp Button */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--whatsapp);
  color: var(--surface-white);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(7, 27, 62, 0.28);
}

.whatsapp-fab:hover {
  background: var(--whatsapp-hover);
}

/* Arabic RTL Typography & Directional Adjustments */
html[dir="rtl"] body {
  font-family: 'Cairo', var(--font-body);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .bay-card__title,
html[dir="rtl"] .brand-tile__name {
  font-family: 'Cairo', var(--font-display);
  letter-spacing: 0;
  line-height: 1.22;
}

html[dir="rtl"] .atelier__list li {
  padding-left: 0;
  padding-right: 24px;
}

html[dir="rtl"] .atelier__list li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .brand-tile {
  text-align: right;
}

html[dir="rtl"] .brand-tile--partner {
  border-left: 1.5px solid var(--border-subtle);
  border-right: 4px solid var(--yellow-signal);
}

html[dir="rtl"] .spec-row__value {
  text-align: left;
}

html[dir="rtl"] .whatsapp-fab {
  right: auto;
  left: 20px;
}

html[dir="rtl"] .footer__bottom {
  padding-right: 0;
  padding-left: 150px;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .nav__list {
    gap: 16px;
  }

  .header__quote-btn {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero__grid,
  .atelier__grid,
  .faq__layout,
  .contact__grid {
    grid-template-columns: 1fr;
  }

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

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

  .brands-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 960px) {
  .nav,
  .header__quote-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .topbar__address,
  .topbar__link--hide-sm {
    display: none;
  }

  .header__inner {
    min-height: 66px;
    gap: 10px;
  }

  .brand__sub {
    display: none;
  }

  .brand__name {
    font-size: 1.25rem;
  }

  .hero {
    padding-block: 36px 44px;
  }

  .hero__actions .btn,
  .form-actions .btn {
    width: 100%;
  }

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

  .bay-card__pillars {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 52px;
  }

  .devis-form,
  .info-card,
  .brands-block,
  .spec-box {
    padding: 20px;
  }

  .services-grid,
  .parts-grid,
  .form-row,
  .footer__grid {
    grid-template-columns: 1fr;
  }

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

  .footer__bottom,
  html[dir="rtl"] .footer__bottom {
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 76px;
  }

  .whatsapp-fab span {
    display: none;
  }

  .whatsapp-fab {
    padding: 14px;
  }
}

@media (max-width: 400px) {
  .brand__mark svg {
    width: 32px;
    height: 32px;
  }

  .lang-switch__btn {
    padding: 5px 6px;
    font-size: 0.72rem;
  }
}
