/* ═══ 3N Logistics — Shared Styles ═══ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg: #FDFCF9;
  --bg-warm: #F6F4EF;
  --bg-card: #FFFFFF;
  --bg-highlight: #F0EDE6;
  --text: #1C2B3A;
  --text-secondary: #4A5D73;
  --text-light: #7A8B9C;
  --text-faint: #A3B1BF;
  --blue: #2B5EA7;
  --blue-light: #E8EFF8;
  --blue-dark: #1E4578;
  --amber: #D97706;
  --amber-light: #FEF3C7;
  --teal: #0D7377;
  --teal-light: #E0F5F5;
  --border: #E5E2DB;
  --border-light: #EDEAE4;
  --shadow-sm: 0 1px 3px rgba(28,43,58,0.06);
  --shadow-md: 0 4px 16px rgba(28,43,58,0.08);
  --shadow-lg: 0 8px 30px rgba(28,43,58,0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --header-h: 72px;
  --serif: 'Plus Jakarta Sans', sans-serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--blue); color: white; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-dark); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ═══ HEADER ═══ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,252,249,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 700;
  font-size: 0.8rem; color: white; letter-spacing: 0.02em;
}
.logo-text {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.25rem; letter-spacing: -0.01em;
}
.logo-text span { color: var(--blue); }

.main-nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--text); background: var(--bg-warm); }
.main-nav a.current { color: var(--text); font-weight: 600; }

.nav-cta-link {
  background: var(--blue) !important; color: white !important;
  padding: 10px 22px !important; border-radius: var(--radius) !important;
  font-weight: 600 !important; font-size: 0.88rem !important;
  display: inline-flex !important; align-items: center; gap: 6px;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta-link:hover { background: var(--blue-dark) !important; transform: translateY(-1px); }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; z-index: 200;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: var(--text);
  position: absolute; left: 0; transition: all 0.3s; border-radius: 2px;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: var(--bg);
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding-top: var(--header-h);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--text);
  font-family: var(--serif); font-weight: 600;
  font-size: 1.6rem; padding: 10px 24px;
}
.mobile-menu a:hover { color: var(--blue); }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--blue); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text); background: var(--bg-warm); color: var(--text); }

.btn-white { background: white; color: var(--text); box-shadow: var(--shadow-sm); }
.btn-white:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); color: var(--text); }

.btn-full { width: 100%; justify-content: center; }

/* ═══ SECTION BASICS ═══ */
.section { padding: clamp(72px, 9vw, 112px) 0; }

.section-eyebrow {
  font-size: 0.78rem; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-secondary);
  line-height: 1.7; max-width: 540px;
}
.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-desc { margin: 0 auto; }

/* ═══ IMAGE SECTIONS ═══ */
.img-rounded { border-radius: var(--radius-lg); overflow: hidden; }
.img-rounded img { width: 100%; height: 100%; object-fit: cover; }

.img-cover {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.img-hover:hover .img-cover { transform: scale(1.03); }

/* ═══ CARDS ═══ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon.blue { background: var(--blue-light); color: var(--blue); }
.card-icon.amber { background: var(--amber-light); color: var(--amber); }
.card-icon.teal { background: var(--teal-light); color: var(--teal); }

.card h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.15rem; margin-bottom: 8px;
}
.card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--sans); font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43,94,167,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-faint); }
.form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237A8B9C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p {
  font-size: 0.88rem; line-height: 1.7; margin: 16px 0 20px;
  max-width: 280px;
}
.footer-brand .logo-mark { background: rgba(255,255,255,0.15); }
.footer-brand .logo-text { color: white; }
.footer-brand .logo-text span { color: rgba(255,255,255,0.5); }

.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); transition: all 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.15); color: white; }
.footer-social a svg { width: 16px; height: 16px; }

.footer-col h5 {
  color: white; font-weight: 600; font-size: 0.88rem;
  margin-bottom: 20px; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.5); font-size: 0.88rem; }
.footer-col a:hover { color: white; }

.footer-newsletter { display: flex; gap: 8px; }
.footer-newsletter input {
  flex: 1; padding: 10px 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm); color: white; font-size: 0.85rem; outline: none;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter input:focus { border-color: rgba(255,255,255,0.3); }
.footer-newsletter button {
  padding: 10px 18px; background: var(--blue); border: none;
  border-radius: var(--radius-sm); color: white; font-weight: 600;
  font-size: 0.85rem; cursor: pointer;
}
.footer-newsletter button:hover { background: var(--blue-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ═══ CTA STRIP ═══ */
.cta-strip {
  background: var(--blue); padding: clamp(56px, 7vw, 80px) 0;
  text-align: center; color: white;
}
.cta-strip h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 12px;
}
.cta-strip p {
  font-size: 1.05rem; opacity: 0.8;
  max-width: 480px; margin: 0 auto 28px;
}
.cta-strip .btn-white:hover { color: var(--blue); }
.cta-strip-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ═══ SCROLL ANIMATIONS ═══ */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ═══ WHATSAPP POPUP ═══ */
.wa-popup {
  display: none; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: white; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  min-width: 200px; overflow: hidden; z-index: 100;
}
.wa-popup.show { display: block; }
.wa-popup-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border-light); transition: background 0.15s;
}
.wa-popup-item:last-child { border-bottom: none; }
.wa-popup-item:hover { background: var(--blue-light); }
.wa-popup-item strong { font-size: 0.92rem; }
.wa-popup-item span { font-size: 0.8rem; color: var(--text-secondary); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
