/* ============================================================
   Pawan Trading Company — Redesign · Core shell
   Tokens / Reset / Header / Footer / Buttons / Forms / Utilities
   ============================================================ */

:root {
  /* Ink & paper */
  --ink: #071026;
  --ink-800: #0d1a38;
  --ink-700: #152449;
  --ink-600: #1e3363;
  --paper: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  /* Brand */
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --blue-700: #1e40af;
  --brand-deep: #0f2c7a;
  --aqua: #0284c7;
  --aqua-deep: #0369a1;
  --brass: #d97706;
  --brass-600: #b45309;
  --brass-ink: #78350f;
  --whatsapp: #16a34a;

  /* Text */
  --text: #0f172a;
  --muted: #52607a;
  --muted-dark: #64748b;
  --white: #ffffff;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.5s;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --sh: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --sh-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.1), 0 10px 15px -8px rgba(15, 23, 42, 0.05);
  --sh-blue: 0 10px 24px -6px rgba(37, 99, 235, 0.42);

  /* Layout */
  --container: 1200px;
  --gutter: 18px;
  --header-h: 62px;
  --dock-h: 62px;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
    --header-h: 76px;
    --dock-h: 0px;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brass);
  color: var(--ink);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: inherit;
}

.h-xl {
  font-size: clamp(2.35rem, 7.4vw, 4.6rem);
}

.h-lg {
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
}

.h-md {
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
}

.h-sm {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  letter-spacing: -0.01em;
}

p {
  color: var(--muted);
}

strong {
  color: var(--text);
  font-weight: 600;
}

.lead {
  font-size: clamp(1rem, 2.4vw, 1.13rem);
  line-height: 1.7;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass-600);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--brass);
  transform: rotate(45deg);
  flex: none;
}

.band-dark .eyebrow {
  color: var(--brass);
}

.eyebrow--aqua {
  color: var(--aqua-deep);
}

.band-dark .eyebrow--aqua {
  color: var(--aqua);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 9vw, 110px);
  position: relative;
}

.band-light {
  background: var(--paper);
  color: var(--text);
}

.band-white {
  background: var(--card);
  color: var(--text);
}

.band-dark {
  background: var(--ink);
  color: var(--white);
}

.band-dark p {
  color: var(--muted-dark);
}

.grid-bg {
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
}

.grid-bg-dark {
  background-image: linear-gradient(rgba(11, 20, 46, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 20, 46, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* Section heading block */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(28px, 5vw, 48px);
  max-width: 760px;
}

.sec-head p {
  max-width: 62ch;
}

.sec-head--row {
  max-width: none;
}

@media (min-width: 900px) {
  .sec-head--row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }

  .sec-head--row > div:first-child {
    max-width: 720px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft),
    color 0.25s var(--ease-soft);
  will-change: transform;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 100%);
  color: #fff;
  box-shadow: var(--sh-blue);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px -12px rgba(47, 107, 255, 0.65);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-700);
  transform: translateY(-2px);
  box-shadow: var(--sh);
}

.btn-brass {
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-600) 100%);
  color: var(--ink);
  box-shadow: 0 14px 28px -14px rgba(201, 138, 61, 0.8);
}

.btn-brass:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.btn-ghost:hover {
  background: #ffffff;
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--sh);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #04240f;
  box-shadow: 0 14px 28px -14px rgba(34, 197, 94, 0.9);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Shine sweep on primary button */
.btn-primary::after,
.btn-brass::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-brass:hover::after {
  left: 120%;
}

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: var(--sh);
}

.chip.is-active .chip__dot {
  background: var(--aqua);
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(47, 107, 255, 0.1);
  color: var(--blue-700);
}

.tag--stock {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.tag--brass {
  background: rgba(224, 164, 88, 0.16);
  color: var(--brass-600);
}

.tag--dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-dark);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh);
  border-color: rgba(47, 107, 255, 0.35);
}

/* Travelling border beam (RFQ / feature cards) */
.beam {
  position: relative;
  overflow: hidden;
}

.beam::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0deg,
    transparent 280deg,
    var(--aqua) 320deg,
    var(--blue) 350deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: beamSpin 4.5s linear infinite;
  pointer-events: none;
}

@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes beamSpin {
  to {
    --beam-angle: 360deg;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(4, 9, 26, 0.07);
  transition: transform 0.45s var(--ease), background-color 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft);
}

.site-header.is-hidden {
  transform: translateY(-105%);
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 32px -20px rgba(4, 9, 26, 0.55);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  overflow: hidden;
  box-shadow: 0 6px 16px -8px rgba(47, 107, 255, 0.9);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-ink);
  white-space: nowrap;
}

