/* ==========================================================================
   MODERN MARINE - COMPONENT STYLES & LAYOUTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header-wrapper {
  position: relative;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-white);
  transition: all var(--transition-normal);
  border-bottom: 1px solid var(--color-border);
}

.header-wrapper.is-sticky {
  /* Prevent layout jump by adding padding equal to the main header's height (70px when sticky) */
  padding-bottom: 70px;
}

/* We don't want to hide the top bars, they just scroll out naturally */
.header-wrapper.is-sticky .utility-bar,
.header-wrapper.is-sticky .top-bar {
  /* display: none !important; */
}

/* ==========================================================================
   UTILITY BAR
   ========================================================================== */
.utility-bar {
  background-color: var(--color-light-grey);
  border-bottom: 1px solid var(--color-border);
  padding: 0.35rem 0;
  font-size: 0.75rem;
}

.utility-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.utility-link:hover {
  color: var(--color-brand-blue);
}

.currency-selector {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.currency-selector:hover {
  color: var(--color-brand-blue);
}

/* Modifier for pages with transparent header over hero video (e.g. index.html) */
.header-wrapper.header-transparent:not(.is-sticky) {
  position: fixed;
  background-color: transparent;
  border-bottom-color: transparent;
}

.header-wrapper.header-transparent:not(.is-sticky) .utility-bar,
.header-wrapper.header-transparent:not(.is-sticky) .top-bar {
  background-color: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.header-wrapper.header-transparent:not(.is-sticky) .utility-link,
.header-wrapper.header-transparent:not(.is-sticky) .currency-selector,
.header-wrapper.header-transparent:not(.is-sticky) .top-bar-feature,
.header-wrapper.header-transparent:not(.is-sticky) .top-bar-link,
.header-wrapper.header-transparent:not(.is-sticky) .hamburger-btn {
  color: rgba(255, 255, 255, 0.9);
}

/* Top Information Bar */
.top-bar {
  background-color: var(--color-navy-dark);
  color: var(--color-text-light);
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-features {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-feature {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #CBD5E1;
}

.top-bar-feature svg {
  width: 14px;
  height: 14px;
  color: var(--color-blue-accent);
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar-link {
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.top-bar-link:hover {
  color: var(--color-white);
}

.top-bar-link.whatsapp {
  color: #25D366;
  font-weight: 600;
}

/* Main Header Bar */
.main-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height var(--transition-normal);
}

.header-wrapper.is-sticky .main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease;
  z-index: 1000;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  max-width: 230px;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  object-fit: contain;
}

.logo-img:hover {
  transform: scale(1.02);
}

.header-wrapper.header-transparent:not(.is-sticky) .logo-img {
  filter: brightness(0) invert(1);
}


/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--color-navy-dark);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--color-brand-blue);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-brand-blue);
}

.header-wrapper.header-transparent:not(.is-sticky) .nav-link {
  color: var(--color-white);
}

.header-wrapper.header-transparent:not(.is-sticky) .nav-link:hover,
.header-wrapper.header-transparent:not(.is-sticky) .nav-link.active {
  color: var(--color-white);
  /* Or keep it white on hover over dark bg */
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-action-btn {
  position: relative;
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.header-action-btn:hover {
  background-color: var(--color-white);
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
  transform: translateY(-1px);
}

.header-action-btn svg {
  width: 20px;
  height: 20px;
}

.action-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--color-brand-blue);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: none;
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  color: var(--color-navy-dark);
  align-items: center;
  justify-content: center;
}

.hamburger-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Drawer Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 43, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: var(--color-white);
  z-index: 2001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-nav-overlay.is-open .mobile-nav-drawer {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
}

.mobile-drawer-close {
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-drawer-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy-dark);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background-color: var(--color-blue-light);
  color: var(--color-brand-blue);
}

