:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --secondary: #f59e0b;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
}

/* Festive announcement bar (temporary) */
.festive-bar {
  background: linear-gradient(90deg, #d32f2f, #ffb300);
  color: #fff;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.festive-bar strong {
  font-weight: 600;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ─── Header ───────────────────────────────────────────────────────────────── */
/* Header - Unified style */
.header {
  background-color: var(--primary);
  color: white;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

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

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 7rem;
  width: auto;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-align: left;
  margin-left: 0.5rem;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.nav-link.active {
  font-weight: 700;
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ─── Hero Section ──────────────────────────────────────────────────────────── */

.customs-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 4rem 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #e0e7ff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-light);
  color: var(--white);
  border: 2px solid var(--primary-light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ─── Section Titles ─────────────────────────────────────────────────────────── */

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-light);
  margin: 1rem auto 0;
}

/* ─── Services Section ───────────────────────────────────────────────────────── */

.services-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.service-card {
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: white;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: all 0.3s ease;
}

.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.service-icon {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

/* Background images for each type of service */
.import-clearance {
  background: url('../assets/importclearance.jpg') center/cover no-repeat;
}

.export-documentation {
  background: url('../assets/exportdocumentaion.jpg') center/cover no-repeat;
}

.hs-code-classification {
  background: url('../assets/hscodeclasification.jpg') center/cover no-repeat;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  background: rgba(0, 0, 0, 0.3);
}

/* ─── Process Section ────────────────────────────────────────────────────────── */

.process-section {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.process-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0d2340;
}

.process-section .intro {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #555;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.step {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

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

.step-icon {
  font-size: 2rem;
  color: #0072bc;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.1rem;
  color: #0d2340;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: #555;
}

/* ─── Documents Section ──────────────────────────────────────────────────────── */

.documents-section {
  background-color: #f9fafc;
  padding: 60px 20px;
  text-align: center;
}

.documents-section h2 {
  font-size: 2.3rem;
  color: #0d2340;
  margin-bottom: 1rem;
}

.documents-section .intro {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #555;
}

.document-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.doc-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.doc-card:hover {
  transform: translateY(-5px);
}

.doc-card i {
  font-size: 2rem;
  color: #0072bc;
  margin-bottom: 12px;
}

.doc-card h3 {
  font-size: 1.1rem;
  color: #0d2340;
  margin-bottom: 0.5rem;
}

.doc-card p {
  font-size: 0.95rem;
  color: #555;
}


/* ─── Compliance Section ─────────────────────────────────────────────────────── */

.compliance-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.compliance-section h2 {
  font-size: 2.5rem;
  color: #0d2340;
  margin-bottom: 1rem;
}

.compliance-section .intro {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #444;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.compliance-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.compliance-item:hover {
  transform: translateY(-5px);
}

.compliance-item i {
  font-size: 2rem;
  color: #0072bc;
  margin-bottom: 1rem;
}

.compliance-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #0d2340;
}

.compliance-item p {
  color: #555;
  font-size: 0.95rem;
}


/* ─── Consultation (Quote) Section ─────────────────────────────────────────── */

.quote-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.quote-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #e0e7ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer p {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

/* ─── Responsive Design ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Show hamburger */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary);
    flex-direction: column;
    padding: 1rem;
    display: none;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-link {
    padding: 0.5rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .services-grid,
  .process-steps,
  .documents-grid,
  .compliance-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
/* ====================== */
/* MOBILE OPTIMIZATION    */
/* ====================== */

@media (max-width: 768px) {
  /* Base Mobile Styles */
  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  /* Header - Mobile Optimized */
  .header {
    padding: 1rem 0;
    position: sticky;
  }

  .header-container {
    padding: 0 1rem;
  }

  .logo {
    height: 3rem;
    width: auto;
  }

  .company-name {
    font-size: 1.3rem;
  }

  /* Mobile Navigation */
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 0;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }

  .main-nav.active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }

  .nav-link {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1rem;
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  /* Hero Section - Mobile Optimized */
  .customs-hero {
    min-height: 60vh;
    padding: 2rem 1rem;
    background-attachment: scroll;
    background-position: center center;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  }

  .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-width: 200px;
  }

  /* Services Grid - Mobile Stack */
  .services-section {
    padding: 3rem 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }

  .service-card {
    min-height: 250px;
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .service-card p {
    font-size: 1rem;
  }

  /* Process Steps - Mobile Layout */
  .process-section {
    padding: 3rem 1rem;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Documents Section - Mobile */
  .documents-section {
    padding: 3rem 1rem;
  }

  .document-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Compliance Section - Mobile */
  .compliance-section {
    padding: 3rem 1rem;
  }

  .compliance-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Quote Form - Mobile Optimized */
  .quote-section {
    padding: 3rem 1rem;
  }

  .quote-form {
    padding: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-input {
    padding: 1rem;
    font-size: 1rem;
  }

  /* Footer - Mobile Stack */
  .footer {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-title {
    font-size: 1.2rem;
  }
}

/* ====================== */
/* TOUCH OPTIMIZATIONS   */
/* ====================== */

/* Ensure all interactive elements are touch-friendly */
a, button, input[type="submit"], input[type="button"], .nav-link, .btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Remove 300ms tap delay on touch devices */
a, button, input, label, select {
  touch-action: manipulation;
}

/* Better feedback for touch interactions */
.btn:active,
.nav-link:active,
.service-card:active,
.step:active,
.doc-card:active,
.compliance-item:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* Prevent zoom on input focus in mobile */
input, select, textarea {
  font-size: 16px !important;
}

/* Improve form input visibility */
.form-input {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 8px;
}

/* Prevent layout shifts */
img, .service-card {
  max-width: 100%;
  height: auto;
}

/* Better scrolling behavior */
html {
  scroll-behavior: smooth;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .service-card:hover,
  .step:hover,
  .doc-card:hover,
  .compliance-item:hover,
  .btn:hover {
    transform: none;
    box-shadow: none;
  }

  .service-card:hover::before {
    background: rgba(0, 0, 0, 0.5);
  }

  .nav-link:hover {
    text-decoration: none;
    opacity: 1;
  }
}

/* ====================== */
/* CUSTOMS CLEARANCE SPECIFIC */
/* ====================== */

/* Service card backgrounds mobile optimization */
@media (max-width: 768px) {
  .import-clearance,
  .export-documentation,
  .hs-code-classification {
    background-attachment: scroll;
  }
}

/* Process steps mobile adjustments */
@media (max-width: 768px) {
  .step {
    padding: 1.5rem;
  }

  .step h3 {
    font-size: 1.2rem;
  }

  .step p {
    font-size: 1rem;
  }
}

/* Document cards mobile adjustments */
@media (max-width: 768px) {
  .doc-card {
    padding: 1.5rem;
  }

  .doc-card h3 {
    font-size: 1.2rem;
  }

  .doc-card p {
    font-size: 1rem;
  }
}

/* Compliance items mobile adjustments */
@media (max-width: 768px) {
  .compliance-item {
    padding: 1.5rem;
  }

  .compliance-item h3 {
    font-size: 1.2rem;
  }

  .compliance-item p {
    font-size: 1rem;
  }
}

/* Fix footer display: solid background, white text, no border, no extra padding */
.footer, .footer *, .footer .credit a, .footer .credit a:hover {
  background: var(--primary) !important;
  color: #fff !important;
  text-decoration: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  text-align: center !important;
  font-size: 1rem !important;
}
.footer {
  padding: 2rem 0 1rem 0 !important;
  margin-top: 2rem !important;
  border: none !important;
  box-shadow: none !important;
}

.footer .festive-greeting {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  font-style: italic;
}

.footer .festive-greeting::before {
  content: '🎄 ';
}

.footer .festive-greeting::after {
  content: ' 🎄';
}

/* Festive Cookie Banner Styling */
#cookieConsent {
  background: linear-gradient(135deg, #d32f2f 0%, #ffb300 100%) !important;
  color: #fff !important;
  padding: 1.2em !important;
  text-align: center !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
  border-top: 3px solid rgba(255, 255, 255, 0.3) !important;
  font-weight: 500 !important;
}

#cookieConsent button {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  padding: 0.6em 1.5em !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin-left: 1em !important;
}

#cookieConsent button:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: scale(1.05) !important;
}

/* Subtle Animated Snowflakes */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  animation: snowfall linear infinite;
  opacity: 0.7;
}

@keyframes snowfall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.7;
  }
  100% {
    transform: translateY(100vh) translateX(50px) rotate(360deg);
    opacity: 0;
  }
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 14s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 11s; animation-delay: 0.5s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: 1.5s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 15s; animation-delay: 2.5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 10s; animation-delay: 0.8s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 12s; animation-delay: 1.8s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 14s; animation-delay: 0.3s; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 11s; animation-delay: 1.2s; }
.snowflake:nth-child(11) { left: 25%; animation-duration: 13s; animation-delay: 2.2s; }
.snowflake:nth-child(12) { left: 35%; animation-duration: 12s; animation-delay: 0.7s; }
.snowflake:nth-child(13) { left: 45%; animation-duration: 14s; animation-delay: 1.7s; }
.snowflake:nth-child(14) { left: 55%; animation-duration: 10s; animation-delay: 0.4s; }
.snowflake:nth-child(15) { left: 65%; animation-duration: 15s; animation-delay: 2.1s; }
.snowflake:nth-child(16) { left: 75%; animation-duration: 11s; animation-delay: 0.9s; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 13s; animation-delay: 1.9s; }
.snowflake:nth-child(18) { left: 95%; animation-duration: 12s; animation-delay: 0.6s; }
.snowflake:nth-child(19) { left: 5%; animation-duration: 14s; animation-delay: 1.6s; }
.snowflake:nth-child(20) { left: 55%; animation-duration: 11s; animation-delay: 2.3s; }
