/* ═══════════════════════════════════════════
   PENDULUM LOGISTICS — GLOBAL STYLESHEET
   Brand: Royal Blue + Silver + Dark Navy
═══════════════════════════════════════════ */

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

:root {
  /* Brand Colors — derived from PDL logo */
  --blue:        #1A70D4;
  --blue-bright: #2E8CE6;
  --blue-dark:   #1059B0;
  --blue-glow:   rgba(26, 112, 212, 0.15);
  --blue-line:   rgba(26, 112, 212, 0.35);

  --silver:      #9EB5CC;
  --silver-dim:  rgba(158, 181, 204, 0.1);
  --silver-line: rgba(158, 181, 204, 0.2);

  /* Dark Background System */
  --bg:          #07101C;
  --bg-2:        #0B1929;
  --bg-card:     #0D2040;
  --bg-card-2:   #0A1B35;
  --border:      #132F50;
  --border-2:    #1A3D64;

  /* Text */
  --white:       #FFFFFF;
  --text:        #B8CDE0;
  --muted:       #6A8FAD;
  --dim:         #456480;

  /* Utility */
  --radius:      12px;
  --ease:        0.28s ease;
  --shadow:      0 20px 60px rgba(0, 0, 0, 0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  line-height: 1.15;
  font-weight: 700;
}

p { color: var(--text); line-height: 1.8; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── LAYOUT ── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--blue-bright);
  border-radius: 2px;
}

/* ── SECTION TITLES ── */
.sec-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--white);
}
.sec-sub {
  font-size: 16px;
  color: var(--text);
  max-width: 600px;
  line-height: 1.85;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--ease);
  border: none;
  white-space: nowrap;
  text-decoration: none;
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
  padding: 14px 28px;
}
.btn-blue:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(26, 112, 212, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 13px 28px;
  border: 1.5px solid var(--border-2);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-bright);
  transform: translateY(-2px);
}
.btn-wa {
  background: #25D366;
  color: #fff;
  padding: 14px 28px;
}
.btn-wa:hover {
  background: #1fba58;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.4);
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--white);
  padding: 13px 28px;
  border: 1.5px solid var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-bright);
  transform: translateY(-2px);
}

/* ── NAVBAR ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 990;
  padding: 0 28px;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
#nav.solid {
  background: rgba(7, 16, 28, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}
.nav-row {
  max-width: 1180px;
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  padding: 3px;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.logo-text span { color: var(--blue-bright); }
.logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-wa {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #25D366;
  transition: all var(--ease);
}
.nav-wa:hover { background: rgba(37, 211, 102, 0.2); }
.nav-wa svg { width: 16px; height: 16px; fill: #25D366; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}

/* Mobile nav */
.mob-nav {
  display: none;
  position: fixed;
  top: 74px;
  left: 0; right: 0;
  z-index: 989;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 20px 28px 28px;
  flex-direction: column;
  gap: 0;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--ease);
}
.mob-nav a:hover { color: var(--blue-bright); }
.mob-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* ── WA FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 980;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
  transition: transform var(--ease), box-shadow var(--ease);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.6);
}
.wa-float svg { width: 28px; height: 28px; fill: white; }
.wa-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: waRing 2.5s ease infinite;
}


/* ── ANIMATIONS ── */
@keyframes waRing {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* Scroll reveal */
.sr { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.sr.go { opacity: 1; transform: translateY(0); }
.sr-l { opacity: 0; transform: translateX(-32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.sr-l.go { opacity: 1; transform: translateX(0); }
.sr-r { opacity: 0; transform: translateX(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.sr-r.go { opacity: 1; transform: translateX(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right .btn-blue, .nav-right .nav-wa { display: none; }
  .burger { display: flex; }

/* ══════════════════════════════════════
   FOOTER — FULL + MOBILE ACCORDION
══════════════════════════════════════ */
footer {
  background: #040D18;
  border-top: 1px solid var(--border);
  padding: 80px 28px 36px;
}

/* Desktop grid — unchanged */
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  margin: 18px 0 26px;
  max-width: 290px;
}

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

.f-social {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
}
.f-social:hover { border-color: var(--blue); background: var(--blue-glow); }
.f-social svg {
  width: 15px; height: 15px;
  stroke: var(--muted); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Column heading */
.footer-col h6 {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 22px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 14px; color: var(--muted);
  transition: color var(--ease);
}
.footer-col ul a:hover { color: var(--white); }

/* Contact rows */
.f-contact { display: flex; gap: 10px; margin-bottom: 14px; }
.f-contact svg {
  width: 16px; height: 16px;
  stroke: var(--blue-bright); fill: none;
  stroke-width: 1.8; stroke-linecap: round;
  flex-shrink: 0; margin-top: 3px;
}
.f-contact span { font-size: 13px; color: var(--muted); line-height: 1.65; }
.f-contact a { color: var(--muted); transition: color var(--ease); }
.f-contact a:hover { color: var(--white); }

/* Footer bottom bar */
.footer-bottom {
  max-width: 1180px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px; color: var(--dim);
  font-family: 'Inter', sans-serif;
}

/* ── MOBILE ACCORDION ── */
@media (max-width: 768px) {
  footer { padding: 48px 20px 28px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  /* Brand column — always visible, no accordion */
  .footer-brand {
    padding-bottom: 28px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
  }
  .footer-brand p { max-width: 100%; }

  /* Accordion columns */
  .footer-col {
    border-bottom: 1px solid var(--border);
  }

  /* Heading becomes a toggle button */
  .footer-col h6 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 18px 0;
    cursor: pointer;
    user-select: none;
    font-size: 12px;
    letter-spacing: 2px;
  }

  /* Chevron icon */
  .footer-col h6::after {
    content: '';
    width: 18px; height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A70D4' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .footer-col.open h6::after {
    transform: rotate(180deg);
  }

  /* Collapse the list and contact rows */
  .footer-col ul,
  .footer-col .f-contact-group {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding-bottom: 0;
  }

  .footer-col.open ul,
  .footer-col.open .f-contact-group {
    max-height: 400px;
    padding-bottom: 20px;
  }

  /* Contact items need a wrapper for the accordion to work */
  .f-contact-group {
    display: flex;
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
