:root {
  --navy: #0b2540;
  --navy-dark: #071a2e;
  --steel: #4b5c6b;
  --steel-light: #f4f6f8;
  --accent: #e2a63b;
  --accent-dark: #c98f28;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

.text-accent {
  color: var(--accent) !important;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Manrope', sans-serif;
}

/* Navbar */
.site-navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 1.25rem 0;
}
.site-navbar .navbar-brand,
.site-navbar .nav-link {
  color: #fff;
}
.site-navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--accent);
}
.site-navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  padding: 0.75rem 0;
}
.navbar-logo {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

/* Text wordmark used in the navbar instead of a logo image */
.brand-wordmark {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: .04em;
  color: #fff;
  display: flex;
  align-items: center;
}
.brand-wordmark span { color: var(--accent); }

/* Language dropdown */
.lang-dropdown .dropdown-toggle {
  min-width: 68px;
  border-color: rgba(255,255,255,.3) !important;
  transition: all 0.2s ease;
}
.lang-dropdown .dropdown-toggle:hover {
  border-color: var(--accent) !important;
  background: rgba(226,166,59,.1) !important;
}
.lang-dropdown .dropdown-menu {
  min-width: 160px;
  border: none;
  box-shadow: 0 12px 30px rgba(11,37,64,.18);
  border-radius: 10px;
  padding: .4rem;
}
.lang-dropdown .dropdown-item {
  border-radius: 6px;
  padding: .5rem .75rem;
  font-size: .9rem;
  transition: background 0.2s ease;
}
.lang-dropdown .dropdown-item:hover {
  background: var(--steel-light);
}
.lang-dropdown .dropdown-item.active,
.lang-dropdown .dropdown-item:active {
  background: var(--accent);
  color: var(--navy-dark);
}
.site-footer .lang-dropdown .dropdown-toggle {
  color: #cfd8e0;
  border-color: #37485a;
}

/* Page hero (services / contact) */
.page-hero {
  position: relative;
  padding: 168px 0 84px;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,26,46,.88) 0%, rgba(7,26,46,.78) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-weight: 800; font-size: 2.35rem; margin-bottom: .75rem; }
.page-hero p { opacity: .92; font-size: 1.05rem; max-width: 640px; }
.page-hero-services {
  background-image: url('https://images.pexels.com/photos/1427541/pexels-photo-1427541.jpeg?auto=compress&cs=tinysrgb&w=1920');
}
.page-hero-contact {
  background-image: url('https://images.pexels.com/photos/32633351/pexels-photo-32633351.jpeg?auto=compress&cs=tinysrgb&w=1920');
}

/* Service rows */
.service-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.service-row h2 { font-weight: 800; margin-bottom: .75rem; }
.service-row p { color: var(--steel); font-size: 1.02rem; }

/* Hero */
.hero-slider { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-slider .swiper, .hero-slider .swiper-slide { height: 100%; }
.hero-slider img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,26,46,.65) 0%, rgba(7,26,46,.82) 100%);
}
.hero-content {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; z-index: 2; color: #fff;
}
.hero-content h1 { font-weight: 800; font-size: 3rem; line-height: 1.2; }
.hero-content .lead { font-size: 1.2rem; opacity: .92; margin: 1.25rem 0 2rem; max-width: 650px; }