/* --------------------------------------------------------------------------
   2. HERO SECTION & BADGES
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--color-navy-dark);
  background-image: url('../images/hero/hero-bg.svg');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: 11rem 0 7rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(29, 78, 216, 0.15), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.12);
  color: var(--color-blue-accent);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-spec-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.spec-card {
  background: rgba(14, 40, 73, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.spec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: var(--shadow-glow);
}

.spec-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(14, 165, 233, 0.15);
  color: var(--color-blue-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.spec-card-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-white);
  font-family: var(--font-heading);
}

.spec-card-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   3. TRUST BAR & SEARCH AREA
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--color-white);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 2rem;
  border: 1px solid var(--color-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--color-blue-light);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy-dark);
}

.trust-desc {
  font-size: 0.825rem;
  color: var(--color-text-muted);
}

/* Search Section */
.search-section {
  background: var(--color-white);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.search-box-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: var(--color-off-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.4rem 0.5rem 0.4rem 1.25rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  gap: 0.5rem;
}

.search-input-group:focus-within {
  border-color: var(--color-brand-blue);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(22, 82, 160, 0.15);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: var(--font-primary);
  color: var(--color-navy-dark);
  outline: none;
  padding: 0.5rem 0;
  min-width: 0;
}

.popular-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.popular-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.tag-btn {
  background: var(--color-light-grey);
  color: var(--color-navy-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.tag-btn:hover {
  background: var(--color-brand-blue);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   4. CARDS & PRODUCT SYSTEM
   -------------------------------------------------------------------------- */
.category-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22, 82, 160, 0.3);
}

.category-image-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--color-navy-dark);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.category-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-image-wrap img {
  transform: scale(1.06);
}

.category-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.category-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--color-brand-blue);
  font-size: 0.9rem;
}

.category-card:hover .category-link {
  gap: 0.75rem;
  color: var(--color-logo-blue);
}

/* Product Card */
.product-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--color-brand-blue);
  color: var(--color-white);
  border-color: var(--color-brand-blue);
  box-shadow: 0 4px 12px rgba(22, 82, 160, 0.25);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22, 82, 160, 0.25);
}

.product-badge-wrap {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 5;
}

.product-wishlist-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-fast);
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
  color: #EF4444;
  background: var(--color-white);
}

.product-img-wrap {
  height: 200px;
  padding: 1.25rem;
  background: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.03);
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand-blue);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-navy-dark);
  line-height: 1.35;
}

.product-title a {
  color: inherit;
}

.product-title a:hover {
  color: var(--color-brand-blue);
}

.product-part-no {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-family: monospace;
  margin-bottom: 0.6rem;
}

.product-spec-row {
  font-size: 0.8rem;
  color: var(--color-text-dark);
  background: var(--color-light-grey);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  gap: 0.5rem;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy-dark);
  font-family: var(--font-heading);
}

.product-action-btn {
  background: var(--color-brand-blue);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.product-action-btn:hover {
  background: var(--color-logo-blue);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. REUSABLE SEMANTIC LAYOUT CLASSES (Mobile Responsive Engine)
   -------------------------------------------------------------------------- */
.catalog-layout,
.product-detail-layout,
.cart-page-layout,
.checkout-page-layout,
.contact-page-layout,
.about-hero-layout,
.solution-card-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.stats-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}

.solution-card-layout {
  align-items: center;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-sm);
}

.about-hero-layout {
  align-items: center;
}

@media (min-width: 768px) {
  .stats-grid-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 270px 1fr;
  }

  .product-detail-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .cart-page-layout {
    grid-template-columns: 1fr 350px;
    gap: 2.5rem;
  }

  .checkout-page-layout {
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
  }

  .contact-page-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }

  .about-hero-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .stats-grid-layout {
    grid-template-columns: repeat(4, 1fr);
  }

  .solution-card-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2.25rem;
  }
}

/* --------------------------------------------------------------------------
   6. SHOPPING CART & CHECKOUT UI
   -------------------------------------------------------------------------- */
.cart-table-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 540px;
}

.cart-table th {
  background: var(--color-off-white);
  padding: 1rem 1.25rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-navy-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
}

