/**
 * GLOBAL EXPORTS RATHER - MINIMALISTIC NEUTRAL DESIGN SYSTEM
 * Clean, restrained, editorial typography & normal document flow.
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400&family=JetBrains+Mono:wght@400;500;600&family=Manrope:wght@400;500;600&display=swap');

:root,
[data-theme="light"] {
  /* Official 4-Color Palette Swatch: Alabaster White, Metallic Brass, Steel Navy, Deep Sapphire */
  --color-alabaster: #F7F3E9;
  --color-brass: #D4AF37;
  --color-steel-navy: #415A77;
  --color-deep-sapphire: #0D1B2A;

  /* Light theme tokens */
  --bg: #FAF8F4;
  --surface: #F2EFE9;
  --surface-card: #FFFFFF;
  --border: rgba(13, 27, 42, 0.12);
  --border-subtle: rgba(13, 27, 42, 0.08);
  --fg: #0D1B2A;
  --muted: #415A77;
  --accent: #D4AF37;
  --accent-ink: #0D1B2A;
  --accent-text: #8C6F12;
  --nav-surface: #FFFFFF;
  --nav-foreground: #0D1B2A;
  --nav-muted: #415A77;
  --nav-border: rgba(13, 27, 42, 0.14);
  --nav-control-surface: #F2EFE9;
  color-scheme: light;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii: 12px for inputs/cards/images, pill only for nav and buttons */
  --radius-card: 12px;
  --radius-input: 12px;
  --radius-image: 12px;
  --radius-pill: 999px;

  /* Legacy variable compatibility */
  --primary-color: var(--accent);
  --font-color: var(--fg);
  --bg-color: var(--bg);
  --heading-color: var(--fg);
  --border-radius: var(--radius-card);
  --border-radius-full: var(--radius-pill);
  --border-color: var(--border);
  --border-color-light: var(--border);
  --nav-color: var(--fg);
  --bg-grey: var(--surface);
  --bg-lightgrey: var(--surface);
  --footer-bg: var(--surface);
  --footer-bglight: var(--bg);
}

[data-theme="dark"] {
  --bg: #0D1B2A;
  --surface: #14243A;
  --surface-card: #1B2D45;
  --border: rgba(247, 243, 233, 0.18);
  --border-subtle: rgba(247, 243, 233, 0.12);
  --fg: #F7F3E9;
  --muted: #C0CBD8;
  --accent-ink: #0D1B2A;
  --accent-text: #F0D77A;
  --dropdown-color: #14243A;
  color-scheme: dark;
}

[data-theme="dark"] .section-alabaster {
  background-color: var(--surface) !important;
  color: var(--fg) !important;
}

[data-theme="dark"] .section-alabaster .section-label,
[data-theme="dark"] .section-alabaster h2,
[data-theme="dark"] .section-alabaster h3,
[data-theme="dark"] .section-alabaster .service-card-title,
[data-theme="dark"] .section-alabaster .testimonial-author,
[data-theme="dark"] .section-alabaster p,
[data-theme="dark"] .section-alabaster .service-card-desc,
[data-theme="dark"] .section-alabaster .testimonial-role,
[data-theme="dark"] .section-alabaster .testimonial-quote {
  color: var(--fg) !important;
}

[data-theme="dark"] .section-alabaster .service-card-minimal,
[data-theme="dark"] .section-alabaster .testimonial-minimal {
  background: var(--surface-card);
  border-color: var(--border);
}


/* Smooth page cross-fade view transitions */
@view-transition {
  navigation: auto;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background-color: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  scroll-behavior: smooth;
  color-scheme: inherit;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}


/* Container constraints: max-width 1120px */
/* 4. ALIGNMENT (CONTAINER) */
.site-container,
.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

/* Accessibility: Visually hidden utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Headings: Fraunces 400 only, no italic/colored accent word */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.15;
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

h3 {
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.3;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Section Spacing: 128px desktop / 80px mobile */
.section-spacing {
  padding-top: 128px;
  padding-bottom: 128px;
}

@media (max-width: 767.98px) {
  .section-spacing {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* Section Labels: plain 12px muted text, no numbering/pills */
.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: block;
}

/* Hairline dividers */
.hairline-divider {
  border: 0;
  height: 1px;
  background-color: var(--border);
  margin: 0;
  width: 100%;
}

/* ==========================================================================
   BUTTONS (Rule: brass only on primary CTA)
   ========================================================================== */
.btn-primary-cta,
.btn-brass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent) !important;
  color: var(--accent-ink) !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill) !important;
  border: 1px solid var(--accent) !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-primary-cta:hover,