.btn-accent {
  background: var(--accent); border-color: var(--accent); color: var(--navy-dark); font-weight: 600;
  transition: all 0.3s ease;
}
.btn-accent:hover { 
  background: var(--accent-dark); 
  border-color: var(--accent-dark); 
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(226,166,59,.3);
}
.btn-accent:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(226,166,59,.2);
}
.btn-outline-light {
  border-color: rgba(255,255,255,.5);
  transition: all 0.3s ease;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-outline-light:active {
  transform: translateY(0);
  background: rgba(255,255,255,.15);
}

/* Stats */
#count-years, #count-countries, #count-shipments, #count-satisfaction {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 2.75rem; color: var(--navy);
  margin-bottom: 0.5rem;
}
.stats-section p {
  color: var(--steel);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Service cards */
.service-card {
  border: 1px solid #e7eaee; border-radius: 12px; transition: transform .3s ease, box-shadow .3s ease;
  background: #fff;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(11,37,64,.15); }
.service-card i { color: var(--accent); }
.service-card h5 { margin: 1rem 0 .75rem; font-weight: 700; font-size: 1.15rem; }
.service-card p { color: var(--steel); font-size: 0.95rem; line-height: 1.6; }

/* Navy section */
.section-navy { background: var(--navy); }
.section-navy i { color: var(--accent); }

/* Mission section */
.mission-section {
  background: #fff;
}
.mission-section h2 {
  font-weight: 800;
  font-size: 2rem;
  color: var(--navy);
}
.mission-section p {
  color: var(--steel);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Why TRADETOILE section */
.why-tradetoile-section {
  background: var(--steel-light);
}
.why-tradetoile-section h2 {
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--navy);
}
.why-card {
  border: none;
  border-radius: 12px;
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 4px 20px rgba(11,37,64,.08);
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(11,37,64,.15);
}
.why-card .icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(226,166,59,.1) 0%, rgba(226,166,59,.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-card .icon-wrapper i {
  font-size: 1.75rem;
  color: var(--accent);
}
.why-card h5 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.why-card p {
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Logos carousel */
.logo-box {
  height: 100px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #e7eaee; border-radius: 12px; font-weight: 700; color: var(--steel); letter-spacing: .05em;
  background: #fff;
  transition: all 0.3s ease;
}
.logo-box:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(11,37,64,.08);
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Testimonials */
blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(11,37,64,.06);
  font-style: italic;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.6;
}
blockquote footer { 
  margin-top: 1rem; 
  font-size: .9rem; 
  color: var(--steel);
  font-style: normal;
  font-weight: 500;
}

/* CTA band */
.cta-band { 
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-top: none;
  border-bottom: none;
}
.cta-band h2 {
  font-weight: 700;
  color: #fff;
}
.cta-band .btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy-dark);
}
.cta-band .btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* Footer */
.site-footer { background: var(--navy-dark); color: #cfd8e0; }
.site-footer h5, .site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: #cfd8e0; text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--accent); }
.footer-slogan {
  max-width: 220px;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}
.site-footer p {
  color: #cfd8e0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.site-footer ul {
  margin-bottom: 0;
}
.site-footer .lang-link {
  color: #cfd8e0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer .lang-link:hover {
  color: var(--accent);
}
.site-footer i {
  color: var(--accent);
}

/* ============================================
   RESPONSIVE TYPOGRAPHY SYSTEM
   ============================================ */
.hero-content h1 {
  font-size: clamp(1.875rem, 5vw, 3rem);
}
.hero-content .lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}
.mission-section h2,
.why-tradetoile-section h2,
.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}
.service-card h5,
.why-card h5 {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}
blockquote {
  font-size: clamp(0.95rem, 2vw, 1rem);
}

/* ============================================
   RESPONSIVE SPACING SYSTEM
   ============================================ */
section {
  padding-top: clamp(3rem, 8vw, 6.25rem);
  padding-bottom: clamp(3rem, 8vw, 6.25rem);
}

/* ============================================
   BUTTON OPTIMIZATION
   ============================================ */
