/* ============================================================
   NEXORA LOGISTICS — COMPONENTS
   ============================================================ */

/* ---------- HEADER ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}

header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 8px 24px rgba(14, 27, 51, 0.06);
}

nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--navy);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--dur-fast) var(--ease);
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--card-border);
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  padding: 3px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 4px;
}

.lang-switch button {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.lang-switch button.is-active {
  background: var(--navy);
  color: var(--white);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: var(--bg-soft);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0 22px;
  border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
  display: flex;
}

.mobile-panel a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}

.mobile-panel .nav-actions {
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ---------- HERO ---------- */

.hero {
  padding: 68px 0 90px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(226, 96, 15, 0.25);
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: var(--accent);
}

h1 {
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 640px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-copy {
  max-width: 540px;
  margin: 24px 0 34px;
  color: var(--muted);
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-small {
  display: flex;
  gap: 30px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-small div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
}

.hero-small .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.hero-small .check svg {
  width: 11px;
  height: 11px;
}

/* ---------- HERO MEDIA (photo) ---------- */

.hero-media {
  position: relative;
}

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
}

.hero-photo img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(11, 32, 67, 0.28), rgba(11, 32, 67, 0) 45%);
}

.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  z-index: 2;
}

.hero-badge .icon-sm {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  flex-shrink: 0;
}

.hero-badge .icon-sm svg {
  width: 17px;
  height: 17px;
}

.hero-badge-1 {
  top: 24px;
  left: -18px;
}

.hero-badge-2 {
  bottom: 26px;
  right: -16px;
}

.hero-badge-3 {
  bottom: -20px;
  left: 40px;
}

/* ---------- TRUST / METRICS ---------- */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  text-align: center;
  padding: 46px 20px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.metric span {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

/* ---------- SERVICES ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service {
  position: relative;
  min-height: 220px;
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  display: flex;
  flex-direction: column;
}

.service:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 32, 67, 0.16);
  box-shadow: var(--shadow-md);
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--navy);
  margin-bottom: 22px;
  flex-shrink: 0;
}

.icon svg {
  width: 23px;
  height: 23px;
}

.service h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.service p {
  color: var(--muted);
  font-size: 14px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  transition: gap var(--dur-fast) var(--ease);
}

.service-link:hover {
  gap: 10px;
}

/* ---------- WHY CHOOSE US ---------- */

.why {
  overflow: hidden;
}

.why-grid-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.why-content .section-head {
  margin-bottom: 30px;
}

.why-list {
  display: grid;
  gap: 14px;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
}

.why-list .check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
}

.why-list .check svg {
  width: 13px;
  height: 13px;
}

.why-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

.why-media-stat {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
}

.why-media-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.why-media-stat span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- GLOBAL NETWORK ---------- */

.network {
  background: var(--bg-soft);
}

.network-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.network-map {
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background:
    linear-gradient(rgba(11, 32, 67, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 32, 67, 0.045) 1px, transparent 1px),
    var(--white);
  background-size: 34px 34px, 34px 34px, auto;
  padding: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.network-map-inner {
  position: relative;
}

.network-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.network-map .net-line {
  fill: none;
  stroke: rgba(47, 95, 214, 0.4);
  stroke-width: 1.6;
  stroke-dasharray: 5 6;
  animation: dash-flow 4s linear infinite;
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -130;
  }
}

.network-map .net-node {
  fill: var(--white);
  stroke: var(--blue);
  stroke-width: 2;
}

.network-map .net-node.hub {
  fill: var(--accent);
  stroke: var(--white);
  stroke-width: 3;
}

.net-city-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.85);
  padding: 1px 6px;
  border-radius: 4px;
}

.net-city-label.hub {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 640px) {
  .net-city-label {
    font-size: 10px;
  }
}

.network-content .section-head {
  margin-bottom: 26px;
}

.network-points {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.network-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.network-point .icon {
  margin-bottom: 0;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
}

.network-point .icon svg {
  width: 19px;
  height: 19px;
}

.network-point h3 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 3px;
}

.network-point p {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- HOW IT WORKS ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 19px;
  left: calc(12.5% + 19px);
  right: calc(12.5% + 19px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--card-border) 0 8px, transparent 8px 14px);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  padding: 0 8px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 20px;
  box-shadow: 0 0 0 6px var(--bg);
}

.step h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--navy);
}

.step p {
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- SECTORS ---------- */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sector-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 28px 16px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.sector-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 95, 214, 0.3);
  box-shadow: var(--shadow-sm);
}

.sector-card .icon {
  margin-bottom: 0;
  background: var(--blue-soft);
  color: var(--blue);
}

.sector-card span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
}

/* ---------- FINAL CTA ---------- */

.cta {
  padding: 90px 0;
}

.cta-box {
  position: relative;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 80px 30px;
  overflow: hidden;
  isolation: isolate;
}

.cta-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(8, 21, 43, 0.94), rgba(11, 32, 67, 0.82));
  z-index: -1;
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--white);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: 16px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- CONTACT ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.contact-side {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  color: var(--white);
}

.contact-side h3 {
  font-size: 21px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.contact-side > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
  margin-bottom: 30px;
}

.contact-info {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-item .icon {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  flex-shrink: 0;
}

.contact-info-item .icon svg {
  width: 19px;
  height: 19px;
}

.contact-info-item span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.contact-info-item strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
}

.contact-hours {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-form-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: var(--bg-soft);
  padding: 0 14px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.form-field textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}

.form-submit {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 12.5px;
  color: var(--muted-2);
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(47, 95, 214, 0.07);
  border: 1px solid rgba(47, 95, 214, 0.2);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.form-success.is-visible {
  display: flex;
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue);
}

/* ---------- FOOTER ---------- */

footer {
  padding: 64px 0 28px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

footer .logo {
  color: var(--white);
}

footer .logo-mark {
  background: var(--accent);
}

.footer-about {
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
  margin: 14px 0 20px;
  font-size: 13.5px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--dur-fast) var(--ease);
}

.footer-social a:hover {
  background: var(--accent);
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

.footer-col h4 {
  font-size: 13.5px;
  margin-bottom: 18px;
  color: var(--white);
  font-weight: 700;
}

.footer-col a,
.footer-col address {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  margin: 11px 0;
  font-style: normal;
  transition: color var(--dur-fast) var(--ease);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.copyright {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12.5px;
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-lang select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--white);
  font-size: 12.5px;
}

/* ---------- WHATSAPP FAB ---------- */

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.whatsapp-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 30px 60px rgba(14, 27, 51, 0.22);
}

.whatsapp-fab svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 640px) {
  .whatsapp-fab {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }

  .whatsapp-fab svg {
    width: 23px;
    height: 23px;
  }
}