@media (max-width: 380px) {
  .brand__sub {
    display: none;
  }
}

.nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(4, 9, 26, 0.12);
  background: rgba(4, 9, 26, 0.04);
  color: var(--ink);
  transition: all 0.3s var(--ease);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.icon-btn:hover {
  background: rgba(47, 107, 255, 0.08);
  border-color: rgba(47, 107, 255, 0.35);
  color: var(--blue);
  transform: translateY(-2px);
}

.icon-btn--call {
  background: rgba(47, 107, 255, 0.1);
  border-color: rgba(47, 107, 255, 0.32);
  color: var(--blue);
}

.header-cta {
  display: none;
}

.burger {
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease-soft);
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav__link {
    position: relative;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(4, 9, 26, 0.72);
    transition: color 0.25s var(--ease-soft), background-color 0.25s var(--ease-soft);
  }

  .nav__link:hover,
  .nav__link.is-active {
    color: var(--ink);
    background: rgba(4, 9, 26, 0.06);
  }

  .nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
  }

  .header-cta {
    display: inline-flex;
    margin-left: 6px;
    padding: 11px 18px;
    font-size: 0.88rem;
  }

  .burger {
    display: none;
  }
}

/* ---------- Mobile drawer ---------- */
/* The drawer panel is dark — keep its controls light-on-dark even though
   the global .icon-btn is now themed for light surfaces. */
.drawer .icon-btn {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.drawer .icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(4, 9, 26, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-soft), visibility 0.4s;
}

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

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 380px);
  height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--line);
  padding: calc(var(--header-h) + 8px) 22px 30px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.1);
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__close {
  position: absolute;
  top: 14px;
  right: 18px;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 0.25s var(--ease-soft), padding-left 0.3s var(--ease);
}

.drawer__link:hover {
  color: var(--blue);
  padding-left: 10px;
}

.drawer__link span.arrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brass-ink);
}

.drawer__cats {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.drawer__cats a {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 7px 4px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: color 0.2s ease;
}

.drawer__cats a::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brass);
  transform: rotate(45deg);
  flex: none;
}

.drawer__cats a:hover {
  color: var(--blue);
}

.drawer__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 22px;
  margin-bottom: 4px;
}

.drawer__actions {
  margin-top: auto;
  padding-top: 26px;
  display: grid;
  gap: 10px;
}

.drawer__small {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding-top: 4px;
  transition: color 0.25s var(--ease-soft);
}

.drawer__small:hover {
  color: var(--aqua);
}

/* Compact drawer on phones — everything fits without scrolling */
@media (max-width: 639px) {
  .drawer__panel {
    padding: calc(var(--header-h) + 2px) 16px 18px;
    gap: 0;
  }

  .drawer__close {
    top: 11px;
    right: 13px;
  }

  .drawer__link {
    font-size: 1rem;
    padding: 10px 2px;
  }

  .drawer__link span.arrow {
    font-size: 0.66rem;
  }

  .drawer__label {
    margin-top: 14px;
    margin-bottom: 2px;
    font-size: 0.6rem;
  }

  .drawer__cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 10px;
    margin-top: 6px;
  }

  .drawer__cats a {
    font-size: 0.82rem;
    padding: 5px 2px;
    gap: 7px;
  }

  .drawer__actions {
    gap: 8px;
    padding-top: 16px;
  }

  .drawer__actions .btn {
    padding: 11px 12px;
    font-size: 0.84rem;
  }

  .drawer__small {
    padding-top: 2px;
  }
}

/* ---------- Progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--aqua), var(--blue), var(--brass));
  z-index: 99;
  pointer-events: none;
}

/* ---------- FABs ---------- */
.fab-stack {
  position: fixed;
  right: 14px;
  bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(4, 9, 26, 0.6);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  position: relative;
}

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

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

.fab--wa {
  background: var(--whatsapp);
}

.fab--top {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.fab--top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab__ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: ping 2.2s var(--ease) infinite;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@media (min-width: 900px) {
  .fab-stack {
    right: 22px;
    bottom: 24px;
  }
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 14px;
}

.form__grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .form__grid .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #97a0bd;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.14);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #e5484d;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12);
}

.field__error {
  font-size: 0.76rem;
  color: #e5484d;
  display: none;
}

.field.has-error .field__error {
  display: block;
}