.btn {
  min-height: clamp(48px, 6vw, 52px);
  padding: 0.75rem 1.5rem;
  font-size: clamp(0.95rem, 2vw, 1rem);
  border-radius: 8px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-lg {
  min-height: clamp(52px, 7vw, 56px);
  padding: 1rem 2rem;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
}

/* ============================================
   MOBILE NAVBAR (320px - 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Safe area insets for modern phones */
  .site-navbar {
    padding-top: max(0.875rem, env(safe-area-inset-top));
    padding-bottom: 0.875rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    min-height: calc(70px + env(safe-area-inset-top));
  }
  .site-navbar .navbar-brand {
    margin-right: auto;
  }
  .brand-wordmark {
    font-size: clamp(1.35rem, 4vw, 1.65rem);
  }
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
  }
  .navbar-toggler:focus {
    box-shadow: none;
  }
  .navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  .navbar-close {
    padding: 0.5rem;
    line-height: 1;
  }
  .navbar-close:hover {
    color: var(--accent) !important;
  }
  
  /* Mobile menu */
  .navbar-collapse {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-dark);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    z-index: 1040;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .navbar-collapse.collapsing {
    transform: translateX(100%);
    opacity: 0;
  }
  .navbar-collapse.show {
    transform: translateX(0);
    opacity: 1;
  }
  .navbar-collapse:not(.show) {
    transform: translateX(100%);
    opacity: 0;
  }
  
  /* Mobile menu backdrop */
  .navbar-collapse.show::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
  }
  .navbar-nav {
    gap: 0.5rem;
  }
  .nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-item:last-child {
    border-bottom: none;
  }
  .nav-link {
    padding: 1rem 0 !important;
    font-size: 1.1rem;
    color: #fff !important;
  }
  .nav-link:hover,
  .nav-link.active {
    color: var(--accent) !important;
  }
  .lang-dropdown {
    margin-top: 1.5rem;
  }
  .lang-dropdown .dropdown-toggle {
    width: 100%;
    justify-content: center;
    border-color: rgba(255,255,255,0.3) !important;
    color: #fff !important;
  }
  .lang-dropdown .dropdown-menu {
    position: static;
    transform: none !important;
    width: 100%;
    margin-top: 0.5rem;
  }
  
  /* Hero */
  .hero-slider {
    height: 85vh;
    min-height: 500px;
  }
  .hero-content {
    padding: 0 1.25rem;
  }
  .hero-content .col-lg-8 {
    max-width: 100%;
  }
  .hero-content h1 {
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  .hero-content .lead {
    margin-bottom: 1.5rem;
    max-width: 100%;
  }
  .hero-content .d-flex {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-content .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(7,26,46,.7) 0%, rgba(7,26,46,.85) 100%);
  }
  
  /* Mission section */
  .mission-section .row {
    flex-direction: column;
  }
  .mission-section .col-lg-6 {
    order: 2;
  }
  .mission-section img {
    order: 1;
    margin-bottom: 2rem;
  }
  .mission-section .d-flex {
    justify-content: center;
    gap: 1.5rem !important;
  }
  .mission-section .col-6 {
    flex: 0 0 auto;
    width: auto;
  }
  .mission-section i {
    font-size: 1.5rem;
  }
  .mission-section span {
    font-size: 0.95rem;
  }
  
  /* Statistics */
  .stats-section .col-6 {
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(11,37,64,.08);
    margin-bottom: 1rem;
  }
  #count-years, #count-countries, #count-shipments, #count-satisfaction {
    font-size: 2.25rem;
  }
  .stats-section p {
    font-size: 0.9rem;
  }
  
  /* Services */
  .service-card {
    padding: 1.75rem 1.5rem;
  }
  .service-card i {
    font-size: 2rem;
  }
  .service-card h5 {
    margin-bottom: 0.5rem;
  }
  .service-card p {
    font-size: 0.95rem;
  }
  
  /* Why TRADETOILE */
  .why-card {
    padding: 2rem 1.5rem;
  }
  .why-card .icon-wrapper {
    width: 80px;
    height: 80px;
  }
  .why-card .icon-wrapper i {
    font-size: 2rem;
  }
  .why-card p {
    font-size: 0.95rem;
  }
  
  /* Team section */
  .team-section .row {
    flex-direction: column;
  }
  .team-section .col-lg-6:first-child {
    order: 1;
  }
  .team-section .col-lg-6:last-child {
    order: 2;
  }
  .team-section img {
    border-radius: 12px;
    margin-bottom: 1.5rem;
  }
  
  /* Partners */
  .logo-box {
    height: 80px;
    padding: 0.75rem;
  }
  .logo-img {
    max-height: 60px;
  }
  
  /* Testimonials */
  blockquote {
    padding: 1.75rem 1.5rem;
    font-size: 1rem;
  }
  blockquote footer {
    font-size: 0.9rem;
  }
  
  /* CTA */
  .cta-band {
    text-align: center;
    padding: 3rem 1.5rem;
  }
  .cta-band .d-lg-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  .cta-band h2 {
    margin-bottom: 0;
  }
  .cta-band .btn {
    width: 100%;
    max-width: 350px;
  }
  
  /* Footer */
  .site-footer {
    text-align: center;
  }
  .site-footer .row {
    flex-direction: column;
    gap: 2rem;
  }
  .site-footer .col-lg-4,
  .site-footer .col-lg-3,
  .site-footer .col-lg-2 {
    max-width: 100%;
  }
  .site-footer .d-flex {
    justify-content: center;
  }
  .site-footer ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .site-footer .row:last-child {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .site-footer .col-md-6 {
    max-width: 100%;
  }
  .site-footer i {
    margin-right: 0.5rem;
  }
}

/* ============================================
   SMALL PHONES (320px - 480px)
   ============================================ */
@media (max-width: 480px) {
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  .hero-content .lead {
    font-size: 0.95rem;
  }
  
  .mission-section h2,
  .why-tradetoile-section h2 {
    font-size: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem 1.25rem;
  }
  
  .why-card {
    padding: 1.75rem 1.25rem;
  }
  
  .stats-section .col-6 {
    padding: 1.25rem 0.75rem;
  }
  
  blockquote {
    padding: 1.5rem 1.25rem;
  }
}

/* ============================================
   TABLET (576px - 768px)
   ============================================ */
@media (min-width: 576px) and (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .hero-content .lead {
    font-size: 1.1rem;
  }
  
  .mission-section h2,
  .why-tradetoile-section h2 {
    font-size: 1.75rem;
  }
  
  .stats-section .col-6 {
    padding: 1.75rem 1.25rem;
  }
  
  .service-card {
    padding: 2rem 1.75rem;
  }
  
  .why-card {
    padding: 2.25rem 1.75rem;
  }
}

/* ============================================
   PREVENT HORIZONTAL SCROLLING
   ============================================ */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ============================================
   IMAGE RESPONSIVENESS
   ============================================ */
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================================
   TOUCH OPTIMIZATION
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }
  .service-card:hover,
  .why-card:hover {
    transform: none;
  }
  .logo-box:hover {
    transform: none;
  }
}

/* ============================================
   SWIPER MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 768px) {
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
  .logosSwiper .swiper-slide {
    width: auto !important;
  }
}

/* ============================================
   ADDITIONAL MOBILE IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
  /* Improve text readability */
  p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
  }
  
  /* Improve card spacing */
  .row > .col-md-4,
  .row > .col-md-6 {
    margin-bottom: 1.5rem;
  }
  
  /* Improve container padding */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Improve form inputs */
  .form-control {
    min-height: 52px;
    font-size: 1rem;
  }
  
  /* Improve dropdown menus */
  .dropdown-menu {
    font-size: 1rem;
  }
}
