/* ==========================================================================
   Lockout — layout.css
   Page shell: header, navigation, off-canvas panel, sections, grids, footer,
   floating actions, page headers.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(10, 22, 40, .5);
  background: rgba(255, 255, 255, .96);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Brand lockup ----------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: none;
  margin-right: auto;
}

/* Rendered at the logo's intrinsic 150 x 63 (declared on the <img>), so the
   wordmark is never rescaled or distorted. max-width is an overflow guard for
   very narrow viewports only — it scales down, never up. */
.brand__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand__stack {
  display: grid;
  gap: .3rem;
  line-height: 1;
}

.brand__text {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
}

.brand__tag {
  display: block;
  margin-top: .3rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

/* If the logo file is missing, main.js hides the <img> and reveals the
   styled wordmark instead, so the header never breaks. */
.brand.is-fallback .brand__logo { display: none; }
.brand:not(.is-fallback) .brand__text { display: none; }

/* Primary navigation ------------------------------------------------------ */

.nav { display: flex; align-items: center; gap: .25rem; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .9rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.nav__link:hover { color: var(--brand); background: var(--paper-2); }

.nav__link[aria-current="page"] { color: var(--brand); }

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

/* Dropdown ---------------------------------------------------------------- */

.nav__group { position: relative; }

.nav__caret {
  width: 10px;
  height: 10px;
  flex: none;
  transition: transform .25s var(--ease);
}

.nav__group:hover .nav__caret,
.nav__group:focus-within .nav__caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  z-index: 20;
  width: max-content;
  min-width: 260px;
  padding: .6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity .22s var(--ease),
    transform .22s var(--ease),
    visibility .22s;
}

.nav__group:hover .dropdown,
.nav__group:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .65rem .8rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.dropdown__link:hover {
  background: var(--paper-2);
  color: var(--brand);
}

.dropdown__link span:last-child {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
}

.dropdown__divider {
  height: 1px;
  margin: .4rem .8rem;
  background: var(--line);
}

.dropdown__all {
  font-weight: 700;
  color: var(--brand);
}

/* Header actions ---------------------------------------------------------- */

.header__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: none;
}

.icon-link {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  color: var(--text);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.icon-link:hover { background: var(--paper-2); color: var(--brand); }

.icon-link svg { width: 20px; height: 20px; }

/* Burger ------------------------------------------------------------------ */

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  transition: background-color .2s var(--ease);
}

.burger:hover { background: var(--paper-2); }

.burger__box {
  position: relative;
  width: 20px;
  height: 14px;
}

.burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease), width .3s var(--ease);
}

.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6px; width: 72%; }
.burger__box span:nth-child(3) { top: 12px; }

.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Off-canvas mobile panel
   -------------------------------------------------------------------------- */

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(10, 22, 40, .5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}

.nav-scrim.is-open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: min(400px, 88vw);
  height: 100dvh;
  padding: 1.25rem var(--gutter) 2.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  box-shadow: var(--sh-3);
  transform: translateX(100%);
  transition: transform .36s var(--ease-out);
  visibility: hidden;
}

.mobile-nav.is-open {
  transform: none;
  visibility: visible;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: calc(var(--header-h) - 1.25rem);
  margin-bottom: 1rem;
}

.mobile-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -.5rem;
  border-radius: var(--r-sm);
  color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.mobile-nav__close:hover { background: var(--paper-2); color: var(--text); }
.mobile-nav__close svg { width: 22px; height: 22px; }

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}

.mobile-nav__link[aria-current="page"] { color: var(--brand); }

.mobile-nav__group-label {
  padding: 1.5rem 0 .35rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-nav__foot {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.mobile-nav__meta {
  display: grid;
  gap: .5rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.mobile-nav__meta a:hover { color: var(--brand); }

/* Without JavaScript the burger cannot open the drawer, so the navigation is
   rendered as an ordinary block underneath the header instead of being
   trapped behind a toggle. */
.no-js .burger,
.no-js .mobile-nav__close,
.no-js .nav-scrim { display: none !important; }

.no-js .mobile-nav {
  position: static;
  width: 100%;
  height: auto;
  max-height: none;
  padding-bottom: 1.5rem;
  transform: none;
  visibility: visible;
  box-shadow: none;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: var(--section-y); position: relative; }

.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.section--paper-2 { background: var(--paper-2); }

.section--line-top { border-top: 1px solid var(--line); }

/* Below-the-fold sections skip rendering work until scrolled near. */
@media (min-width: 900px) {
  .defer-paint {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
  }
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section__head--center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section__head .eyebrow { margin-bottom: 1rem; }
.section__head .lead { margin-top: 1.1rem; }

/* Grids ------------------------------------------------------------------- */

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

/* Split (media + copy) ---------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--reverse .split__media { order: 2; }

/* Sticky media column on product pages ------------------------------------ */

.split__media--sticky {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
}

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(18, 160, 172, .30) 0%, transparent 55%),
    linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 100%);
  color: var(--on-ink);
}

.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .05;
  pointer-events: none;
}

