/* ============================================================
   SLP EXPRESS — CRITICAL CSS
   Loads synchronously (render-blocking) — kept intentionally small.
   Contains ONLY what is needed to paint above-the-fold content:
   tokens · reset · buttons · header · hero · nav · stat-bar

   Every page links:
     <link rel="stylesheet" href="fonts/poppins.css">
     <link rel="stylesheet" href="slp-critical.css">   ← this file
   ============================================================ */


/* ============================================================
   01. :root — BRAND TOKENS
   ============================================================ */
:root {
  --primary:   #4a0072;
  --secondary: #6a0099;
  --accent:    #ffd54f;
  --light:     #f4f7f6;
  --white:     #ffffff;
  --text:      #333333;
  --muted:    #666666;
  --muted-2:  #444444;
  --hairline: #eeeeee;
  --whatsapp: #25d366;
  --shadow-sm:      0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-md:      0 10px 40px rgba(0, 0, 0, 0.06);
  --shadow-lg:      0 15px 40px rgba(0, 0, 0, 0.30);
  --shadow-gold:    0 10px 30px rgba(255, 213, 79, 0.35);
  --shadow-wa:      0 10px 30px rgba(37, 211, 102, 0.35);
  --shadow-primary: 0 8px 24px rgba(74, 0, 114, 0.25);
  --grad-primary:    linear-gradient(90deg, var(--primary), var(--secondary));
  --grad-hero-tint:  rgba(74, 0, 114, 0.9);
  --grad-gold-strip: linear-gradient(120deg, #fffbf0 0%, var(--accent) 50%, #ffe082 100%);
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 25px; --r-pill: 50px;
}


/* ============================================================
   02. BASE — reset, body, container, utilities
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 58px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 25px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.text-center  { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--muted); }
.bg-primary   { background: var(--primary); color: var(--white); }
.bg-accent    { background: var(--accent); color: var(--primary); }
.mt-0 { margin-top: 0; }    .mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; } .mb-6 { margin-bottom: 48px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

main {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 18px; }
}

@media (max-width: 600px) {
  .header-flex { gap: 8px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .logo-circle { width: 48px; height: 48px; border-width: 2px; }
  .brand-text h2 { font-size: 13px; line-height: 1.15; }
  .brand-sub { display: none; }
  .hamburger {
    flex-shrink: 0;
    z-index: 1002;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
}


/* ============================================================
   03. BUTTONS — .btn, .btn-gold, .btn-wa, .btn-ghost, .pill
   ============================================================ */
.btn {
  display: inline-block;
  padding: 18px 45px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.2px;
  line-height: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-5px); }
.btn:active { transform: translateY(-1px); }

.btn-gold {
  background: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { box-shadow: 0 16px 36px rgba(255, 213, 79, 0.45); }

.btn-wa {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow-wa);
}
.btn-wa:hover { box-shadow: 0 16px 36px rgba(37, 211, 102, 0.45); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--secondary); box-shadow: 0 14px 32px rgba(74, 0, 114, 0.35); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 16px 43px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--white); }

.btn-sm { padding: 12px 28px; font-size: 14px; }
.btn:focus-visible, .pill:focus-visible { outline-offset: 4px; }

.pill {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
  margin: 5px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-primary); background: var(--secondary); }