.cart-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.cart-item-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-off-white);
  padding: 0.4rem;
  border: 1px solid var(--color-border);
  object-fit: contain;
  flex-shrink: 0;
}

.cart-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-off-white);
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-navy-dark);
}

.cart-qty-btn:hover {
  background: var(--color-border);
}

.cart-qty-val {
  width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-summary-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  font-size: 0.925rem;
}

.summary-total {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-navy-dark);
  border-top: 2px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* Forms */
.form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy-dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.925rem;
  color: var(--color-navy-dark);
  background: var(--color-off-white);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(22, 82, 160, 0.15);
}

.payment-option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.payment-radio-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.payment-radio-card.active,
.payment-radio-card:has(input:checked) {
  border-color: var(--color-brand-blue);
  background: var(--color-blue-light);
}

/* --------------------------------------------------------------------------
   7. TESTIMONIAL SLIDER & FOOTER
   -------------------------------------------------------------------------- */
.testimonial-section {
  background: var(--color-white);
  padding: 4.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.slider-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-card {
  min-width: 100%;
  padding: 2.25rem 2rem;
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
  box-sizing: border-box;
}

.quote-icon {
  color: var(--color-brand-blue);
  opacity: 0.3;
  margin-bottom: 0.75rem;
}

.testimonial-text {
  font-size: 1.15rem;
  color: var(--color-navy-dark);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.reviewer-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy-dark);
}

.reviewer-role {
  font-size: 0.85rem;
  color: var(--color-brand-blue);
  font-weight: 600;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.slider-arrow {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-arrow:hover {
  background: var(--color-brand-blue);
  color: var(--color-white);
  border-color: var(--color-brand-blue);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  background: var(--color-brand-blue);
  width: 24px;
}

/* Footer */
.footer {
  background-color: var(--color-navy-dark);
  color: var(--color-text-light);
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid var(--color-border-dark);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: #94A3B8;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-logo {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-heading {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-blue-accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  color: #94A3B8;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom .flex {
  flex-wrap: wrap;
  justify-content: center;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 90vw;
}

.toast {
  background: var(--color-navy-dark);
  color: var(--color-white);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-brand-blue);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.ms-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  z-index: 1000;
  padding: 0 10px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

.ms-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  gap: 3px;
  transition: color 0.2s;
}

.ms-bottom-nav-item.active {
  color: #1e3a8a;
}

.ms-bottom-nav-item svg {
  width: 24px;
  height: 24px;
}

.ms-bottom-nav-item .icon-wrap {
  position: relative;
}

.ms-nav-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background-color: #f59e0b;
  /* orange */
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  border: 2px solid #ffffff;
  line-height: 1;
}

.ms-bottom-nav-fab-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 22px;
}

.fab-halo {
  position: absolute;
  width: 68px;
  height: 68px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: 11px;
  border-radius: 50%;
  pointer-events: none;
}

.ms-mobile-fab-whatsapp {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  border: 4px solid #ffffff;
  position: absolute;
  bottom: 20px;
  transition: transform 0.2s;
}

.ms-mobile-fab-whatsapp:active {
  transform: scale(0.95);
}

.ms-mobile-fab-whatsapp svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .ms-mobile-bottom-nav {
    display: flex;
  }

  /* Add padding to body to prevent content from being hidden behind nav bar */
  body {
    padding-bottom: 74px;
  }
}

/* Hero Background Video */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 21, 43, 0.75);
  /* var(--color-navy-dark) with opacity */
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   MEGA MENU & PREMIUM UPGRADES
   ========================================================================== */

/* Mega Menu */
.nav-item.has-dropdown {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 10px 30px rgba(7, 21, 43, 0.08);
  border-top: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 1000;
  padding: 2.5rem 0;
}

