/* ==================================================
   1. RESET / VARIABLES
================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure, form, input, textarea, button { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; }

:root {
  /* Brand palette (from logo identity) */
  --navy: #0B2A4A;
  --navy-dark: #071A30;
  --accent: #17A6A0;
  --accent-dark: #0E8A85;
  --white: #FFFFFF;
  --light: #F5F8F9;
  --border: #E2E8EC;
  --ink: #17222C;
  --gray: #5C6B77;
  --gray-light: #8B99A4;

  /* Type */
  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-s: 4px;
  --radius-m: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ==================================================
   2. GLOBAL STYLES
================================================== */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); font-weight: 700; line-height: 1.2; }

h2 { font-size: 2.1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

p { color: var(--gray); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.eyebrow--light { color: var(--accent); }

section h2 { margin-bottom: 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-s);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--navy-dark);
}
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }

.btn--ghost {
  border: 1px solid rgba(255,255,255,0.55);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn--outline-dark {
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.btn--outline-dark:hover { background: rgba(255,255,255,0.12); }

.btn--sm { padding: 10px 20px; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================================================
   3. NAVBAR
================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}
.navbar.is-scrolled { box-shadow: 0 4px 20px rgba(11,42,74,0.06); }

.navbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.25s ease;
}
.navbar.is-scrolled .navbar__inner { padding: 12px 32px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.brand__mark { color: var(--navy); display: flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand__sub { font-size: 0.68rem; color: var(--gray); letter-spacing: 0.03em; }

.nav__list { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy); font-weight: 600; }

.navbar__actions { display: flex; align-items: center; gap: 18px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid var(--border);
  transition: max-height 0.3s ease;
}
.mobile-nav.is-open { max-height: 480px; }
.mobile-nav ul { padding: 8px 32px; }
.mobile-nav__link {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.mobile-nav .btn { margin: 18px 32px 24px; }

/* ==================================================
   4. HERO
================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(7,26,48,0.92) 0%, rgba(7,26,48,0.78) 40%, rgba(7,26,48,0.55) 75%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 140px 32px 80px;
}
.hero__content .eyebrow { color: var(--accent); }
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  max-width: 720px;
  margin-bottom: 22px;
}
.hero__text {
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__routeline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 32px 36px;
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.hero__routeline svg { flex: 1; height: 10px; color: rgba(255,255,255,0.3); }

/* ==================================================
   5. INTRO
================================================== */
.intro { padding: 96px 0; background: var(--white); }
.intro__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.intro__heading h2 { font-size: 2rem; }
.intro__body p { font-size: 1.02rem; margin-bottom: 16px; max-width: 46ch; }
.intro__body p:last-child { margin-bottom: 0; }

/* ==================================================
   6. SERVICES
================================================== */
.services { padding: 100px 0; background: var(--light); }

.section-head { max-width: 560px; margin-bottom: 56px; }
.section-head p { font-size: 1.02rem; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--white);
  padding: 40px 34px;
  position: relative;
  transition: background-color 0.25s ease;
}
.service-card:hover { background: var(--white); }
.service-card:hover .service-card__icon { color: var(--accent); transform: translateY(-2px); }
.service-card__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gray-light);
  margin-bottom: 28px;
}
.service-card__icon {
  display: block;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 20px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { font-size: 0.95rem; }

/* ==================================================
   7. CHEMICAL LOGISTICS
================================================== */
.chemical { background: var(--navy-dark); color: var(--white); }
.chemical__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 560px;
}
.chemical__media { position: relative; overflow: hidden; }
.chemical__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.chemical__content {
  padding: 90px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chemical__content h2 { color: var(--white); font-size: 2rem; }
.chemical__content p { color: rgba(255,255,255,0.72); font-size: 1.02rem; max-width: 46ch; margin-bottom: 30px; }

.chemical__list { display: grid; gap: 14px; }
.chemical__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}
.chemical__list i {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(23,166,160,0.16);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ==================================================
   8. WHY AVENTRA
================================================== */
.why { padding: 100px 0; background: var(--white); }
.why .section-head { margin-bottom: 56px; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.why-item { background: var(--white); padding: 38px; }
.why-item__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.why-item h3 { margin-bottom: 8px; }
.why-item p { font-size: 0.95rem; }

/* ==================================================
   9. GLOBAL LOGISTICS VISUAL
================================================== */
.global { background: var(--navy); color: var(--white); padding: 100px 0; }
.global__inner { text-align: center; }
.global__inner h2 { color: var(--white); max-width: 560px; margin: 0 auto 56px; }

.global__diagram { position: relative; max-width: 900px; margin: 0 auto; }
.global__diagram svg { width: 100%; height: auto; display: block; }
.global__labels {
  display: flex;
  justify-content: space-between;
  margin-top: -8px;
  padding: 0 4%;
}
.global__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.global__label i { font-size: 1.1rem; color: var(--accent); }
.global__label:nth-child(2) { transform: translateY(-16px); }

/* ==================================================
   10. CTA
================================================== */
.cta { background: var(--navy-dark); color: var(--white); padding: 100px 0; }
.cta__inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta__inner h2 { color: var(--white); font-size: 2.1rem; margin-bottom: 16px; }
.cta__inner p { color: rgba(255,255,255,0.72); font-size: 1.05rem; margin-bottom: 36px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ==================================================
   11. CONTACT
================================================== */
.contact { padding: 100px 0; background: var(--light); }
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
}
.contact__info h2 { margin-bottom: 28px; }
.contact__company {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.contact__company strong { font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.contact__company span { color: var(--gray); font-size: 0.95rem; }

.contact__list { display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list i {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact__list a { font-weight: 500; color: var(--ink); transition: color 0.2s ease; }
.contact__list a:hover { color: var(--accent-dark); }

.contact__form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-field input, .form-field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.form-field.has-error input, .form-field.has-error textarea { border-color: #C24444; }
.form-error { font-size: 0.78rem; color: #C24444; min-height: 1em; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(23,166,160,0.1);
  border: 1px solid rgba(23,166,160,0.35);
  border-radius: var(--radius-s);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success.is-visible { display: flex; }
.form-success i { font-size: 1.05rem; }

/* ==================================================
   12. FOOTER
================================================== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: 48px;
  padding: 72px 32px 56px;
}
.brand--footer .brand__name--footer { color: var(--white); }
.footer__brand p { margin-top: 16px; color: rgba(255,255,255,0.85); font-weight: 500; }
.footer__tagline { color: rgba(255,255,255,0.5) !important; font-weight: 400 !important; font-size: 0.88rem; margin-top: 6px !important; }

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.footer__nav ul { display: grid; gap: 12px; }
.footer__nav a, .footer__contact a { color: rgba(255,255,255,0.68); font-size: 0.92rem; transition: color 0.2s ease; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--accent); }
.footer__contact p { color: rgba(255,255,255,0.68); font-size: 0.92rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer__contact i { width: 16px; color: var(--accent); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
}
.footer__bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); text-align: center; }

/* ==================================================
   BACK TO TOP
================================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); }

/* ==================================================
   13. RESPONSIVE STYLES
================================================== */
@media (max-width: 1024px) {
  .intro__grid { grid-template-columns: 1fr; gap: 28px; }
  .chemical__content { padding: 64px 40px; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .navbar__actions .btn--primary { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .chemical__grid { grid-template-columns: 1fr; }
  .chemical__media img { min-height: 260px; }
  .chemical__content { padding: 56px 32px; }

  .global__labels { padding: 0; }
  .global__label:nth-child(2) { transform: translateY(-8px); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .navbar__inner { padding: 14px 20px; }
  .navbar.is-scrolled .navbar__inner { padding: 10px 20px; }

  .hero { min-height: 100vh; }
  .hero__content { padding: 120px 20px 56px; }
  .hero__title { font-size: 2.1rem; }
  .hero__text { font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__routeline { padding: 0 20px 28px; font-size: 0.62rem; }

  .intro { padding: 64px 0; }
  .intro__heading h2 { font-size: 1.6rem; }

  .services, .why, .contact, .global, .cta { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .service-card, .why-item { padding: 30px 24px; }

  .chemical__content h2 { font-size: 1.6rem; }

  .cta__inner h2 { font-size: 1.7rem; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__actions .btn { width: 100%; }

  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 22px; }

  .footer__grid { grid-template-columns: 1fr; padding: 56px 20px 40px; gap: 40px; }
  .back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; }
}

/* ==================================================
   14. ANIMATIONS
================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { will-change: transform, opacity; }
}