.pill-row { text-align: center; margin-top: 24px; }
.pill-accent { background: var(--accent); color: var(--primary); }
.pill-accent:hover { background: #ffcb2e; box-shadow: var(--shadow-gold); }

@media (max-width: 900px) { .btn { padding: 16px 32px; font-size: 15px; } }
@media (max-width: 480px) { .hero-cta-row .btn { width: 100%; text-align: center; } }


/* ============================================================
   07. HEADER — .header, .brand, .trust-pill, .header-partner-logo
   ============================================================ */
.header {
  position: relative;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  padding: 15px 0;
  background: var(--grad-primary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  overflow-x: clip;
}
.header nav {
  position: static;
  min-width: 0;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  position: relative;
  width: 100%;
  max-width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 260px;
  text-decoration: none;
}
.logo-circle {
  width: 60px; height: 60px;
  background: var(--white);
  border: 3px solid var(--accent);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-img { width: 85%; height: auto; }
.brand-text { min-width: 0; }
.brand-text h2 {
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  overflow-wrap: anywhere;
}
.brand-sub {
  font-size: 9px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.header-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.trust-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 11px; font-weight: 600;
  color: var(--white);
  line-height: 1.25; white-space: nowrap;
  display: inline-flex; flex-direction: column; align-items: center;
}
.trust-pill span { color: var(--accent); font-weight: 800; font-size: 13px; display: block; }
.header-partner-logo {
  height: 36px;
  min-width: 56px;
  background: var(--white);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.header-partner-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; display: block; object-fit: contain; }
.header-partners-label {
  color: var(--white); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  line-height: 1.2; max-width: 70px;
}
/* Black promo strip: hidden site-wide (too heavy above fold; SLPEXP still in copy/hero where relevant). */
.promo-strip { display: none !important; }

/* Home-only ticker (index) — removed from markup; keep hidden if reintroduced. */
.top-ticker { display: none !important; }

/* Desktop: 3-column header so nav never overlaps trust badges */
@media (min-width: 901px) {
  .header-flex {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
    grid-template-areas: "brand nav trust";
    align-items: center;
    column-gap: 16px;
  }
  .brand {
    grid-area: brand;
    max-width: 220px;
  }
  .header nav {
    grid-area: nav;
    justify-self: center;
    width: 100%;
    max-width: 100%;
  }
  .nav-menu {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
    width: 100%;
  }
  .nav-link {
    padding: 10px 11px;
    font-size: 12px;
    letter-spacing: 0.2px;
    white-space: nowrap;
  }
  .header-trust {
    grid-area: trust;
    justify-self: end;
  }
  .hamburger { display: none !important; }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .header-trust .header-partner-logo { display: none; }
  .trust-pill { padding: 5px 10px; font-size: 10px; }
  .trust-pill span { font-size: 12px; }
  .nav-link { padding: 10px 8px; font-size: 11px; }
  .brand-text h2 { font-size: 16px; }
}

@media (min-width: 1281px) {
  .nav-link { padding: 11px 13px; font-size: 13px; }
}

/* Hide trust/partner row until wide desktop — keeps nav on one line */
@media (max-width: 1320px) {
  .header-trust { display: none; }
}
@media (min-width: 901px) and (max-width: 1320px) {
  .header-flex {
    grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
    grid-template-areas: "brand nav";
  }
  .brand { max-width: 200px; }
  .brand-sub { display: none; }
}


/* ============================================================
   08. HERO — .hero, .hero-subline, .stat-bar, .stat-chip
   ============================================================ */
.hero {
  position: relative;
  padding: 120px 0;
  color: var(--white);
  text-align: center;
  background-color: var(--primary);
  background-image:
    linear-gradient(var(--grad-hero-tint), var(--grad-hero-tint)),
    url('photos/hero-main.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero[style*="--hero-img"] {
  background-image:
    linear-gradient(var(--grad-hero-tint), var(--grad-hero-tint)),
    var(--hero-img);
}
.hero .hero-emoji { font-size: 64px; line-height: 1; margin-bottom: 18px; display: block; }
.hero h1, .hero-seo-title {
  font-size: clamp(24px, 4.6vw, 38px); font-weight: 800;
  line-height: 1.22; margin-bottom: 22px; color: var(--white);
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero-seo-title strong { color: var(--accent); font-style: normal; }

/* Homepage pickup card header — must paint before deferred CSS loads */
.pickup-card__head {
  background: linear-gradient(135deg, #3a0068 0%, #6a0099 100%);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 3px solid var(--accent);
}
.pickup-card__logo {
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
}
.pickup-card__brand {
  color: var(--white);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
}
.highlight, .hero .highlight { color: var(--accent); }
.hero p { font-size: 18px; max-width: 760px; margin: 0 auto 30px; opacity: 0.95; }
.hero-subline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600;
  color: var(--white);
  margin-bottom: 26px; letter-spacing: 0.2px;
}
.hero-subline .dot { color: var(--accent); margin: 0 8px; }
.hero-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 12px; }

.stat-bar {
  padding: 18px 0;
  background: var(--grad-primary);
  color: var(--white);
  border-bottom: 3px solid var(--accent);
}
.stat-chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
.stat-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  padding: 8px 18px; font-size: 14px; font-weight: 600; color: var(--white);
}
.stat-chip strong { color: var(--accent); font-weight: 800; margin-right: 6px; }

@media (max-width: 900px) {
  .hero { padding: 80px 0; }
  .hero h1, .hero-seo-title { font-size: 32px; text-align: center; }
  .hero p  { font-size: 16px; }
  .hero .hero-emoji { font-size: 48px; }
}
@media (max-width: 480px) {
  .hero h1, .hero-seo-title { font-size: 26px; }
  .stat-chip { font-size: 12px; padding: 6px 14px; }
}


/* ============================================================
   09. NAV — .nav-menu, .dropdown, .hamburger (mobile .is-open)
   ============================================================ */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--white); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.3px;
  padding: 12px 15px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  background: transparent; border: 0; text-decoration: none;
}
.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-link:focus-visible { background: rgba(255, 255, 255, 0.10); color: var(--accent); }
.nav-link .caret { font-size: 9px; opacity: 0.8; }

.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 240px;
  background: var(--primary);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-lg);
  list-style: none; padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1000;
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { position: relative; }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  color: var(--white); font-size: 13px; font-weight: 600;
  padding: 11px 18px; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.dropdown a:hover,
