/* ============================================================
   LegaSea Maritime - Global Stylesheet
   Palette: Navy #0F3E7A (primary) | Accent Blue #2E7BC4 (kicker)
           | Teal #0E8388 (subtle accent) | White #FFFFFF
   Font: Inter (Google Fonts)
   ============================================================ */

/* ── CSS Variables ── */
:root {
  /* Brand Colors — navy-based palette
     (legacy --ocean-* aliases kept pointing at navy so every existing
      selector cascades to the new theme automatically) */
  --navy:         #0F3E7A;   /* primary navy (hero title, headings, buttons) */
  --navy-dark:    #0A2E5C;   /* deeper navy (gradients, footer strip) */
  --navy-darker:  #061E40;   /* near-black navy (extreme overlays) */
  --navy-light:   #1E5AA8;   /* slightly lighter navy (hover) */
  --accent-blue:  #2E7BC4;   /* lighter accent blue (kicker labels, links) */
  --accent-blue-light: #4A90D9; /* soft accent blue (hover/active) */

  /* Legacy aliases — repointed to the navy palette */
  --ocean:        var(--navy);
  --ocean-dark:   var(--navy-dark);
  --ocean-light:  var(--accent-blue);

  /* Teal — retained as a subtle accent only */
  --teal:         #0E8388;
  --teal-dark:    #0A6568;
  --teal-light:   #12A8AE;

  --white: #FFFFFF;

  /* Neutrals */
  --off-white:  #F4F8FC;   /* very light blue-tinted surface */
  --light-gray: #E5ECF5;   /* soft blue-grey border/background */
  --mid-gray:   #8A9AB3;
  --dark-gray:  #475569;
  --text-dark:  #0A2E5C;   /* headings use deep navy */
  --text-body:  #334155;

  /* Effects (shadows tinted with new navy) */
  --shadow:        0 4px 20px rgba(15, 62, 122, 0.12);
  --shadow-lg:     0 10px 40px rgba(15, 62, 122, 0.18);
  --shadow-card:   0 2px 12px rgba(10, 46, 92, 0.08);
  --radius:        10px;
  --radius-sm:     6px;
  --radius-lg:     16px;
  --transition:    all 0.3s ease;

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-arabic:  'Noto Sans Arabic', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--navy);
}

ul, ol {
  list-style: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; letter-spacing: -1px; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-body);
}

/* ── Section Styling ── */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-bg {
  background-color: var(--off-white);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--mid-gray);
  max-width: 600px;
}

.section-header {
  margin-bottom: 50px;
}

/* ── Buttons ── */
.btn-primary-custom {
  padding: 12px 30px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary-custom:hover {
  background: var(--navy-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 62, 122, 0.35);
}

.btn-outline-custom {
  padding: 12px 30px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline-custom:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 62, 122, 0.25);
}

.btn-white {
  padding: 12px 30px;
  background: var(--white);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-white:hover {
  background: var(--off-white);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 46, 92, 0.18);
}

/* Hero buttons (on dark bg) — primary solid navy, secondary is white/outlined */
.btn-hero-primary {
  padding: 14px 32px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-hero-primary:hover {
  background: var(--navy-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10, 46, 92, 0.45);
}

.btn-hero-outline {
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

/* ── Cards ── */
.card-custom {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--accent-blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card-custom:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-custom:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.10), rgba(46, 123, 196, 0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--navy);
  transition: var(--transition);
}

.card-custom:hover .card-icon {
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  color: var(--white);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.9rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 16px;
  transition: var(--transition);
}

.card-link:hover {
  color: var(--navy);
  gap: 10px;
}

/* ── Page Header (inner pages) ── */
.page-header {
  background: linear-gradient(135deg, var(--navy-darker), var(--navy-dark) 45%, var(--navy));
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' d='M0,30 C480,60 960,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E");
  background-size: cover;
  z-index: 2;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 3;
}

.breadcrumb-custom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.9rem;
  position: relative;
  z-index: 3;
}