.page-head__inner { position: relative; z-index: 1; max-width: 760px; }

.page-head .eyebrow { color: var(--brand-2); margin-bottom: 1rem; }

.page-head h1 {
  color: var(--on-ink);
  font-size: var(--fs-h1);
}

.page-head__lead {
  margin-top: 1.15rem;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--on-ink-muted);
  max-width: 58ch;
}

/* Breadcrumb -------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--on-ink-muted);
}

.breadcrumb a { transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--brand-2); }

.breadcrumb__sep { opacity: .5; }

.breadcrumb__current { color: var(--on-ink); }

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 8.5rem);
  background:
    radial-gradient(90% 120% at 8% 0%, rgba(18, 160, 172, .34) 0%, transparent 52%),
    radial-gradient(70% 100% at 100% 100%, rgba(201, 162, 39, .16) 0%, transparent 58%),
    linear-gradient(165deg, var(--ink-2) 0%, var(--ink) 78%);
  color: var(--on-ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .05;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 {
  color: var(--on-ink);
  font-size: var(--fs-hero);
}

.hero__lead {
  margin-top: 1.4rem;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--on-ink-muted);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.25rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.75rem, 5vw, 4rem);
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
}

.hero__fact {
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, .05);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--on-ink);
  line-height: 1.4;
}

.hero__fact span {
  display: block;
  margin-bottom: .2rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-2);
}

/* Hero media -------------------------------------------------------------- */

.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-3);
  border: 1px solid rgba(255, 255, 255, .1);
}

.hero__media img,
.hero__media .media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating badge on hero media */

.hero__badge {
  position: absolute;
  left: clamp(-.5rem, -1vw, 0rem);
  bottom: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.15rem;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--sh-2);
  color: var(--ink);
}

.hero__badge svg { width: 26px; height: 26px; color: var(--brand); flex: none; }

.hero__badge b {
  display: block;
  font-family: var(--font-display);
  font-size: .95rem;
  line-height: 1.2;
}

.hero__badge small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* Marquee ----------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--ink);
  color: var(--on-ink-muted);
  font-size: var(--fs-sm);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.footer__brand .brand__logo { height: 38px; }
.footer__brand .brand__tag { color: var(--on-ink-muted); }
.footer__brand.is-fallback .brand__text { color: var(--on-ink); }

.footer__blurb {
  margin-top: 1.15rem;
  max-width: 34ch;
  line-height: 1.7;
}

.footer__title {
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-ink);
}

.footer__list { display: grid; gap: .6rem; }

.footer__list a {
  transition: color .2s var(--ease);
}

.footer__list a:hover { color: var(--brand-2); }

.footer__contact { display: grid; gap: .9rem; }

.footer__contact li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .65rem;
  align-items: start;
  line-height: 1.55;
}

.footer__contact svg {
  width: 18px;
  height: 18px;
  margin-top: .2rem;
  color: var(--brand-2);
  flex: none;
}

.footer__contact a:hover { color: var(--brand-2); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--fs-xs);
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.footer__legal a:hover { color: var(--brand-2); }

/* --------------------------------------------------------------------------
   Floating actions
   -------------------------------------------------------------------------- */

.fab-stack {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 90;
  display: grid;
  justify-items: center;
  gap: .65rem;
}

.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease);
}

.fab svg { width: 26px; height: 26px; }

.fab:hover { transform: translateY(-3px) scale(1.04); }

.fab--wa {
  background: #25D366;
  color: #fff;
}

.fab--wa:hover { box-shadow: 0 18px 38px -14px rgba(37, 211, 102, .7); }

.fab--top {
  width: 46px;
  height: 46px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.fab--top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fab--top:hover { color: var(--brand); }

/* Floating WhatsApp label on wide screens */

.fab--wa::after {
  content: "Chat with us";
  position: absolute;
  right: calc(100% + 12px);
  padding: .5rem .85rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--on-ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  pointer-events: none;
}

.fab-stack { position: fixed; }
.fab--wa { position: relative; }

@media (min-width: 900px) {
  .fab--wa:hover::after { opacity: 1; visibility: visible; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  :root { --header-h: 76px; }

  .nav,
  .header__actions .btn { display: none; }

  .icon-link,
  .burger { display: inline-flex; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 11; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media--sticky { position: static; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .hero__actions .btn { width: 100%; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .site-footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: flex-start; }
}

/* The header holds the logo at its full 150 x 63 on every phone that fits it.
   Below ~380px the row would collide, so drop the redundant phone shortcut —
   the off-canvas menu already carries the number — rather than shrink the
   wordmark. */
@media (max-width: 380px) {
  .header__actions .icon-link { display: none; }
}