.btn-brass:hover {
  opacity: 0.92;
  transform: none;
}

.btn-secondary-neutral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.btn-secondary-neutral:hover {
  background-color: var(--surface);
  border-color: var(--fg);
  color: var(--fg);
}

/* Override old bootstrap classes */
.btn-style,
.btn-primary {
  box-shadow: none !important;
  border-radius: var(--radius-pill) !important;
}

/* ==========================================================================
   4. NAVIGATION (SUBTLE DETACHED FLOATING PILL)
   ========================================================================== */
.detached-glass-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 900px;
  z-index: 1000;
  border-radius: var(--radius-pill);
  background: var(--nav-surface);
  border: 1px solid var(--nav-border);
  box-shadow: 0 8px 28px rgba(13, 27, 42, 0.14);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.detached-glass-nav.is-scrolled {
  background: var(--nav-surface);
  border-color: var(--nav-border);
  box-shadow: 0 8px 28px rgba(13, 27, 42, 0.18);
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--nav-foreground);
}

/* Monogram (Brass allowed here) */
.nav-monogram {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background-image: url("../images/logo-no-background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-brand-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--nav-foreground);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links-center {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link-item {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--nav-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.18s ease;
  z-index: 2;
  white-space: nowrap;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: var(--nav-foreground);
}

.nav-link-item.active {
  font-weight: 600;
}

/* Remove static dots on individual links in favor of the fluid sliding indicator */
.nav-link-item.active::after,
.dock-item.active::after {
  display: none !important;
}

/* Smooth sliding active dot/line */
.nav-sliding-dot {
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background-color: var(--accent);
  pointer-events: none;
  z-index: 3;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), width 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease;
  opacity: 0;
}

/* Smooth sliding hover background pill */
.nav-sliding-pill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 30px;
  border-radius: var(--radius-pill);
  background-color: rgba(13, 27, 42, 0.06);
  border: 1px solid var(--border);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1), width 0.26s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease;
  opacity: 0;
}

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

@media (min-width: 768px) and (max-width: 920px) {
  .detached-glass-nav {
    gap: 8px;
    padding-inline: 12px;
  }

  .nav-brand-group {
    gap: 6px;
  }

  .nav-brand-title {
    font-size: 0.78rem;
  }

  .nav-link-item {
    padding-inline: 8px;
  }
}

/* Mobile Bottom Dock (<768px): neutral styling */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 767.98px) {
  .detached-glass-nav .nav-links-center {
    display: none;
  }

  .detached-glass-nav {
    top: 12px;
    width: calc(100% - 24px);
    max-width: 100%;
    padding: 6px 10px;
    gap: 8px;
  }

  .nav-brand-title {
    font-size: 0.8rem;
  }

  .mobile-bottom-dock {
    display: flex;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 420px;
    z-index: 1000;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    box-shadow: none !important;
    padding: 6px;
    justify-content: space-around;
    align-items: center;
  }

  .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 10px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: color 0.15s ease;
    flex: 1;
    position: relative;
    z-index: 2;
  }

  .dock-item i {
    font-size: 0.95rem;
  }

  .dock-item:hover,
  .dock-item.active {
    color: var(--fg);
    font-weight: 600;
    background: transparent;
  }

  .mobile-bottom-dock .nav-sliding-pill {
    height: calc(100% - 10px);
  }

  .mobile-bottom-dock .nav-sliding-dot {
    bottom: 2px;
    height: 3px;
    border-radius: 999px;
  }
}

/* ==========================================================================
   1. HERO SECTION (SCOPED REDESIGN: READABILITY, TYPOGRAPHY, TRACKING, STATS)
   ========================================================================== */

/* 1.1 BACKGROUND / READABILITY */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  isolation: isolate;
  padding-top: 100px;
  padding-bottom: 40px;
  overflow: hidden;
  background: #0D1B2A;
  border-bottom: 1px solid var(--border);
}

.hero-minimal {
  position: relative;
  min-height: auto;
  padding-top: 120px;
  padding-bottom: 64px;
  background: var(--bg);
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}