.nav-item.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.mega-column h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-navy-dark);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-brand-blue);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.mega-column a {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 0.4rem 0;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mega-column a:hover {
  color: var(--color-brand-blue);
  transform: translateX(4px);
}

/* Premium Marquee */
.marquee-container marquee {
  display: none;
}

.premium-marquee {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1.5rem 0;
}

.premium-marquee-content {
  display: flex;
  gap: 4rem;
  align-items: center;
  animation: scrollMarquee 25s linear infinite;
  white-space: nowrap;
}

.premium-marquee:hover .premium-marquee-content {
  animation-play-state: paused;
}

.brand-item {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-normal);
  cursor: default;
}

.brand-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  color: var(--color-navy-dark);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Buy Now Button Polish */
.btn-buy-now {
  width: 100%;
  justify-content: center;
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.55rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.btn-buy-now:hover {
  background-color: var(--color-brand-blue);
  box-shadow: 0 4px 12px rgba(22, 82, 160, 0.2);
}

/* ==========================================================================
   STANDARD DROPDOWN & MOBILE SUBMENU
   ========================================================================== */

.standard-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 1000;
  padding: 0.5rem 0;
}

.nav-item.has-dropdown:hover .standard-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.standard-dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.standard-dropdown a:hover {
  background: var(--color-blue-light);
  color: var(--color-brand-blue);
  padding-left: 1.5rem;
}

/* Mobile Submenu */
.mobile-submenu {
  display: none;
  padding-left: 1rem;
  border-left: 2px solid var(--color-border);
  margin-left: 0.8rem;
  margin-top: 0.5rem;
}

.mobile-submenu.open {
  display: block;
}

.mobile-drawer-link.sub-link {
  font-size: 0.95rem;
  padding: 0.5rem 0.8rem;
  font-weight: 500;
}

.mobile-drawer-item {
  cursor: pointer;
}

/* ==========================================================================
   GO TO TOP BUTTON
   ========================================================================== */
.go-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  background-color: var(--color-brand-blue);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(22, 82, 160, 0.3);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.go-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-to-top-btn:hover {
  background-color: var(--color-navy-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(22, 82, 160, 0.4);
}

@media (max-width: 768px) {
  .go-to-top-btn {
    bottom: 5.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    opacity: 0.6;
  }
}

/* ==========================================================================
   PAGE LOADER OVERLAY
   ========================================================================== */
:root {
  /* Loader settings */
  --loader-bg: #ffffff;
}

#ms-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--loader-bg, #ffffff);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  overflow: hidden;
}

#ms-loader-overlay.hidden {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

.loader-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.loader-logo {
  width: 80vw;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  animation: logoReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(6px);
    filter: blur(4px);
    clip-path: inset(0 20% 0 20%);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
    clip-path: inset(0 0 0 0);
  }
}

.logo-animation-container {
  position: relative;
  width: 80vw;
  max-width: 600px;
  aspect-ratio: 800 / 392;
  /* Exactly matches logo.png dimensions */
}

.logo-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* The ship sails in from the left and bobs slightly */
.logo-ship-new {
  animation: sailIn 2.5s cubic-bezier(0.65, 0, 0.35, 1) forwards, bobbing 2.5s ease-in-out infinite;
}

/* Base logo fades in gently when the ship approaches */
.logo-base {
  opacity: 0;
  animation: fadeBaseIn 1.5s ease-in-out 1s forwards;
}

@keyframes sailIn {
  0% {
    transform: translateX(-100vw);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes bobbing {

  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: 1%;
  }
}

@keyframes fadeBaseIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes shipSail {
  0% {
    transform: translateX(0) translateY(0);
  }

  15% {
    transform: translateX(-2%) translateY(1%);
  }

  40% {
    transform: translateX(-15%) translateY(-2%);
  }

  70% {
    transform: translateX(-35%) translateY(1%);
  }

  100% {
    transform: translateX(-120%) translateY(0);
  }
}

@keyframes waveFade {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }

  30% {
    opacity: 1;
    transform: scaleX(1);
  }

  80% {
    opacity: 0.8;
    transform: scaleX(1.2);
  }

  100% {
    opacity: 0;
    transform: scaleX(1.5);
  }
}