/* =====================================================================
   Inner pages — the banner, breadcrumb, contact cards and map card.
   The home page earns a full-height video because it has to introduce
   the company. An inner page has already been chosen deliberately, so
   its banner only confirms "yes, this is the page you wanted".
   ===================================================================== */

/* ---------- page banner ---------- */
.phero {
  position: relative; background: var(--navy-900); color: #fff; overflow: hidden;
}
.phero__media { position: absolute; inset: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(7,20,38,.95) 0%, rgba(7,20,38,.86) 50%, rgba(7,20,38,.62) 100%);
}
[dir="rtl"] .phero__media::after {
  background: linear-gradient(255deg, rgba(7,20,38,.95) 0%, rgba(7,20,38,.86) 50%, rgba(7,20,38,.62) 100%);
}
.phero__in {
  position: relative; z-index: 2; max-width: 46rem;
  /* clears the solid header, which is 88px unstuck */
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.phero__kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: .6rem;
}
.phero h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem); color: #fff; margin-bottom: .6rem; line-height: 1.2;
}
.phero__lead { font-size: clamp(.95rem, 1.6vw, 1.1rem); color: #C6D4E6; margin: 0; }

/* ---------- breadcrumb ---------- */
.crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem;
  font-size: .82rem; color: #8FA6C4; margin-bottom: 1rem;
}
.crumb a { color: #C6D4E6; }
.crumb a:hover { color: var(--yellow); }
.crumb span { color: #8FA6C4; }
.crumb__sep { width: .8em; height: .8em; opacity: .5; transform: rotate(-90deg); }
[dir="rtl"] .crumb__sep { transform: rotate(90deg); }

/* ---------- contact cards ---------- */
.contact-card {
  display: flex; flex-direction: column; gap: .3rem; min-width: 0;
  padding: 1.5rem 1.35rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px); border-color: var(--blue-100); box-shadow: var(--shadow-lg);
}
.contact-card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: .8rem;
  background: var(--blue-50); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__icon--wa { background: #E9F9EF; color: #128C34; }
.contact-card strong { font-size: 1.05rem; color: var(--ink); }
.contact-card > span { font-size: .95rem; color: var(--navy-600); font-weight: 600; overflow-wrap: anywhere; }
.contact-card em { font-size: .82rem; color: var(--ink-mute); font-style: normal; margin-top: .35rem; }

/* ---------- registration numbers ---------- */
.reg-row { display: grid; gap: .75rem; margin-top: 1.75rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.reg {
  display: flex; align-items: center; gap: .75rem; min-width: 0;
  padding: .85rem 1rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
}
.reg img { flex: none; width: 34px; height: auto; }
.reg span { min-width: 0; }
.reg em { display: block; font-style: normal; font-size: .72rem; color: var(--ink-mute); }
.reg b { display: block; font-size: .92rem; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- map card ---------- */
.map-card {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}
.map-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.map-card:hover img { transform: scale(1.04); }
.map-card__pin {
  position: absolute; inset-inline-start: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.1rem; border-radius: 100px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  color: var(--brand); font-size: .9rem; font-weight: 600;
  box-shadow: 0 6px 18px rgba(12,21,36,.18);
}
.map-card__pin svg { width: 1.05em; height: 1.05em; }

@media (max-width: 699px) {
  .phero__in { padding-block: 2rem 2.25rem; }
  .contact-card { padding: 1.15rem 1rem; }
  .contact-card__icon { width: 40px; height: 40px; margin-bottom: .6rem; }
  .reg-row { grid-template-columns: minmax(0,1fr); }
}

/* ---------- catalogue filter ---------- */
.filters { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.filters__label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: .75rem;
}
.filters__row {
  display: flex; gap: .5rem; flex-wrap: wrap;
}
.fchip {
  min-height: 42px; padding-inline: 1.1rem; border-radius: 100px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line);
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.fchip:hover { border-color: var(--brand); color: var(--brand); }
.fchip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters__empty { margin-top: 2rem; }

/* On a phone the chips scroll rather than stacking into five rows before the
   first product is even visible. */
@media (max-width: 699px) {
  .filters__row {
    flex-wrap: nowrap; overflow-x: auto;
    margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut);
    scrollbar-width: none;
  }
  .filters__row::-webkit-scrollbar { display: none; }
  .fchip { flex: none; min-height: 38px; font-size: .85rem; }
}

/* ---------- pack sizes on the detail page ---------- */
.packs { margin-top: 1.5rem; }
.packs__label {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: .5rem;
}
.packs__row { display: flex; flex-wrap: wrap; gap: .4rem; }
.packs__row b {
  font-size: .85rem; font-weight: 600; color: var(--navy-700);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: .35rem .7rem; border-radius: 7px;
}

/* ---------- the pack shot on a detail page ---------- */
.pshot {
  aspect-ratio: 4 / 3.2; display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(155deg, #F4F8FE 0%, #E7EEFA 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.pshot img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(12,21,36,.18));
}

/* ---------- specification table ----------
   A buyer comparing two suppliers scans a column, so this stays a real table on a
   desktop. On a phone it becomes one labelled block per row: a table that has to be
   scrolled sideways is a table nobody reads. */
.spec { max-width: 56rem; margin-inline: auto; }
.spec table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.spec thead th {
  background: var(--navy-800); color: #fff; text-align: start;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .85rem 1.1rem;
}
.spec tbody th {
  text-align: start; font-weight: 600; color: var(--ink);
  width: 34%; background: var(--surface-2);
}
.spec tbody th, .spec tbody td {
  padding: .85rem 1.1rem; border-top: 1px solid var(--line);
  font-size: .93rem; vertical-align: top;
}
.spec tbody td { color: var(--ink-soft); }

@media (max-width: 699px) {
  .spec thead { display: none; }
  .spec table, .spec tbody, .spec tr { display: block; border-radius: 0; }
  .spec table { border: 0; }
  .spec tr {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    margin-bottom: .6rem; overflow: hidden;
  }
  .spec tbody th, .spec tbody td { display: block; width: auto; border-top: 0; }
  .spec tbody th { padding-bottom: .2rem; font-size: .88rem; }
  .spec tbody td { padding-top: 0; background: var(--surface); font-size: .9rem; }
}

/* the lighter half of a product page's h1 */
.phero__thin { font-weight: 400; opacity: .82; display: block; font-size: .55em; margin-top: .3rem; }

/* ---------- error pages ---------- */
.errpage { background: var(--surface-2); padding-block: clamp(3rem, 9vw, 6rem); }
.errpage__in { max-width: 44rem; margin-inline: auto; text-align: center; }
.errpage__code {
  display: block; font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1;
  letter-spacing: -.04em; color: var(--blue-100); margin-bottom: .5rem;
}
.errpage h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: .6rem; }
.errpage__lead { font-size: 1.02rem; color: var(--ink-soft); }
.errpage__links { margin-top: clamp(2.5rem, 6vw, 4rem); }
.errpage__links h2 {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 1rem;
}

/* ---------- preview bar ----------
   Shown only when an admin is previewing drafts. Loud on purpose: looking at
   unpublished text and believing it is live is the mistake this prevents. */
.preview-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: #B4690E; color: #fff; font-size: .88rem; font-weight: 600;
  box-shadow: 0 -4px 18px rgba(0,0,0,.25);
}
.preview-bar a {
  color: #fff; text-decoration: underline; text-underline-offset: 2px;
}
/* it sits where the mobile action bar sits, so that moves up out of its way */
@media (max-width: 900px) { body:has(.preview-bar) .mbar { bottom: 44px; } }
