/* ========================================
   PALLET SOLUTIONS USA - Global Styles
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #000000;
  --navy-light: #111111;
  --coral: #49a5c1;
  --coral-dark: #3a8da6;
  --coral-light: #6bbad3;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --white: #ffffff;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Monument Extended', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

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

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  padding: 0 24px;
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 100px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

/* active underline handled by hover effects section below */

.nav-cta {
  background: var(--coral) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--coral-dark) !important;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: var(--transition);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 160px 24px 100px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(73,165,193,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(73,165,193,0.15);
  color: var(--coral-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  max-width: 720px;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  gap: 8px;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(73,165,193,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

.btn-arrow::after {
  content: '\2192';
  transition: transform var(--transition);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 100px 24px;
}

.section-light {
  background: var(--gray-50);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.5);
}

/* ========================================
   VALUE PROPS / CARDS
   ======================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--coral);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(73,165,193,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--coral);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 64px 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ========================================
   PROCESS / STEPS
   ======================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--coral);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 24px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ========================================
   SPLIT SECTION (text + visual)
   ======================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.split-content p {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.split-content .eyebrow {
  display: inline-block;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.split-visual {
  background: var(--gray-100);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-visual-dark {
  background: var(--navy-light);
}

/* ========================================
   VENDOR DENSITY VISUAL
   ======================================== */
.density-visual {
  width: 100%;
}

.density-ring {
  width: 240px;
  height: 240px;
  border: 3px dashed rgba(73,165,193,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.density-ring::before {
  content: 'YOUR FACILITY';
  position: absolute;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-600);
}

.density-center {
  width: 16px;
  height: 16px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(73,165,193,0.2);
}

.density-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--navy);
  border-radius: 50%;
}

.density-label {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 100px 24px;
  background: var(--navy);
  text-align: center;
}

.cta-section h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(73,165,193,0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========================================
   CONTACT INFO
   ======================================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(73,165,193,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

/* ========================================
   PAGE HEADER (non-home pages)
   ======================================== */
.page-header {
  padding: 140px 24px 80px;
  background: var(--navy);
  text-align: center;
}

.page-header h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-header p {
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ========================================
   CHECKLIST
   ======================================== */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-800);
}

.checklist li::before {
  content: '\2713';
  color: var(--coral);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========================================
   CONTACT PAGE LAYOUT
   ======================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-success {
  text-align: center;
  padding: 60px 20px;
}

.form-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--gray-200);
}

.sidebar-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.sidebar-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sidebar-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.sidebar-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.sidebar-step-num {
  width: 28px;
  height: 28px;
  background: var(--coral);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-step strong {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}

.sidebar-step p {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children for cards */
.cards-grid .card.fade-up:nth-child(2) { transition-delay: 0.12s; }
.cards-grid .card.fade-up:nth-child(3) { transition-delay: 0.24s; }

.steps .step.fade-up:nth-child(2) { transition-delay: 0.12s; }
.steps .step.fade-up:nth-child(3) { transition-delay: 0.24s; }
.steps .step.fade-up:nth-child(4) { transition-delay: 0.36s; }

/* ========================================
   COUNTING STATS
   ======================================== */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ========================================
   STICKY CTA BAR
   ======================================== */
.sticky-cta {
  position: fixed;
  bottom: -70px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--navy);
  border-top: 1px solid rgba(73,165,193,0.2);
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  transition: bottom 0.4s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}

.sticky-cta.show {
  bottom: 0;
}

.sticky-cta p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
}

.sticky-cta .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* ========================================
   MOBILE MENU SLIDE
   ======================================== */
@media (max-width: 640px) {
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    padding: 100px 32px 40px;
    gap: 24px;
    transition: right 0.35s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.4);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    z-index: 1001;
  }

  /* Overlay when menu open */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }

  .nav-overlay.show {
    display: block;
  }
}

/* ========================================
   HOVER EFFECTS - BUTTONS & CARDS
   ======================================== */
.btn {
  transition: all 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(73,165,193,0.35);
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.card {
  transition: all 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--coral);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-6px);
}

.step {
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
}

.step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(73,165,193,0.3);
}

.step-number {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Nav link hover underline animation */
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--coral);
  border-radius: 1px;
  transition: left 0.3s ease, right 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after {
  left: 0;
  right: 0;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 997;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(73,165,193,0.3);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   MAP LOADING SPINNER
   ======================================== */
.map-loader {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.map-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.map-loader p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .cards-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 120px 24px 80px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .section {
    padding: 64px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
