/* ============================================================
   GLOBAL DESIGN SYSTEM — U.S. Customs Portal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --cbp-navy:       #003366;
  --cbp-navy-dark:  #001f40;
  --cbp-navy-light: #004080;
  --cbp-blue:       #0066cc;
  --cbp-blue-light: #e8f0fb;
  --cbp-gold:       #c8960c;
  --cbp-gold-light: #fdf3d8;
  --cbp-red:        #b22222;

  /* Neutrals */
  --gray-50:  #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Semantic */
  --success: #198754;
  --warning: #ffc107;
  --danger:  #dc3545;

  /* Typography */
  --font-base: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Spacing */
  --section-py: 5rem;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.14);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.18);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition: all .22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

/* ── Utility ── */
.section-py { padding-top: var(--section-py); padding-bottom: var(--section-py); }

.text-gold  { color: var(--cbp-gold) !important; }
.text-navy  { color: var(--cbp-navy) !important; }
.text-muted { color: var(--gray-600) !important; }

.bg-navy    { background: var(--cbp-navy) !important; }
.bg-navy-dark { background: var(--cbp-navy-dark) !important; }

.btn-cbp-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--cbp-navy);
  color: #fff;
  padding: .7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .01em;
}
.btn-cbp-primary:hover {
  background: var(--cbp-navy-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-cbp-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--cbp-navy);
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  border: 2px solid var(--cbp-navy);
  cursor: pointer;
  transition: var(--transition);
}
.btn-cbp-outline:hover {
  background: var(--cbp-navy);
  color: #fff;
}

.btn-cbp-gold {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--cbp-gold);
  color: #fff;
  padding: .7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-cbp-gold:hover {
  background: #a87a0a;
  color: #fff;
  transform: translateY(-1px);
}

/* ── Section Heading ── */
.section-heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--cbp-navy);
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.section-heading-line {
  width: 44px;
  height: 4px;
  background: var(--cbp-gold);
  border-radius: 2px;
  margin-bottom: 2.5rem;
}
.section-heading-line.center { margin-left: auto; margin-right: auto; }

/* ── Card ── */
.cbp-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.cbp-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ── Badge ── */
.cbp-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cbp-badge-gold  { background: var(--cbp-gold-light); color: var(--cbp-gold); }
.cbp-badge-navy  { background: var(--cbp-blue-light); color: var(--cbp-navy); }
.cbp-badge-red   { background: #fde8e8; color: var(--cbp-red); }

/* ── Alert Banner ── */
.cbp-alert {
  background: var(--cbp-gold-light);
  border-left: 4px solid var(--cbp-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: #7a5200;
  font-weight: 500;
}
.cbp-alert i { color: var(--cbp-gold); margin-top: .1rem; flex-shrink: 0; }

/* ── Floating Contact ── */
.cbp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1050;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cbp-navy);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.cbp-fab:hover { background: var(--cbp-navy-light); transform: scale(1.08); }

/* ── Contact Modal ── */
.cbp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cbp-modal-overlay.active { opacity: 1; pointer-events: all; }

.cbp-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 90%;
  max-width: 460px;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(.97);
  transition: transform .25s ease;
  position: relative;
}
.cbp-modal-overlay.active .cbp-modal { transform: translateY(0) scale(1); }

.cbp-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
}
.cbp-modal-close:hover { background: var(--gray-200); color: var(--gray-900); }

.cbp-modal h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cbp-navy);
  margin-bottom: 1.5rem;
}

/* ── Form Controls ── */
.cbp-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: var(--font-base);
  background: var(--gray-50);
  color: var(--gray-900);
  transition: var(--transition);
  margin-bottom: 1rem;
}
.cbp-input:focus {
  outline: none;
  border-color: var(--cbp-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,102,204,.12);
}
.cbp-input::placeholder { color: var(--gray-500); }

textarea.cbp-input { resize: vertical; min-height: 90px; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up  { animation: fadeInUp .6s ease both; }
.anim-fade     { animation: fadeIn .6s ease both; }
.anim-slide-dn { animation: slideDown .5s ease both; }

/* ── Responsive helpers ── */
@media (max-width: 768px) {
  :root { --section-py: 3rem; }
  .section-heading { font-size: 1.5rem; }
}