.breadcrumb-custom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-custom a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-custom .separator {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-custom .current {
  color: var(--accent-blue-light);
  font-weight: 600;
}

/* ── SVG Wave Dividers ── */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

.wave-divider-flip {
  transform: rotate(180deg);
}

/* ── Contact Bar (overlapping hero) ── */
.contact-bar {
  display: flex;
  justify-content: center;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.contact-bar-inner {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-bar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 30px;
  border-right: 1px solid var(--light-gray);
  transition: var(--transition);
}

.contact-bar-item:last-child {
  border-right: none;
}

.contact-bar-item:hover {
  background: var(--off-white);
}

.contact-bar-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-bar-label {
  font-size: 0.75rem;
  color: var(--mid-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-bar-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 2px;
}

/* ── Navbar ── */
.navbar-legasea {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: var(--transition);
  background: transparent;
}

@media (max-width: 991.98px) {
  .navbar-legasea {
    padding: 6px 0;
  }
}

.navbar-legasea.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-legasea .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.navbar-legasea .navbar-brand img {
  height: 70px;
  width: auto;
  transition: var(--transition);
}

@media (max-width: 991.98px) {
  .navbar-legasea .navbar-brand img {
    height: 48px;
  }
}

.navbar-legasea.scrolled .navbar-brand img {
  filter: none;
}

.navbar-legasea .brand-tagline {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  transition: var(--transition);
}

.navbar-legasea.scrolled .brand-tagline {
  color: var(--mid-gray);
}

.navbar-legasea .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px !important;
  transition: var(--transition);
  position: relative;
}

.navbar-legasea.scrolled .nav-link {
  color: var(--text-dark) !important;
}

.navbar-legasea .nav-link:hover,
.navbar-legasea .nav-link.active {
  color: var(--accent-blue-light) !important;
}

.navbar-legasea.scrolled .nav-link:hover,
.navbar-legasea.scrolled .nav-link.active {
  color: var(--navy) !important;
}

.navbar-legasea .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
}

/* Dropdown */
.navbar-legasea .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 12px 0;
  margin-top: 8px;
}

.navbar-legasea .dropdown-item {
  font-size: 0.88rem;
  padding: 8px 20px;
  color: var(--text-body);
  transition: var(--transition);
}

.navbar-legasea .dropdown-item:hover {
  background: var(--off-white);
  color: var(--navy);
}

/* Language Switcher */
.lang-switcher {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.navbar-legasea.scrolled .lang-switcher {
  border-color: var(--light-gray);
  color: var(--text-dark);
}

.lang-switcher:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Nav CTA Button — solid navy to match the "GET A QUOTE" button in mock */
.nav-cta {
  padding: 9px 22px;
  background: var(--navy);
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(10, 46, 92, 0.18);
}

.nav-cta:hover {
  background: var(--navy-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10, 46, 92, 0.28);
}

/* Hamburger for mobile — no border, no focus ring, no active highlight */
.navbar-legasea .navbar-toggler {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 4px 8px;
  background: transparent !important;
}
.navbar-legasea .navbar-toggler:focus,
.navbar-legasea .navbar-toggler:hover,
.navbar-legasea .navbar-toggler:active,
.navbar-legasea .navbar-toggler:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Default (closed) hamburger lines — white on dark navbar */
.navbar-legasea .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: transform 0.25s ease;
}

/* Scrolled / solid navbar — dark lines */
.navbar-legasea.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30,41,59,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Menu OPEN state — swap hamburger for a close (✕) icon ──
   Bootstrap toggles aria-expanded="true" when the collapse is open, so we
   use that as a CSS hook to swap the icon. */
.navbar-legasea .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15,62,122,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M6 6l18 18M24 6l-18 18'/%3e%3c/svg%3e");
  transform: rotate(90deg);
}
/* When solid/scrolled navbar is open on mobile, use dark cross too */
.navbar-legasea.navbar-solid .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon,
.navbar-legasea.scrolled .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15,62,122,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M6 6l18 18M24 6l-18 18'/%3e%3c/svg%3e") !important;
}

/* Inner pages (solid navbar from start) */
.navbar-solid {
  background: var(--white) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
}

.navbar-solid .nav-link {
  color: var(--text-dark) !important;
}

.navbar-solid .nav-link:hover,
.navbar-solid .nav-link.active {
  color: var(--navy) !important;
}

.navbar-solid .brand-tagline {
  color: var(--mid-gray) !important;
}

.navbar-solid .lang-switcher {
  border-color: var(--light-gray) !important;
  color: var(--text-dark) !important;
}

.navbar-solid .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30,41,59,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 0;
}

.footer h5 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-logo {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-item i {
  color: var(--accent-blue-light);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--accent-blue);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 50px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--accent-blue-light);
}

