/* Smart Logistics & Trading Company — site styles. Mobile-first, no dependencies. */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* Brand (sampled from the company profile letterhead) */
  --yellow: #eeba2b;
  --yellow-soft: #fbf1d3;
  --gold-text: #7a5a00;        /* accessible accent on light backgrounds (≥ 6:1 on white) */
  --charcoal: #3a3a30;
  --charcoal-deep: #26261f;
  --ink: #22221e;

  /* Neutrals */
  --white: #fff;
  --paper: #faf8f3;
  --line: #e4e0d5;
  --muted: #5c5b52;            /* ≥ 6:1 on white and paper */
  --on-dark: #f3f1ea;
  --on-dark-muted: #c9c6b9;

  --whatsapp: #0f7a4f;        /* WhatsApp green, darkened for ≥ 4.5:1 with white text */
  --whatsapp-dark: #0b5e3c;
  --danger: #b42318;
  --success: #1e6b3a;

  /* Type */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: 1.125rem;
  --fs-h2: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem);
  --fs-h1: clamp(2rem, 1.35rem + 2.9vw, 3.5rem);
  --lh-tight: 1.15;
  --lh: 1.6;

  /* Space scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  /* Layout & surfaces */
  --container: 72rem;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --header-h: 4rem;
  --radius: 0.5rem;
  --radius-sm: 0.25rem;
  --shadow: 0 1px 2px rgb(34 34 30 / 6%), 0 4px 16px rgb(34 34 30 / 6%);
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--charcoal);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: var(--lh-tight); letter-spacing: -0.01em; }
p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
address { font-style: normal; }

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }

.sprite { display: none; }
.visually-hidden {
  position: absolute !important; /* utility must win over component rules */
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -4rem; z-index: 100;
  padding: var(--s-2) var(--s-4); background: var(--charcoal); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: var(--s-2); }

/* ==========================================================================
   3. Layout utilities
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }
.section--compact { padding-block: calc(var(--section-y) * 0.75); }
.section--tint { background: var(--paper); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }

.section__head { max-width: 42rem; margin-bottom: var(--s-6); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: var(--fs-h2); margin-bottom: var(--s-4); }
.section__lead { font-size: var(--fs-lead); color: var(--muted); }
.section--dark .section__lead { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--gold-text); }

/* ==========================================================================
   4. Components: buttons, icons, cards, lists
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 2.875rem; padding: var(--s-3) var(--s-5);
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: #e2aa12; }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgb(255 255 255 / 8%); }
.btn--sm { min-height: 2.5rem; padding: var(--s-2) var(--s-4); }
.btn--block { width: 100%; }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); }
.btn[disabled] { opacity: .65; cursor: progress; }

.icon {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon--tile {
  width: 3rem; height: 3rem; padding: 0.7rem;
  border-radius: var(--radius); background: var(--yellow-soft); color: var(--charcoal);
}
.icon--on-dark { background: rgb(238 186 43 / 16%); color: var(--yellow); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.ticks { display: grid; gap: var(--s-2); }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.7rem; height: 0.4rem;
  border-left: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text);
  transform: rotate(-45deg);
}

/* ==========================================================================
   5. Header & navigation
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgb(34 34 30 / 6%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--ink); }
.brand__mark { width: 2.75rem; height: auto; }
.brand__name { display: flex; flex-direction: column; font-weight: 800; font-size: 1.0625rem; line-height: 1.1; letter-spacing: 0.01em; text-transform: uppercase; }
.brand__sub { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.brand--light { color: var(--white); }
.brand--light .brand__sub { color: var(--on-dark-muted); }

.nav-toggle {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 1.25rem; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile: menu is a dropdown panel. Without JS the toggle is hidden and the list shows inline (scripting: none). */
.nav {
  position: absolute; inset: 100% 0 auto 0;
  background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgb(34 34 30 / 8%);
  display: none;
}
.nav.is-open { display: block; }
.nav__list { display: grid; gap: var(--s-1); padding: var(--s-3) var(--gutter) var(--s-5); }
.nav__list a:not(.btn) { display: block; padding: var(--s-3) 0; font-weight: 600; text-decoration: none; }
.nav__list a:not(.btn):hover { color: var(--gold-text); }
.nav__list .btn { margin-top: var(--s-2); width: 100%; }

@media (scripting: none) {
  .nav-toggle { display: none; }
  .header__inner { flex-wrap: wrap; padding-block: var(--s-2); }
  .nav { position: static; display: block; box-shadow: none; border: 0; }
  .nav__list { display: flex; flex-wrap: wrap; gap: var(--s-4); padding: 0; }
  .nav__list .btn { margin: 0; width: auto; }
}

@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .nav { position: static; display: block; background: none; border: 0; box-shadow: none; }
  .nav__list { display: flex; align-items: center; gap: var(--s-5); padding: 0; }
  .nav__list a:not(.btn) { padding: var(--s-2) 0; font-size: 0.9375rem; }
  .nav__list .btn { margin: 0 0 0 var(--s-2); width: auto; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--charcoal); color: var(--on-dark);
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem) var(--s-6);
}
/* Diagonal yellow band echoing the company letterhead. */
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto;
  width: 60%; height: 7px; background: var(--yellow);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__inner { position: relative; display: grid; gap: var(--s-6); align-items: center; }
