/* Load Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Base */
html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)),
    url("images/backdesk.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;

  color: #111827;
  font-family: "Montserrat", sans-serif;
}

/* Links */
a {
  color: inherit;
}

/* Shell */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}

.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 46px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-tagline {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Nav */
.nav {
  display: flex;
  flex-wrap: nowrap;
}

.nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: #dc2626;
}

.nav a.active {
  font-weight: 600;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  margin-left: 1rem;
}

.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
}

.dropdown-toggle:hover {
  color: #dc2626;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  padding: 0.5rem 0.75rem;
  min-width: 210px;
  z-index: 10000;
}



/* Hover bridge: prevents the tiny dead gap between toggle and menu killing :hover */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: 0;
  right: 0;
  height: 0.6rem;
}

.nav-dropdown.open .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.35rem 0.25rem;
  text-decoration: none;
}

.dropdown-menu a:hover {
  color: #dc2626;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Main layout */
.site-main {
  flex: 1;
  padding: 2rem 1.5rem 3rem;
  padding-top: 6.5rem;
}

.content {
  max-width: 900px;
  margin: 1.25rem auto 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(3px);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  padding: 1.75rem 1.5rem 2.25rem;
}

.page-header h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: 2rem;
}

.lede {
  max-width: 650px;
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
}

/* ===== Calculator intro text (FIXED) ===== */

.howto-list {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
}

.howto-list li {
  margin: 0.4rem 0;
}

.howto-note {
  font-size: 1rem;
  color: #374151;
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #0B6B3A;
  color: #fff;
}

.btn-primary:hover {
  background: #08522C;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.96);
  padding: 1rem 0;
}

.site-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6b7280;
}

.site-footer a:hover {
  color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)),
      url("images/backmob.png");
    background-attachment: scroll;
  }

  .site-main {
    padding: 1.5rem 1rem 2.5rem;
    padding-top: 5.5rem;
  }

  .content {
    padding: 1.5rem 1.25rem 2rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.75rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a,
  .dropdown-toggle {
    font-size: 1rem;
    margin: 0.35rem 0;
  }

  .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 0.75rem;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.4rem;
  }
}




.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 20000;
  display: none;
  flex-direction: column;
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: flex-end;
}

.mobile-nav-close {
  font-size: 1.6rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.mobile-nav {
  padding: 1rem 1.25rem 2rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mobile-nav a {
  font-size: 1.25rem;
  text-decoration: none;
  color: #111827;
}

.mobile-nav a.strong {
  font-weight: 600;
}

.mobile-nav-group {
  margin-top: 0.4rem;
}

.mobile-nav-group > span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0.5rem 0 0.25rem;
}

.mobile-nav-group a {
  font-size: 1.15rem;
  padding-left: 0.5rem;
}

/* Only use overlay menu on mobile */
@media (max-width: 768px) {
  .nav { display: none !important; }
}
@media (min-width: 769px) {
  .mobile-nav-overlay { display: none !important; }
}




/* ================= MOBILE OVERLAY MENU (FINAL FIX) ================= */

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 20000;
  display: none;
  flex-direction: column;
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: flex-end;
}

.mobile-nav-close {
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav {
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* All items: same font, block layout */
.mobile-nav a,
.mobile-nav-parent {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  color: #111827;
  margin: 0.75rem 0;
}

/* Remove any heading styling */
.mobile-nav-parent {
  text-transform: none;
  letter-spacing: normal;
}

/* Sub-items */
.mobile-nav-child {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

/* Mobile only */
@media (max-width: 768px) {
  .nav { display: none !important; }
}

@media (min-width: 769px) {
  .mobile-nav-overlay { display: none !important; }
}


/* FINAL OVERRIDE: ensure identical font sizing */
.mobile-nav a,
.mobile-nav-parent {
  font-size: 1.25rem !important;
  font-weight: 500 !important;
}


/* === ABSOLUTE FINAL FIX: kill span font differences === */
.mobile-nav span {
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  line-height: normal !important;
}

.mobile-nav a {
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  line-height: normal !important;
}