/* ── WhatsApp Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-darker), var(--navy-dark) 55%, var(--navy));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 16px auto 30px;
  position: relative;
  z-index: 2;
}

/* ── Hero Section ── */
/*  ART DIRECTION: two separate files per breakpoint:
      • Desktop + tablet → assets/images/hero-bg.jpg       (landscape photo)
      • Phone            → assets/images/hero-bg-mobile.jpg (portrait photo — Maersk Rio Delta shot)
    The mobile crop is tuned for a portrait source where the ship sits in
    the lower half; desktop is tuned for a landscape source. */
.hero-section {
  /* Lighter left edge — photo shines through more. The text-shadow on
     .hero-title / .hero-subtitle does the legibility work instead of
     a heavy overlay, so the hero stays bright and airy. */
  background:
    linear-gradient(100deg,
      rgba(10, 46, 92, 0.42) 0%,
      rgba(15, 62, 122, 0.28) 25%,
      rgba(15, 62, 122, 0.18) 50%,
      rgba(15, 62, 122, 0.08) 75%,
      rgba(15, 62, 122, 0.02) 100%),
    url('../assets/images/hero-bg.jpg') center center / cover no-repeat;
  background-attachment: scroll;   /* never fixed — breaks on iOS */
  min-height: 650px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 40px;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 2;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  /* Soft navy shadow keeps the title legible over any part of the photo —
     ship hull, bright ocean, or sky. */
  text-shadow: 0 2px 14px rgba(6, 30, 64, 0.55),
               0 1px 3px rgba(6, 30, 64, 0.35);
}

/* "Trust Delivered" — warm cream accent that POPS against blue water.
   Far more readable than light-blue-on-blue-ocean. Stays on-brand because
   the rest of the site still uses navy + accent-blue. */
.hero-highlight {
  color: #FFE9B8;
  position: relative;
  text-shadow: 0 2px 16px rgba(6, 30, 64, 0.55),
               0 1px 3px rgba(6, 30, 64, 0.4);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 530px;
  margin-bottom: 32px;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(6, 30, 64, 0.55);
}

/* Tablet (<= 991.98px): keeps the landscape desktop photo but shifts the
   focal point slightly right so the ship doesn't get cropped out. */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 520px;
    padding-top: 90px;
    background:
      linear-gradient(180deg,
        rgba(10, 46, 92, 0.50) 0%,
        rgba(15, 62, 122, 0.35) 55%,
        rgba(15, 62, 122, 0.22) 100%),
      url('../assets/images/hero-bg.jpg') 65% center / cover no-repeat;
  }
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { max-width: 100%; }
}

/* Phone (<= 767.98px): SWITCHES to the portrait Maersk photo
   (hero-bg-mobile.jpg). Tuned for a source where the ship sits roughly
   in the lower-middle of a portrait frame. */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 520px;
    padding-top: 84px;
    padding-bottom: 30px;
    background:
      linear-gradient(180deg,
        rgba(10, 46, 92, 0.58) 0%,
        rgba(15, 62, 122, 0.40) 55%,
        rgba(15, 62, 122, 0.25) 100%),
      url('../assets/images/hero-bg-mobile.jpg') center 60% / cover no-repeat;
  }
  .hero-title    { font-size: 2rem; letter-spacing: -0.5px; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-badge    { font-size: 0.7rem; padding: 6px 14px; }
}

/* Small phone (<= 575.98px): same portrait Maersk photo, tighter crop
   so the full ship is prominent, with a slightly stronger wash for legibility. */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 480px;
    padding-top: 80px;
    background:
      linear-gradient(180deg,
        rgba(10, 46, 92, 0.65) 0%,
        rgba(15, 62, 122, 0.45) 60%,
        rgba(15, 62, 122, 0.30) 100%),
      url('../assets/images/hero-bg-mobile.jpg') center 55% / cover no-repeat;
  }
  .hero-title    { font-size: 1.7rem; line-height: 1.15; }
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 24px; }
}

/* Ultra-wide desktops (>= 1600px): let the ship in the landscape desktop
   photo sit a bit lower so less sky fills the frame. */
@media (min-width: 1600px) {
  .hero-section {
    min-height: 720px;
    background-position: center 45%;
  }
}

/* ── Stats Section ── */
.stats-section {
  padding: 60px 0;
  background: var(--off-white);
}

/* Dark navy stats bar variant (homepage) — matches the solid navy strip in the design */
.stats-section.stats-section-dark {
  background: var(--navy-dark);
}

