/* Shared refinements for the showroom's customer-facing pages. */
:root {
  --p-ink: #211f1b;
  --p-soft-ink: #48433c;
  --p-muted: #6d6860;
  --p-canvas: #f8f6f2;
  --p-dark: #171715;
  --p-green: #24211d;
  --plate-green: #24211d;
  --plate-brand: #171715;
  --sf-success: #24211d;
}

/* The inline icon library must not reserve a 300 × 150 box after the footer. */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.storefront-body .finance-promo,
.storefront-body .finance-promo--compact,
.public-body .finance-promo,
.public-body .finance-promo--compact,
.public-body .plate-contact-card {
  background: #171715;
}

.storefront-body .finance-promo h2,
.public-body .finance-promo h2 {
  font-weight: 450;
  line-height: 1.6;
}

.contact-body .dealer-contact-hero {
  background: radial-gradient(circle at 88% 0, rgb(196 155 88 / 11%), transparent 19rem), #171715;
}

.contact-body .dealer-contact-hero p {
  color: #ded9d0;
}

.raid-home-page .home-location,
.contact-body .dealer-location-section {
  border: 1px solid #d8c7a9;
  border-radius: 1rem;
  background: radial-gradient(circle at 100% 0, rgb(209 174 113 / 12%), transparent 20rem), #f4f0e8;
  box-shadow: 0 10px 26px rgb(36 29 20 / 5%);
}

.raid-home-page .home-location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  padding: 1.45rem 1.75rem;
}

.raid-home-page .home-location > div:first-child,
.contact-body .dealer-location-section > div:first-child {
  min-width: 0;
  padding-inline-start: 1rem;
  border-inline-start: 2px solid #bd9557;
}

.raid-home-page .home-location .storefront-eyebrow,
.contact-body .dealer-location-section > div > span {
  color: #8c6734;
  font-weight: 500;
}

.raid-home-page .home-location-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(9.5rem, 1fr));
  gap: .65rem;
}

.raid-home-page .home-location-actions a,
.contact-body .dealer-location-section > a {
  min-height: 2.8rem;
  padding: .55rem .9rem;
  border: 1px solid #25221d;
  border-radius: .65rem;
  background: #25221d;
  color: #f8f4ec;
  font-size: .73rem;
  font-weight: 550;
  line-height: 1.5;
  text-align: center;
}

.raid-home-page .home-location-actions a:last-child {
  border-color: #cbb898;
  background: #fffaf2;
  color: #342b20;
}

.raid-home-page .home-location-actions a:hover,
.contact-body .dealer-location-section > a:hover {
  border-color: #a5793c;
  background: #3a3023;
  color: #fff;
}

.raid-home-page .home-location-actions a:last-child:hover {
  border-color: #a5793c;
  background: #f1e6d2;
  color: #2b231a;
}

.contact-body .dealer-location-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  padding: 1.45rem 1.75rem;
}

.plate-status-pill {
  background: #f5ecdc;
  color: #473a27;
}

.plate-card-price strong,
.plate-detail-price > strong {
  color: #29231b;
  font-weight: 550;
}

.storefront-body,
.public-body,
.finance-page {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-weight: 400;
}

.storefront-body :is(h1, h2),
.plate-public-body :is(h1, h2),
.finance-page :is(h1, h2) {
  font-weight: 550;
  line-height: 1.65;
}

.storefront-header,
.public-header,
.finance-header {
  background: #171715;
  border-block-end-color: #302b25;
}

.storefront-header .raid-brand-logo,
.public-header .raid-brand-logo {
  width: auto;
  min-height: 3rem;
  flex: 0 0 auto;
  justify-content: flex-start;
}

.storefront-header .raid-brand-logo .raid-brand-symbol,
.public-header .raid-brand-logo .raid-brand-symbol {
  width: 5.1rem;
  height: 2.45rem;
}

.storefront-header .raid-brand-logo .raid-brand-custom,
.public-header .raid-brand-logo .raid-brand-custom {
  width: 5.7rem !important;
  height: 2.6rem !important;
}

