/* -------------------- GLOBAL RESET & VARIABLES -------------------- */
:root {
  --primary: #003436;
  --primary-dark: #001f26;
  --accent: #d4af37;
  --accent-dark: #b38f2a;
  --text-light: #f0f4f8;
  --text-white: #ffffff;
  --text-muted: #c0d0e0;
  --border: rgba(212, 175, 55, 0.2);
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.4);
  --transition: all 0.3s ease;
  --header-height: 120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, 'Inter', -apple-system, sans-serif;
  background: var(--primary);
  color: var(--text-light);
  padding-top: var(--header-height);
  scroll-behavior: smooth;
}

/* ===================== HEADER STYLES ===================== */
.efs-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: linear-gradient(rgba(0, 52, 54, 0.94), rgba(0, 52, 54, 0.96)),
              url('https://ethics-fleet.com/wp-content/uploads/2026/03/port-structure-1-scaled.webp') center/cover no-repeat;
  background-attachment: fixed;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}

.efs-header.scrolled {
  background: linear-gradient(rgba(0, 31, 38, 0.97), rgba(0, 31, 38, 0.99)),
              url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
  background-attachment: fixed;
  height: 100px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
  animation: spin 5s linear infinite;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.logo img:hover {
  transform: scale(1.05);
}

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

.efs-header.scrolled .logo img {
  height: 80px;
}

.efs-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.main-menu li {
  position: relative;
}

.main-menu a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 0;
  letter-spacing: 0.3px;
}

.main-menu a:hover,
.main-menu a.active {
  color: var(--accent);
}

.main-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-menu a:hover::after {
  width: 100%;
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 260px;
  background: rgba(0, 43, 54, 0.98);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 0;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 999;
  list-style: none;
}

.submenu li {
  padding: 6px 24px;
}

.submenu a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.submenu a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.efs-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
}

.efs-mobile-btn span {
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 4px;
  transition: var(--transition);
}

.efs-mobile-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.efs-mobile-btn.active span:nth-child(2) {
  opacity: 0;
}

.efs-mobile-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: -100%;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: linear-gradient(145deg, #002b36 0%, #00171f 100%);
  transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  z-index: 999;
  overflow-y: auto;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  font-weight: 500;
}

.mobile-link:hover {
  color: var(--accent);
}

.mobile-quote {
  background: var(--accent);
  color: var(--primary);
  padding: 14px 20px;
  border-radius: 50px;
  text-align: center;
  font-weight: 700;
  margin-top: 24px;
  text-decoration: none;
  font-size: 1.1rem;
}

.mobile-quote:hover {
  background: var(--accent-dark);
}

.quote-button {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  cursor: pointer;
  z-index: 1010;
  border-radius: 50px 0 0 50px;
  width: 55px;
  padding: 16px 15px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  transition: width 0.4s ease, background 0.2s;
  overflow: hidden;
  white-space: nowrap;
}

.quote-button:hover {
  width: 160px;
  padding-left: 22px;
  background-color: var(--accent-dark);
}

.quote-icon {
  font-size: 1.3rem;
}

.quote-text {
  margin-left: 18px;
  opacity: 0;
  transition: opacity 0.25s ease 0.1s;
}

.quote-button:hover .quote-text {
  opacity: 1;
}

@media (max-width: 1100px) {
  .quote-button {
    display: none;
  }
}

@media (max-width: 1024px) {
  .efs-mobile-btn {
    display: flex;
  }
  .efs-nav .main-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 90px;
  }
  .header-container {
    padding: 0 20px;
  }
  .logo img {
    height: 70px;
  }
  .efs-header.scrolled .logo img {
    height: 60px;
  }
}

/* ===================== FOOTER STYLES ===================== */
.global-footer {
  background: linear-gradient(rgba(0, 52, 54, 0.94), rgba(0, 52, 54, 0.97)),
              url('https://ethics-fleet.com/wp-content/uploads/2026/03/port-structure-1-scaled.webp') center/cover no-repeat;
  background-attachment: fixed;
  color: var(--text-light);
  margin-top: 60px;
}

.footer-top {
  padding: 60px 5% 40px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-heading {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--accent);
  margin-bottom: 40px;
  font-weight: 700;
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.office-card {
  background: rgba(0, 31, 38, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s ease;
}

.office-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  background: rgba(0, 43, 54, 0.85);
}

.office-card h3 {
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.office-card p,
.office-card a {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.office-card a {
  color: var(--text-white);
  text-decoration: none;
}

.office-card a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.emergency-highlight {
  background: rgba(0, 31, 38, 0.9);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}

.emergency-highlight:hover {
  transform: scale(1.01);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.25);
}

.emergency-highlight h3 {
  color: var(--accent);
  font-size: 1.7rem;
}

.footer-divider {
  height: 1px;
  background: var(--border);
  margin: 50px auto 40px;
  max-width: 1200px;
}

.footer-middle {
  padding: 0 5% 50px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 42px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  width: 44px;
  height: 2px;
  background: var(--accent);
  position: absolute;
  bottom: -8px;
  left: 0;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin: 12px 0;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.2s;
}

.footer-col a:hover {
  color: var(--text-white);
  padding-left: 6px;
}

.social-icons {
  text-align: center;
  margin: 48px 0 32px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  margin: 0 12px;
  color: var(--text-light);
  font-size: 1.4rem;
  transition: 0.2s;
}

.social-icons a:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-5px);
}

.footer-bottom {
  background: rgba(0, 31, 38, 0.95);
  padding: 28px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.floating-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
  text-decoration: none;
}

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

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

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

@media (max-width: 700px) {
  .floating-btn {
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
  }
  .footer-top {
    padding: 50px 5% 30px;
  }
}

/* Enhanced HD Glass Effect for Footer */
.global-footer {
  background: linear-gradient(135deg, rgba(0, 52, 54, 0.88), rgba(0, 52, 54, 0.92)),
              url('https://ethics-fleet.com/wp-content/uploads/2026/03/port-structure-1-scaled.webp') center/cover fixed no-repeat;
  backdrop-filter: blur(2px);
  position: relative;
  isolation: isolate;
}

.global-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.global-footer > * {
  position: relative;
  z-index: 2;
}

/* Enhanced Glass Cards */
.office-card {
  background: rgba(0, 31, 38, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.office-card:hover {
  background: rgba(0, 31, 38, 0.7);
  backdrop-filter: blur(16px);
  border-color: var(--accent);
  transform: translateY(-8px);
}

/* Emergency Contact Links - Remove Blue Color */
.emergency-highlight .emergency-links a,
.emergency-highlight a {
  color: var(--text-white) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.emergency-highlight .emergency-links a:hover,
.emergency-highlight a:hover {
  color: var(--accent) !important;
  text-decoration: underline;
}

/* Ensure all footer links are styled consistently */
.global-footer a:not(.social-icons a) {
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.global-footer a:not(.social-icons a):hover {
  color: var(--accent);
}

/* Emergency Highlight Card Enhancement */
.emergency-highlight {
  background: rgba(0, 31, 38, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.emergency-highlight:hover {
  background: rgba(0, 31, 38, 0.85);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
}

/* Footer Columns Links */
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 6px;
}

/* Bottom Bar Links */
.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}