/* Global Logistics Services - Enhanced UI */
:root {
  --primary: #1a5fb4;
  --primary-light: #3584e4;
  --primary-dark: #13488a;
  --accent: #e01b24;
  --accent-light: #f04a52;
  --accent-foreground: #fff;
  --gradient-primary: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
  --gradient-hero: linear-gradient(135deg, #1a5fb4 0%, #2a7ad4 40%, #164a8c 100%);
  --gradient-dark: linear-gradient(160deg, #1e3a5f 0%, #243d5c 50%, #2d4a6f 100%);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-soft: 0 4px 14px rgba(26, 95, 180, 0.08);
  --shadow-card: 0 4px 20px rgba(26, 95, 180, 0.1);
  --shadow-card-hover: 0 12px 40px rgba(26, 95, 180, 0.18);
  --shadow-glow: 0 0 32px rgba(26, 95, 180, 0.25);
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
}

* { scroll-margin-top: 140px; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: var(--font-body);
  color: #1e3a5f;
  background: #fafbfc;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
body > header,
body > main,
body > footer {
  max-width: 100%;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }
.font-display { font-family: var(--font-display); }

/* ----- Responsive: prevent horizontal overflow on all screens ----- */
.container { width: 100%; max-width: 100%; }
@media (max-width: 575.98px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
}
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; border: 0; }

/* ----- Topbar ----- */
.topbar {
  font-size: 0.875rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1);
}
.topbar .container .d-flex { flex-wrap: wrap; min-width: 0; }
.topbar a { transition: color 0.2s, transform 0.2s; }
.topbar a:hover { color: var(--accent) !important; }
.topbar .bi { font-size: 1rem; }

/* ----- Header ----- */
.header-main .container .d-flex { min-width: 0; flex-wrap: wrap; }
.header-main {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.logo-wrap:hover .logo-img { transform: scale(1.08); }
.tracking-wide { letter-spacing: 0.08em; }

.nav-link-custom {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2d3748;
  text-decoration: none;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  position: relative;
}
.nav-link-custom:not(.active)::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  width: 0;
  transition: width 0.3s ease;
}
.nav-link-custom:hover:not(.active)::after { width: calc(100% - 1.7rem); }
.nav-link-custom:hover { background: #f0f4f8; color: var(--primary); }
.nav-link-custom.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-soft);
}
.nav-link-custom.active::after { display: none; }

.mobile-menu { display: none; }
.mobile-menu.show { display: block; animation: slideDown 0.3s ease; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-nav-link {
  display: block;
  padding: 0.65rem 1rem;
  color: #2d3748;
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.mobile-nav-link:hover { background: #f0f4f8; color: var(--primary); }
.mobile-nav-link.active { background: var(--gradient-primary); color: white; }

/* ----- Buttons ----- */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 95, 180, 0.35);
}
.btn-hero {
  background: rgba(255,255,255,0.18);
  color: white;
  border: 2px solid rgba(255,255,255,0.9);
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.btn-hero:hover {
  background: white;
  color: var(--primary);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-hero:active { transform: translateY(0); }
/* CTA section buttons: subtle pulse on hover */
.cta-section .btn-hero:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.3);
}

/* ----- Hero ----- */
.hero-section {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroBgZoom 18s ease-out forwards;
}
.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(26,95,180,0.92) 0%, rgba(26,95,180,0.75) 40%, rgba(22,74,140,0.5) 100%);
}
.hero-section .content { position: relative; z-index: 2; max-width: 100%; }
.hero-section .container { max-width: 100%; }
.hero-content {
  min-width: 0;
  overflow-wrap: break-word;
}
@media (min-width: 992px) {
  .hero-content {
    margin-left: 2rem;
  }
}
.hero-text { max-width: 100% !important; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
}
.hero-content .hero-animate--1.hero-badge {
  animation: heroBadgeIn 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards, float 5s 1s ease-in-out infinite;
}
.hero-title { text-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.hero-subtitle { color: rgba(255,255,255,0.95); }
.hero-text { color: rgba(255,255,255,0.88); }

/* ----- Stats bar ----- */
.stats-bar {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.stat-item {
  color: white;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0.5rem;
}
.stat-item .stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.5rem;
  background: rgba(255,255,255,0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .stat-value { font-size: 2.75rem; } }
.stat-label { font-size: 0.85rem; opacity: 0.9; font-weight: 500; }

/* ----- Section headers ----- */
.section-header { text-align: center; max-width: 42rem; margin-left: auto; margin-right: auto; }
.section-header .section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-header .section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}
.section-header .subtitle { color: #64748b; font-size: 1.05rem; line-height: 1.5; }

/* ----- Cards ----- */
.card-custom {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid #e8ecf1;
  padding: 2rem;
  transition: all 0.35s ease;
  height: 100%;
  box-shadow: var(--shadow-soft);
}
.card-custom:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(26,95,180,0.15);
  transform: translateY(-6px);
}
.card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-glow);
  transition: transform 0.35s ease;
}
.card-custom:hover .card-icon {
  transform: scale(1.08);
  animation: iconBounce 0.5s ease forwards;
}

