/* Website builder: per-section styles and the sections owners can add.
   Everything here is keyed on classes/attributes the builder writes, so pages that use
   none of it look exactly as before. */

/* ── Section wrapper (layout-neutral) ───────────────────────── */
.wk-sec { display: contents; }

@media (max-width: 768px) {
  .wk-sec[data-vis='desktop'] { display: none; }
}
@media (min-width: 769px) {
  .wk-sec[data-vis='mobile'] { display: none; }
}

.wk-sec[data-bg] > * { background: var(--wk-sec-bg) !important; }

.wk-sec[data-tone='light'] > * { color: #fff; }
.wk-sec[data-tone='light'] :is(
  .section__title, .section__link, .product-card__title, .product-card__title a, .product-card__price,
  .product-card__category, .trust-card__title, .trust-card__text, .blog-card__title, .blog-card__excerpt,
  .wk-block__heading, .wk-text__body, .wk-feature__title, .wk-feature__text, .wk-tile__name, .wk-faq__item summary,
  .wk-faq__answer, .wk-gallery__caption, .wk-cta__title, .wk-cta__text, .vehicle-filter__title
) { color: #fff !important; }
.wk-sec[data-tone='light'] .section-eyebrow { color: rgba(255, 255, 255, 0.78) !important; }
.wk-sec[data-tone='light'] .wk-faq__item { border-color: rgba(255, 255, 255, 0.25); }
.wk-sec[data-tone='light'] .btn--ghost { color: #fff; border-color: #fff; }

.wk-sec[data-space='none'] > * { padding-top: 0 !important; padding-bottom: 0 !important; }
.wk-sec[data-space='compact'] > * { padding-top: 32px !important; padding-bottom: 32px !important; }
.wk-sec[data-space='large'] > * { padding-top: 120px !important; padding-bottom: 120px !important; }

@media (min-width: 769px) {
  .wk-sec[data-height='small'] > .hero { height: 440px; }
  .wk-sec[data-height='medium'] > .hero { height: 600px; }
  .wk-sec[data-height='large'] > .hero { height: 760px; }
  .wk-sec[data-height='screen'] > .hero { height: calc(100svh - 104px); min-height: 520px; }
  .wk-sec[data-height='small'] > .wk-banner--overlay { min-height: 360px; }
  .wk-sec[data-height='medium'] > .wk-banner--overlay { min-height: 520px; }
  .wk-sec[data-height='large'] > .wk-banner--overlay { min-height: 680px; }
  .wk-sec[data-height='screen'] > .wk-banner--overlay { min-height: calc(100svh - 104px); }
  .wk-sec[data-height] > .hero .hero__inner { padding-top: 0; align-items: center; }
}

.wk-sec[data-align='center'] :is(.hero__inner, .wk-banner__inner) { justify-content: center; }
.wk-sec[data-align='center'] :is(.hero__content, .wk-banner__content) {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}
.wk-sec[data-align='center'] :is(.hero__title, .hero__text, .wk-banner__text) { margin-inline: auto; }
.wk-sec[data-align='center'] :is(.hero__actions, .wk-actions) { justify-content: center; }

/* ── Shared pieces of added sections ────────────────────────── */
.wk-pre { white-space: pre-line; }
.wk-narrow { max-width: 860px; }
.wk-narrow--wide { max-width: 1040px; }
.wk-block__head { margin-bottom: 40px; }
.wk-block__head--start { text-align: start; }
.wk-block__head--start .section__title { text-align: start; }
.wk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.wk-actions:empty { display: none; }
.wk-actions--center { justify-content: center; margin-top: 40px; }
.wk-btn { min-height: 52px; padding: 0 28px; border-radius: 0; text-transform: uppercase; }

/* Text */
.wk-text--center { text-align: center; }
.wk-text--center .wk-actions { justify-content: center; }
.wk-text--center .wk-block__head { margin-bottom: 20px; }
.wk-text__body { margin: 0 auto; max-width: 720px; font-size: 18px; line-height: 1.7; color: var(--color-text-muted); }
.wk-text--start .wk-text__body { margin: 0; }

/* Image banner */
.wk-banner { position: relative; overflow: hidden; background: var(--color-navy, #2c3e50); }
.wk-banner--overlay { display: flex; align-items: center; min-height: 480px; }
.wk-banner--overlay .wk-banner__media { position: absolute; inset: 0; }
.wk-banner--overlay .wk-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.wk-banner--overlay .wk-banner__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 30, 40, 0.82) 0%, rgba(20, 30, 40, 0.5) 50%, rgba(20, 30, 40, 0.25) 100%);
}
[dir='rtl'] .wk-banner--overlay .wk-banner__media::after {
  background: linear-gradient(240deg, rgba(20, 30, 40, 0.82) 0%, rgba(20, 30, 40, 0.5) 50%, rgba(20, 30, 40, 0.25) 100%);
}
.wk-banner__inner { position: relative; z-index: 1; display: flex; padding-top: 64px; padding-bottom: 64px; }
.wk-banner__content { display: flex; flex-direction: column; align-items: flex-start; max-width: 620px; }
.wk-banner--overlay .wk-banner__content { color: #fff; }
.wk-banner__title { margin: 0 0 16px; font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: -0.5px; }
.wk-banner--overlay .wk-banner__title { color: #fff; }
.wk-banner__text { margin: 0; font-size: 18px; line-height: 1.6; }
.wk-banner--overlay .wk-banner__text { color: #e0e3e5; }
.wk-banner--overlay .section-eyebrow { color: rgba(255, 255, 255, 0.8); }
.wk-banner--left, .wk-banner--right { background: var(--color-white, #fff); }
.wk-banner--left, .wk-banner--right { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.wk-banner--right .wk-banner__media { order: 2; }
.wk-banner--left .wk-banner__media img, .wk-banner--right .wk-banner__media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.wk-banner--left .wk-banner__inner, .wk-banner--right .wk-banner__inner { align-items: center; padding: 64px 56px; max-width: none; }
.wk-banner--left .wk-banner__title, .wk-banner--right .wk-banner__title { color: var(--color-navy, #2c3e50); }
.wk-banner--left .wk-banner__text, .wk-banner--right .wk-banner__text { color: var(--color-text-muted); }
.wk-banner--no-image { display: block; }
.wk-banner--no-image .wk-banner__title { color: #fff; }

/* Category tiles */
.wk-tiles { display: grid; grid-template-columns: repeat(var(--wk-cols, 4), minmax(0, 1fr)); gap: 20px; }
.wk-tile { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--color-navy, #2c3e50); }
.wk-tile__media { display: block; width: 100%; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--color-border-accent, #e4beba); overflow: hidden; }
.wk-tile__media { display: grid; place-items: center; }
.wk-tile__placeholder { width: 34%; height: 34%; color: var(--color-border-accent, #e4beba); }
.wk-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.wk-tile:hover .wk-tile__media img { transform: scale(1.04); }
.wk-tiles--circle .wk-tile__media { border-radius: 50%; max-width: 220px; }
.wk-tiles--circle .wk-tile { align-items: center; text-align: center; }
.wk-tile__name { font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.wk-tile:hover .wk-tile__name { color: var(--color-primary, #d42f33); }

/* Features */
.wk-features { display: grid; grid-template-columns: repeat(var(--wk-cols, 3), minmax(0, 1fr)); gap: 24px; }
.wk-feature { padding: 28px 24px; background: var(--color-white, #fff); border: 1px solid var(--color-border, #e0e3e5); }
.wk-sec[data-bg] .wk-feature { background: rgba(255, 255, 255, 0.06); border-color: rgba(127, 127, 127, 0.25); }
.wk-feature__icon { width: 48px; height: 48px; object-fit: contain; margin-bottom: 16px; }
.wk-feature__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--color-navy, #2c3e50); }
.wk-feature__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-text-muted); }

/* Questions & answers */
.wk-faq { border-top: 1px solid var(--color-border, #e0e3e5); }
.wk-faq__item { border-bottom: 1px solid var(--color-border, #e0e3e5); }
.wk-faq__item summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-navy, #2c3e50);
}
.wk-faq__item summary::-webkit-details-marker { display: none; }
.wk-faq__item summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--color-primary, #d42f33); }
.wk-faq__item[open] summary::after { content: '−'; }
.wk-faq__answer { margin: 0; padding: 0 4px 20px; font-size: 16px; line-height: 1.7; color: var(--color-text-muted); }

/* Call to action */
.wk-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.wk-cta__copy { flex: 1 1 420px; }
.wk-cta__title { margin: 0 0 8px; font-size: 32px; line-height: 1.25; font-weight: 700; color: var(--color-navy, #2c3e50); }
.wk-cta__text { margin: 0; font-size: 18px; line-height: 1.6; color: var(--color-text-muted); }
.wk-cta .wk-actions { margin-top: 0; }
.wk-sec[data-tone='light'] .wk-block--cta .wk-btn { background: #fff; color: var(--color-navy, #2c3e50); border-color: #fff; }
.wk-sec[data-bg='brand'] .wk-block--cta .wk-btn { color: var(--color-primary, #d42f33); }

/* Video */
.wk-video__text { margin-bottom: 28px; text-align: center; }
.wk-video__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #0f172a;
  cursor: pointer;
  overflow: hidden;
}
.wk-video__frame img { width: 100%; height: 100%; object-fit: cover; }
.wk-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wk-video__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-primary, #d42f33);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.wk-video__frame:hover .wk-video__play { transform: translate(-50%, -50%) scale(1.08); }

/* Gallery */
.wk-gallery { display: grid; grid-template-columns: repeat(var(--wk-cols, 3), minmax(0, 1fr)); gap: 16px; }
.wk-gallery__item { margin: 0; }
.wk-gallery__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--color-bg-alt, #f2f4f6); }
.wk-gallery__item a { display: block; }
.wk-gallery__caption { margin-top: 8px; font-size: 14px; color: var(--color-text-muted); }

/* ── Tablets and phones ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .wk-tiles, .wk-gallery { grid-template-columns: repeat(min(var(--wk-cols, 4), 3), minmax(0, 1fr)); }
  .wk-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .wk-block__head { margin-bottom: 24px; }
  .wk-banner--overlay { min-height: 420px; }
  .wk-banner--overlay .wk-banner__media::after { background: rgba(20, 30, 40, 0.68); }
  .wk-banner--left, .wk-banner--right { grid-template-columns: 1fr; }
  .wk-banner--right .wk-banner__media { order: 0; }
  .wk-banner--left .wk-banner__media img, .wk-banner--right .wk-banner__media img { min-height: 240px; max-height: 340px; }
  .wk-banner--left .wk-banner__inner, .wk-banner--right .wk-banner__inner { padding: 32px var(--container-padding, 20px); }
  .wk-banner__title { font-size: 28px; }
  .wk-banner__text, .wk-text__body, .wk-cta__text { font-size: 16px; }
  .wk-cta__title { font-size: 24px; }
  .wk-tiles, .wk-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wk-features { grid-template-columns: 1fr; }
  .wk-faq__item summary { font-size: 16px; }
  .wk-btn { width: 100%; }
}

/* ── Currency menu (next to the language button) and the QAR charge note ── */
.nav__currency { display: inline-flex; align-items: center; }
.nav__currency select {
  -webkit-appearance: none;
  appearance: none;
  height: 32px;
  padding: 0 22px 0 9px;
  border: 1px solid var(--color-border, #e0e3e5);
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 7px center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-navy, #2c3e50);
  cursor: pointer;
}
[dir='rtl'] .nav__currency select { padding: 0 9px 0 22px; background-position: left 7px center; }
.nav__currency select:hover { border-color: var(--color-navy, #2c3e50); }
.nav__currency select:focus-visible { outline: 2px solid var(--color-primary, #d42f33); outline-offset: 1px; }
@media (max-width: 768px) {
  .nav__currency select { height: 30px; padding-inline: 7px 18px; font-size: 11px; background-position: right 5px center; }
  [dir='rtl'] .nav__currency select { padding-inline: 7px 18px; background-position: left 5px center; }
}
.order-summary__charge-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--color-text-muted, #64748b); }
