/* Shared nav (menu) and footer styles.
   Loaded by _layouts/default.html (every page) and by map.html, so the menu
   and footer look and behave the same everywhere. Edit them here only.
   Every color has a fallback, because map.html defines its own color
   variables and doesn't load style.css. */

 /* ── NAV ── */
 nav {
 position: sticky; top: 0; z-index: 100;
 background: var(--deep, #082f3a);
 display: flex; align-items: center; justify-content: space-between;
 padding: 0 40px; height: 62px;
 box-shadow: 0 2px 12px rgba(0,0,0,0.18);
 }
 .nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
 .nav-logo img { width: 34px; height: auto; display: block; }
 .nav-logo span { font-family: 'Playfair Display', 'Playfair Display Fallback', serif; font-size: 17px; color: var(--white, #ffffff); letter-spacing: 0.3px; }
 .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
 .nav-hamburger {
 display: none;
 flex-direction: column;
 justify-content: center;
 gap: 5px;
 width: 40px;
 height: 40px;
 background: transparent;
 border: none;
 cursor: pointer;
 padding: 0;
 flex-shrink: 0;
 }
 .nav-hamburger span {
 display: block;
 width: 24px;
 height: 2.5px;
 background: var(--white, #ffffff);
 border-radius: 2px;
 margin: 0 auto;
 }
 .nav-links a {
 color: rgba(255,255,255,0.78); font-size: 13px; font-weight: 500;
 padding: 6px 10px; border-radius: 6px; text-decoration: none;
 transition: background 0.18s, color 0.18s;
 display: inline-flex; align-items: center; gap: 4px;
 }
 .nav-links a:hover { background: rgba(255,255,255,0.1); color: var(--white, #ffffff); }
 .nav-links a.active { color: var(--white, #ffffff); font-weight: 600; }
 .nav-links a.nav-cta {
 margin-left: 4px;
 }
 .nav-links a.nav-cta:hover { background: rgba(255,255,255,0.1); }
 .nav-links a.nav-cta-donate {
 background: var(--amber, #c8960c);
 color: var(--deep, #082f3a) !important;
 font-weight: 700;
 margin-left: 4px;
 }
 .nav-links a.nav-cta-donate:hover { background: #b5860b; color: var(--deep, #082f3a); }

 /* ── NAV DROPDOWN ── */
 .nav-dropdown { position: relative; display: inline-flex; }
 .nav-dropdown-toggle .caret { font-size: 10px; transition: transform 0.18s; }
 .nav-dropdown.open .nav-dropdown-toggle .caret { transform: rotate(180deg); }
 .nav-dropdown-menu {
 display: none; position: absolute; top: calc(100% + 8px); left: 0;
 background: var(--white, #ffffff); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.18);
 min-width: 190px; padding: 6px; z-index: 200;
 }
 .nav-dropdown.open .nav-dropdown-menu { display: block; }
 .nav-dropdown-menu a {
 display: block; color: var(--gray-1, #1a2e3b); font-size: 13.5px; font-weight: 500;
 padding: 9px 12px; border-radius: 7px; text-decoration: none;
 transition: background 0.15s;
 }
 .nav-dropdown-menu a:hover { background: var(--lt-teal, #e8f5f8); }
 .nav-dropdown-menu a.active { color: var(--dark-teal, #0e4a57); font-weight: 700; background: var(--lt-teal, #e8f5f8); }

 /* ── FOOTER ── */
 footer { background: var(--deep, #082f3a); color: rgba(255,255,255,0.6); text-align: center; padding: 32px 40px 24px; font-size: 13px; margin-top: 0px; }
 footer strong { color: rgba(255,255,255,0.9); font-family: 'Playfair Display', 'Playfair Display Fallback', serif; font-size: 19px; }
 footer p { margin-top: 8px; }
 .footer-brand-row { max-width: 960px; margin: 0 auto; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.12); }
 .footer-social { display: flex; gap: 8px; margin-top: 12px; justify-content: center; }
 .footer-social a { width: 28px; height: 28px; border-radius: 7px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; }
 .footer-social a:hover { background: var(--teal, #1a6b7a); color: white; }
 .footer-top { max-width: 960px; margin: 20px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
 .footer-col { text-align: center; }
 .footer-col-title { color: rgba(255,255,255,0.9); font-weight: 600; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 10px; }
 .footer-col a { display: block; color: inherit; text-decoration: none; padding: 4px 0; }
 .footer-col a:hover { opacity: 1; text-decoration: underline; }
 .footer-bottom { max-width: 960px; margin: 20px auto 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; }
 @media (max-width: 700px) {
   footer { padding-left: 24px; padding-right: 24px; }
   .footer-top { grid-template-columns: 1fr 1fr; }
 }

 @media (max-width: 600px) {
 nav { padding: 0 16px; }
 .nav-links a { padding: 6px 8px; font-size: 13px; }
 }

  @media (max-width: 760px) {
    nav {
      height: auto;
      min-height: 0;
      padding: 10px 16px;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      position: relative;
    }

    .nav-logo {
      gap: 8px;
    }

    .nav-logo span {
      white-space: nowrap;
      font-size: 16px;
      line-height: 1.2;
    }

    .nav-logo img {
      width: 28px;
      height: auto;
      flex-shrink: 0;
    }

    .nav-hamburger {
      display: flex;
    }

    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 2px;
      background: var(--deep, #082f3a);
      padding: 10px 16px 16px;
      box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }

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

    .nav-links a {
      white-space: normal;
      padding: 11px 8px;
      font-size: 15px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-links a.nav-cta {
      margin-left: 0;
      margin-top: 6px;
    }

    .nav-links a.nav-cta-donate {
      align-self: flex-start;
      margin-left: 0;
      margin-top: 8px;
      margin-bottom: 4px;
      justify-content: flex-start;
      padding: 10px 20px;
      border-radius: 8px;
      border-bottom: none;
    }

    .nav-dropdown-menu {
      left: 50%;
      transform: translateX(-50%);
    }
  }

  @media (max-width: 420px) {
    .nav-links a {
      font-size: 12.5px;
      padding: 6px 10px;
    }
  }