.stats-section.stats-section-dark .stat-number {
  background: none;
  -webkit-text-fill-color: var(--white);
  color: var(--white);
}

.stats-section.stats-section-dark .stat-label {
  color: rgba(255, 255, 255, 0.75);
}

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

.stat-item {
  padding: 20px 10px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--dark-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

@media (max-width: 575.98px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-number { font-size: 2.2rem; }
}

/* ── About Snippet ── */
.about-image-wrapper {
  position: relative;
}

.about-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  color: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 10px 30px rgba(46, 123, 196, 0.3);
}

.about-exp-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.about-exp-text {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  opacity: 0.85;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.about-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.about-highlight-item i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.1), rgba(46, 123, 196, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .about-image-main img { height: 320px; }
  .about-experience-badge { right: 10px; bottom: -15px; padding: 16px 22px; }
  .about-exp-number { font-size: 1.8rem; }
}

/* ── Services Grid ── */
.service-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  padding: 30px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--accent-blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.08), rgba(46, 123, 196, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
  color: var(--navy);
  transition: var(--transition);
}

.service-card:hover .service-card-icon {
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  color: var(--white);
}

.service-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.service-card-text {
  font-size: 0.88rem;
  color: var(--dark-gray);
  line-height: 1.65;
  margin-bottom: 14px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.service-card:hover .service-card-link {
  color: var(--navy);
  gap: 10px;
}

/* ── Client Segments ── */
.segment-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  padding: 38px 32px;
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.segment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.segment-card-featured {
  border-color: var(--teal);
  border-width: 2px;
  box-shadow: 0 4px 20px rgba(14, 131, 136, 0.12);
}

.segment-card-featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
}

.segment-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.1), rgba(46, 123, 196, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.5rem;
  color: var(--navy);
}

.segment-card:hover .segment-icon {
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  color: var(--white);
  transition: var(--transition);
}

.segment-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.segment-text {
  font-size: 0.9rem;
  color: var(--dark-gray);
  line-height: 1.65;
  margin-bottom: 18px;
}

.segment-features {
  list-style: none;
  padding: 0;
  margin-bottom: 22px;
}

.segment-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-body);
  padding: 6px 0;
  border-bottom: 1px solid var(--light-gray);
}

.segment-features li:last-child {
  border-bottom: none;
}

.segment-features li i {
  color: var(--teal);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.segment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-blue);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.segment-link:hover {
  color: var(--navy);
  gap: 10px;
}

/* ── Manufacturing Highlight ── */
.mfg-features {
  margin-top: 24px;
  margin-bottom: 8px;
}

.mfg-feature-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.mfg-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.1), rgba(46, 123, 196, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mfg-feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.mfg-feature-text {
  font-size: 0.85rem;
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: 0;
}

.mfg-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.mfg-image-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.mfg-card-1 {
  grid-column: 1 / -1;
}

.mfg-image-placeholder {
  background: linear-gradient(135deg, var(--navy-darker), var(--navy-dark) 55%, var(--navy));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 50px 20px;
  color: var(--white);
  text-align: center;
}

.mfg-card-1 .mfg-image-placeholder {
  padding: 60px 20px;
}

.mfg-image-placeholder i {
  font-size: 2.2rem;
  opacity: 0.6;
}

/* Custom vector illustrations (replace the icon inside each mfg card).
   Width scales with card; they auto-center and leave room for the label. */
.mfg-illustration {
  width: 65%;
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
}
.mfg-illustration-wide {
  max-width: 280px;
  width: 75%;
}

@media (max-width: 767.98px) {
  .mfg-illustration,
  .mfg-illustration-wide { max-width: 200px; width: 70%; }
}

.mfg-image-placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 767.98px) {
  .mfg-image-grid { grid-template-columns: 1fr; }
  .mfg-card-1 { grid-column: auto; }
}

/* ── Why LegaSea / Differentiators ── */
.diff-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  padding: 32px 26px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.diff-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.diff-number {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--light-gray);
  line-height: 1;
  transition: var(--transition);
}

.diff-card:hover .diff-number {
  color: rgba(46, 123, 196, 0.12);
}

.diff-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.08), rgba(46, 123, 196, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.3rem;
  color: var(--navy);
  transition: var(--transition);
}

.diff-card:hover .diff-icon {
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  color: var(--white);
}

