:root {
  --nhb-navy: #0A1F44;
  --nhb-gold: #C9A227;
  --nhb-light: #F5F7FA;
  --nhb-text: #1F2933;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--nhb-text);
  background-color: white;
  line-height: 1.6;
  overflow-x: hidden; /* Prevents side-scrolling when menu is hidden */
}

a { color: var(--nhb-navy); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  background-color: white;
  border-bottom: 1px solid #E1E4EA;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group { display: flex; align-items: center; gap: 0.5rem; }

.logo-mark {
  width: 40px; height: 40px;
  object-fit: contain; /* Ensures logo image doesn't stretch */
}

.logo-text { display: flex; flex-direction: column; }
.logo-text span:first-child {
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--nhb-navy);
}
.logo-text span:last-child {
  font-size: 0.7rem; text-transform: uppercase; color: #6B7280;
}

/* --- Navigation Menu --- */
nav .nav-menu {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

nav a {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

nav a.active { background-color: var(--nhb-navy); color: white; }
nav a.cta { background-color: var(--nhb-gold); color: var(--nhb-navy); }

/* --- Mobile Toggle Elements (Hidden on Desktop) --- */
.menu-toggle { display: none; }
.hamburger { display: none; cursor: pointer; padding: 5px; z-index: 1100; }
.hamburger span {
  display: block; width: 25px; height: 2px;
  background-color: var(--nhb-navy); margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero & Content --- */
main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  padding: 2.5rem 0 2rem;
}

.hero-text h1 { font-size: 2.1rem; color: var(--nhb-navy); margin-bottom: 1rem; }
.hero-text p { font-size: 0.98rem; max-width: 32rem; margin-bottom: 1.5rem; }

.badge {
  display: inline-flex; align-items: center;
  padding: 0.15rem 0.6rem; border-radius: 999px;
  border: 1px solid #E1E4EA; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.75rem; color: #4B5563; background-color: #F9FAFB;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.15rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; border: none; cursor: pointer;
}
.btn-primary { background-color: var(--nhb-navy); color: white; }
.btn-outline { border: 1px solid #CBD2E1; background-color: white; color: var(--nhb-navy); }

.hero-card {
  border-radius: 0.7rem; border: 1px solid #E1E4EA;
  background: radial-gradient(circle at top left, #FDF6E3, #F9FAFB);
  padding: 1.25rem 1.4rem; font-size: 0.88rem;
}

.section { margin-top: 2.5rem; }
.section h2 { font-size: 1.2rem; color: var(--nhb-navy); margin-bottom: 0.75rem; }

.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card { border-radius: 0.7rem; border: 1px solid #E1E4EA; padding: 1rem; background-color: white; }
.card h3 { font-size: 1rem; color: var(--nhb-navy); margin-bottom: 0.4rem; }
.card p { font-size: 0.86rem; }

footer {
  border-top: 1px solid #E1E4EA; padding: 1.5rem 1.25rem;
  background-color: #F9FAFB; font-size: 0.8rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}

/* --- MOBILE RESPONSIVE LOGIC --- */
@media (max-width: 1024px) {
  .hamburger { display: block; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 1.5rem 2rem;
    box-shadow: -10px 0 20px rgba(0,0,0,0.05);
    transition: 0.4s ease-in-out;
    align-items: flex-start !important;
    gap: 1.25rem !important;
  }

  /* Show menu when checkbox is checked */
  .menu-toggle:checked ~ .nav-menu {
    right: 0;
  }

  /* Animate Hamburger into an 'X' */
  .menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero adjustments for mobile */
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-text h1 { font-size: 1.8rem; }
}

/* --- MOBILE MENU FIX (Add to the bottom of your file) --- */

/* 1. Hide the trigger on desktop */
.menu-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
}

.menu-trigger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--nhb-navy);
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 99;
}

@media (max-width: 1024px) {
  .menu-trigger { display: flex; }

  /* Fixes the list appearance */
  nav ul#nav-list {
    display: none; /* Hidden by default on mobile */
    list-style: none !important;
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 20px;
    z-index: 100;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    align-items: flex-start;
    gap: 1.5rem;
  }

  /* Style for when menu is open */
  nav ul#nav-list.is-active {
    display: flex;
  }

  .menu-overlay.is-active {
    display: block;
  }

  /* Remove bullets from all list items */
  nav ul#nav-list li {
    list-style-type: none !important;
    margin: 0;
  }

  /* Fix the CTA button on mobile */
  nav a.cta {
    display: inline-block;
    text-align: center;
    width: 100%;
  }
}

