/* =========================================================
   AGERS — site stylesheet
   ========================================================= */
:root {
  --ink: #0b0f17;          /* near-black navy */
  --ink-2: #141b27;
  --text: #1d2430;
  --muted: #5d6675;
  --line: #d9dee5;
  --bg: #ffffff;
  --bg-soft: #f0f2f4;
  --accent: #0b6fd0;       /* logo blue */
  --accent-2: #3fb6ff;
  --silver: #c3c9d2;
  --header-h: 72px;
  --max: 1200px;
  --font: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #fff; }

/* ---------- Eyebrow label ( > WHAT WE TRADE ) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--accent-2); }
.h-section { font-size: clamp(28px, 3.4vw, 40px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 30px;
  border: 1px solid var(--accent); color: var(--accent);
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  background: transparent; cursor: pointer; font-family: inherit;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.85); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: #095aa9; border-color: #095aa9; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 28px;
  color: #fff;
  transition: background .35s, box-shadow .35s;
}
.header.is-solid, .header--solid { background: rgba(11,15,23,.96); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header__logo img { height: 34px; width: auto; }
.header__contact {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
}
.header__contact::after {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
.burger {
  justify-self: start; width: 30px; height: 22px; position: relative;
  background: none; border: 0; padding: 0; cursor: pointer; color: #fff;
}
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .3s, opacity .3s, top .3s;
}
.burger::before { top: 3px; }
.burger span { top: 10px; }
.burger::after { top: 17px; }
.menu-open .burger::before { top: 10px; transform: rotate(45deg); }
.menu-open .burger span { opacity: 0; }
.menu-open .burger::after { top: 10px; transform: rotate(-45deg); }

/* Fullscreen menu */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: #080b12;
  color: #fff;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu__inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; }
.menu__main a {
  display: block; font-size: clamp(28px, 4vw, 46px); font-weight: 300; padding: 6px 0;
  color: rgba(255,255,255,.75); transition: color .2s, transform .2s;
}
.menu__main a:hover, .menu__main a[aria-current="page"] { color: #fff; transform: translateX(6px); }
.menu__sub h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
.menu__sub a { display: block; padding: 6px 0; color: rgba(255,255,255,.75); }
.menu__sub a:hover { color: #fff; }

/* =========================================================
   Hero slider
   ========================================================= */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--ink); color: #fff; }
.hero__slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__bg {
  position: absolute; inset: -2%;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.hero__slide.is-active .hero__bg { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,15,.55) 0%, rgba(5,8,15,.35) 45%, rgba(5,8,15,.75) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 0 24px; max-width: 900px; }
.hero__kicker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--silver); margin-bottom: 14px; }
.hero__title {
  font-size: clamp(30px, 5vw, 56px); font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 28px; text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero__bars {
  position: absolute; z-index: 3; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 16px;
}
.hero__bar {
  width: 60px; height: 14px; padding: 6px 0; background: none; border: 0; cursor: pointer;
}
.hero__bar i { display: block; height: 2px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.hero__bar i::after {
  content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left;
}
.hero__bar.is-active i::after { animation: barfill var(--slide-ms, 6000ms) linear forwards; }
.hero__bar.is-done i::after { transform: scaleX(1); }
@keyframes barfill { to { transform: scaleX(1); } }

/* Inner-page hero (shorter) */
.page-hero {
  position: relative; min-height: 56vh; display: flex; align-items: flex-end;
  color: #fff; background: var(--ink) center/cover no-repeat;
  padding: calc(var(--header-h) + 60px) 0 70px;
}
.page-hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,15,.5), rgba(5,8,15,.85)); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 400; margin: 0; }
.page-hero p { max-width: 640px; color: rgba(255,255,255,.8); margin: 14px 0 0; font-size: 18px; }

/* =========================================================
   Statement + stats
   ========================================================= */
.statement {
  text-align: center; font-size: clamp(18px, 2.1vw, 24px); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1.6;
  max-width: 760px; margin: 0 auto 90px; color: var(--ink-2);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { border-top: 2px solid #8fa2c4; padding-top: 16px; }
.stat__value { font-size: 30px; font-weight: 400; color: var(--ink-2); line-height: 1.2; }
.stat__value small { font-size: 14px; font-weight: 500; margin-left: 4px; }
.stat__label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* =========================================================
   Portfolio (dark, element tiles)
   ========================================================= */
.portfolio {
  position: relative; color: #fff; overflow: hidden;
  background: var(--ink) url("../img/globe.jpg") center top / cover no-repeat;
}
.portfolio::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,15,.35), rgba(5,8,15,.9) 75%); }
.portfolio .container { position: relative; }
.portfolio__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 60px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tile {
  border: 1px solid rgba(255,255,255,.55); padding: 18px 20px 20px;
  display: flex; flex-direction: column; min-height: 200px;
  background: rgba(10,16,28,.35); backdrop-filter: blur(2px);
  transition: border-color .25s, background .25s, transform .25s;
}
.tile:hover { border-color: var(--accent-2); background: rgba(11,111,208,.18); transform: translateY(-4px); }
.tile__num { font-size: 11px; color: rgba(255,255,255,.6); }
.tile__sym { font-size: 32px; font-weight: 500; line-height: 1.15; margin: 10px 0 8px; }
.tile__name { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.tile__more { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--accent-2); }