.storefront-body .vehicle-card-badge.is-recent {
  padding: .3rem .6rem;
  border: 1px solid rgb(206 169 104 / 75%);
  border-radius: .55rem;
  background: rgb(22 21 19 / 88%);
  color: #f7e7c8;
  box-shadow: 0 3px 12px rgb(0 0 0 / 13%);
  font-weight: 500;
  letter-spacing: 0;
}

.storefront-body .vehicle-card-price strong {
  color: #2b261d;
  font-weight: 550;
}

.storefront-body .vehicle-card h3 {
  font-weight: 600;
  line-height: 1.65;
}

/* One shared footer: readable in LTR/RTL and evenly spaced on narrow phones. */
.showroom-footer {
  width: 100%;
  margin-block-start: 2rem;
  padding: clamp(1.6rem, 3.5vw, 2.65rem) max(1rem, env(safe-area-inset-right)) 1rem max(1rem, env(safe-area-inset-left));
  background: #171715;
  color: #f4f0e9;
  border-block-start: 1px solid #413625;
}

.showroom-footer * { box-sizing: border-box; }

.showroom-footer__inner,
.showroom-footer__bottom {
  width: min(100%, 78rem);
  margin-inline: auto;
}

.showroom-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(9rem, .7fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.2rem, 3vw, 3rem);
}

.showroom-footer__identity { min-width: 0; }
.showroom-footer__identity > a { display: inline-block; max-width: 100%; }
.showroom-footer__identity img.raid-footer-logo {
  display: block;
  width: min(16rem, 100%);
  height: 6.7rem;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
}
.showroom-footer__identity img.raid-footer-custom {
  display: block;
  width: min(12rem, 100%);
  max-height: 6rem;
  object-fit: contain;
}
.showroom-footer__identity p {
  max-width: 28rem;
  margin: .35rem 0 0;
  color: #bcb7af;
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.9;
}

.showroom-footer__links,
.showroom-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .48rem;
  min-width: 0;
}

.showroom-footer__links > span,
.showroom-footer__contact > span {
  margin-block-end: .2rem;
  color: #dfc18c;
  font-size: .78rem;
  font-weight: 600;
}

.showroom-footer__links > a {
  color: #ddd8cf;
  text-decoration: none;
  font-size: .77rem;
  font-weight: 400;
  line-height: 1.8;
}
.showroom-footer__links > a:hover { color: #f6dfaf; }

.showroom-footer__contact p {
  margin: 0;
  color: #d0cac0;
  font-size: .76rem;
  font-weight: 400;
  line-height: 1.95;
}

.showroom-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block-start: .3rem;
}
.showroom-footer__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.6rem;
  padding: .45rem .75rem;
  border: 1px solid #64553e;
  border-radius: .7rem;
  background: #24221e;
  color: #f5e3c1;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 500;
  white-space: nowrap;
}
.showroom-footer__actions a:hover { background: #302b22; border-color: #bd9862; }
.showroom-footer__actions svg,
.showroom-footer__social svg { width: 1rem; height: 1rem; fill: currentColor; flex: none; }

.showroom-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-block-start: 1.4rem;
  padding-block-start: .95rem;
  border-block-start: 1px solid rgb(255 255 255 / 12%);
}
.showroom-footer__bottom small {
  color: #a9a39a;
  font-size: .66rem;
  font-weight: 400;
  line-height: 1.8;
}
.showroom-footer__social {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.showroom-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.5rem;
  padding: .4rem .7rem;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: .65rem;
  color: #e9e1d3;
  background: rgb(255 255 255 / 5%);
  text-decoration: none;
  font-size: .67rem;
  font-weight: 450;
  white-space: nowrap;
}
.showroom-footer__social a:hover { border-color: #b79762; color: #f6dfaf; }

.finance-main { padding-block-end: 1.5rem; }
.finance-page .showroom-footer { margin-block-start: 0; }

@media (max-width: 51.99rem) {
  .raid-home-page .home-location,
  .contact-body .dealer-location-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem;
  }
  .raid-home-page .home-location-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .contact-body .dealer-location-section > a { width: 100%; }
  body:is(.storefront-body,.public-body,.finance-page),
  .storefront-body.has-floating-actions {
    padding-block-end: 0;
  }
  .showroom-footer {
    margin-block-start: 1.5rem;
    padding-block-end: calc(4.65rem + env(safe-area-inset-bottom));
  }
  .finance-page .showroom-footer { margin-block-start: 0; }
  .storefront-header .storefront-header-inner,
  .plates-index-header .storefront-header-inner {
    justify-content: space-between !important;
  }
  .storefront-header .raid-brand-logo,
  .plates-index-header .raid-brand-logo,
  .public-header .raid-brand-logo {
    position: static;
    inset: auto;
    transform: none;
    width: auto;
    min-height: 2.8rem;
    margin: 0;
  }
  .storefront-header .raid-brand-logo .raid-brand-symbol,
  .plates-index-header .raid-brand-logo .raid-brand-symbol,
  .public-header .raid-brand-logo .raid-brand-symbol {
    width: 4.6rem;
    height: 2.25rem;
  }
  .storefront-header .raid-brand-logo .raid-brand-custom,
  .public-header .raid-brand-logo .raid-brand-custom {
    width: 4.9rem !important;
    height: 2.3rem !important;
  }
  .showroom-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; text-align: center; }
  .showroom-footer__identity,
  .showroom-footer__links,
  .showroom-footer__contact { align-items: center; }
  .showroom-footer__identity img { margin-inline: auto; }
  .showroom-footer__identity p { margin-inline: auto; }
  .showroom-footer__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem .4rem; width: 100%; }
  .showroom-footer__links > span { grid-column: 1 / -1; }
  .showroom-footer__links > a { text-align: center; }
  .showroom-footer__contact { width: 100%; }
  .showroom-footer__actions { justify-content: center; }
  .showroom-footer__bottom { flex-direction: column; align-items: stretch; margin-block-start: 1.15rem; text-align: center; }
  .showroom-footer__social { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: .45rem; }
  .showroom-footer__social a { display: flex; flex-direction: column; justify-content: center; gap: .2rem; min-width: 0; min-height: 3.15rem; padding: .3rem .18rem; font-size: .59rem; }
  .showroom-footer__social svg { width: 1.1rem; height: 1.1rem; }
}