.diff-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.diff-text {
  font-size: 0.85rem;
  color: var(--dark-gray);
  line-height: 1.65;
}

/* ── Trust Signals ── */
.trust-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 50px;
}

.trust-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 30px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  min-width: 130px;
  transition: var(--transition);
}

.trust-logo-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-blue);
}

.trust-logo-icon {
  font-size: 1.8rem;
  color: var(--navy);
}

.trust-logo-item:hover .trust-logo-icon {
  color: var(--accent-blue);
}

.trust-logo-item span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.trust-badge-item:hover {
  box-shadow: var(--shadow);
  border-color: rgba(46, 123, 196, 0.2);
}

.trust-badge-item i {
  font-size: 1.4rem;
  color: var(--teal);
  flex-shrink: 0;
}

.trust-badge-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.trust-badge-item span {
  font-size: 0.78rem;
  color: var(--mid-gray);
}

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

@media (max-width: 575.98px) {
  .trust-badges { grid-template-columns: 1fr; }
  .trust-logos { gap: 12px; }
  .trust-logo-item { min-width: 100px; padding: 18px 20px; }
}

/* ── Blog / Insights Cards ── */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.blog-card-image {
  position: relative;
  overflow: hidden;
}

.blog-card-image-placeholder {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 50px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-image-placeholder i {
  font-size: 2.5rem;
  color: var(--white);
  opacity: 0.3;
}

/* Custom vector illustrations for blog cards — replace the watermark icon. */
.blog-illustration {
  width: 75%;
  max-width: 220px;
  height: auto;
  display: block;
}

@media (max-width: 767.98px) {
  .blog-illustration { max-width: 200px; }
}

.blog-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.blog-card-meta span {
  font-size: 0.78rem;
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card-meta span i {
  font-size: 0.72rem;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card:hover .blog-card-title {
  color: var(--navy);
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--dark-gray);
  line-height: 1.65;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 6px;
  transition: var(--transition);
}

.blog-card:hover .blog-card-link {
  color: var(--navy);
  gap: 10px;
}

/* ── CTA Contact Row ── */
.cta-contact-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
}

.cta-contact-item i {
  font-size: 1rem;
  color: var(--accent-blue-light);
}

@media (max-width: 575.98px) {
  .cta-contact-row { flex-direction: column; gap: 12px; align-items: center; }
}

/* ── Inner Page Content ── */
.inner-content {
  padding: 80px 0;
}

.inner-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
}

.inner-content h3 {
  margin-top: 30px;
  margin-bottom: 14px;
}

/* ── Team Cards ── */
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card-image {
  height: 260px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-card-image i {
  font-size: 4rem;
  color: var(--white);
  opacity: 0.2;
}

.team-card-social {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.team-card:hover .team-card-social {
  transform: translateY(0);
}

.team-card-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
}

.team-card-social a:hover {
  background: var(--accent-blue);
}

.team-card-body {
  padding: 22px 20px;
  text-align: center;
}

.team-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.team-card-role {
  font-size: 0.82rem;
  color: var(--accent-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.team-card-bio {
  font-size: 0.85rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .team-card-image { height: 200px; }
}

/* ── Timeline (Vision & Mission) ── */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--navy), var(--accent-blue));
  transform: translateX(-50%);
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  padding: 28px;
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--accent-blue);
  z-index: 2;
  top: 30px;
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.timeline-text {
  font-size: 0.88rem;
  color: var(--dark-gray);
  line-height: 1.65;
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) { flex-direction: row; padding-left: 50px; }
  .timeline-content { width: 100%; }
  .timeline-dot { left: 20px; }
}

/* ── Vision & Mission Cards ── */
.vm-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 35px;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  height: 100%;
  text-align: center;
}

.vm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.vm-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 1.6rem;
  color: var(--white);
}

.vm-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.vm-card p {
  font-size: 0.92rem;
  color: var(--dark-gray);
  line-height: 1.7;
}

/* ── Core Values Cards ── */
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  padding: 35px 28px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--accent-blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.value-card:hover::after {
  transform: scaleX(1);
}

.value-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.08), rgba(46, 123, 196, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--navy);
  transition: var(--transition);
}

.value-card:hover .value-card-icon {
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  color: var(--white);
  border-radius: 50%;
}

