/* ==========================================================================
   SOFT BY ACHRAF SARL - ENTERPRISE GLOBAL LOGISTICS PLATFORM
   Design System: Clean Modern Enterprise Logistics (Matched to Reference Design)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-page: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-navy-hero: #0B1C33;
  --bg-navy-dark: #071324;
  --bg-navy-card: #0F223D;
  --bg-navy-strip: #0A192F;
  
  --text-dark: #0F172A;
  --text-body: #475569;
  --text-muted: #64748B;
  --text-white: #FFFFFF;
  --text-light-subtle: #CBD5E1;

  --border-light: #E2E8F0;
  --border-subtle: rgba(255, 255, 255, 0.15);
  --border-active: #2563EB;

  --accent-blue: #1E40AF;
  --accent-blue-bright: #2563EB;
  --accent-teal: #0D9488;
  --accent-orange: #EA580C;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-hero: 28px;
  --radius-md: 12px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-hero: 0 20px 40px rgba(7, 19, 36, 0.25);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mono {
  font-family: var(--font-mono);
}

.container-custom {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Hero Container & Navbar (Matching Reference Exactly)
   ========================================================================== */
.hero-wrapper-outer {
  padding-top: 1.25rem;
  padding-bottom: 3rem;
}

.hero-rounded-box {
  background: radial-gradient(circle at 75% 40%, rgba(26, 54, 93, 0.7), transparent 60%),
              linear-gradient(135deg, #09192E 0%, #0D223F 50%, #081629 100%);
  border-radius: var(--radius-hero);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

/* Navbar inside Hero */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.25rem;
  position: relative;
  z-index: 10;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.brand-title {
  color: var(--text-white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Center Floating Pill Menu */
.nav-center-pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-pill);
}

.nav-center-pill a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.nav-center-pill a:hover,
.nav-center-pill a.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.14);
}

/* Right Get Started Pill Button */
.btn-nav-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: transparent;
}

.btn-nav-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Hero Content Grid */
.hero-inner-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  padding: 2.5rem 2.5rem 4rem 2.5rem;
  flex-grow: 1;
  position: relative;
  z-index: 5;
}

.hero-text-col {
  max-width: 580px;
}

.hero-title-main {
  color: #FFFFFF;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-sub-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-pill-white {
  background: #FFFFFF;
  color: #0A192F;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-pill-white:hover {
  background: #F1F5F9;
  transform: translateY(-1px);
  color: #05101E;
}

.btn-pill-outline {
  background: transparent;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

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

.hero-image-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ship-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Section: Advanced Services for Modern Trade (4 Cards + Port Showcase)
   ========================================================================== */
.section-services-trade {
  padding: 4.5rem 0;
  background: #FFFFFF;
}

.section-title-center {
  text-align: center;
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 2.75rem;
}

.cards-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.service-feature-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #1E293B;
}

.service-feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.service-feature-sub {
  font-size: 0.9rem;
  color: var(--text-body);
}

/* Port Aerial Showcase Card */
.port-showcase-card {
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.port-showcase-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.port-overlay-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(11, 28, 51, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.port-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0B1C33;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.port-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: #FFFFFF;
}

/* ==========================================================================
   Section: Fast, Reliable, and Secure Transportation Services (2x2 Grid)
   ========================================================================== */
.section-transport-grid {
  padding: 5rem 0;
  background: #F8FAFC;
}

.transport-2x2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.transport-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 290px;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
  background: #0B1C33;
}

.transport-image-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.transport-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.transport-image-card:hover .transport-bg-img {
  transform: scale(1.04);
}

.transport-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(9, 21, 38, 0.92) 0%, rgba(9, 21, 38, 0.4) 60%, transparent 100%);
  color: #FFFFFF;
}

.transport-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.transport-card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Section: What our clients say about us (Testimonial Card Matching Image)
   ========================================================================== */
.section-testimonials {
  padding: 5rem 0;
  background: #FFFFFF;
}

.testimonial-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.testimonial-main-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.trusted-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar-stack {
  display: flex;
}

