/* ===========================
   HEADER BASE
=========================== */
.modern-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  font-family: "Jost", sans-serif;
  padding: 10px 0;
  position: relative;
  z-index: 9999; /* sit above hero */
}

.logo-container {
  display: flex;
  justify-content: flex-start; /* push logo to left */
  align-items: center;         /* keep it vertically aligned */
}

.logo-container img {
  height: 65px; /* adjust as needed */
}


/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 60px;
  text-transform: uppercase;
}

.main-nav .nav-link {
  color: #000;
  font-size: 18px; /* adjust size */
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 6px 0;
  white-space: nowrap; 
}

.main-nav .nav-link:hover {
  color: #7BAE7F;
}

/* CTA Button */
.cta-button {
  background: #7BAE7F;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 999px; 
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.1s ease;
  display: inline-block;
}

.cta-button:hover {
  background: #7BAE7F; /* same color, rely on shadow/hover lift if you like */
  color: #fff;
}

.cta-button:active {
  transform: translateY(1px);
}







/* ===========================
   MOBILE TOGGLE POSITION
=========================== */
@media (max-width: 768.98px) {
  .modern-header .container,
  .modern-header .row {
    position: relative;
  }

  /* Pin hamburger to top-right inside the row */
  #mobile-menu-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001; /* above header content */
    color: #000 !important;
    text-decoration: none;
    padding: .25rem;
  }
}

/* ===========================
   iPad Air Fix (Portrait & Landscape)
=========================== */
@media (min-width: 820px) and (max-width: 1024px) {
  /* Reduce nav link font size */
  .main-nav .nav-link {
    font-size: 12px; /* smaller than desktop */
  }

  /* Reduce gap between nav items */
  .main-nav {
    gap: 30px;
  }

  /* Slightly smaller logo */
  .logo-container img {
    height: 42px;
  }

  /* Adjust CTA button size */
  .modern-header .cta-button {
    font-size: 14px;
    padding: 6px 16px;
  }
}


/* Hamburger / Close icons general */
#mobile-menu-toggle i,
#mobile-menu-toggle .fa,
#mobile-menu-toggle .fas,
#mobile-menu-toggle .fa-solid,
#mobile-menu-toggle svg,
#mobile-menu-close i,
#mobile-menu-close .fa,
#mobile-menu-close .fas,
#mobile-menu-close .fa-solid,
#mobile-menu-close svg {
  color: #000 !important;
  fill: #000 !important;
  font-size: 1.75rem;
  line-height: 1;
}

/* ===========================
   MOBILE MENU: overlay + slide-in
=========================== */
.mobile-menu {
  display: none;                 /* toggled by JS */
  position: fixed;
  inset: 0;                      /* top:0 right:0 bottom:0 left:0 */
  background: rgba(0,0,0,0.4);   /* dim backdrop */
  z-index: 10000;                /* above header (header is 9999) */
}

/* Show when toggled */
.mobile-menu.active {
  display: block;
}

/* The sliding drawer */
.mobile-menu .mobile-menu-content {
 position: absolute;
  top: 0;
  right: 85%;
  height: 100%;
  width: 85vw;
  max-width: 380px;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

/* Slide in */
.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

/* Drawer header */
.mobile-menu .mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu .logo-container img {
  height: 40px;
}

/* Mobile nav links */
.mobile-nav {
  padding: 6px 0 12px;
}

.mobile-nav .mobile-nav-link {
  display: block;
  padding: 14px 18px;
  color: #000;
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.25s ease, color 0.25s ease;
}

.mobile-nav .mobile-nav-link:hover {
  background: #f8fafc;
  color: #7BAE7F;
}

/* Full-width CTA in drawer */
.mobile-nav .mobile-nav-link.cta-button {
  margin: 10px 16px;
  border-radius: 999px;
  text-align: center;
  border: none;
  padding: 12px 20px;
  display: block;
}

/* ===========================
   HEADER ROW SPACING
=========================== */
.modern-header .row {
  margin: 0;
  padding: 0;
  align-items: center;
}

/* Optional: prevent layout shift on iOS when drawer opens */
html, body {
  height: 100%;
}
