/**
 * Himani Hill View Resort & Sanctuary
 * Standardized Master Header & Footer Stylesheet
 * Single Source of Truth for Header and Footer across all pages:
 * - Home (index.html)
 * - Rooms (rooms.html)
 * - Resort Facilities (Resort Facilities.html)
 * - Stay and Explore (Stay and Explore.html)
 */

/* ==========================================================================
   Global viewport and responsive overflow protection
   ========================================================================== */
html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Base resets scoped to navbar and footer components */
.hhv-navbar *,
.hhv-navbar *::before,
.hhv-navbar *::after,
.hhv-footer-wrapper *,
.hhv-footer-wrapper *::before,
.hhv-footer-wrapper *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   MASTER HEADER / NAVIGATION BAR
   ========================================================================== */
.hhv-navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #14171a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.hhv-nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.hhv-nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.hhv-nav-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.hhv-nav-logo:hover {
  transform: scale(1.04);
}

.hhv-nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.hhv-nav-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hhv-nav-menu li a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.25s ease;
  position: relative;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.hhv-nav-menu li a:hover,
.hhv-nav-menu li a.active {
  color: #c49a45;
}

.hhv-nav-menu li a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #c49a45;
  border-radius: 2px;
}

.hhv-nav-cta {
  background-color: #c49a45;
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 500 !important;
  transition: background-color 0.3s ease !important;
  display: inline-block;
  line-height: normal;
  white-space: nowrap;
}

.hhv-nav-cta:hover {
  background-color: #b5883d !important;
}

.hhv-nav-menu li a.hhv-nav-cta.active::after {
  display: none !important;
}

.hhv-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  z-index: 1001;
  flex-shrink: 0;
}

.hhv-hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  border-radius: 1px;
}

/* Header Responsive Behavior */
@media (max-width: 992px) {
  .hhv-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #14171a;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .hhv-nav-menu.active {
    display: flex;
  }

  .hhv-hamburger {
    display: flex !important;
  }

  .hhv-nav-logo {
    height: 54px;
  }

  .hhv-nav-container {
    padding: 10px 16px;
  }
}

/* ==========================================================================
   MASTER FOOTER
   ========================================================================== */
.hhv-footer-wrapper {
  background-color: #14171a;
  color: #e0e0e0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  padding: 70px 20px 30px;
  position: relative;
  scroll-margin-top: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  box-sizing: border-box;
}

.hhv-footer-container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
}

.hhv-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.hhv-footer-brand h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.hhv-footer-brand-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #c49a45;
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
}

.hhv-footer-brand p {
  font-size: 14px;
  color: #a0a5ab;
  line-height: 1.7;
  margin: 0 0 24px 0;
  font-weight: 300;
  font-family: 'Poppins', sans-serif;
}

.hhv-footer-socials {
  display: flex;
  gap: 12px;
}

.hhv-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hhv-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hhv-social-link:hover {
  background-color: #c49a45;
  border-color: #c49a45;
  transform: translateY(-2px);
  color: #ffffff;
}

.hhv-footer-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 20px 0;
  position: relative;
  padding-bottom: 10px;
}

.hhv-footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #c49a45;
}

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

.hhv-footer-menu li {
  margin-bottom: 12px;
  list-style: none;
}

.hhv-footer-menu a {
  color: #a0a5ab;
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  transition: all 0.25s ease;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
}

.hhv-footer-menu a:hover {
  color: #c49a45;
  transform: translateX(4px);
}

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

.hhv-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #a0a5ab;
  margin-bottom: 16px;
  line-height: 1.6;
  font-weight: 300;
  font-family: 'Poppins', sans-serif;
}

.hhv-contact-item a {
  color: #a0a5ab;
  text-decoration: none;
  transition: color 0.25s ease;
}

.hhv-contact-item a:hover {
  color: #c49a45;
}

.hhv-contact-icon {
  width: 18px;
  height: 18px;
  color: #c49a45;
  flex-shrink: 0;
  margin-top: 3px;
}

.hhv-contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.hhv-footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 25px;
}

.hhv-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #7d838a;
  font-weight: 300;
  font-family: 'Poppins', sans-serif;
}

.hhv-footer-bottom-links {
  display: flex;
  gap: 20px;
}

.hhv-footer-bottom-links a {
  color: #7d838a;
  text-decoration: none;
  transition: color 0.25s ease;
}

.hhv-footer-bottom-links a:hover {
  color: #c49a45;
}

/* Footer Responsive Breakpoints */
@media (max-width: 992px) {
  .hhv-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

@media (max-width: 600px) {
  .hhv-footer-wrapper {
    padding: 50px 16px 25px;
  }

  .hhv-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hhv-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Policy Modal (Footer Legal Links) */
.hhv-policy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 12, 14, 0.82);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hhv-policy-modal.active {
  display: flex;
}

.hhv-policy-dialog {
  position: relative;
  max-width: 540px;
  width: 100%;
  background: #14171a;
  color: #e0e0e0;
  border: 1px solid rgba(196, 154, 69, 0.35);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  font-family: 'Poppins', sans-serif;
}

.hhv-policy-eyebrow {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #c49a45;
  font-weight: 600;
  margin-bottom: 6px;
}

.hhv-policy-dialog h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  color: #ffffff;
  margin: 0 0 16px;
}

.hhv-policy-dialog ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #c2c6cc;
}

.hhv-policy-dialog li {
  margin-bottom: 10px;
}

.hhv-policy-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hhv-policy-close:hover {
  background: #c49a45;
  border-color: #c49a45;
}
