/* AB TRADE LTD - self-hosted Inter, no external requests */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #494949;
  --ink-strong: #373737;
  --muted: #757575;
  --peach: #f8b377;
  --accent: #fc7f08;
  --white: #fff;

  --wrap: 1240px;
  --gap: clamp(24px, 4vw, 48px);
  --sec-y: clamp(56px, 6vw, 104px);

  --hdr-h: 68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* keep anchored sections clear of the sticky header */
section[id] { scroll-margin-top: calc(var(--hdr-h) + 16px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(73, 73, 73, .08);
}

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: .04em;
  color: var(--ink-strong);
  text-decoration: none;
  white-space: nowrap;
}

.nav { display: flex; gap: clamp(18px, 2.4vw, 40px); }

.nav a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 24px;
  margin-inline: auto;
  background: var(--ink-strong);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

@media (max-width: 760px) {
  .burger { display: flex; }

  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid rgba(73, 73, 73, .1);
    padding: 8px 0 16px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .35s var(--ease);
  }
  .nav a {
    padding: 14px clamp(18px, 4vw, 40px);
    font-size: 1.05rem;
  }
  .nav a::after { display: none; }

  .nav.is-open { clip-path: inset(0 0 0 0); }

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

/* ---------- hero ---------- */

.hero { position: relative; }

.hero__head {
  background: linear-gradient(to bottom, var(--white) 0%, var(--peach) 100%);
}

.hero__txt {
  padding-block: clamp(48px, 9vw, 120px) clamp(40px, 6vw, 80px);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6.4vw, 84px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink-strong);
}

.hero__sub {
  margin: clamp(14px, 1.8vw, 26px) 0 0;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-strong);
}

/* cap height so the image doesn't scale up with viewport width */
.hero__img img {
  width: 100%;
  height: clamp(260px, 52vh, 620px);
  object-fit: cover;
  object-position: center 60%;
}

.hero__fade {
  height: clamp(80px, 12vw, 190px);
  background: linear-gradient(to bottom, var(--peach) 0%, var(--white) 100%);
}

/* ---------- headings ---------- */

.h-sec {
  margin: 0 0 clamp(18px, 2vw, 30px);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--ink-strong);
  text-transform: uppercase;
}

.h-big {
  margin: 0 0 clamp(28px, 3.4vw, 52px);
  text-align: center;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .55;
}

/* ---------- about ---------- */

.about { padding-block: 0 var(--sec-y); }

.about__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.about__media { margin: 0; }
.about__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 620px;
  object-fit: cover;
  object-position: center 30%;
}

@media (max-width: 860px) {
  .about__in { grid-template-columns: 1fr; }
  .about__media img { aspect-ratio: 16 / 11; object-position: center 25%; }
}

/* ---------- trading ---------- */

.trading {
  padding-block: var(--sec-y);
  background: linear-gradient(to bottom, var(--white) 0%, #fdf0e3 60%, var(--peach) 100%);
}

.trading__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
}
@media (max-width: 760px) { .trading__grid { grid-template-columns: 1fr; } }

.trading__media { margin: clamp(36px, 4vw, 64px) 0 0; }
.trading__media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 460px;
  object-fit: cover;
}

/* ---------- services ---------- */

.services {
  padding-block: var(--sec-y);
  background: linear-gradient(to bottom, var(--peach) 0%, #fbe0c8 55%, var(--white) 100%);
}

.svc { margin: 0; padding: 0; list-style: none; }

.svc__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(16px, 3vw, 48px);
  padding-block: clamp(24px, 3vw, 44px);
  border-top: 1px solid rgba(73, 73, 73, .16);
}
.svc__item:last-child { border-bottom: 1px solid rgba(73, 73, 73, .16); }

.svc__num {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 500;
  color: var(--muted);
  padding-top: .5em;
  font-variant-numeric: tabular-nums;
}

.svc__name {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink-strong);
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.svc__txt { margin: 0; color: var(--ink); }

@media (max-width: 860px) {
  .svc__item { grid-template-columns: auto minmax(0, 1fr); }
  .svc__txt { grid-column: 2; }
}

/* ---------- advantages ---------- */

.adv { padding-block: var(--sec-y) calc(var(--sec-y) * 1.1); }

.adv__h { text-align: center; }

.adv__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  margin-top: clamp(24px, 3vw, 48px);
}

.adv__card {
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid rgba(73, 73, 73, .14);
  border-radius: 4px;
  background: #fff;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.adv__card:hover {
  transform: translateY(-4px);
  border-color: var(--peach);
  box-shadow: 0 14px 34px -18px rgba(252, 127, 8, .5);
}

.adv__card h3 {
  margin: 0 0 .55em;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
}
.adv__card p { margin: 0; color: var(--ink); font-size: .96rem; }

/* ---------- footer ---------- */

.ftr {
  padding-block: clamp(28px, 3.4vw, 46px);
  border-top: 1px solid rgba(73, 73, 73, .14);
  background: #fff;
}

.ftr__in {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
}

.ftr__brandcol { display: flex; flex-direction: column; gap: 6px; }

.ftr__brand {
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-strong);
}

.ftr__cr { font-size: .85rem; color: var(--muted); }

.ftr__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px 32px;
}
@media (min-width: 640px) {
  .ftr__contacts { grid-template-columns: repeat(3, auto); }
}

.ftr__item { display: flex; flex-direction: column; gap: 3px; }

.ftr__label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ftr__link {
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 600;
  color: var(--ink-strong);
  text-decoration: none;
  transition: color .25s var(--ease);
  word-break: break-word;
}
.ftr__link:hover { color: var(--accent); }

/* ---------- reveal ---------- */

/* content visible by default; hidden only when JS is active and not yet revealed */
.reveal { opacity: 1; transform: none; }

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

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