/* Intro checklist items (legacy) */
.intro-item {
  background: white;
  border-radius: var(--radius);
  border: 1px solid #e8ecf1;
  padding: 1rem 1.25rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.intro-item:hover {
  border-color: rgba(26,95,180,0.2);
  box-shadow: var(--shadow-soft);
}
.intro-item .bi-check-circle-fill { color: var(--primary); }

/* ----- Intro section (Trusted Partner) ----- */
.intro-section {
  padding: 4.5rem 0;
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
}
.intro-section__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
@media (min-width: 992px) {
  .intro-section__top {
    grid-template-columns: 1fr minmax(0, 501px);
    gap: 2.5rem;
    align-items: center;
  }
}
@media (min-width: 1200px) {
  .intro-section__top {
    grid-template-columns: 1fr 601px;
  }
}
.intro-section__left {
  min-width: 0;
  overflow-wrap: break-word;
}
.intro-section__right {
  min-width: 0;
}
.intro-section__image-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Stronger slide-in: left column from left, right column from right (AOS fade-right / fade-left) */
.intro-section__left.aos-init[data-aos="fade-right"]:not(.aos-animate) {
  opacity: 0;
  transform: translateX(-120px);
}
.intro-section__right.aos-init[data-aos="fade-left"]:not(.aos-animate) {
  opacity: 0;
  transform: translateX(120px);
}

.intro-section__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  aspect-ratio: 4 / 3;
}
@media (min-width: 992px) {
  .intro-section__image-wrap {
    aspect-ratio: 4 / 3;
    max-height: 400px;
  }
}
.intro-section__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  vertical-align: middle;
}
.intro-section__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 95, 180, 0.38) 0%, rgba(26, 95, 180, 0.18) 100%);
  pointer-events: none;
}
.intro-section__header {
  text-align: center;
  margin-bottom: 1.5rem;
}
@media (min-width: 992px) {
  .intro-section__header { text-align: left; margin-bottom: 1.25rem; }
}
.intro-section__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(26, 95, 180, 0.08);
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}
.intro-section__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.intro-section__subtitle {
  font-size: 1.0625rem;
  color: #64748b;
  margin: 0 auto;
  max-width: 32rem;
  line-height: 1.5;
}
@media (min-width: 992px) {
  .intro-section__subtitle { margin-left: 0; margin-right: 0; }
}
.intro-section__content {
  max-width: 42rem;
  margin: 0 auto 0;
}
@media (min-width: 992px) {
  .intro-section__content { margin: 0 0 0; }
}
.intro-section__lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
  text-align: center;
}
@media (min-width: 992px) {
  .intro-section__lead { text-align: left; }
}
.intro-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 36rem;
  margin: 0 auto;
}
@media (min-width: 576px) {
  .intro-section__list { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
}
@media (min-width: 992px) {
  .intro-section__list { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.intro-section__list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #334155;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.intro-section__list-item:hover {
  border-color: rgba(26, 95, 180, 0.25);
  box-shadow: 0 4px 12px rgba(26, 95, 180, 0.08);
}
.intro-section__list-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.intro-section__list-icon .bi-check2 { font-size: 0.65rem; }


/* ----- Page header (inner pages) ----- */
.page-header {
  position: relative;
  padding: 12rem 0;
  overflow: hidden;
  min-height: 420px;
}
.page-header .page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-header .page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,95,180,0.68) 0%, rgba(26,95,180,0.58) 100%);
}
.page-header .content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
}
.page-header .content h1 { text-shadow: 0 2px 24px rgba(0,0,0,0.2); }
.page-header .content .lead { color: rgba(255,255,255,0.92); }

/* ----- CTA section ----- */
.cta-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  color: white;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .cta-content { position: relative; z-index: 2; }

/* ----- Footer ----- */
.footer-main {
  background: var(--gradient-dark);
  position: relative;
}
.footer-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.footer-link {
  color: rgba(255,255,255,0.85);
  transition: color 0.25s, transform 0.25s;
  text-decoration: none;
}
.footer-link:hover { color: var(--accent-light); }
.footer-link i { transition: transform 0.25s; }
.footer-link:hover i { transform: translateX(4px); }