/* =========================================================
   Product cards
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.card { display: grid; grid-template-columns: 42% 1fr; background: #fff; border: 1px solid var(--line); transition: box-shadow .3s; }
.card:hover { box-shadow: 0 18px 40px -20px rgba(11,15,23,.35); }
.card__img { overflow: hidden; min-height: 260px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 28px; display: flex; flex-direction: column; }
.card__body h3 { font-size: 22px; }
.card__body p { color: var(--muted); font-size: 15px; }
.card__body .btn { margin-top: auto; align-self: flex-start; }

/* =========================================================
   Process steps
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; margin-top: 50px; }
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 13px; letter-spacing: .1em; color: var(--accent); margin-bottom: 10px; font-weight: 600;
}
.step h4 { font-size: 18px; font-weight: 500; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* =========================================================
   Split block (image + text)
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split__img img { width: 100%; height: 440px; object-fit: cover; }
.split p { color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); padding: 5px 12px; font-size: 13px; color: var(--ink-2); }

/* =========================================================
   CTA band
   ========================================================= */
.cta {
  background: linear-gradient(110deg, #08101e 0%, #0b2a52 60%, #0b6fd0 140%);
  color: #fff; padding: 80px 0;
}
.cta .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.cta p { margin: 8px 0 0; color: rgba(255,255,255,.75); }

/* =========================================================
   Product detail page
   ========================================================= */
.product-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 70px; align-items: start; }
.product-layout > * { min-width: 0; }  /* let wide tables scroll inside instead of stretching the page */
.product-layout h2 { font-size: 28px; margin-top: 10px; }
.product-layout p, .product-layout li { color: var(--muted); }
.product-layout ul { padding-left: 18px; }
.product-layout li { margin-bottom: 6px; }
.spec { width: 100%; border-collapse: collapse; margin: 10px 0 8px; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 500; color: var(--text); width: 42%; padding-right: 16px; }
.spec td { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }
.aside-box { background: var(--bg-soft); padding: 32px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-box img { margin: -32px -32px 24px; width: calc(100% + 64px); max-width: none; height: 240px; object-fit: cover; }
.aside-box h3 { font-size: 20px; }
.aside-box .btn { width: 100%; text-align: center; margin-top: 8px; }
.other-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini { position: relative; display: block; height: 220px; overflow: hidden; color: #fff; }
.mini img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mini:hover img { transform: scale(1.06); }
.mini span { position: absolute; inset: auto 0 0 0; padding: 40px 20px 18px; font-size: 18px;
  background: linear-gradient(180deg, transparent, rgba(5,8,15,.85)); }

/* =========================================================
   Sector pages
   ========================================================= */
.sector-products { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 10px; }
.sector-products .mini { height: 200px; }
.sector-products .mini:last-child:nth-child(odd) { grid-column: 1 / -1; }  /* odd count: last tile spans full width */
.sector-products .mini small { display: block; font-size: 13px; color: rgba(255,255,255,.8); margin-top: 2px; }
.cat { margin-top: 40px; }
.cat h3 { font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.cat h3 span { font-size: 12px; letter-spacing: .12em; color: var(--accent); margin-right: 10px; font-weight: 600; }
.cat > p { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.ptable th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  font-weight: 600; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink-2); }
.ptable td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.ptable td:first-child { color: var(--text); font-weight: 500; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 22px; }
.services div { border-top: 1px solid var(--line); padding-top: 16px; }
.services h4 { font-size: 17px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.services p { font-size: 15px; margin: 0; }
@media (max-width: 640px) {
  .sector-products, .services { grid-template-columns: 1fr; }
}

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0 6px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 220px; object-fit: cover; }
.gallery figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }
.gallery figcaption strong { display: block; font-size: 15px; font-weight: 500; color: var(--text); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

/* =========================================================
   Contact form
   ========================================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 70px; }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: 24px; font-weight: 600; }
.contact-info dd { margin: 6px 0 0; color: var(--text); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--text);
  border: 1px solid var(--line); background: #fff; border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11,111,208,.12); }
.field textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 16px 20px; margin-bottom: 28px; font-size: 15px; }
.alert--ok { background: #e7f4ec; color: #1d6b3c; border-left: 3px solid #2e9b5a; }
.alert--err { background: #fbeaea; color: #8a2626; border-left: 3px solid #c43c3c; }

/* Prose (privacy etc.) */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: var(--muted); }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--bg-soft); padding: 70px 0 0; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; padding-bottom: 50px; }
.footer a.footer__logo { background: var(--ink); display: inline-block; padding: 12px 16px; margin-bottom: 16px; }
.footer__logo img { height: 28px; width: auto; }
.footer h5 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; color: var(--ink-2); }
.footer a { display: block; color: var(--muted); padding: 3px 0; }
.footer a:hover { color: var(--accent); }
.footer p { color: var(--muted); }
.footer__bottom { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 13px; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom a { display: inline; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 30; width: 40px; height: 40px;
  border: 0; background: none; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .3s;
}
.to-top::before { content: ""; position: absolute; left: 13px; top: 16px; width: 12px; height: 12px;
  border-left: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); }
.to-top.is-visible { opacity: 1; visibility: visible; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide.is-active .hero__bg { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .tiles, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .split, .product-layout, .contact-layout { grid-template-columns: 1fr; gap: 44px; }
  .aside-box { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .header { padding: 0 16px; }
  .container { padding: 0 16px; }
  .header__logo img { height: 26px; }
  .header__contact { font-size: 13px; }
  .section { padding: 72px 0; }
  .statement { margin-bottom: 56px; letter-spacing: .1em; }
  .tiles { gap: 14px; }
  .tile { min-height: 160px; padding: 14px; }
  .tile__sym { font-size: 22px; }
  .card { grid-template-columns: 1fr; }
  .card__img { min-height: 200px; height: 220px; }
  .form { grid-template-columns: 1fr; }
  .menu__inner { grid-template-columns: 1fr; gap: 36px; }
  .other-products { grid-template-columns: 1fr; }
  .split__img img { height: 280px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
