/* ============================================================
   nav.css  –  Sitewide unified navigation menu
   ============================================================ */

/* ── Global Navigation Container ── */
#global-nav {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

/* ── Mobile Hamburger Toggle ── */
#menu-toggle {
  background: rgba(10, 15, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 10001;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: auto;
}

#menu-toggle span {
  display: block;
  width: 100%;
  height: 4px;
  background: #c9a96e;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.7);
}

#menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menu-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(20px); }
#menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Navigation Menu Panel (Mobile Default) ── */
#menu-dropdown {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100vh;
  background: rgba(10, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 90px;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
}

#global-nav.open #menu-dropdown { right: 0; }

/* ── Menu Links ── */
.menu-link {
  display: block;
  padding: 16px 30px;
  color: #dfcdba;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 2px;
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.menu-link:hover {
  color: #c9a96e;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

/* ── Funeral Link (Light Blue Accent) ── */
.menu-link.funeral-link {
  color: #92d9f8;
  margin-top: auto; /* Push to bottom on mobile */
  margin-bottom: 30px;
  border-top: 1px solid rgba(146, 217, 248, 0.2);
  padding-top: 20px;
}

.menu-link.funeral-link:hover {
  color: #fff;
  text-shadow: 0 0 15px #92d9f8;
  background: rgba(146, 217, 248, 0.1);
}

/* ── Desktop Horizontal Navigation Overrides ── */
@media (min-width: 769px) {
  #global-nav {
    top: 16px;
    right: 30px;
    pointer-events: auto;
  }
  
  #menu-toggle {
    display: none !important;
  }
  
  #menu-dropdown {
    position: static;
    width: auto;
    height: auto;
    background: rgba(10, 15, 25, 0.5);
    padding: 6px 12px;
    flex-direction: row;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  
  .menu-link {
    padding: 8px 20px;
    font-size: 0.95rem;
    border-radius: 30px;
  }
  
  /* Reset Funeral link for horizontal row */
  .menu-link.funeral-link {
    margin-top: 0;
    margin-bottom: 0;
    border-top: none;
    padding-top: 8px;
    margin-left: 10px;
    border: 1px solid rgba(146, 217, 248, 0.3);
  }
}


/* ── Site Logo (Glassmorphism Pill) ── */
#site-logo {
  position: fixed;
  top: 16px;
  left: 20px;
  z-index: 10001;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #c9a96e;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7), 0 0 20px rgba(201,169,110,0.4);
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  
  /* Glassmorphism Pill */
  background: rgba(10, 15, 25, 0.5);
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#site-logo:hover { 
  color: #f0c070;
  background: rgba(10, 15, 25, 0.7);
}


/* ── Fat Footer ── */
.fat-footer {
  position: relative;
  width: 100%;
  background: rgba(10, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
  z-index: 20;
  margin-top: auto;
}

.fat-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 32px 32px;
}

/* ── Link Grid ── */
.fat-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.fat-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fat-footer-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c9a96e;
  margin: 0 0 14px 0;
}

.fat-footer-col li {
  margin-bottom: 8px;
}

.fat-footer-col a {
  color: rgba(223, 205, 186, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.fat-footer-col a:hover {
  color: #c9a96e;
  text-decoration: none;
}

/* ── Disclaimer ── */
.fat-footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  margin-bottom: 20px;
}

.fat-footer-disclaimer p {
  font-size: 0.7rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 auto;
  max-width: 700px;
  text-align: center;
}

/* ── Brand Row ── */
.fat-footer-brand {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  text-align: center;
}

.fat-footer-tagline {
  font-family: 'Forum', serif;
  font-size: 0.9rem;
  color: rgba(201, 169, 110, 0.6);
  letter-spacing: 1px;
  font-style: italic;
}

.fat-footer-copyright {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
}

.fat-footer-copyright a {
  color: #c9a96e;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.fat-footer-copyright a:hover {
  color: #f0c070;
}

/* ── Fat Footer Mobile ── */
@media (max-width: 600px) {
  .fat-footer-inner {
    padding: 36px 20px 24px;
  }

  .fat-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fat-footer-disclaimer p {
    font-size: 0.65rem;
  }
}

/* ── Old global-footer compat (for pages not yet migrated) ── */
.global-footer {
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1.6;
  padding: 24px 0;
  margin-top: auto;
  background: rgba(10, 15, 25, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
  z-index: 20;
}
.global-footer a {
  color: #ffffff;
  text-decoration: underline;
  margin: 0 6px;
}
.global-footer a:hover {
  color: #c9a96e;
}
.global-footer span {
  display: block;
  margin-top: 0.75em;
}


/* ── Region Selector ── */
.region-selector {
  position: relative;
  pointer-events: auto;
}

.region-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  color: #dfcdba;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.region-btn:hover, .region-selector.open .region-btn {
  color: #c9a96e;
  background: rgba(255, 255, 255, 0.06);
}

.region-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: rgba(10, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
}

.region-selector.open .region-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.region-link {
  display: block;
  padding: 12px 20px;
  color: #dfcdba;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: 'Cinzel', serif;
  transition: color 0.2s, background 0.2s;
  text-transform: none;
  letter-spacing: normal;
}

.region-link:hover {
  color: #c9a96e;
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 769px) {
  .region-selector {
    margin-left: 10px;
  }
  .region-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 0.95rem;
    border-radius: 30px;
  }
}

