/* ==========================================================================
   Brikoula home page — 2026 redesign
   Scoped under the bk- prefix and loaded AFTER style.css so it never has to
   fight the older selectors. Tokens come from :root in style.css.
   ========================================================================== */

.bk {
  --bk-max: 1180px;
  --bk-gap: 18px;
  --bk-card-radius: 18px;
  background: var(--cream);
}

.bk-wrap {
  max-width: var(--bk-max);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Section rhythm. Only bk-section owns vertical spacing, so no other rule
   needs to cancel it out. */
.bk-section {
  padding-block: 56px;
}

.bk-section-head {
  text-align: center;
  margin-bottom: 30px;
}

.bk-section-head h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 600;
  margin: 0;
}

.bk-section-sub {
  margin: 10px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}

.bk-accent { color: var(--brand); }
.bk-accent-sky { color: var(--sky); }

.bk-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--bk-card-radius);
  box-shadow: var(--shadow-sm);
}

/* ============================== HERO ============================== */

.bk-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 20%, var(--sky-soft) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #fff 0%, #fbfdff 55%, var(--sky-soft) 100%);
  border-bottom: 1px solid var(--line);
}

/* .navbar is position:fixed and reserves no space, so the hero owns the offset. */
.bk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: center;
  padding-block: 112px 0;
}

.bk-hero h1 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 14px;
  /* style.css gives .hero h1 a gradient text clip; this page opts out. */
  background: none;
  -webkit-text-fill-color: var(--ink);
}

.bk-hero-sub {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 44ch;
}

.bk-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

/* Buttons -------------------------------------------------------------- */

.bk-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.bk-btn svg { width: 17px; height: 17px; flex: none; }

.bk-btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.bk-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.bk-btn-primary:hover {
  background: var(--brand-600);
  color: #fff;
  transform: translateY(-2px);
}

.bk-btn-sky {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 174, 201, .3);
}

.bk-btn-sky:hover {
  background: #0f97ae;
  color: #fff;
  transform: translateY(-2px);
}

.bk-btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.bk-btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-700);
}

/* Trust strip ---------------------------------------------------------- */

.bk-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.bk-trust li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: .72rem;
  line-height: 1.3;
  color: var(--muted);
}

.bk-trust svg {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--sky);
  margin-top: 1px;
}

.bk-stores {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 34px;
}

.bk-stores img {
  height: 42px;
  width: auto;
  border-radius: 8px;
  transition: transform .18s ease;
}

.bk-stores a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.bk-stores a:hover img { transform: translateY(-2px); }

/* Hero art ------------------------------------------------------------- */

.bk-hero-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  min-height: 380px;
}

.bk-hero-phone {
  position: relative;
  z-index: 2;
  width: min(58%, 260px);
  filter: drop-shadow(0 26px 44px rgba(30, 36, 49, .26));
  transform: translateY(-8px);
}

.bk-hero-mascot {
  position: relative;
  z-index: 1;
  width: min(52%, 240px);
  margin-inline-start: -26px;
  filter: drop-shadow(0 18px 30px rgba(30, 36, 49, .2));
}

/* ========================= HOW IT WORKS ========================= */

/* Three ordered steps — the numbering is real sequence information
   (post -> discovered -> connect), not decoration. */
.bk-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  counter-reset: bk-step;
}

.bk-step {
  position: relative;
  padding: 18px 18px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bk-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.bk-step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 7px;
  font-weight: 600;
}

.bk-step p {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
  margin: 0;
  max-width: 26ch;
}

.bk-step-art {
  align-self: flex-end;
  width: 108px;
  margin-top: auto;
  margin-inline-end: -6px;
}

.bk-step-badge {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--sky-soft);
  color: var(--sky);
}

.bk-step-badge svg { width: 14px; height: 14px; }

/* ============================ TOOLS ============================ */