.avatar-bubble {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  margin-left: -8px;
  background: #1E293B;
  overflow: hidden;
}
.avatar-bubble:first-child { margin-left: 0; }
.avatar-bubble img { width: 100%; height: 100%; object-fit: cover; }

.trusted-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
}

/* Featured Testimonial Card */
.testimonial-featured-box {
  background: #0E223D;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
}

.testimonial-content-side {
  padding: 3.5rem 3rem;
  color: #FFFFFF;
  position: relative;
}

.quote-big-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}

.testimonial-quote-text {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.45;
  color: #FFFFFF;
  margin-bottom: 1.75rem;
}

.testimonial-author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.testimonial-author-org {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.testimonial-dots-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2.25rem;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.t-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #EA580C;
}

.testimonial-photo-side {
  height: 100%;
  min-height: 380px;
}

.testimonial-exec-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Section: Statistics / Metrics Strip (Dark Navy Banner)
   ========================================================================== */
.section-stats-strip {
  background: #09192E;
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-metric-number {
  color: #FFFFFF;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-metric-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 0.35rem;
}

/* ==========================================================================
   Section: Moroccan Corporate Registration & Governance (Credibility Anchor)
   ========================================================================== */
.section-corp-verified {
  padding: 4.5rem 0;
  background: #F1F5F9;
}

.corp-verified-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 2.75rem 3rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.corp-verified-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2.5rem;
  align-items: center;
}

.verified-seal-col {
  text-align: center;
  padding-right: 1.5rem;
  border-right: 1px solid #E2E8F0;
}

.verified-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.verified-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.legal-item-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
}

.legal-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.legal-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Footer (Matching Exact Reference Layout & Colors)
   ========================================================================== */
.footer-corporate {
  background: #071324;
  color: #FFFFFF;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 0.9fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-head {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.newsletter-pill-form {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.35rem;
  max-width: 360px;
}

.newsletter-input {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 0.88rem;
  width: 100%;
}
.newsletter-input:focus { outline: none; }
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.5); }

.newsletter-btn {
  background: #1D4ED8;
  border: none;
  border-radius: var(--radius-pill);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.newsletter-btn:hover { background: #2563EB; }

.footer-contact-text {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-social-row {
  display: flex;
  gap: 0.75rem;
}

.social-circle-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.social-circle-link:hover {
  background: #2563EB;
  color: #FFFFFF;
}

.footer-sub-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Mobile Nav Drawer
   ========================================================================== */
.mobile-nav-drawer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #09192E;
  z-index: 2000;
  padding: 1.75rem;
  display: none;
  flex-direction: column;
}
.mobile-nav-drawer.open { display: flex; }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}
.drawer-close-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.8rem;
  cursor: pointer;
}

.drawer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.drawer-links-list a {
  color: #FFFFFF;
  font-size: 1.3rem;
  font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .cards-4-grid { grid-template-columns: repeat(2, 1fr); }
  .transport-2x2-grid { grid-template-columns: 1fr; }
  .hero-inner-grid { grid-template-columns: 1fr; gap: 2rem; }
  .testimonial-featured-box { grid-template-columns: 1fr; }
  .testimonial-photo-side { min-height: 280px; }
  .stats-4-grid { grid-template-columns: repeat(2, 1fr); }
  .corp-verified-grid { grid-template-columns: 1fr; }
  .verified-seal-col { border-right: none; border-bottom: 1px solid #E2E8F0; padding-bottom: 1.5rem; padding-right: 0; }
  .footer-main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-center-pill, .btn-nav-outline { display: none; }
  .nav-mobile-toggle { display: flex; }
  .hero-inner-grid { padding: 1.5rem 1.25rem 2.5rem 1.25rem; }
  .cards-4-grid { grid-template-columns: 1fr; }
  .stats-4-grid { grid-template-columns: 1fr; }
  .verified-legal-grid { grid-template-columns: 1fr; }
  .port-showcase-img { height: 320px; }
}