.value-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--dark-gray);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── Services Overview Grid ── */
.services-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.services-filter .filter-btn {
  padding: 8px 20px;
  border-radius: 30px;
  border: 1.5px solid var(--light-gray);
  background: var(--white);
  color: var(--text-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.services-filter .filter-btn:hover,
.services-filter .filter-btn.active {
  background: var(--accent-blue);
  color: var(--white);
  border-color: var(--accent-blue);
}

/* ── Service Detail Page ── */
.service-detail-hero {
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.08), rgba(46, 123, 196, 0.06));
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
}

.service-detail-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 20px;
}

.service-detail-list {
  list-style: none;
  padding: 0;
}

.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

.service-detail-list li:last-child {
  border-bottom: none;
}

.service-detail-list li i {
  color: var(--accent-blue);
  font-size: 0.8rem;
  margin-top: 5px;
  flex-shrink: 0;
}

.service-sidebar {
  position: sticky;
  top: 100px;
}

.service-sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  padding: 28px;
  margin-bottom: 24px;
}

.service-sidebar-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-gray);
}

/* Gradient "Need This Service?" CTA variant — the card has an inline
   linear-gradient background. Global `p { color: var(--text-body); }`
   makes body text unreadable on dark gradient, so force white here. */
.service-sidebar-card[style*="linear-gradient"] p,
.service-sidebar-card[style*="gradient"] p {
  color: rgba(255, 255, 255, 0.92) !important;
}
.service-sidebar-card[style*="linear-gradient"] h4,
.service-sidebar-card[style*="gradient"] h4 {
  color: var(--white) !important;
  border-bottom-color: rgba(255, 255, 255, 0.22) !important;
}

.service-nav-list {
  list-style: none;
  padding: 0;
}

.service-nav-list li {
  margin-bottom: 4px;
}

.service-nav-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-body);
  text-decoration: none;
  transition: var(--transition);
}

.service-nav-list li a:hover,
.service-nav-list li a.active {
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.08), rgba(46, 123, 196, 0.06));
  color: var(--accent-blue);
  font-weight: 600;
}

.service-nav-list li a i {
  font-size: 0.7rem;
  color: var(--mid-gray);
}

.service-nav-list li a:hover i,
.service-nav-list li a.active i {
  color: var(--accent-blue);
}

/* Related Services */
.related-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

/* ── Solution Pages ── */
.solution-intro {
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.06), rgba(46, 123, 196, 0.04));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-bottom: 48px;
}

.solution-intro h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.solution-intro p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 0;
}

.challenge-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  padding: 30px 24px;
  height: 100%;
  transition: var(--transition);
  text-align: center;
}

.challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.challenge-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.1), rgba(46, 123, 196, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.3rem;
  color: var(--navy);
  transition: var(--transition);
}

.challenge-card:hover .challenge-card-icon {
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  color: var(--white);
}

.challenge-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.challenge-card p {
  font-size: 0.88rem;
  color: var(--dark-gray);
  line-height: 1.65;
  margin-bottom: 0;
}

.solution-service-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.solution-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
  text-decoration: none;
}

.solution-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}

.solution-service-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.solution-service-card p {
  font-size: 0.85rem;
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: 0;
}

.solution-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.solution-stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
}

.solution-stat .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 6px;
}

.solution-stat .stat-label {
  font-size: 0.82rem;
  color: var(--dark-gray);
  font-weight: 500;
}

.solution-other-segments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-segment-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.solution-segment-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
  text-decoration: none;
}

.solution-segment-link .segment-link-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
}

.solution-segment-link h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.solution-segment-link p {
  font-size: 0.85rem;
  color: var(--dark-gray);
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .solution-stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .solution-stat-row { grid-template-columns: 1fr; }
  .solution-other-segments { grid-template-columns: 1fr; }
  .solution-intro { padding: 32px 24px; }
}

/* ── Blog Listing Page ── */
.blog-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.blog-filter-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--light-gray);
  background: var(--white);
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  color: var(--white);
  border-color: transparent;
  text-decoration: none;
}

.blog-featured {
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.06), rgba(46, 123, 196, 0.04));
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.blog-featured-body {
  padding: 40px;
}

.blog-featured-tag {
  display: inline-block;
  background: var(--accent-blue);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.blog-featured-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.blog-featured-excerpt {
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--light-gray);
  color: var(--text-body);
  text-decoration: none;
  transition: var(--transition);
}

.blog-pagination a:hover,
.blog-pagination span.active {
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  color: var(--white);
  border-color: transparent;
}

