/* ==========================================================================
   ETHICS FLEET SERVE - UNIFIED HEADER & FOOTER STYLESHEET
   File Target: /assets/css/global-header-footer.css
   ========================================================================== */

/* 1. Global Reset & CSS Custom Properties */
:root {
  --efs-gold: #D4AF37;
  --efs-gold-light: #facc15;
  --efs-gold-hover: #b89728;
  --efs-dark-bg: #00141a;
  --efs-panel-bg: #001f26;
  --efs-topbar-bg: #0b2229;
  --efs-hover-blue: #004d61;
  --efs-white: #ffffff;
  --efs-text: #cddfe9;
  --efs-muted: #94a3b8;
  --efs-font-main: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
}

.efs-topbar,
.efs-header,
.efs-mobile-menu,
.efs-footer {
  font-family: var(--efs-font-main);
  box-sizing: border-box;
}

.efs-topbar *,
.efs-header *,
.efs-mobile-menu *,
.efs-footer * {
  box-sizing: border-box;
  text-decoration: none !important;
}

/* 2. Top Bar Styles */
.efs-topbar {
  background-color: var(--efs-topbar-bg);
  border-bottom: 2px solid var(--efs-gold);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 10px 0;
  position: relative;
  z-index: 1001;
}

.efs-topbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.efs-topbar-contacts {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.efs-topbar-contacts a {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.efs-topbar-contacts a i {
  color: var(--efs-gold);
}

.efs-topbar-contacts a:hover {
  color: var(--efs-gold);
}

.efs-topbar-rfq {
  color: var(--efs-dark-bg) !important;
  background: var(--efs-gold);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.efs-topbar-rfq:hover {
  background: var(--efs-white);
  color: var(--efs-dark-bg) !important;
}

/* 3. Header & Navigation (Desktop) */
.efs-header {
  background-color: var(--efs-dark-bg);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.efs-header-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.efs-logo {
  color: var(--efs-white);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.efs-logo span {
  color: var(--efs-gold);
}

.efs-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  height: 100%;
}

.efs-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.efs-nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 5px;
  transition: color 0.3s ease;
  height: 100%;
}

.efs-nav-link i {
  font-size: 0.75rem;
  color: var(--efs-gold);
  transition: transform 0.3s ease;
}

.efs-nav-item:hover .efs-nav-link {
  color: var(--efs-gold);
}

.efs-nav-item:hover .efs-nav-link i {
  transform: rotate(180deg);
}

/* 4. Desktop Dropdown & Mega Menu */
.efs-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: var(--efs-panel-bg);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 12px 0;
  list-style: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.efs-nav-item:hover .efs-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.efs-dropdown li {
  width: 100%;
}

.efs-dropdown a {
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.efs-dropdown a i {
  color: var(--efs-gold);
  width: 16px;
  text-align: center;
}

.efs-dropdown a:hover,
.efs-mega-col ul li a:hover {
  background-color: var(--efs-hover-blue) !important;
  color: var(--efs-white) !important;
  padding-left: 24px;
}

.efs-dropdown a:hover i,
.efs-mega-col ul li a:hover i {
  color: var(--efs-gold) !important;
}

.efs-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 1000px;
  background: var(--efs-panel-bg);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.efs-nav-item:hover .efs-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.efs-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.efs-mega-col h5 {
  color: var(--efs-gold);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.efs-mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.efs-mega-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.efs-mega-col ul li a i {
  color: var(--efs-gold);
  font-size: 0.8rem;
  width: 14px;
  text-align: center;
}

.efs-mega-cta {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.efs-mega-cta a {
  color: var(--efs-white);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.efs-mega-cta a i {
  color: var(--efs-gold);
}

.efs-mega-cta a:hover {
  background: var(--efs-hover-blue) !important;
  color: var(--efs-white) !important;
  border-color: var(--efs-gold);
}

/* Hamburger Toggle Button */
.efs-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-direction: column;
  gap: 6px;
}

.efs-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--efs-gold);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* 5. Mobile Navigation Drawer */
.efs-mobile-menu {
  display: none;
  background-color: var(--efs-dark-bg);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 15px 20px 25px 20px;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 85px);
  overflow-y: auto;
  -webkit-tap-highlight-color: transparent;
}

.efs-mobile-menu.active {
  display: flex;
}

.efs-mobile-menu > a {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 15px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 6px;
  background: rgba(0, 31, 38, 0.6);
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
}

.efs-mobile-menu > a i {
  color: var(--efs-gold);
  width: 18px;
  margin-right: 8px;
}

.efs-mobile-menu > a:hover,
.efs-mobile-menu > a:active {
  background: var(--efs-hover-blue);
  color: var(--efs-white);
  border-color: var(--efs-gold);
}

.efs-mobile-quote {
  background: linear-gradient(to right, var(--efs-gold), var(--efs-gold-hover)) !important;
  color: var(--efs-dark-bg) !important;
  text-align: center;
  font-weight: 700 !important;
  justify-content: center;
  margin-top: 10px;
  border: none;
}

/* Floating Call-to-Action Buttons */
.efs-quote-button {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--efs-gold), var(--efs-gold-hover));
  color: var(--efs-panel-bg);
  padding: 14px 18px;
  border-radius: 50px 0 0 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: -5px 5px 25px rgba(212, 175, 55, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  writing-mode: horizontal-tb;
}

.efs-quote-button:hover {
  transform: translateY(-50%) translateX(-5px);
  box-shadow: -8px 8px 30px rgba(212, 175, 55, 0.6);
}

.efs-quote-button i {
  font-size: 1rem;
}

.efs-floating-btns {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.efs-floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--efs-white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}

.efs-floating-btn:hover {
  transform: scale(1.1);
}

.efs-btn-whatsapp {
  background: #25D366;
}

.efs-btn-phone {
  background: #128C7E;
}

/* 6. Footer Section Styles */
.efs-footer {
  background: linear-gradient(rgba(8, 20, 32, 0.94), rgba(5, 13, 24, 0.97)),
    url('https://ethicsbd.net/assets/efs-header-footer-vessel.webp?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  padding: 70px 0 30px;
  color: var(--efs-text);
}

.efs-footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px;
}

.efs-footer-ports h2 {
  color: var(--efs-gold);
  font-size: 18px;
  text-align: center;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.efs-footer-ports-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 50px;
}

.efs-footer-port {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.efs-footer-port:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
}

.efs-footer-port i {
  color: var(--efs-gold);
  font-size: 22px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.efs-footer-port:hover i {
  transform: scale(1.15);
}

.efs-footer-port span {
  font-weight: 600;
  color: var(--efs-white);
  font-size: 14px;
}

.efs-footer-port small {
  font-size: 11px;
  color: var(--efs-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.efs-footer-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.efs-footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.efs-spin-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.efs-spin-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: efs-spin 14s linear infinite;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

.efs-spin-logo:hover {
  animation-play-state: paused;
}

@keyframes efs-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.efs-footer-tagline {
  font-size: 13px;
  color: var(--efs-muted);
  line-height: 1.5;
}

.efs-glass-panel {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
}

.efs-footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.efs-footer-col h4 {
  color: var(--efs-white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--efs-gold);
}

.efs-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.efs-footer-col ul li {
  margin-bottom: 10px;
}

.efs-footer-col ul li a {
  color: var(--efs-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.efs-footer-col ul li a:hover {
  color: var(--efs-gold);
  padding-left: 4px;
}

.efs-footer-col ul li a i {
  font-size: 10px;
  color: var(--efs-gold);
}

.efs-footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}

.efs-cert-group,
.efs-social-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.efs-footer-label {
  color: var(--efs-gold);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 6px;
}

.efs-logo-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 5px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.efs-logo-box:hover {
  background: rgba(212, 175, 55, 0.15);
  transform: scale(1.08);
}

.efs-logo-box img {
  height: 28px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
}

.efs-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--efs-white);
  font-size: 14px;
  transition: transform 0.25s ease;
}

.efs-social-icon:hover {
  transform: translateY(-3px);
}

.efs-social-linkedin  { background: #0a66c2; }
.efs-social-facebook  { background: #1877f2; }
.efs-social-instagram { background: linear-gradient(45deg, #fdf497, #fd5949, #d6249f); }
.efs-social-x         { background: #000000; border: 1px solid rgba(255, 255, 255, 0.2); }
.efs-social-youtube   { background: #ff0000; }

.efs-footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--efs-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-top: 24px;
}

.efs-footer-legal a {
  color: var(--efs-white);
  font-weight: 600;
  transition: color 0.2s ease;
}

.efs-footer-legal a:hover {
  color: var(--efs-gold);
}

/* 7. Unified Media Queries */
@media (max-width: 1400px) {
  .efs-footer-ports-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .efs-nav {
    display: none;
  }
  .efs-hamburger {
    display: flex;
  }
  .efs-footer-main {
    grid-template-columns: 1fr;
  }
  .efs-footer-left {
    align-items: center;
    text-align: center;
  }
  .efs-quote-button {
    display: none;
  }
}

@media (max-width: 900px) {
  .efs-footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .efs-footer-legal {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .efs-footer-ports-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .efs-topbar-inner {
    justify-content: center;
  }
  .efs-topbar-contacts {
    justify-content: center;
    gap: 15px;
  }
}

@media (max-width: 500px) {
  .efs-footer-links-grid {
    grid-template-columns: 1fr;
  }
  .efs-footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .efs-header-inner {
    height: 75px;
  }
  .efs-mobile-menu {
    max-height: calc(100vh - 75px);
  }
}