/* --- Animation for the Hamburger to X --- */
@media (max-width: 1024px) {
  /* Ensure the button stays on top of the menu */
  .menu-trigger {
    z-index: 1100;
    position: relative;
  }

  /* Animate the three spans */
  .menu-trigger span {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  /* Top bar rotates 45 degrees */
  .menu-trigger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  /* Middle bar disappears */
  .menu-trigger.is-active span:nth-child(2) {
    opacity: 0;
  }

  /* Bottom bar rotates -45 degrees */
  .menu-trigger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --- Desktop Rule --- */
@media (min-width: 1025px) {
  /* Hide the logo text on desktop/wide screens */
  .logo-text {
    display: none !important;
  }
}

/* --- Mobile Rule --- */
@media (max-width: 1024px) {
  /* Ensure it is visible on mobile */
  .logo-text {
    display: flex !important;
    flex-direction: column;
  }
}

/* Container for the 3 dropdowns */
.dropdown-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap; /* Allows wrapping on small screens */
}

/* Individual group styling */
.dropdown-group {
  flex: 1; /* Makes them equal width */
  min-width: 200px; /* Prevents them from getting too skinny */
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dropdown-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6B7280;
  letter-spacing: 0.05em;
}

/* Styled Select Input */
.dropdown-group select {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #E1E4EA;
  background-color: white;
  color: var(--nhb-text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none; /* Removes default browser arrow to add custom one */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230A1F44'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
}

.dropdown-group select:focus {
  outline: none;
  border-color: var(--nhb-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

/* Mobile Responsive adjustment */
@media (max-width: 600px) {
  .dropdown-row {
    flex-direction: column; /* Stack them vertically on mobile */
    gap: 1.25rem;
  }

  .dropdown-group {
    width: 100%;
  }
}

/* 1. Update the main select styling */
.dropdown-group select {
  width: 100%;
  padding: 0.8rem 1rem; /* Slightly larger padding for better touch area */
  border-radius: 0.5rem;
  border: 1px solid #E1E4EA;
  background-color: white;
  color: var(--nhb-text);
  font-family: inherit;

  /* IMPORTANT: 16px prevents iOS auto-zoom and improves readability */
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230A1F44'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
}

/* 2. Target the text inside the dropdown list */
.dropdown-group select option {
  font-size: 1rem;
  padding: 10px;
  background-color: white;
  color: var(--nhb-text);
}

/* 3. Increase label size slightly for better hierarchy on mobile */
.dropdown-group label {
  font-size: 0.8rem; /* Increased from 0.75rem */
  font-weight: 700;
  margin-bottom: 0.2rem;
}

@media (max-width: 1024px) {
  /* Increase touch target and font for the main box */
  .dropdown-group select {
    font-size: 16px !important; /* Forces 16px to prevent iOS zoom */
    padding: 12px 15px !important;
    height: 50px; /* Explicit height for easier tapping */
    -webkit-appearance: none; /* Removes default iOS styling */
    appearance: none;
  }

  /* Specific class for mobile-first labels */
  .dropdown-group label {
    font-size: 0.9rem !important;
    margin-bottom: 8px;
    color: var(--nhb-navy);
  }

  /* Container spacing for mobile */
  .dropdown-row {
    gap: 20px !important;
  }
}