.hero.hero-minimal {
  background: #0D1B2A;
  color: var(--color-alabaster);
}

.hero-minimal:not(.hero) .hero-headline {
  color: var(--fg);
}

.hero-minimal:not(.hero) .hero-description {
  color: var(--muted);
}

.hero-minimal:not(.hero) .hero-eyebrow {
  color: var(--accent-text);
}

.hero-minimal:not(.hero) .hero-eyebrow::before {
  background-color: var(--accent-text);
}

.hero-minimal.hero-dark {
  background: var(--color-deep-sapphire);
  color: var(--color-alabaster);
}

.hero-minimal.hero-dark .hero-headline,
.hero-minimal.hero-dark h1,
.hero-minimal.hero-dark h3,
.hero-minimal.hero-dark strong {
  color: var(--color-alabaster) !important;
}

.hero-minimal.hero-dark .hero-description,
.hero-minimal.hero-dark p,
.hero-minimal.hero-dark .date,
.hero-minimal.hero-dark .desc {
  color: #C0CBD8 !important;
}

.hero-minimal.hero-dark .hero-eyebrow {
  color: #F0D77A;
}

.hero-minimal.hero-dark .hero-eyebrow::before {
  background-color: #F0D77A;
}

.tracking-record-card {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid rgba(13, 27, 42, 0.16);
  border-radius: var(--radius-card);
  background: #FFFFFF;
  color: var(--color-deep-sapphire);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.tracking-record-card .section-label {
  color: #415A77;
}

.hero-minimal.hero-dark .tracking-record-card h3,
.hero-minimal.hero-dark .tracking-record-card strong {
  color: var(--color-deep-sapphire) !important;
}

.tracking-record-card > div:last-child {
  border-top-color: rgba(13, 27, 42, 0.12) !important;
}

.hero-minimal.hero-dark .tracking-record-card div[style*="JetBrains"],
.hero-minimal.hero-dark .tracking-record-card p {
  color: #415A77 !important;
}

.hero-image {
  position: absolute;
  top: 32px;
  right: max(24px, calc((100% - 1200px) / 2));
  bottom: 32px;
  width: min(54%, 720px);
  background-image: url("../images/img1.webp");
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 24px;
  opacity: 0.82;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

/* 1.2 MOTION: DRIFT ON BACKGROUND */
@media (prefers-reduced-motion: no-preference) and (min-width: 641px) {
  .hero-image {
    animation: heroImageDrift 30s ease-in-out infinite alternate;
  }
}

@keyframes heroImageDrift {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.06);
  }
}

/* 1.3 TYPOGRAPHY */
.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
  line-height: 1.08;
  color: #F7F3E9;
  text-wrap: balance;
  margin-top: 0;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.hero-subline,
.hero-description {
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: #C0CBD8;
  margin-bottom: 26px;
}

.hero-eyebrow {
  color: #F0D77A;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background-color: #F0D77A;
  flex-shrink: 0;
}

/* 1.4 TRACKING FORM (PRIMARY HERO ACTION) */
.hero-tracking-wrap {
  max-width: 580px;
  width: 100%;
}

.tracking-inline-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 580px;
  width: 100%;
  padding: 0.5rem;
  background: #FFFFFF;
  border: 1px solid rgba(247, 243, 233, 0.2);
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tracking-inline-form:focus-within {
  border-color: #d4af37;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}

.tracking-input-group {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 10px;
  padding-left: 14px;
}

.tracking-input-icon {
  color: #415A77;
  flex-shrink: 0;
}

.tracking-input-neutral {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #0D1B2A;
  padding: 0.9rem 1rem 0.9rem 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  width: 100%;
  box-shadow: none;
}

.tracking-input-neutral::placeholder {
  color: #5F6B78;
  font-family: var(--font-body);
}

.btn-track-primary {
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 0.9rem 1.6rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn-track-primary:hover {
  background-color: #e2c04f;
  transform: translateY(-1px);
}

.btn-track-primary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .tracking-inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .tracking-input-group {
    padding: 4px 10px;
  }

  .btn-track-primary {
    width: 100%;
  }
}

.hero-quote-row {
  margin-top: 14px;
  display: flex;
}

.hero-quote-link {
  font-size: 0.9rem;
  color: #C0CBD8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.hero-quote-link:hover {
  color: #F0D77A;
  text-decoration: underline;
}

.hero-quote-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 2px;
}

