/* =========================================================
   SIA RB Trading — Actitrade-style dark industrial B2B
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-card: #ffffff;
  --bg-soft: #f5f5f5;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(15, 23, 42, 0.1);

  --red: #e11d2e;
  --red-deep: #be123c;
  --red-soft: rgba(225, 29, 46, 0.12);

  --font: "Inter", system-ui, sans-serif;

  --header-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Native scroll — smooth only for in-page anchors via JS */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2.4rem, var(--container));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

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

.btn--red:hover {
  background: var(--red-deep);
}

.btn--outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: rgba(15, 23, 42, 0.2);
}

.btn--outline-dark:hover {
  border-color: var(--ink);
}

.btn--block {
  width: 100%;
}

.link-all {
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.link-all:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #0a0a0a;
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: none;
}

.logo__stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo__name span {
  color: var(--red);
}

.logo__sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.nav__link {
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
}

.nav__link:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}

.nav__link:hover,
.nav__link.is-active {
  color: #fff;
}

.nav__cta {
  margin-left: 0.6rem;
  background: var(--red);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  background: var(--red-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex;
  align-items: center;
  padding: 4.5rem 0 7rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.55) 55%, rgba(10, 10, 10, 0.35) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.55) 100%);
}

.hero__layout {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 620px;
  color: #fff;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero__title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  color: #fff;
}

.hero__line {
  display: block;
}

.hero__dash {
  font-weight: 500;
  opacity: 0.55;
  margin-right: 0.12em;
}

.hero__sub {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.8rem;
  max-width: 32rem;
}

/* ---------- Floating cards ---------- */
.float-cards {
  margin-top: -4.5rem;
  position: relative;
  z-index: 5;
  padding-bottom: 0;
}

.float-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.fcard {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease);
}

.fcard:hover {
  transform: translateY(-4px);
}

.fcard__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: #e8f4f2;
  font-size: 1.25rem;
}

.fcard__title {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.fcard__text {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.fcard__more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.section__head {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section__title {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.section__title--light {
  color: #fff;
}

.section__lead {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.eyebrow--red {
  color: var(--red);
}

/* ---------- Import / Supply ---------- */
.import {
  background: var(--navy);
  color: #fff;
  margin-top: 3.5rem;
}

.import__main {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.import__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 1rem;
}

.import__lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  margin-bottom: 0;
  max-width: 40rem;
}

.import__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ilink {
  display: block;
  padding: 1.35rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.ilink:hover {
  border-color: rgba(225, 29, 46, 0.55);
  background: rgba(225, 29, 46, 0.08);
}

.ilink strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.ilink span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

/* ---------- Categories ---------- */
.categories {
  background: #fff;
}

.cat__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cat {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.cat img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.cat {
  position: relative;
}

.cat__label {
  position: absolute;
  left: 1rem;
  top: 240px;
  transform: translateY(calc(-100% - 0.75rem));
  margin-top: 0;
  padding: 0.45rem 0.9rem;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 999px;
  max-width: calc(100% - 2rem);
}

.cat__body {
  padding: 1.25rem 1.3rem 1.4rem;
}

.cat__body p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.cat__cta {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
}

/* ---------- Why ---------- */
.why {
  background: var(--navy);
  color: #fff;
}

.why__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

.why__intro .btn {
  margin-top: 1.4rem;
}

.why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.why__list li {
  padding: 1.4rem 1.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.why__list h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.45rem;
}

.why__list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

/* ---------- Warehousing ---------- */
.warehouse {
  background: #fff;
}

.warehouse__intro {
  max-width: 720px;
  margin-bottom: 2.2rem;
}

.warehouse__intro strong {
  color: var(--ink);
}

.wh__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.wh {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  box-shadow: var(--shadow-sm);
}

.wh img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.wh:hover img {
  transform: scale(1.05);
}

.wh__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.3rem;
  background: linear-gradient(180deg, transparent 20%, rgba(10, 10, 10, 0.88) 100%);
  color: #fff;
}

.wh__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.4rem;
}

.wh__content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.wh__cta {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.warehouse__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- Clients / B2B ---------- */
.clients {
  background: #fff;
}

.clients__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.clients__lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.65;
}

.clients__lead strong {
  color: var(--ink);
  font-weight: 700;
}

.clients__promise {
  max-width: 820px;
  margin: 0 auto 2.6rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, rgba(225, 29, 46, 0.06), rgba(15, 23, 42, 0.04));
  border-left: 3px solid var(--red);
  border-radius: 0 14px 14px 0;
}

.clients__promise p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.clients__branch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  position: relative;
}

.clients__branch::before {
  content: "";
  position: absolute;
  top: 54px;
  left: 16.5%;
  right: 16.5%;
  height: 0;
  border-top: 2px dashed rgba(225, 29, 46, 0.35);
  z-index: 0;
  pointer-events: none;
}

.cbranch {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.6rem 1.2rem 1.4rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.cbranch__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--red);
  border-radius: 14px;
  background: #fff;
  color: var(--red);
}

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

.cbranch__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.65rem;
}

