/* ============================================
   WEXFORD ANCESTRY — RESPONSIVE DESIGN
   ============================================ */

/* Mobile first adjustments */
@media (max-width: 576px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 1rem; }
  .service-item { width: 100% !important; }
  footer { padding: 1.5rem 0; font-size: 0.9rem; }
}

/* Tablets */
@media (min-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1.1rem; }
}

/* Laptops */
@media (min-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.2rem; }
  .container { max-width: 960px; }
}

/* Desktops / Wide screens */
@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}


/* Make hero logo larger on mobile for visibility */
@media (max-width: 576px) {
  .hero-logo {
    max-width: 120px !important;
  }
}


/* ---------------------------
   MOBILE NAV BURGER (Left side, larger lines, fixed layering)
--------------------------- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  padding: 0.75rem;
  z-index: 9999999; /* ensure it's above everything */
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10000; /* above content too */
}

.burger-btn span {
  display: block;
  height: 4px;
  width: 100%;
  background-color: #5c478b; /* your purple */
  border-radius: 3px;
  transition: 0.3s;
}

/* Dropdown menu */
.mobile-menu {
  position: absolute;
  top: 3rem;
  left: 0; /* anchored under burger */
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  align-items: flex-start; /* align list to the left */
  justify-content: flex-start; /* ensure top alignment */
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 9998;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: #333;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  font-weight: 500;
  text-align: left;  /* align text left */
  width: 100%;
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: #f5f4fa;
  color: #5c478b;
}


/* ---------------------------
   MOBILE NAV OVERLAY + MENU
--------------------------- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  transition: opacity 0.3s ease;
}

.menu-overlay.d-none {
  opacity: 0;
  pointer-events: none;
}

.mobile-menu {
  position: fixed;
  top: 3.5rem;
  left: 0.75rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 9999;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform: translateY(-10px);
  opacity: 0;
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  color: #333;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: #f5f4fa;
  color: #5c478b;
}