/* ==========================================================================
   CargoPlan Sénégal - Modern Design System & Stylesheet
   senegal.cargoplan.com.tr
   Author: CargoPlan Development Team
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --primary: #0a1f38;
  --primary-light: #12335a;
  --brand-blue: #1483ba;
  --brand-blue-hover: #0f6c9a;
  --accent-cyan: #07bdc8;
  --accent-cyan-light: #5ad6de;
  --accent-orange: #ff5e14;
  --accent-orange-hover: #e04b08;
  --accent-green: #10b981;

  /* Neutrals & Dark Surfaces */
  --bg-dark: #1b2028;
  --bg-darker: #13171c;
  --bg-card: #242a34;
  --bg-light: #f8fafc;
  --bg-light-alt: #f0f5fa;
  --border-light: #e2e8f0;
  --border-dark: #333c4a;

  /* Typography Colors */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --text-white: #ffffff;

  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(20, 131, 186, 0.35);

  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: #ffffff;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile bottom bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

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

a:hover {
  color: var(--accent-cyan);
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 131, 186, 0.1);
  color: var(--brand-blue);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-hover));
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(20, 131, 186, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-blue-hover), var(--primary));
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 131, 186, 0.4);
}

.btn-orange {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-hover));
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(255, 94, 20, 0.35);
}

.btn-orange:hover {
  background: linear-gradient(135deg, var(--accent-orange-hover), #bf3a00);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 94, 20, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-white);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #1ebc59;
  color: #ffffff;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
  background: var(--bg-darker);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-contacts {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-contact-item a {
  color: #e2e8f0;
  font-weight: 500;
}

.top-contact-item a:hover {
  color: var(--accent-cyan);
}

.top-contact-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 6px;
  border-radius: var(--radius-full);
  gap: 4px;
}

.lang-btn {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
}

.lang-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(20, 131, 186, 0.4);
}

.lang-btn:hover:not(.active) {
  color: #ffffff;
}

@media (max-width: 768px) {
  .top-contacts {
    display: none;
  }
  .top-bar-inner {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 37, 69, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-sub {
  display: flex;
  flex-direction: column;
}

.brand-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: -2px;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-tracking {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-tracking:hover {
  background: var(--accent-cyan);
  color: var(--primary);
  border-color: var(--accent-cyan);
}

.btn-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #ffffff;
  cursor: pointer;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
  .btn-menu-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 1050;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s ease;
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-dark);
}

.drawer-close {
  background: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 6px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
}

.drawer-nav a {
  color: #e2e8f0;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-nav a:hover {
  color: var(--accent-cyan);
  padding-left: 6px;
}

.drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 31, 56, 0.94) 0%, rgba(19, 51, 90, 0.88) 100%),
              url('../img/hero-banner.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-shape svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 48px;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 189, 200, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(7, 189, 200, 0.3);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--accent-cyan);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.9rem;
  color: #cbd5e1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-feature-item svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 50px 0 80px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-features {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Interactive Quote Wizard
   ========================================================================== */
.wizard-section {
  position: relative;
  margin-top: -50px;
  z-index: 10;
  padding-bottom: 60px;
}

.wizard-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(10, 31, 56, 0.12);
  border: 1px solid var(--border-light);
  padding: 36px;
  overflow: hidden;
}

.wizard-header {
  text-align: center;
  margin-bottom: 28px;
}

.wizard-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.wizard-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.wizard-form {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

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

.form-group.col-12 { grid-column: span 12; }
.form-group.col-6  { grid-column: span 6; }
.form-group.col-4  { grid-column: span 4; }
.form-group.col-3  { grid-column: span 3; }

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

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(20, 131, 186, 0.15);
}

.form-control::placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.wizard-submit-wrap {
  grid-column: span 12;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .wizard-card {
    padding: 24px 18px;
  }
  .form-group.col-6,
  .form-group.col-4,
  .form-group.col-3 {
    grid-column: span 12;
  }
  .wizard-submit-wrap .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Statistics Counter Section
   ========================================================================== */
.stats-section {
  padding: 40px 0 60px;
  background: var(--bg-light-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon img {
  max-width: 48px;
  max-height: 48px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number .suffix {
  color: var(--accent-orange);
}

.stat-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  padding: 80px 0;
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(10, 31, 56, 0.1);
  border-color: rgba(20, 131, 186, 0.3);
}

.service-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-thumb img {
  transform: scale(1.08);
}

.service-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 31, 56, 0.8) 0%, transparent 60%);
}