.dropdown a:focus-visible { background: var(--secondary); color: var(--accent); }
.dropdown .dropdown {
  top: 0; left: 100%;
  border-top: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) var(--r-md);
  transform: translateX(6px);
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--primary);
}
.dropdown li:hover > .dropdown,
.dropdown li:focus-within > .dropdown { transform: translateX(0); }

.hamburger {
  display: none; background: transparent; border: 0;
  color: var(--accent); font-size: 28px; line-height: 1; padding: 4px 8px;
  cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 900px) {
  .header {
    position: sticky;
    top: 0;
    z-index: 1100;
  }
  .header nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    flex: none;
    height: 0;
    overflow: visible;
    z-index: 1001;
  }
  .hamburger {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px;
    margin-left: auto;
    z-index: 1002;
  }
  .nav-menu {
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--primary);
    border-top: 3px solid var(--accent);
    padding: 0;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 100%;
    list-style: none;
    margin: 0;
  }
  .nav-menu.is-open,
  .nav-menu.active {
    display: flex;
    max-height: min(80vh, 720px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
  }
  .nav-link { width: 100%; justify-content: space-between; border-radius: 0; padding: 14px 22px; }
  .dropdown {
    position: static; background: var(--secondary);
    border-top: 0; border-radius: 0; box-shadow: none;
    min-width: 0; opacity: 1; visibility: visible; transform: none;
    max-height: 0; overflow: hidden; padding: 0;
    transition: max-height 0.25s ease;
  }
  .nav-item.is-open > .dropdown { max-height: 800px; padding: 4px 0; }
  .dropdown .dropdown { background: rgba(0,0,0,0.2); border-left: 0; transform: none; }
  .dropdown a { padding-left: 36px; }
  .dropdown .dropdown a { padding-left: 52px; }
}

/* ============================================================
   10. Rate tables — country pages (RATE_TABLE markers) + pricing calculator
   Loaded in critical CSS so mobile layout works before deferred pickles.css.
   ============================================================ */
.pricing-section .rate-table-wrapper {
  display: block !important;
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
}
.pricing-section .rate-table-wrapper .slp-country-rate-table,
.pricing-section .rate-table-wrapper > table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .pricing-section .rate-table-wrapper > table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .pricing-section .rate-table-wrapper > table thead,
  .pricing-section .rate-table-wrapper > table tbody {
    display: block;
    width: 100%;
  }
  .pricing-section .rate-table-wrapper > table tr {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.06fr) minmax(0, 1.06fr);
    width: 100%;
  }
  .pricing-section .rate-table-wrapper > table th,
  .pricing-section .rate-table-wrapper > table td {
    display: block;
    width: auto !important;
    min-width: 0;
    text-align: center !important;
    padding: 8px 4px !important;
    font-size: 11px !important;
    line-height: 1.3;
    word-break: break-word;
    box-sizing: border-box;
    vertical-align: middle;
  }
  .pricing-section .rate-table-wrapper > table th small {
    display: block;
    font-size: 8px !important;
    margin-top: 2px;
  }

  /* pricing.html — FedEx/DHL quote tables (step 2) */
  .rate-table-container {
    display: block !important;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  #quotesContainer .rate-table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  #quotesContainer .rate-table thead,
  #quotesContainer .rate-table tbody {
    display: block;
    width: 100%;
  }
  #quotesContainer .rate-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  #quotesContainer .rate-table th,
  #quotesContainer .rate-table td {
    display: block;
    width: auto !important;
    text-align: center !important;
    padding: 10px 6px !important;
    font-size: 13px !important;
    box-sizing: border-box;
  }
}