@media (max-width: 35rem) {
  .raid-home-page .home-location-actions { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 21rem) {
  .showroom-footer__social a { font-size: .52rem; }
  .showroom-footer__actions a { font-size: .65rem; }
}

@media print {
  .showroom-footer { display: none !important; }
}

/* "تم البيع" rubber stamp: car cards and the sold car page (2026-10-21). */
.raid-sold-stamp {
  position: absolute;
  z-index: 2;
  top: 38%;
  left: 50%;
  padding: .35em .9em;
  border: .2em double #d32f2f;
  border-radius: .45em;
  background: rgb(255 255 255 / 12%);
  color: #e53935;
  font-size: clamp(1.05rem, 4.6vw, 1.6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
  text-shadow: none;
  transform: translate(-50%, -50%) rotate(-14deg);
  box-shadow: 0 0 0 .12em rgb(211 47 47 / 25%);
  backdrop-filter: blur(1px);
  pointer-events: none;
}
.vehicle-card.is-sold .vehicle-card-media img { filter: grayscale(.55) brightness(.85); }
.vehicle-card.is-sold .vehicle-card-price strong { color: #ef9a9a; }
.public-sold-photo { position: relative; overflow: hidden; margin: 0 0 1.1rem; border-radius: 1rem; }
.public-sold-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(.5) brightness(.9); }
.public-sold-photo .raid-sold-stamp { top: 50%; font-size: clamp(1.6rem, 7vw, 2.6rem); background: rgb(255 255 255 / 70%); }

/* Snapchat + TikTok follow buttons beside the language picker (2026-10-21). */
.header-social { display: flex; flex: 0 0 auto; align-items: center; gap: .4rem; }
.header-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.header-social a:hover,
.header-social a:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / 25%); }
.header-social svg { width: 22px; height: 22px; fill: currentColor; }
.header-social .is-snap { background: #fffc00; color: #111; }
.header-social .is-tiktok { border: 1px solid #565b52; background: #111; color: #fff; }
@media (max-width: 47.99rem) {
  .header-social { margin-inline-start: auto; }
  .header-social + .language-picker { margin-inline-start: 0; }
  .header-social a { width: 38px; height: 38px; }
  .header-social svg { width: 20px; height: 20px; }
}