/* ----- Scroll to top ----- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 3rem;
  height: 3rem;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: var(--shadow-card);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

/* ----- Animations ----- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.92; transform: scale(1.02); }
}
@keyframes iconPop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.15); }
  70% { transform: scale(0.95); }
}
@keyframes heroBgZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
@keyframes shine {
  0% { background-position: -200% center; }
 100% { background-position: 200% center; }
}
.animate-fade-in { animation: fadeIn 0.65s ease-out forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-soft { animation: pulse-soft 2.5s ease-in-out infinite; }
.stagger-1 { animation-delay: 0.08s; }
.stagger-2 { animation-delay: 0.16s; }
.stagger-3 { animation-delay: 0.24s; }
.stagger-4 { animation-delay: 0.32s; }
.stagger-5 { animation-delay: 0.4s; }
.stagger-6 { animation-delay: 0.48s; }

/* ----- Hero content animations ----- */
@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroBadgeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroBtnIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content .hero-animate {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
}
.hero-content .hero-animate--1 {
  animation-name: heroBadgeIn;
  animation-delay: 0.1s;
}
.hero-content .hero-animate--2 {
  animation-name: heroTitleIn;
  animation-delay: 0.25s;
}
.hero-content .hero-animate--3 {
  animation-name: heroFadeInUp;
  animation-delay: 0.4s;
}
.hero-content .hero-animate--4 {
  animation-name: heroFadeInUp;
  animation-delay: 0.55s;
}
.hero-content .hero-animate--5 {
  animation-name: heroBtnIn;
  animation-delay: 0.75s;
}

/* Scroll animations: handled by AOS library (see data-aos attributes in HTML) */