.error-tooltip-minimal {
  display: none;
  margin-top: 10px;
  font-size: 13px;
  color: #ff6b6b;
  background: transparent;
}

/* 1.4B MOBILE HERO LAYOUT (COMFORTABLE ITEM SPREAD & SPACING) */
@media (max-width: 640px) {
  .hero-image {
    inset: 16px 12px;
    width: auto;
    opacity: 0.24;
    border-radius: 20px;
    animation: none;
  }

  .hero,
  .hero-minimal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 96px;
    min-height: 100svh;
  }

  .hero-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    gap: 10px;
    margin-bottom: 28px;
  }

  .hero-eyebrow::before {
    width: 24px;
  }

  .hero-headline {
    font-size: clamp(2.15rem, 8.5vw, 2.75rem);
    line-height: 1.16;
    margin-bottom: 28px;
  }

  .hero-subline,
  .hero-description {
    font-size: 1.05rem;
    line-height: 1.68;
    margin-bottom: 36px;
  }

  .tracking-inline-form {
    padding: 0.75rem;
    gap: 0.75rem;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .tracking-input-group {
    padding: 8px 14px;
  }

  .btn-track-primary {
    width: 100%;
    padding: 1rem 1.6rem;
    font-size: 1.02rem;
    border-radius: 14px;
  }

  .hero-quote-row {
    margin-top: 26px;
  }
}

/* 1.5 STANDALONE STATS BAND (DIRECTLY BELOW HERO) */
.stats-band {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.stats-band .hero-stats-strip {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  flex-wrap: wrap;
  align-items: flex-start;
}

.hero-stats-strip .stat-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats-strip .stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--fg);
  font-weight: 400;
}

.hero-stats-strip .stat-lbl {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

/* Ports Ribbon below Hero: Steel Navy background with Alabaster text and Brass slashes */
.ports-strip {
  border-top: 1px solid rgba(247, 243, 233, 0.15);
  border-bottom: 1px solid rgba(247, 243, 233, 0.15);
  padding: 16px 0;
  overflow: hidden;
  background-color: var(--color-steel-navy);
}

.ports-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.port-item {
  font-size: 13px;
  color: var(--color-alabaster);
  letter-spacing: 0.05em;
  font-weight: 500;
  white-space: nowrap;
}

.port-separator {
  color: var(--color-brass);
  opacity: 0.9;
  font-weight: 600;
}

@media (max-width: 900px) {
  .ports-list {
    justify-content: flex-start;
    gap: 16px;
  }
}

/* ==========================================================================
   5. OTHER SECTIONS (ALTERNATING PALETTE: ALABASTER, STEEL NAVY, DEEP SAPPHIRE)
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. ALABASTER WHITE PALETTE SECTION (#F7F3E9) - Services & Testimonials
   -------------------------------------------------------------------------- */
.section-alabaster {
  background-color: var(--color-alabaster) !important;
  color: var(--color-deep-sapphire) !important;
}

.section-alabaster .section-label {
  color: var(--color-steel-navy) !important;
  opacity: 0.85;
}

.section-alabaster h2,
.section-alabaster h3,
.section-alabaster .service-card-title,
.section-alabaster .testimonial-author {
  color: var(--color-deep-sapphire) !important;
}

.section-alabaster p,
.section-alabaster .service-card-desc,
.section-alabaster .testimonial-role {
  color: var(--color-steel-navy) !important;
}

.section-alabaster .services-grid-3col,
.services-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .section-alabaster .services-grid-3col,
  .services-grid-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .section-alabaster .services-grid-3col,
  .services-grid-3col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.section-alabaster .service-card-minimal {
  padding: 28px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(13, 27, 42, 0.12);
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(13, 27, 42, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-alabaster .service-card-minimal:hover {
  border-color: var(--color-brass);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.08);
}

.section-alabaster .service-card-icon {
  font-size: 1.4rem;
  color: var(--color-brass);
  margin-bottom: 18px;
}

/* Fallback for general service cards */
.service-card-minimal {
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: transparent;
  transition: border-color 0.15s ease;
}

.service-card-minimal:hover {
  border-color: var(--fg);
}

.service-card-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--fg);
  font-weight: 500;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Testimonials inside Alabaster White */
.section-alabaster .testimonials-grid-minimal,
.testimonials-grid-minimal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .section-alabaster .testimonials-grid-minimal,
  .testimonials-grid-minimal {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.section-alabaster .testimonial-minimal {
  padding: 32px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(13, 27, 42, 0.12);
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(13, 27, 42, 0.04);
}

.section-alabaster .testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--color-deep-sapphire);
  margin-bottom: 20px;
}