.hero__title { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--s-5); max-width: 20ch; }
.hero__accent { display: block; color: var(--yellow); }
.hero__dot { color: var(--yellow); }
.hero__lead { font-size: var(--fs-lead); color: var(--on-dark-muted); max-width: 38rem; margin-bottom: var(--s-6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero .btn--primary:focus-visible, .hero .btn--ghost:focus-visible { box-shadow: 0 0 0 3px var(--charcoal), 0 0 0 5px var(--yellow); }

.hero__visual { display: none; }
.hero__svg { width: 100%; height: auto; }
.hero__route { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; }
.hero__route--alt { stroke: rgb(243 241 234 / 35%); }
.hero__node { fill: var(--charcoal); stroke: var(--on-dark-muted); stroke-width: 3; }
.hero__node--hub { fill: var(--yellow); stroke: rgb(238 186 43 / 35%); stroke-width: 12; }
.hero__node--end { fill: var(--yellow); stroke: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero__route { animation: route-flow 2.4s linear infinite; }
}
@keyframes route-flow { to { stroke-dashoffset: -24; } }

@media (min-width: 56rem) {
  .hero__inner { grid-template-columns: 1.4fr 1fr; }
  .hero__visual { display: block; }
}

.facts {
  position: relative; display: grid; gap: var(--s-4);
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); padding-top: var(--s-5);
  border-top: 1px solid rgb(243 241 234 / 18%);
}
.facts__item { display: flex; align-items: baseline; gap: var(--s-3); }
.facts__value { min-width: 4rem; font-size: 1.75rem; font-weight: 800; color: var(--yellow); line-height: 1; }
.facts__label { color: var(--on-dark-muted); font-size: 0.9375rem; }
@media (min-width: 40rem) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts__item { flex-direction: column; gap: var(--s-1); }
}

/* ==========================================================================
   7. About
   ========================================================================== */