.bk-tools {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.bk-tool {
  padding: 16px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.bk-tool:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.bk-tool-ico {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--sky);
}

.bk-tool-ico svg { width: 26px; height: 26px; }

.bk-tool span {
  font-size: .68rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* ========================== IN ACTION ========================== */

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

.bk-shot { text-align: center; }

.bk-shot-frame {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 9 / 17;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.bk-shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 11px;
}

/* Placeholder for the five screens that have no asset yet. */
.bk-shot-ph {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  background:
    linear-gradient(180deg, var(--sky-soft) 0%, #fff 42%, var(--brand-soft) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--sky);
}

.bk-shot-ph svg { width: 22px; height: 22px; opacity: .85; }

.bk-shot-ph em {
  font-style: normal;
  font-size: .58rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bk-shot > span {
  display: block;
  margin-top: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
}

/* ========================= CATEGORIES ========================= */

.bk-cats {
  display: grid;
  /* 18 categories → three clean rows of six. */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.bk-cat {
  position: relative;
  padding: 14px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bk-cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.bk-cat img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.bk-cat span {
  font-size: .7rem;
  font-weight: 600;
  color: var(--ink);
}

.bk-cat-more {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--sky);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* Small qualifier pills: "Pros only" on Taxi/Business, "Premium" on real estate. */
.bk-badge {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.bk-badge-pro {
  color: var(--sky);
  background: var(--sky-soft);
}

.bk-badge-premium {
  color: var(--brand);
  background: var(--brand-soft);
}

/* On category tiles the pill floats in the top corner of the card. */
.bk-cat .bk-badge {
  position: absolute;
  top: 7px;
  inset-inline-end: 7px;
}

/* ============================ PINS ============================ */

.bk-pins-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--sky-soft) 100%);
}

.bk-pins {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bk-pin {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  /* Pin cards are links to their explainer posts. */
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bk-pin:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}

.bk-pin-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--sky);
  background: var(--sky-soft);
}

.bk-pin-ico svg { width: 22px; height: 22px; }

.bk-pin-copy h3 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bk-pin-copy p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ========================== WILAYAS ========================== */

.bk-wilaya {
  background: linear-gradient(115deg, var(--sky) 0%, #0e93ab 100%);
  border-radius: 22px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: center;
  overflow: hidden;
}

.bk-wilaya h2 {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 18px;
}

.bk-stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.bk-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bk-stat svg {
  width: 17px;
  height: 17px;
  color: rgba(255, 255, 255, .85);
  flex: none;
}

.bk-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.1;
}

.bk-stat small {
  font-size: .66rem;
  color: rgba(255, 255, 255, .82);
}

/* algeriaMap-white.png is the map plotted as white dots on transparency
   (generated from algeriaMap.png, whose gray-on-white dots were too faint
   for the old invert + mix-blend-mode trick to survive). */
.bk-wilaya-map {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  opacity: 0.95;
}

/* ======================== TESTIMONIALS ======================== */

.bk-quotes-viewport {
  overflow: hidden;
}

.bk-quotes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * var(--bk-gap)) / 5);
  gap: var(--bk-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: 4px;
  /* Firefox / IE keep the bar hidden; WebKit handled below. */
  scrollbar-width: none;
}

.bk-quotes::-webkit-scrollbar { display: none; }

.bk-quote {
  scroll-snap-align: start;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bk-quote p {
  font-size: .78rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}

.bk-quote-who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.bk-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-700);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
}

.bk-quote-who b {
  display: block;
  font-size: .72rem;
  color: var(--ink);
  font-weight: 600;
}

.bk-stars {
  color: var(--brand);
  font-size: .66rem;
  letter-spacing: 1px;
}

.bk-quotes-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.bk-qbtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color .18s ease, color .18s ease;
}

.bk-qbtn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.bk-qbtn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.bk-qbtn svg { width: 15px; height: 15px; }

/* ========================== END CTA ========================== */

.bk-endcta {
  background: linear-gradient(115deg, var(--sky) 0%, #0e93ab 100%);
  border-radius: 22px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.bk-endcta-mascot {
  width: 92px;
  flex: none;
  align-self: flex-end;
  margin-bottom: -20px;
}

.bk-endcta h2 {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 600;
  margin: 0;
  flex: 1 1 220px;
  line-height: 1.3;
}

.bk-endcta .bk-cta-row { margin: 0; }

.bk-qr {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .5rem;
  text-align: center;
  line-height: 1.25;
  padding: 5px;
  flex: none;
}

/* =========================== RESPONSIVE =========================== */

@media (max-width: 1024px) {
  .bk-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bk-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bk-cats  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bk-pins  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-quotes { grid-auto-columns: calc((100% - 2 * var(--bk-gap)) / 3); }
  /* Keep the fixed-navbar offset; only the column count changes here. */
  .bk-hero-grid { grid-template-columns: 1fr; padding-block: 96px 0; }
  .bk-hero-art { min-height: 320px; }
  .bk-wilaya { grid-template-columns: 1fr; text-align: center; }
  .bk-stats { justify-content: center; }
}

@media (max-width: 720px) {
  .bk-section { padding-block: 38px; }
  .bk-steps { grid-template-columns: 1fr; }
  .bk-step p { max-width: none; }
  .bk-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-cats  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-pins  { grid-template-columns: 1fr; }
  .bk-quotes { grid-auto-columns: 78%; }
  .bk-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bk-hero-sub { max-width: none; }
  .bk-endcta { justify-content: center; text-align: center; }
  .bk-endcta-mascot { display: none; }
  .bk-wilaya { padding: 24px 18px; }
}

/* RTL: the only direction-specific bits are the negative offsets that pull
   the mascot/art toward the text; logical properties cover the rest. */
[dir="rtl"] .bk-hero-mascot { margin-inline-start: -26px; }
[dir="rtl"] .bk-step-art { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  .bk-btn,
  .bk-tool,
  .bk-cat,
  .bk-pin,
  .bk-stores img { transition: none; }

  .bk-btn:hover,
  .bk-tool:hover,
  .bk-cat:hover,
  .bk-pin:hover,
  .bk-stores a:hover img { transform: none; }

  .bk-quotes { scroll-behavior: auto; }
}

/* ============================== VIDEO ============================== */
/* Explainer video inside #how-it-works. */
.bk-video {
  max-width: 860px;
  margin: 40px auto 0;
}

.bk-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--bk-card-radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.bk-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bk-video-caption {
  text-align: center;
  margin: 14px auto 0;
  color: var(--ink);
  opacity: 0.85;
}

.bk-video-channel {
  display: inline-block;
  margin-inline-start: 8px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.bk-video-channel:hover {
  text-decoration: underline;
}