.form__note {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.form__note svg {
  width: 15px;
  height: 15px;
  color: var(--whatsapp);
  flex: none;
}

/* Tighter, shorter form on small screens */
@media (max-width: 639px) {
  .form {
    gap: 12px;
  }

  .form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .form__grid .field--full {
    grid-column: 1 / -1;
  }

  .field {
    gap: 5px;
  }

  .field label {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .field input,
  .field select,
  .field textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .field textarea {
    min-height: 76px;
  }

  .field__error {
    font-size: 0.7rem;
  }

  .form-card {
    padding: 16px;
  }

  .form-card__head {
    margin-bottom: 14px;
    gap: 10px;
  }

  .form-card__head p {
    font-size: 0.74rem;
  }

  .form__note {
    font-size: 0.74rem;
    line-height: 1.5;
  }
}

@media (max-width: 359px) {
  .form__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 86px);
  transform: translate(-50%, 20px);
  z-index: 120;
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  flex: none;
}

@media (min-width: 900px) {
  .toast {
    bottom: 28px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--card);
  color: var(--text);
  padding-top: clamp(48px, 7vw, 78px);
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 34px);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

@media (min-width: 900px) {
  .site-footer {
    padding-bottom: 40px;
  }
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.13), transparent 65%);
  pointer-events: none;
}

.footer__grid {
  position: relative;
  display: grid;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(4, 9, 26, 0.08);
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1.1fr;
    gap: 44px;
  }
}

.footer__brand .brand {
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.92rem;
  max-width: 42ch;
  color: var(--muted);
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin-bottom: 16px;
}

.footer__links {
  display: grid;
  gap: 10px;
}

.footer__links a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.25s var(--ease-soft), transform 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.footer__links a::before {
  content: "→";
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s var(--ease);
}

.footer__links a:hover {
  color: var(--blue);
}

.footer__links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer__contact li {
  display: flex;
  gap: 11px;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 13px;
  line-height: 1.55;
}

.footer__contact svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
  flex: none;
  margin-top: 3px;
}

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

.footer__bottom {
  position: relative;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer__bottom .mono {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.footer__bottom a:hover {
  color: var(--blue);
}

/* Compact, chip-grid footer on mobile */
@media (max-width: 899px) {
  .site-footer {
    padding-top: 28px;
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 26px);
  }

  .footer__grid {
    gap: 20px;
    padding-bottom: 18px;
  }

  .footer__brand .brand {
    margin-bottom: 6px;
  }

  .footer__social {
    gap: 8px;
  }

  .footer__social .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .footer__title {
    margin-bottom: 10px;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .footer__links a {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.84rem;
    padding: 9px 12px;
    background: rgba(4, 9, 26, 0.03);
    border: 1px solid var(--line);
    border-radius: 11px;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  }

  .footer__links a::before {
    order: 2;
    opacity: 0.55;
    transform: none;
  }

  .footer__links a:hover,
  .footer__links a:active {
    background: rgba(47, 107, 255, 0.08);
    border-color: rgba(47, 107, 255, 0.4);
    color: var(--ink);
  }

  .footer__links a:hover::before,
  .footer__links a:active::before {
    opacity: 1;
  }

  .footer__contact li {
    font-size: 0.84rem;
    margin-bottom: 9px;
    gap: 9px;
    line-height: 1.45;
  }

  .footer__contact svg {
    width: 15px;
    height: 15px;
    margin-top: 2px;
  }

  .footer__bottom {
    padding-top: 16px;
    font-size: 0.72rem;
    gap: 6px 14px;
  }

  .footer__bottom .mono {
    font-size: 0.64rem;
  }
}

/* Phones: logo + social on one row, drop the tagline (it repeats the hero) */
@media (max-width: 639px) {
  /* Navigation lives in the bottom dock + drawer — no duplicate link list here */
  .footer__col--links {
    display: none;
  }

  .footer__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .footer__brand .brand {
    margin-bottom: 0;
    min-width: 0;
  }

  .footer__brand .brand__name {
    font-size: 0.9rem;
  }

  .footer__brand p {
    display: none;
  }

  .footer__social {
    margin-top: 0;
    margin-left: auto;
    flex: none;
  }

  .footer__contact li {
    margin-bottom: 7px;
  }
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.hide {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stack-sm {
  display: grid;
  gap: 10px;
}

.stack {
  display: grid;
  gap: 18px;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
}

.band-dark .divider {
  background: rgba(255, 255, 255, 0.1);
}

/* Reveal helper — initial state applied by JS only */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}

/* Marquee shared */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--mq-dur, 32s) linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
  gap: var(--mq-gap, 44px);
  padding-right: var(--mq-gap, 44px);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
