/* ==========================================================================
   ED7 GROUP - Unified Navigation & Footer Design System
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --primary-color: #00c4c8;
  --accent-color: #ff9b4a;
  --text-light: #f5f5f5;
  --text-muted: #94a3b8;
  --text-dark: #1f2430;
  --bg-dark: #0f141c;
  --bg-footer: #05070f;
  --glass-bg: rgba(15, 20, 28, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-nav: "Poppins", Arial, sans-serif;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  font-family: var(--font-nav);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(15, 20, 28, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

header.site-header.scrolled {
  background-color: rgba(15, 20, 28, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Topbar Styling */
.header-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.4rem 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.header-topbar-left {
  display: flex;
  gap: 1.5rem;
}

.header-topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header-topbar-right a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 1rem;
  transition: var(--transition-smooth);
}

.header-topbar-right a:hover {
  color: var(--primary-color);
}

/* Navbar Layout */
.header-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 5vw;
  position: relative;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Desktop Menu styling */
.nav-menu-container {
  display: flex;
  align-items: center;
}

.nav-menu-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu-item {
  position: relative;
}

.nav-menu-link {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
}

.nav-menu-link:hover,
.nav-menu-item:hover > .nav-menu-link {
  color: var(--primary-color);
}

/* Caret Icon Styling */
.nav-menu-link .caret-icon {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.nav-menu-item:hover > .nav-menu-link .caret-icon {
  transform: rotate(180deg);
}

/* Desktop Dropdown Design */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 0.75rem 0;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1010;
}

.nav-dropdown-item {
  list-style: none;
}

.nav-dropdown-link {
  display: block;
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 400;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.nav-dropdown-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
  padding-left: 1.8rem;
}

/* Dropdown trigger hover mechanics (Desktop) */
@media (min-width: 992px) {
  .nav-menu-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

/* Call to Action Button */
.header-cta-btn {
  background-color: var(--primary-color);
  border: none;
  color: #031b1c;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 196, 200, 0.4);
  background-color: #00adb0;
}

/* ==========================================================================
   Hamburger & Mobile Drawer Menu
   ========================================================================== */

.nav-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0.5rem;
  z-index: 1100;
}

.nav-menu-toggle span {
  width: 26px;
  height: 2px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Hamburger active transformation */
.nav-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-15px);
}

.nav-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Off-canvas Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: linear-gradient(135deg, rgba(9, 17, 28, 0.98), rgba(15, 20, 28, 0.96));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5rem 2rem 2.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
  z-index: 1090;
  overflow-y: auto;
  box-sizing: border-box;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition-smooth);
}

.mobile-nav-link:hover,
.mobile-nav-link.active-link {
  color: var(--primary-color);
}

/* Clickable expansion Caret for mobile dropdowns */
.mobile-caret-trigger {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.mobile-caret-trigger:hover {
  background: var(--primary-color);
  color: #031b1c;
  border-color: var(--primary-color);
}

.mobile-caret-trigger.active {
  transform: rotate(180deg);
  background: rgba(0, 196, 200, 0.15);
  color: var(--primary-color);
}

/* Mobile Submenu Accordion Container */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  list-style: none;
  padding: 0 0 0 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.mobile-submenu-item {
  margin-top: 0.5rem;
}

.mobile-submenu-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.mobile-submenu-link:hover {
  color: var(--primary-color);
  padding-left: 0.3rem;
}

.mobile-drawer-footer {
  margin-top: 3rem;
  text-align: center;
}

.mobile-drawer-cta {
  display: inline-block;
  background: var(--primary-color);
  color: #031b1c;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 196, 200, 0.3);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.mobile-drawer-cta:hover {
  transform: translateY(-2px);
  background-color: #00adb0;
}

.mobile-drawer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.mobile-drawer-socials a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.mobile-drawer-socials a:hover {
  color: var(--primary-color);
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Premium Responsive Footer
   ========================================================================== */

footer.site-footer {
  background-color: var(--bg-footer);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 5vw 2rem;
  font-family: var(--font-nav);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem 2rem;
}

.footer-widget h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-widget h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-about img {
  width: 130px;
  height: auto;
  margin-bottom: 1.25rem;
  object-fit: contain;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.8rem;
  color: var(--text-muted);
}

.footer-about .copyright-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

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

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  display: inline-block;
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(3px);
}

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

.footer-contact-info li {
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-muted);
}

.footer-contact-info li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-contact-info li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom span {
  color: var(--primary-color);
  font-weight: 500;
}

/* ==========================================================================
   Responsive Adaptations & Media Queries
   ========================================================================== */

@media (max-width: 991px) {
  .header-topbar {
    display: none; /* Hide topbar on mobile/tablets for simplicity */
  }

  .nav-menu-container,
  .header-cta-btn {
    display: none; /* Hide desktop nav and button */
  }

  .nav-menu-toggle {
    display: flex; /* Show Hamburger Toggle */
  }

  .header-navbar {
    padding: 0.75rem 5vw;
  }
}

@media (max-width: 576px) {
  .mobile-drawer {
    max-width: 100%; /* Full screen drawer on smaller mobiles */
  }

  footer.site-footer {
    padding: 4rem 5vw 2rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-widget h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact-info li {
    justify-content: center;
  }

  .footer-link:hover {
    transform: translateY(-2px);
  }
}

/* Spacer utility to offset sticky header */
.nav-spacer {
  height: 110px;
}

@media (max-width: 991px) {
  .nav-spacer {
    height: 76px;
  }
}