/* ── Blog Article Page ── */
.article-header {
  margin-bottom: 36px;
}

.article-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.1), rgba(46, 123, 196, 0.08));
  color: var(--accent-blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.article-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--mid-gray);
}

.article-meta-item i {
  font-size: 0.78rem;
  color: var(--accent-blue);
}

.article-content {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.85;
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 36px 0 16px;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-blue);
  padding: 20px 24px;
  margin: 28px 0;
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.04), rgba(46, 123, 196, 0.03));
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--dark-gray);
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  margin: 36px 0;
}

.article-share span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.article-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.08), rgba(46, 123, 196, 0.06));
  color: var(--navy);
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
}

.article-share a:hover {
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  color: var(--white);
}

.article-sidebar .service-sidebar-card {
  margin-bottom: 24px;
}

.article-related-posts {
  list-style: none;
  padding: 0;
}

.article-related-posts li {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light-gray);
}

.article-related-posts li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.article-related-posts li a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  transition: var(--transition);
}

.article-related-posts li a:hover {
  color: var(--accent-blue);
}

.article-related-posts li .post-meta {
  font-size: 0.75rem;
  color: var(--mid-gray);
  margin-top: 4px;
}

@media (max-width: 767.98px) {
  .article-title { font-size: 1.5rem; }
  .blog-featured-title { font-size: 1.3rem; }
  .blog-featured-body { padding: 28px; }
}

/* ── Contact Page ── */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  transition: var(--transition);
}

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

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Body column next to the icon — must clip so long strings (emails) don't
   push the card wider than its grid cell. */
.contact-info-card .contact-info-body {
  min-width: 0;
  flex: 1;
}
.contact-info-card h4 { overflow-wrap: anywhere; }

/* Vertical stack of quick-action cards next to the form.
   Overrides the default `height: 100%` (meant for horizontal row layout)
   so each card hugs its own content and stacks neatly instead of
   expanding to match the form's full height. */
.contact-quick-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-card-stacked {
  height: auto !important;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  padding: 40px;
}

.contact-form-card .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-gray);
  padding: 11px 14px;
  font-size: 0.9rem;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(46, 123, 196, 0.1);
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 62, 122, 0.3);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  height: 350px;
}

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

/* ── Framework / Compliance Cards ── */
.framework-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.framework-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.framework-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.3rem;
  color: var(--white);
}

.framework-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.framework-card p {
  font-size: 0.88rem;
  color: var(--dark-gray);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── Partner Logo Grid ── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.partner-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
}

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

.partner-logo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 62, 122, 0.08), rgba(46, 123, 196, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
  color: var(--navy);
}

.partner-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.partner-card p {
  font-size: 0.8rem;
  color: var(--dark-gray);
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575.98px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-card { padding: 28px 20px; }
}

/* ── Utility Classes ── */
/* Legacy aliases kept so existing HTML using .text-ocean/.bg-teal keeps working */
.text-ocean,
.text-navy       { color: var(--navy) !important; }
.text-teal       { color: var(--teal) !important; }
.text-accent     { color: var(--accent-blue) !important; }
.bg-ocean,
.bg-navy         { background-color: var(--navy) !important; }
.bg-navy-dark    { background-color: var(--navy-dark) !important; }
.bg-teal         { background-color: var(--teal) !important; }
.bg-accent       { background-color: var(--accent-blue) !important; }
.bg-off-white    { background-color: var(--off-white) !important; }
.fw-800          { font-weight: 800 !important; }
.ls-tight        { letter-spacing: -0.5px; }

.gradient-text {
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }

  .navbar-legasea .navbar-collapse {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 10px;
    box-shadow: var(--shadow-lg);
  }

  .navbar-legasea .nav-link {
    color: var(--text-dark) !important;
    padding: 10px 16px !important;
  }

  .navbar-legasea .nav-link:hover {
    color: var(--accent-blue) !important;
  }

  .contact-bar-inner {
    flex-direction: column;
  }

  .contact-bar-item {
    border-right: none;
    border-bottom: 1px solid var(--light-gray);
  }

  .contact-bar-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 767.98px) {
  h1 { font-size: 1.8rem; }
  .section { padding: 50px 0; }
  .page-header { padding: 100px 0 60px; }
  .page-header h1 { font-size: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(15, 62, 122, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-blue);
  color: var(--white);
  transform: translateY(-3px);
}
