/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --primary:   #0B63A6;
  --accent:    #F59E0B;
  --muted:     #6B7280;
  --bg:        #f8fafb;
  --container: 1100px;
  --radius:    12px;
  --shadow:    0 10px 30px rgba(11,99,166,0.07);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: 'Segoe UI', system-ui, Arial, sans-serif; background: var(--bg); color: #0f172a; }
a { color: inherit; text-decoration: none; transition: all 0.3s ease-in-out; }

/* ── Layout helpers ────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center    { text-align: center; }
.muted     { color: var(--muted); }

/* ── Header ────────────────────────────────────────────────────── */
header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(15,23,42,0.06);
}

/* ── Desktop nav ───────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: auto; border-radius: 6px; transition: transform 0.3s; }
.brand img:hover { transform: scale(1.1); }
.brand a { font-weight: 700; color: var(--primary); font-size: 16px; }

/* Desktop nav links — visible by default, hidden on mobile */
nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  align-items: center;
}
nav a { padding: 8px 10px; border-radius: 8px; font-weight: 500; color: #0f172a; }
nav a:hover { background: rgba(11,99,166,0.06); transform: translateY(-2px); }
nav a.active { color: var(--primary); font-weight: 600; }

.cta-btn { background: var(--accent); color: white !important; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.cta-btn:hover { background: #e08f0a; transform: scale(1.05); }

/* ── Hamburger button — hidden on desktop ──────────────────────── */
.mobile-toggle {
  display: none; /* shown only in mobile media query */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
  flex-shrink: 0;
}
.mobile-toggle span {
  display: block;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
/* Animate into X when open */
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ── Mobile dropdown menu — hidden until .active ───────────────── */
.mobile-menu {
  display: none; /* toggled by JS adding .active */
  position: fixed;
  top: 76px; /* matches header height */
  left: 0;
  width: 100%;
  background: white;
  border-top: 2px solid #eef2f6;
  box-shadow: 0 8px 24px rgba(15,23,42,0.10);
  z-index: 99;
}
.mobile-menu.active { display: block; }
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu ul li { border-bottom: 1px solid #f1f5f9; }
.mobile-menu ul li:last-child { border-bottom: none; }
.mobile-menu ul li a {
  display: block;
  padding: 14px 20px;
  color: #0f172a;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.15s;
}
.mobile-menu ul li a:hover,
.mobile-menu ul li a.active { background: rgba(11,99,166,0.06); color: var(--primary); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.05)); }
.hero-grid { display: grid; grid-template-columns: 1fr 480px; gap: 32px; align-items: center; min-height: 420px; }
.hero-grid h1 { font-size: 36px; margin: 0 0 12px; color: var(--primary); font-weight: 700; }
.hero-grid p  { margin: 0 0 20px; color: var(--muted); font-size: 16px; }
.hero-image   { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Services & How it works ───────────────────────────────────── */
.services, .how-it-works { padding: 34px 0; }
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.steps-grid   { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 20px; }

/* ── Cards ─────────────────────────────────────────────────────── */
.service-card, .step { background: white; border-radius: 12px; padding: 18px; box-shadow: var(--shadow); min-height: 140px; }
.step { min-height: auto; text-align: center; padding: 20px; }
.service-card h3, .step h3 { margin: 8px 0 6px; font-size: 18px; }
.service-card p,  .step p  { margin: 0; color: var(--muted); font-size: 14px; }
.step .num { display: inline-block; background: var(--primary); color: #fff; width: 44px; height: 44px; border-radius: 50%; line-height: 44px; margin-bottom: 12px; }

/* ── Scroll animations ─────────────────────────────────────────── */
.animate-card { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.animate-card.is-visible { opacity: 1; transform: translateY(0); }
.service-grid .animate-card:nth-child(2), .steps-grid .animate-card:nth-child(2) { transition-delay: 0.1s; }
.service-grid .animate-card:nth-child(3), .steps-grid .animate-card:nth-child(3) { transition-delay: 0.2s; }
.service-grid .animate-card:nth-child(4), .steps-grid .animate-card:nth-child(4) { transition-delay: 0.3s; }
.service-grid .animate-card:nth-child(5), .steps-grid .animate-card:nth-child(5) { transition-delay: 0.4s; }

/* ── Form ──────────────────────────────────────────────────────── */
.form-section { padding: 36px 0; }
.form-card    { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.shipment-form { width: 100%; max-width: 700px; margin: auto; padding: 24px; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.shipment-form h3 { margin: 24px 0 8px; color: var(--primary); font-size: 16px; }
.shipment-form h3:first-child { margin-top: 0; }
.shipment-form input,
.shipment-form select,
.shipment-form textarea { width: 100%; padding: 10px 12px; margin: 6px 0 12px; border-radius: 8px; border: 1px solid #e5e7eb; font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s; }
.shipment-form input:focus,
.shipment-form select:focus,
.shipment-form textarea:focus { border-color: var(--primary); }
.shipment-form button { background: var(--accent); color: white; padding: 12px 24px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; font-size: 15px; transition: all 0.3s; width: 100%; margin-top: 8px; }
.shipment-form button:hover { background: #e08f0a; transform: scale(1.02); }

/* ── Buttons & helpers ─────────────────────────────────────────── */
.btn { background: var(--accent); color: white; padding: 8px 14px; border-radius: 8px; font-weight: 600; transition: all 0.3s; }
.btn:hover { background: #e08f0a; transform: scale(1.02); }
.section-title { color: var(--primary); text-align: center; font-weight: 700; }

/* ── CTA strip ─────────────────────────────────────────────────── */
.cta-strip { background: var(--primary); color: white; padding: 26px 0; margin-top: 18px; }
.cta-strip a { background: white; color: var(--primary); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.cta-strip a:hover { background: var(--accent); color: white; }

/* ── Contact ───────────────────────────────────────────────────── */
#contact a { color: var(--primary); text-decoration: underline; transition: all 0.2s; }
#contact a:hover { color: var(--accent); text-decoration: none; }
#contact a[href*="wa.me"] {
  display: inline-block;
  background: #25D366;
  color: white !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s;
}
#contact a[href*="wa.me"]:hover { background: #1DA851; }

/* ── Footer ────────────────────────────────────────────────────── */
footer { padding: 28px 0; background: #fff; margin-top: 30px; text-align: center; }
footer .foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
footer p { margin: 6px 0; color: var(--muted); }
footer p a { color: var(--primary); text-decoration: underline; }
footer p a:hover { color: var(--accent); text-decoration: none; }

/* ── Privacy page ──────────────────────────────────────────────── */
.privacy-body h3 { color: var(--primary); margin: 28px 0 10px; font-size: 18px; }
.privacy-body p  { color: #374151; line-height: 1.8; margin-bottom: 12px; font-size: 15px; }
.privacy-body ul { padding-left: 20px; color: #374151; line-height: 1.9; font-size: 15px; margin-bottom: 12px; }
.privacy-body a  { color: var(--primary); }
.last-updated    { display: inline-block; background: #EFF6FF; color: #1E40AF; font-size: 13px; padding: 4px 12px; border-radius: 20px; margin-bottom: 32px; font-weight: 500; }

/* ── Responsive: Tablet (≤1000px) ─────────────────────────────── */
@media (max-width: 1000px) {
  .hero-grid    { grid-template-columns: 1fr 360px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ── Responsive: Mobile (≤720px) ──────────────────────────────── */
@media (max-width: 720px) {

  /* Nav: hide desktop links, show hamburger */
  nav ul         { display: none; }
  .mobile-toggle { display: flex; }

  /* Layouts */
  .hero-grid    { grid-template-columns: 1fr; }
  .hero-grid h1 { font-size: 26px; }
  .service-grid { grid-template-columns: 1fr; }
  .steps-grid   { grid-template-columns: 1fr; }
  .shipment-form { padding: 16px; }

  /* Contact page */
  #contact > div {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .container#contact {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  #contact .whatsapp,
  #contact .whatsapp-card {
    width: 100%;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
  }

  /* Footer */
  footer .foot-grid { grid-template-columns: 1fr; text-align: left; }
}