/* Fallback when AOS script fails to load (e.g. CDN/network) – content still visible */
.aos-fallback [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .animate-float, .animate-pulse-soft { animation: none; }
  .hero-section .hero-bg { animation: none; }
  .stats-bar .stat-item .stat-icon { animation: none; }
  .card-custom:hover .card-icon,
  .industry-card:hover .icon-box { transform: none; }
  .intro-section__top .intro-section__image { transform: none !important; }
  .team-card .team-avatar img { transition: none; }
  .team-card:hover .team-avatar img { transform: none; }
  .hero-content .hero-animate--1.hero-badge { animation: heroBadgeIn 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ----- Form ----- */
.form-control, .form-select {
  border-radius: var(--radius);
  border-color: #e2e8f0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 95, 180, 0.15);
}
.form-control-lg { padding: 0.75rem 1rem; }
.form-label { font-weight: 500; color: #334155; }

/* ----- Alerts ----- */
.alert { border-radius: var(--radius); }
.alert-success { border-left: 4px solid #22c55e; }
.alert-danger { border-left: 4px solid var(--accent); }

/* ----- Industry cards ----- */
.industry-card {
  border-radius: var(--radius-lg);
  border: 1px solid #e8ecf1;
  transition: all 0.35s ease;
  height: 100%;
  background: white;
  box-shadow: var(--shadow-soft);
}
.industry-card:hover {
  border-color: rgba(26,95,180,0.2);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.industry-card .icon-box {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  background: #f0f4f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.industry-card:hover .icon-box {
  background: var(--gradient-primary);
  color: white;
  animation: iconBounce 0.45s ease forwards;
}
.industry-card .icon-box .bi { font-size: 1.5rem; transition: transform 0.3s ease; }
.industry-card:hover .icon-box .bi { transform: scale(1.1); }

/* ----- Team cards ----- */
/* Director / lead card: big image first, then rest of team */
.team-director-wrap {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
.team-card--director {
  border-radius: var(--radius-lg);
  border: 1px solid #e8ecf1;
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.team-card--director__inner {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .team-card--director__inner {
    flex-direction: row;
    align-items: stretch;
  }
}
.team-card--director__avatar {
  flex-shrink: 0;
  width: 100%;
  min-height: 28rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 768px) {
  .team-card--director__avatar {
    width: 42%;
    min-width: 280px;
    min-height: 22rem;
  }
}
.team-card--director__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card--director__avatar .avatar-placeholder {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.9);
}
.team-card--director__body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
@media (min-width: 768px) {
  .team-card--director__body {
    padding: 2.5rem 2.5rem 2.5rem 2rem;
    text-align: left;
  }
}

.team-card {
  border-radius: var(--radius-lg);
  border: 1px solid #e8ecf1;
  transition: all 0.35s ease;
  height: 100%;
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.team-card:hover {
  border-color: rgba(26,95,180,0.15);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.team-card .team-avatar {
  height: 24rem; /* taller on mobile */
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px) {
  .team-card .team-avatar {
    height: 14rem;
  }
}
.team-card .team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-card:hover .team-avatar img {
  transform: scale(1.06);
}
.team-card .team-avatar .avatar-placeholder {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.9);
}
.team-card .team-body { padding: 1.5rem 1.25rem; text-align: center; }
.team-card .role-badge { color: var(--accent); font-weight: 600; font-size: 0.85rem; }

/* ----- Contact cards ----- */
.contact-info-card {
  border-radius: var(--radius-lg);
  border: 1px solid #e8ecf1;
  padding: 1.5rem 1.75rem;
  transition: all 0.3s ease;
  background: white;
  box-shadow: var(--shadow-soft);
}
.contact-info-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(26,95,180,0.12);
}
.contact-info-card .icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}
.contact-info-card .icon-wrap.bg-whatsapp { background: #25D366; color: white; }
.contact-info-card .icon-wrap.bg-primary { background: var(--gradient-primary); color: white; }

/* ----- Map ----- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid #e8ecf1;
}
.map-wrap iframe { display: block; }

/* ----- Home: Contact & Map section (after Industries) ----- */
.home-contact-section {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
}
.home-contact-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.home-contact-section__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(26, 95, 180, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 0.75rem;
}
.home-contact-section__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.home-contact-section__subtitle {
  font-size: 1rem;
  color: #64748b;
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.55;
}
.home-contact-section__row {
  align-items: stretch;
}

/* Contact form card - advanced UI */
.home-contact-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  height: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.home-contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0.9;
}
.home-contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 575px) {
  .home-contact-form__grid { grid-template-columns: 1fr; }
}
.home-contact-form__field {
  margin-bottom: 1.25rem;
  position: relative;
}
.home-contact-form__grid .home-contact-form__field { margin-bottom: 0; }
.home-contact-form__grid .home-contact-form__field:last-child,
.home-contact-form__grid .home-contact-form__field:nth-last-child(2) { margin-bottom: 1.25rem; }
@media (max-width: 575px) {
  .home-contact-form__grid .home-contact-form__field:nth-last-child(2) { margin-bottom: 0; }
}
.home-contact-form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.home-contact-form__required {
  color: #e11d48;
}
.home-contact-form__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.home-contact-form__icon {
  position: absolute;
  left: 1rem;
  font-size: 1.05rem;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 1;
}
.home-contact-form__icon--top { top: 1rem; align-self: flex-start; }
.home-contact-form__input-wrap--textarea .home-contact-form__icon { top: 1rem; }
.home-contact-form__input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.home-contact-form__input::placeholder {
  color: #94a3b8;
}
.home-contact-form__input:hover {
  border-color: #cbd5e1;
  background: #fff;
}
.home-contact-form__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.15);
  background: #fff;
}
.home-contact-form__input-wrap:focus-within .home-contact-form__icon {
  color: var(--primary);
}
.home-contact-form__input-wrap--select .home-contact-form__input,
.home-contact-form__select {
  padding-left: 2.75rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.home-contact-form__input-wrap--textarea .home-contact-form__input,
.home-contact-form__textarea {
  padding-top: 1rem;
  min-height: 110px;
  resize: vertical;
}
.home-contact-form__input-wrap--textarea .home-contact-form__icon { position: absolute; }
.home-contact-form__input.is-invalid {
  border-color: #e11d48;
  background: #fff5f5;
}
.home-contact-form__input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}
.home-contact-form__field .invalid-feedback {
  font-size: 0.8125rem;
  margin-top: 0.35rem;
}
.home-contact-form__submit {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}
.home-contact-form__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(26, 95, 180, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.home-contact-form__btn:hover {
  color: white;
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 95, 180, 0.4);
}
.home-contact-form__btn:active { transform: translateY(0); }
.home-contact-form__btn .bi-send-fill { font-size: 0.9rem; }

/* Map card */
.home-map-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}
.home-map-card__header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.home-map-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
}
.home-map-card__address {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.home-map-card__address .bi-geo-alt-fill { color: var(--primary); flex-shrink: 0; }
.home-map-card__embed {
  flex: 1;
  min-height: 360px;
}
.home-map-card__embed iframe {
  display: block;
  min-height: 360px;
  height: 100%;
}

/* ----- 404 ----- */
.page-404 { min-height: 70vh; }
.page-404 .display-1 { color: var(--primary); }