.section-alabaster .testimonial-author {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-deep-sapphire);
}

.section-alabaster .testimonial-role {
  font-size: 0.82rem;
  color: var(--color-steel-navy);
}

/* Fallback testimonials */
.testimonial-minimal {
  padding: 32px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: transparent;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--fg);
  margin-bottom: 20px;
}

.testimonial-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   B. STEEL NAVY PALETTE SECTION (#415A77) - About & Operations
   -------------------------------------------------------------------------- */
.section-steel-navy {
  background-color: var(--color-steel-navy) !important;
  color: var(--color-alabaster) !important;
}

.section-steel-navy .section-label {
  color: var(--color-brass) !important;
}

.section-steel-navy h2 {
  color: var(--color-alabaster) !important;
}

.section-steel-navy p {
  color: rgba(247, 243, 233, 0.92) !important;
}

.section-steel-navy .testimonial-minimal {
  background: rgba(247, 243, 233, 0.96) !important;
  border-color: rgba(247, 243, 233, 0.42) !important;
}

.section-steel-navy .testimonial-quote,
.section-steel-navy .testimonial-author {
  color: var(--color-deep-sapphire) !important;
}

.section-steel-navy .testimonial-role {
  color: #415A77 !important;
}

.section-deep-sapphire .testimonial-minimal {
  background: #FFFFFF;
  border: 1px solid rgba(247, 243, 233, 0.24);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.section-deep-sapphire .testimonial-quote,
.section-deep-sapphire .testimonial-author {
  color: var(--color-deep-sapphire) !important;
}

.section-deep-sapphire .testimonial-role {
  color: #415A77 !important;
}

.section-deep-sapphire {
  background-color: var(--color-deep-sapphire) !important;
  color: var(--color-alabaster) !important;
}

.section-deep-sapphire .section-label,
.section-deep-sapphire h2 {
  color: var(--color-alabaster) !important;
}

.section-steel-navy .about-stats-grid,
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 800px) {
  .section-steel-navy .about-stats-grid,
  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.section-steel-navy .stats-simple-grid,
.stats-simple-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.section-steel-navy .stat-item-simple {
  border-left: 2px solid var(--color-brass);
  padding-left: 18px;
}

.section-steel-navy .stat-number-fraunces {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 48px);
  color: var(--color-brass) !important;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 4px;
}

.section-steel-navy .stat-label-muted {
  font-size: 13px;
  color: var(--color-alabaster) !important;
  opacity: 0.90;
}

/* Fallback for stats */
.stat-item-simple {
  border-left: 2px solid var(--border);
  padding-left: 16px;
}

.stat-number-fraunces {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  color: var(--fg);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label-muted {
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   C. CONTACT & INQUIRIES
   -------------------------------------------------------------------------- */
.contact-section-minimal {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.contact-inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-card);
  box-shadow: 0 20px 48px rgba(13, 27, 42, 0.08);
}

.contact-field {
  min-width: 0;
}

.contact-field--wide {
  grid-column: 1 / -1;
}

.contact-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-field label span {
  color: var(--accent-text);
}

.contact-inquiry-form .input-hairline {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(13, 27, 42, 0.16);
  border-radius: 10px;
  background: #F7F3E9;
  color: #0D1B2A;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: none;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.contact-inquiry-form .input-hairline::placeholder {
  color: #657487;
  opacity: 1;
}

.contact-inquiry-form .input-hairline:hover {
  border-color: rgba(13, 27, 42, 0.35);
}

.contact-inquiry-form .input-hairline:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

.contact-inquiry-form textarea.input-hairline {
  min-height: 150px;
  resize: vertical;
}

.contact-inquiry-form .btn-primary-cta {
  width: 100%;
  min-height: 54px;
}

.contact-inquiry-form .btn-primary-cta:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .contact-inquiry-form {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
    border-radius: 16px;
  }

  .contact-field--wide {
    grid-column: auto;
  }
}

/* --------------------------------------------------------------------------
   D. FOOTER: Deep Sapphire (#0D1B2A) with Steel Navy & Alabaster Accents
   -------------------------------------------------------------------------- */
.footer-minimal {
  border-top: 1px solid rgba(247, 243, 233, 0.12);
  padding: 64px 0 40px;
  background-color: var(--color-deep-sapphire);
  color: var(--color-alabaster);
}

.footer-minimal .footer-col-title {
  color: var(--color-alabaster);
}

.footer-minimal .footer-links-list li {
  color: #BFC9D4;
}

.footer-minimal .footer-links-list a,
.footer-minimal .footer-copyright,
.footer-minimal p,
.footer-minimal a {
  color: #BFC9D4 !important;
}

.footer-minimal .footer-links-list a:hover,
.footer-minimal a:hover {
  color: var(--color-alabaster);
}

.footer-minimal strong,
.footer-minimal .footer-bottom-row {
  color: var(--color-alabaster) !important;
}

.footer-minimal .footer-bottom-row {
  border-top-color: rgba(247, 243, 233, 0.12);
}

/* Alternating light/dark section system */
.section-steel-navy .section-label {
  color: var(--color-brass) !important;
}

.section-steel-navy .testimonial-minimal {
  background: rgba(247, 243, 233, 0.96) !important;
  border: 1px solid rgba(247, 243, 233, 0.42) !important;
}

.section-steel-navy .testimonial-quote,
.section-steel-navy .testimonial-author {
  color: var(--color-deep-sapphire) !important;
}

.section-steel-navy .testimonial-role {
  color: #415A77 !important;
}

.inner-banner,
.w3l-join-main,
.w3l-features,
.w3l-stats-section,
.w3l-team-main,
.w3l-faq-block,
.locations-1,
section[id="air"],
section[id="road"],
section[id="packaging"] {
  background-color: var(--color-deep-sapphire) !important;
  color: var(--color-alabaster) !important;
}

.inner-banner {
  background-image:
    linear-gradient(rgba(13, 27, 42, 0.72), rgba(13, 27, 42, 0.72)),
    url("../images/banner2.jpg") !important;
  background-position: center;
  background-size: cover;
}

.inner-banner:before {
  background: linear-gradient(120deg, rgba(13, 27, 42, 0.88), rgba(65, 90, 119, 0.58)) !important;
  z-index: -1;
}

.w3l-ab-page,
.w3l-index-about,
.w3l-about.bg-light,
section[id="warehousing"],
section[id="ocean"],
section[id="supply"] {
  background-color: var(--color-alabaster) !important;
  color: var(--color-deep-sapphire) !important;
}

.w3l-features h3,
.w3l-features h4,
.w3l-features h6,
.w3l-features p,
.w3l-features a,
.w3l-stats-section h3,
.w3l-stats-section p,
.w3l-team-main h3,
.w3l-team-main h6,
.w3l-team-main p,
.w3l-team-main .team-title,
.w3l-faq-block h3,
.w3l-faq-block h6,
.w3l-faq-block p,
.w3l-faq-block .card-header button,
section[id="air"] h3,
section[id="air"] h6,
section[id="air"] p,
section[id="road"] h3,
section[id="road"] h6,
section[id="road"] p,
section[id="packaging"] h3,
section[id="packaging"] h6,
section[id="packaging"] p,
.locations-1 h3,
.locations-1 h6,
.locations-1 p {
  color: var(--color-alabaster) !important;
}

.w3l-features .grids-1.box-wrap,
.w3l-team-main .team-member,
.w3l-faq-block .card,
.locations-1 .box-wrap,
.locations-1 .location-info {
  background: rgba(247, 243, 233, 0.10) !important;
  border: 1px solid rgba(247, 243, 233, 0.22);
  border-radius: var(--radius-card);
}

.w3l-features .grids-1 h4,
.w3l-features .grids-1 h4 a,
.w3l-features .grids-1 .title-head,
.w3l-features .grids-1 p,
.w3l-features .grids-1 .text-para,
.locations-1 .location-info h3,
.locations-1 .location-info p {
  color: var(--color-alabaster) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.w3l-features .grids-1 .icon,
.w3l-features .grids-1 .icon i {
  color: var(--color-brass) !important;
  background: rgba(247, 243, 233, 0.12);
}

section[id="careers"],
section[id="news"],
section[id="faq"] {
  background-color: var(--color-deep-sapphire) !important;
  color: var(--color-alabaster) !important;
}

section[id="careers"] h3,
section[id="careers"] h4,
section[id="careers"] h5,
section[id="careers"] h6,
section[id="careers"] p,
section[id="news"] h3,
section[id="news"] h4,
section[id="news"] h5,
section[id="news"] h6,
section[id="news"] p,
section[id="faq"] h3,
section[id="faq"] h6,
section[id="faq"] p,
section[id="faq"] li,
section[id="faq"] strong,
section[id="faq"] a {
  color: var(--color-alabaster) !important;
}

section[id="careers"] .card,
section[id="careers"] .benefit-item,
section[id="news"] .card,
section[id="news"] .resource-item,
section[id="faq"] .accordion-item,
section[id="faq"] .accordion-button {
  background: rgba(247, 243, 233, 0.08) !important;
  border-color: rgba(247, 243, 233, 0.16) !important;
  color: var(--color-alabaster) !important;
}

section[id="request"],
section[id="tips"] {
  background-color: var(--color-alabaster) !important;
  color: var(--color-deep-sapphire) !important;
}

section[id="request"] .card,
section[id="tips"] .card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.w3l-footer9,
.w3l-footer9 .footer-inner-main {
  background: var(--color-deep-sapphire) !important;
  color: var(--color-alabaster) !important;
}

.w3l-footer9 .footer-inner-main h2,
.w3l-footer9 .footer-inner-main h6,
.w3l-footer9 .navbar-brand,
.w3l-footer9 .copyright-column {
  color: var(--color-alabaster) !important;
}

.w3l-footer9 .footer-inner-main p,
.w3l-footer9 .footer-inner-main a,
.w3l-footer9 .sub-two-right ul li a,
.w3l-footer9 ul.text-right li a,
.w3l-footer9 p.copyright-column {
  color: #BFC9D4 !important;
}

.w3l-footer9 .footer-inner-main a:hover {
  color: var(--color-alabaster) !important;
}

.w3l-footer9 .below-section {
  border-top-color: rgba(247, 243, 233, 0.12) !important;
}

.w3l-footer9 .footer-inner-main ul.social li a {
  background: rgba(247, 243, 233, 0.10) !important;
  color: var(--color-alabaster) !important;
  border: 1px solid rgba(247, 243, 233, 0.12);
}

.w3l-footer9 .footer-inner-main ul.social li a:hover {
  background: var(--color-brass) !important;
  color: var(--color-deep-sapphire) !important;
}

/* Palette utility class mapping for legacy page sections */
.bg-light,
.bg-lightgrey {
  background-color: var(--color-alabaster) !important;
  color: var(--color-deep-sapphire) !important;
}

.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.bg-lightgrey h1, .bg-lightgrey h2, .bg-lightgrey h3 {
  color: var(--color-deep-sapphire) !important;
}

.bg-light p, .bg-light span,
.bg-lightgrey p, .bg-lightgrey span {
  color: var(--color-steel-navy) !important;
}

section[id="air"].bg-light,
section[id="road"].bg-light,
section[id="packaging"].bg-light,
section[id="air"],
section[id="road"],
section[id="packaging"] {
  background: var(--color-deep-sapphire) !important;
  color: var(--color-alabaster) !important;
}

section[id="air"] h3,
section[id="air"] h6,
section[id="air"] p,
section[id="air"] li,
section[id="road"] h3,
section[id="road"] h6,
section[id="road"] p,
section[id="road"] li,
section[id="packaging"] h3,
section[id="packaging"] h6,
section[id="packaging"] p,
section[id="packaging"] li {
  color: var(--color-alabaster) !important;
}

.footer-3col-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-3col-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg);
  margin-bottom: 16px;
}

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

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

.footer-links-list a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-links-list a:hover {
  color: var(--fg);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-copyright {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Scroll-to-top: small neutral outlined circle (no brass, no progress ring) */
.scroll-top-neutral {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, border-color 0.15s ease;
  padding: 0;
}

.scroll-top-neutral.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-neutral:hover {
  border-color: var(--fg);
}

.scroll-top-neutral i {
  font-size: 12px;
}

/* ==========================================================================
   6. MOTION: SUBTLE 8PX FADE-UP (150-250MS), RESPECT PREFERS-REDUCED-MOTION
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