.service-thumb-icon {
  position: absolute;
  bottom: 14px;
  left: 20px;
  width: 42px;
  height: 42px;
  background: var(--brand-blue);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-thumb-icon svg {
  width: 22px;
  height: 22px;
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-card-features {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.service-card-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #475569;
}

.service-card-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-section {
  padding: 80px 0;
  background: var(--bg-dark);
  color: #ffffff;
}

.why-section .section-title {
  color: #ffffff;
}

.why-section .section-subtitle {
  color: #94a3b8;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--bg-card);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.why-icon {
  width: 52px;
  height: 52px;
  background: rgba(7, 189, 200, 0.15);
  color: var(--accent-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-icon svg {
  width: 26px;
  height: 26px;
}

.why-card-title {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.why-card-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Senegal Customs & PSI Guide (Accordion)
   ========================================================================== */
.guide-section {
  padding: 80px 0;
  background: var(--bg-light-alt);
}

.guide-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.accordion-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.accordion-item.active {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.accordion-header {
  width: 100%;
  padding: 20px 24px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  transition: var(--transition);
}

.accordion-header:hover {
  color: var(--brand-blue);
}

.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  background: var(--brand-blue);
  color: #ffffff;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

.accordion-item.active .accordion-content {
  padding: 0 24px 20px;
  max-height: 600px;
}

/* ==========================================================================
   Offices & Interactive Map Section
   ========================================================================== */
.offices-section {
  padding: 80px 0;
  background: #ffffff;
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.office-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.office-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--brand-blue);
}

.office-card.dakar::before {
  background: #00853f; /* Senegal Flag Green */
}

.office-card.istanbul::before {
  background: #e30a17; /* Turkish Flag Red */
}

.office-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.office-name {
  font-size: 1.35rem;
  color: var(--primary);
}

.office-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.office-card.dakar .office-badge {
  background: rgba(0, 133, 63, 0.1);
  color: #00853f;
}

.office-card.istanbul .office-badge {
  background: rgba(227, 10, 23, 0.1);
  color: #e30a17;
}

.office-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.office-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.office-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
}

.office-detail-row svg {
  width: 18px;
  height: 18px;
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.office-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.office-actions .btn {
  flex: 1;
}

/* Map Containers */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.map-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  height: 320px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 992px) {
  .offices-grid,
  .maps-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Detailed Contact / Quote Section
   ========================================================================== */
.contact-section {
  padding: 80px 0;
  background: var(--bg-light-alt);
}

.contact-card {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 12px 32px rgba(10, 31, 56, 0.08);
  border: 1px solid var(--border-light);
}

.contact-alert {
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.95rem;
  display: none;
}

.contact-alert.success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  display: block;
}

.contact-alert.error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
  display: block;
}

/* Certificates Banner */
.certificates-section {
  padding: 40px 0 60px;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.certificates-banner {
  max-width: 820px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-darker);
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--brand-blue);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--brand-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Floating WhatsApp Button & Dual Modal
   ========================================================================== */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.floating-wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
}

.floating-wa-btn svg {
  width: 34px;
  height: 34px;
}

.wa-pulse {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  border: 2px solid #25d366;
  opacity: 0.8;
  animation: waPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* WhatsApp Selector Modal */
.wa-modal-wrap {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 995;
  width: 310px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: var(--transition);
}

.wa-modal-wrap.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-modal-head {
  background: #0b2545;
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-modal-head h5 {
  color: #ffffff;
  font-size: 1rem;
  margin: 0;
}

.wa-modal-close {
  background: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px;
}

.wa-modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.wa-option-btn:hover {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  transform: translateX(3px);
}

.wa-option-btn svg {
  width: 22px;
  height: 22px;
  color: #25d366;
  flex-shrink: 0;
}

.wa-option-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

/* ==========================================================================
   Tracking Modal
   ========================================================================== */
.tracking-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 56, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.tracking-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.tracking-modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: var(--transition);
}

.tracking-modal-backdrop.open .tracking-modal-box {
  transform: scale(1);
}

.tracking-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
}

.tracking-modal-box h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.tracking-modal-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.tracking-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 480px) {
  .tracking-input-group {
    flex-direction: column;
  }
}

/* ==========================================================================
   Mobile Bottom Sticky Action Bar
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #ffffff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  z-index: 900;
  border-top: 1px solid var(--border-light);
}

.mobile-bar-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  border-right: 1px solid var(--border-light);
}

.mobile-bar-action:last-child {
  border-right: none;
}

.mobile-bar-action svg {
  width: 20px;
  height: 20px;
}

.mobile-bar-action.call { color: var(--brand-blue); }
.mobile-bar-action.quote { color: var(--accent-orange); }
.mobile-bar-action.wa { color: #25d366; }

@media (min-width: 992px) {
  .mobile-bottom-bar {
    display: none;
  }
}