.cbranch__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Approach ---------- */
.approach {
  background: #fff;
}

.approach__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.8rem;
}

.approach__title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.approach__title span {
  color: var(--red);
}

.approach__sub {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.approach__intro {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
  line-height: 1.65;
}

.approach__intro strong {
  color: var(--ink);
  font-weight: 700;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 8.33%;
  right: 8.33%;
  height: 0;
  border-top: 2px dashed rgba(225, 29, 46, 0.45);
  z-index: 0;
  pointer-events: none;
}

.step {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 0.7rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 210px;
}

.step__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--red);
  border-radius: 12px;
  background: #fff;
  color: var(--red);
  margin-bottom: 0.95rem;
}

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

.step__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 auto;
  line-height: 1.35;
}

.step__num {
  display: block;
  margin-top: 1rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(15, 23, 42, 0.12);
  letter-spacing: -0.02em;
}

.approach__foot {
  text-align: center;
  max-width: 640px;
  margin: 2.2rem auto 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- About ---------- */
.about {
  background: #fff;
}

.about__layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about__body p {
  color: var(--ink-soft);
}

.about__facts {
  background: var(--bg-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.facts {
  margin: 0;
}

.facts > div {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.facts > div:first-child {
  padding-top: 0;
}

.facts > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--navy);
  color: #fff;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact__lead {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.6rem;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.2rem;
}

.contact__list a {
  color: #fff;
  font-weight: 600;
}

.contact__list a:hover {
  color: var(--red);
}

.form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow);
}

.form__field {
  margin-bottom: 1rem;
}

.form__field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.form__field input,
.form__field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font: inherit;
  color: var(--ink);
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.form__field.is-invalid input,
.form__field.is-invalid textarea {
  border-color: var(--red);
}

.form__error {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.84rem;
  color: var(--red);
}