.about { display: grid; gap: var(--s-6); }
.about__intro p + p { margin-top: var(--s-4); }
.about__intro p { color: var(--muted); font-size: var(--fs-lead); }
.about__intro strong { color: var(--ink); }
.about__statements { display: grid; gap: var(--s-4); }
.statement { padding: var(--s-5); border-left: 4px solid var(--yellow); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.statement__title { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
@media (min-width: 56rem) {
  .about { grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: start; }
}

/* ==========================================================================
   8. Services
   ========================================================================== */
.services { display: grid; gap: var(--s-4); }
.service { display: flex; flex-direction: column; gap: var(--s-4); }
.service > p { color: var(--muted); }
.service__title { font-size: 1.25rem; }
.service .ticks { flex: 1; font-size: 0.9375rem; }
.service__link {
  display: inline-flex; align-items: center; gap: var(--s-2); align-self: flex-start;
  padding-top: var(--s-3); font-weight: 650; color: var(--gold-text); text-decoration: none;
}
.service__link:hover { text-decoration: underline; }
.service__link .icon { width: 1.1rem; height: 1.1rem; transition: transform .15s; }
.service__link:hover .icon { transform: translateX(3px); }
@media (min-width: 40rem) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .services { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   9. Why us
   ========================================================================== */
.why { display: grid; gap: var(--s-6); }
.why__head .section__lead { margin-bottom: var(--s-5); }
.why__list { display: grid; gap: var(--s-5); }
.why__item { display: flex; gap: var(--s-4); }
.why__item h3 { font-size: var(--fs-h3); color: var(--white); margin-bottom: var(--s-1); }
.why__item p { color: var(--on-dark-muted); }
.section--dark .btn--primary:focus-visible { box-shadow: 0 0 0 3px var(--charcoal), 0 0 0 5px var(--yellow); }
@media (min-width: 40rem) { .why__list { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } }
@media (min-width: 64rem) { .why { grid-template-columns: 1fr 1.5fr; gap: var(--s-7); align-items: center; } }

/* ==========================================================================
   10. Leadership
   ========================================================================== */
.leaders { display: grid; gap: var(--s-4); }
.leader { display: flex; flex-direction: column; gap: var(--s-4); }
.leader > p { color: var(--muted); font-size: 0.9375rem; }
.leader__head { display: flex; align-items: center; gap: var(--s-4); }
.leader__initials {
  display: grid; place-items: center; flex: none;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--charcoal); color: var(--yellow); font-weight: 800; letter-spacing: 0.04em;
}
.leader__name { font-size: 1.1875rem; }
.leader__role { font-size: var(--fs-sm); font-weight: 600; color: var(--gold-text); margin-top: var(--s-1); }
@media (min-width: 56rem) { .leaders { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   11. Client logos
   ========================================================================== */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); align-items: stretch; }
.logos li {
  display: grid; place-items: center; height: 7rem; padding: var(--s-4);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.logos img { width: auto; max-width: 100%; max-height: 4.5rem; object-fit: contain; }
.logos li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 48rem) {
  .logos { grid-template-columns: repeat(5, 1fr); }
  .logos li:last-child:nth-child(odd) { grid-column: auto; }
}

/* ==========================================================================
   12. Contact & form
   ========================================================================== */
.contact { display: grid; gap: var(--s-6); }
@media (min-width: 64rem) { .contact { grid-template-columns: 1fr 1.15fr; gap: var(--s-7); align-items: start; } }

.contact__subtitle { font-size: var(--fs-h3); margin: var(--s-6) 0 var(--s-4); }
.contact-list, .offices { display: grid; gap: var(--s-4); }
.contact-list li, .office { display: flex; gap: var(--s-3); align-items: flex-start; }
.contact-list .icon, .office .icon { margin-top: 0.15rem; color: var(--gold-text); }
.contact-list a { font-weight: 650; overflow-wrap: anywhere; }
.contact-list__note { display: block; font-size: var(--fs-sm); color: var(--muted); }
.office__name { font-weight: 700; }
.office address { color: var(--muted); }
.office__map { display: inline-block; margin-top: var(--s-1); font-size: var(--fs-sm); font-weight: 600; color: var(--gold-text); }

.form { display: grid; gap: var(--s-5); }
.form__title { font-size: 1.375rem; }
.form__note, .form__privacy { font-size: var(--fs-sm); color: var(--muted); }
.form__note { margin-top: calc(var(--s-4) * -1); }
.form__grid { display: grid; gap: var(--s-4); }
@media (min-width: 40rem) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: grid; gap: var(--s-1); }
.field label { font-weight: 600; font-size: 0.9375rem; }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 2.875rem; padding: var(--s-3);
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #a9a597; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--charcoal); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { min-height: 0; font-size: var(--fs-sm); color: var(--danger); }
.field__error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: grid; gap: var(--s-3); }
@media (min-width: 40rem) { .form__actions { grid-template-columns: 1fr 1fr; } }
.form__status { font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-error, .form__status.is-success { padding: var(--s-3) var(--s-4); border-radius: var(--radius); }
.form__status.is-error { color: var(--danger); background: #fdecea; }
.form__status.is-success { color: var(--success); background: #e8f4ec; }
.form__status a { color: inherit; }

/* ==========================================================================
   13. Footer & back-to-top
   ========================================================================== */
.footer { background: var(--charcoal-deep); color: var(--on-dark-muted); padding-top: var(--s-7); font-size: 0.9375rem; }
.footer a { color: var(--on-dark); }
.footer :focus-visible { box-shadow: 0 0 0 2px var(--yellow); }
.footer__inner { display: grid; gap: var(--s-6); padding-bottom: var(--s-6); }
.footer__brand p { margin-top: var(--s-4); max-width: 26rem; }
.footer__title { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--yellow); margin-bottom: var(--s-3); }
.footer__col ul { display: grid; gap: var(--s-2); }
.footer__col a { text-decoration: none; overflow-wrap: anywhere; }
.footer__col a:hover { text-decoration: underline; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  padding-block: var(--s-5); border-top: 1px solid rgb(243 241 234 / 12%); font-size: var(--fs-sm);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }
@media (min-width: 48rem) { .footer__inner { grid-template-columns: 1.5fr 1fr 1.3fr; } }

.to-top {
  position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 40;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; background: var(--charcoal); color: var(--yellow); box-shadow: var(--shadow);
}
.to-top[hidden] { display: none; }
.wa-fab {
  position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 40;
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 3rem; padding: var(--s-3) var(--s-4);
  border-radius: 999px; background: var(--whatsapp); color: var(--white);
  font-weight: 650; text-decoration: none; box-shadow: 0 4px 16px rgb(15 122 79 / 35%);
}
.wa-fab:hover { background: var(--whatsapp-dark); }
.wa-fab .icon { width: 1.5rem; height: 1.5rem; }
.wa-fab__label { display: none; }
@media (min-width: 48rem) { .wa-fab__label { display: inline; } }
/* Back-to-top sits above the WhatsApp button. */
.to-top { bottom: calc(var(--s-4) + 3.75rem); right: calc(var(--s-4) + 0.125rem); }
/* On small screens the floating buttons would cover the form; hide them while it is in view. */
@media (max-width: 63.99rem) { .form-in-view .to-top, .form-in-view .wa-fab { display: none; } }

/* ==========================================================================
   14. Standalone pages (privacy, terms, 404)
   ========================================================================== */
.page { padding-block: var(--section-y); }
.prose { max-width: 46rem; }
.prose h1 { font-size: var(--fs-h2); margin-bottom: var(--s-3); }
.prose h2 { font-size: 1.25rem; margin: var(--s-6) 0 var(--s-3); }
.prose p, .prose ul { margin-bottom: var(--s-4); color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li + li { margin-top: var(--s-1); }
.prose a { color: var(--gold-text); font-weight: 600; }
.prose__updated { font-size: var(--fs-sm); }

.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: var(--s-4); }
.notfound__code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 800; color: var(--gold-text); line-height: 1; }
.notfound .hero__ctas { justify-content: center; }
.notfound .btn--ghost { color: var(--ink); }
