/* ============================================================
   Trivex Global Supplies — Stylesheet
   ============================================================ */

:root {
  --navy:        #0e2f57;
  --navy-2:      #113a6b;
  --navy-deep:   #0a2544;
  --amber:       #f5a623;
  --amber-dark:  #e0940f;
  --ink:         #16202e;
  --muted:       #5b6b80;
  --line:        #e5eaf1;
  --bg:          #ffffff;
  --bg-soft:     #f4f7fb;
  --bg-soft-2:   #eef3f9;
  --white:       #ffffff;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 18px 40px -18px rgba(14, 47, 87, .28);
  --shadow-sm:   0 8px 24px -12px rgba(14, 47, 87, .22);
  --maxw:        1180px;
  --ff-head:     'Plus Jakarta Sans', system-ui, sans-serif;
  --ff-body:     'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }

h1, h2, h3, h4, h5 { font-family: var(--ff-head); line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.01em; }

.eyebrow {
  display: inline-block; font-family: var(--ff-head); font-weight: 700;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
}
.eyebrow--dark { color: var(--amber-dark); }

.section { padding: 96px 0; }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 700; font-size: .95rem;
  padding: 14px 28px; border-radius: 50px; cursor: pointer; border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { background: var(--amber); color: var(--navy-deep); box-shadow: 0 12px 24px -10px rgba(245,166,35,.7); }
.btn--primary:hover { background: var(--amber-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-2px); }
.btn--lg { padding: 17px 36px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ===== Topbar ===== */
.topbar { background: var(--navy-deep); color: #cdd8e6; font-size: .84rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar__left { display: flex; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #cdd8e6; transition: color .2s; }
.topbar__item:hover { color: var(--amber); }
.topbar .ic { width: 15px; height: 15px; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.header.scrolled { box-shadow: 0 6px 24px -14px rgba(14,47,87,.35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-deep));
  color: var(--amber); font-family: var(--ff-head); font-weight: 800; font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--ff-head); font-weight: 800; font-size: 1.15rem; color: var(--navy); letter-spacing: .02em; }
.brand__text small { font-size: .64rem; letter-spacing: .22em; color: var(--muted); font-weight: 600; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-family: var(--ff-head); font-weight: 600; font-size: .93rem; color: var(--ink);
  padding: 9px 15px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--navy); background: var(--bg-soft); }
.nav__cta { background: var(--navy); color: #fff; margin-left: 8px; padding: 11px 22px; border-radius: 50px; }
.nav__cta:hover { background: var(--navy-deep); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; overflow: hidden; padding: 96px 0 130px; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(245,166,35,.20), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(37,99,175,.35), transparent 60%),
    linear-gradient(135deg, var(--navy-deep), var(--navy-2) 55%, #17518f);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 720px; }
.hero .eyebrow { color: var(--amber); }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--amber); }
.hero__content > p { font-size: 1.15rem; color: #d3deee; margin-top: 20px; max-width: 620px; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero__badges { display: flex; gap: 14px; margin-top: 48px; flex-wrap: wrap; }
.hero__badge {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 14px 20px; backdrop-filter: blur(4px);
}
.hero__badge strong { display: block; font-family: var(--ff-head); font-size: 1.05rem; color: var(--amber); }
.hero__badge span { font-size: .82rem; color: #cdd8e6; }

.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; }
.hero__wave svg { width: 100%; height: 90px; }
.hero__wave path { fill: var(--bg); }

/* ===== Trust strip ===== */
.trust { background: var(--bg); }
.trust__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: -50px; position: relative; z-index: 2;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.trust__item { display: flex; align-items: center; gap: 14px; }
.trust__item .ic { width: 30px; height: 30px; color: var(--amber); padding: 0; }
.trust__item strong { display: block; font-family: var(--ff-head); color: var(--navy); font-size: 1rem; }
.trust__item span { font-size: .84rem; color: var(--muted); }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about__media { position: relative; min-height: 420px; }
.about__img { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow); background-size: cover; background-position: center; }
.about__img--1 {
  width: 74%; height: 300px; top: 0; left: 0;
  background: linear-gradient(135deg, #1c4d86, #0e2f57);
}
.about__img--1::after {
  content: '🌍'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; opacity: .9;
}
.about__img--2 {
  width: 56%; height: 230px; bottom: 0; right: 0; border: 6px solid #fff;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
}
.about__img--2::after {
  content: '📦'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.6rem;
}
.about__stat {
  position: absolute; left: 8%; bottom: 6%; z-index: 3;
  background: #fff; border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
}
.about__stat strong { font-family: var(--ff-head); font-size: 1.8rem; color: var(--amber-dark); }
.about__stat span { font-size: .8rem; color: var(--muted); line-height: 1.3; }

.about__content h2 { margin-bottom: 18px; }
.about__content p { color: var(--muted); margin-bottom: 16px; }
.about__list { margin: 24px 0 30px; display: grid; gap: 12px; }
.about__list li { display: flex; align-items: center; gap: 11px; font-weight: 500; color: var(--ink); }
.about__list .ic { color: #fff; background: var(--amber); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }

/* ===== Services ===== */
.services { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
}
.card__icon svg { width: 30px; height: 30px; fill: #fff; }
.card__icon--rose  { background: linear-gradient(135deg, #f472b6, #db2777); }
.card__icon--teal  { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.card__icon--amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.card__icon--blue  { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: 18px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.card__tags li { font-size: .74rem; font-weight: 600; color: var(--navy-2); background: var(--bg-soft-2); padding: 5px 11px; border-radius: 50px; }

/* ===== Why ===== */
.why { background: var(--navy-deep); color: #fff; }
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.why__intro .eyebrow { color: var(--amber); }
.why__intro h2 { color: #fff; margin-bottom: 18px; }
.why__intro p { color: #c3d0e2; margin-bottom: 28px; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; }
.feature { display: flex; gap: 16px; }
.feature__num { font-family: var(--ff-head); font-weight: 800; font-size: 1.5rem; color: var(--amber); flex: none; }
.feature h4 { color: #fff; font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: #b7c5d9; font-size: .9rem; }

/* ===== Stats ===== */
.stats { background: var(--amber); }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 54px 0; text-align: center; }
.stat strong { display: block; font-family: var(--ff-head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--navy-deep); }
.stat span { font-weight: 600; color: #6b4a08; font-size: .95rem; }

/* ===== Process ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step { text-align: center; padding: 0 8px; }
.step__dot {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-deep)); color: var(--amber);
  font-family: var(--ff-head); font-weight: 800; font-size: 1.3rem; box-shadow: var(--shadow-sm);
  position: relative; z-index: 2;
}
.step h4 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .9rem; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-2), var(--navy-deep));
  color: #fff; border-radius: 0;
}
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px 0; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #c3d0e2; margin-top: 8px; }

/* ===== Contact ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact__info h2 { margin-bottom: 16px; }
.contact__info > p { color: var(--muted); margin-bottom: 32px; }
.contact__list { display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; flex: none; }
.contact__ic svg { width: 20px; height: 20px; fill: var(--amber-dark); }
.contact__list strong { display: block; font-family: var(--ff-head); color: var(--navy); font-size: .98rem; margin-bottom: 2px; }
.contact__list a, .contact__list span { color: var(--muted); }
.contact__list a:hover { color: var(--amber-dark); }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--ff-head); font-weight: 600; font-size: .86rem; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--ff-body); font-size: .94rem; color: var(--ink); background: var(--bg-soft); transition: border .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: #fff; }
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; color: #0d9488; font-weight: 600; font-size: .9rem; text-align: center; }
.form-note--error { color: #dc2626; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .65; cursor: default; transform: none; }

/* ===== Footer ===== */
.footer { background: var(--navy-deep); color: #b7c5d9; padding-top: 66px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: #8fa2bd; }
.footer__col--brand p { margin-top: 18px; font-size: .92rem; max-width: 300px; }
.footer__col h5 { color: #fff; font-family: var(--ff-head); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col a, .footer__col span { display: block; color: #b7c5d9; font-size: .92rem; margin-bottom: 11px; transition: color .2s; }
.footer__col a:hover { color: var(--amber); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 12px; padding: 22px 0; flex-wrap: wrap; }
.footer__bar p { font-size: .84rem; color: #8fa2bd; }

/* ===== Back to top ===== */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--amber); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s; z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 24px; height: 24px; fill: var(--navy-deep); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .about__grid, .why__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__media { max-width: 460px; }
  .cards, .trust__inner { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .why__list { gap: 26px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px 28px; }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .topbar__item--hide { display: none; }
  .topbar__inner { justify-content: center; }
  .nav {
    position: fixed; top: 74px; right: 0; width: min(300px, 82%); height: calc(100vh - 74px);
    background: #fff; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 22px; box-shadow: -12px 0 40px -12px rgba(0,0,0,.25);
    transform: translateX(100%); transition: transform .32s ease; z-index: 99;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav__link { padding: 14px 16px; font-size: 1rem; }
  .nav__cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
  .hero { padding: 70px 0 110px; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .cta-banner__inner { flex-direction: column; text-align: center; align-items: center; }
  .cta-banner .btn--lg { width: 100%; max-width: 340px; }

  /* ---- Footer: collapse to 2 columns, tidy spacing ---- */
  .footer { padding-top: 54px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; padding-bottom: 40px; }
  .footer__col--brand { grid-column: 1 / -1; }
  .footer__col--brand p { max-width: 420px; }
  .footer__bar-inner { justify-content: center; text-align: center; flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .cards, .trust__inner, .steps, .field-row { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr; }
  .hero__badge { flex: 1 1 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .contact__form { padding: 22px; }
  .brand__text small { letter-spacing: .16em; }

  /* ---- Footer: single column, centered ---- */
  .footer { padding-top: 46px; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
  .footer__col--brand { grid-column: auto; }
  .footer .brand--footer { justify-content: center; }
  .footer__col--brand p { margin-left: auto; margin-right: auto; }
  .footer__col span { line-height: 1.55; }

  /* keep the back-to-top button clear of footer content */
  .to-top { right: 16px; bottom: 16px; }
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