.form__note {
  margin: 0.85rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

.form__success {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border-radius: var(--radius-sm);
  text-align: center;
}

.form__success h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.form__success p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.footer {
  background: #050505;
  color: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer__brand p {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  max-width: 26rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.35rem;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
}

.footer__bar p {
  margin: 0;
}

/* ---------- Legal ---------- */
.page-legal {
  background: #fff;
}

.page-legal .header {
  background: #0a0a0a;
}

.legal {
  padding: 4rem 0 4.5rem;
  background: #fff;
  color: var(--ink);
}

.legal__inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2.2rem 0 0.6rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal a {
  color: var(--red);
}

/* ---------- Modal ---------- */
body.modal-open,
body.nav-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  animation: modal-in 0.28s var(--ease);
}

.modal__dialog--sm {
  width: min(100%, 560px);
  max-height: min(88vh, 720px);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__close {
  position: sticky;
  top: 0.85rem;
  float: right;
  z-index: 2;
  margin: 0.85rem 0.85rem 0 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal__close:hover {
  border-color: var(--red);
  color: var(--red);
}

.modal__header {
  padding: 2rem 2rem 1.4rem;
  border-bottom: 1px solid var(--line-dark);
  clear: both;
}

.modal__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.7rem;
}

.modal__header h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-bottom: 0.85rem;
  padding-right: 2rem;
}

.modal__lead {
  color: var(--ink-soft);
  margin-bottom: 1.3rem;
  max-width: 40rem;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.modal__body {
  padding: 1.6rem 2rem 2rem;
}

.modal__section-title {
  font-size: 1.15rem;
  margin: 0 0 0.7rem;
}

.modal__note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.2rem;
}

.modal__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.modal__feature {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
}

.modal__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.modal__feature h4 {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.modal__feature p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.modal__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.8rem;
}

.modal__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.modal__list li {
  margin-bottom: 0.45rem;
}

.modal__list--compact {
  margin-bottom: 1.1rem;
}

.modal__dialog--sm .modal__header {
  padding-bottom: 0.5rem;
}

.modal__dialog--sm .modal__lead {
  margin-bottom: 0;
}

.modal__dialog--sm .modal__body .modal__actions {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.modal__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.modal__related-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: #fff;
}

.modal__related-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.modal__related-card span {
  font-size: 0.86rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .modal__features,
  .modal__cols,
  .modal__related-grid {
    grid-template-columns: 1fr;
  }

  .modal__header,
  .modal__body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ---------- Reveal ---------- */
.reveal,
.reveal-hero {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: auto;
}

.reveal.is-in,
.reveal-hero.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-hero {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.4rem 1.4rem;
    background: #111;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
    z-index: 99;
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav__link {
    padding: 0.85rem 0.4rem;
    font-size: 0.95rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin: 0.6rem 0 0;
    text-align: center;
  }

  .float-cards__grid,
  .cat__grid,
  .wh__grid,
  .steps,
  .clients__branch,
  .import__links,
  .why__list {
    grid-template-columns: 1fr 1fr;
  }

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

  .steps::before,
  .clients__branch::before {
    display: none;
  }

  .clients__branch .cbranch:last-child {
    grid-column: 1 / -1;
  }

  .why__layout,
  .about__layout,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .section__head--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__title {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  }

  .fcard:hover,
  .cat:hover,
  .wh:hover img {
    transform: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .fcard:hover {
    transform: translateY(-4px);
  }

  .cat:hover {
    transform: translateY(-3px);
  }

  .wh:hover img {
    transform: scale(1.05);
  }
}

@media (max-width: 720px) {
  .logo__sub {
    display: none;
  }

  .logo__name {
    font-size: 0.95rem;
  }

  .float-cards {
    margin-top: -2.5rem;
  }

  .float-cards__grid,
  .cat__grid,
  .wh__grid,
  .clients__branch,
  .import__links,
  .why__list {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .clients__branch .cbranch:last-child {
    grid-column: auto;
  }

  .hero {
    min-height: auto;
    padding: 3.2rem 0 4.5rem;
  }

  .hero__title {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }

  .hero__sub {
    font-size: 0.98rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .import {
    margin-top: 2rem;
  }

  .cat img {
    height: 200px;
  }

  .cat__label {
    top: 200px;
  }

  .step {
    min-height: 180px;
    padding: 1.1rem 0.65rem 0.9rem;
  }

  .step__title {
    font-size: 0.68rem;
  }

  .clients__promise {
    padding: 1.15rem 1.2rem;
  }

  .clients__promise p {
    font-size: 0.98rem;
  }

  .modal__dialog--sm {
    width: min(100%, 100%);
  }

  .warehouse__actions {
    flex-direction: column;
  }

  .warehouse__actions .btn,
  .contact .btn {
    width: 100%;
  }
}

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

  .steps {
    grid-template-columns: 1fr;
  }

  .approach__title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
}
