/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* =============================================================
   NLSM Design System — applied globally (inner pages + shared)
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --navy-dark:    #091422;
  --navy:         #0d1b2a;
  --navy-mid:     #152640;
  --navy-light:   #1e3a5f;
  --gold:         #c9a84c;
  --gold-light:   #e8c97a;
  --gold-pale:    #f5edcf;
  --cream:        #f5f0e8;
  --cream-dark:   #ede6d6;
  --text-dark:    #1a1a2e;
  --text-body:    #374151;
  --text-muted:   #6b7280;
  --text-light:   #e8dfc9;
  --text-lighter: #a0aec0;
  --white:        #ffffff;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.18);
  --transition:   0.25s ease;
  --max-width:    1200px;
  --nav-height:   72px;
}

/* ---------- Base Typography (inner pages only — excludes nav + footer) ---------- */
body:not(.nlsm-homepage) {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}
/* Scoped to main content only — not nav or footer */
body:not(.nlsm-homepage) main h1,
body:not(.nlsm-homepage) main h2,
body:not(.nlsm-homepage) main h3,
body:not(.nlsm-homepage) main h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  line-height: 1.2;
}

/* ---------- Shared button classes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold  { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-dark); }
.btn-navy  { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* =============================================================
   NAV — header.php (inner pages) + front-page.php (homepage)
   ============================================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

/* Inner-page variant: always opaque navy */
.site-nav.site-nav--inner {
  background: var(--navy-dark) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
  padding: 0;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* ---------- Main nav links ---------- */
.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

/* wp_nav_menu outputs: <nav class="nav-links"><ul id="menu-main" class="nav-links-list">...</ul></nav> */
.nav-links ul.nav-links-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links ul.nav-links-list > li {
  position: relative;
}

.nav-links ul.nav-links-list > li > a {
  display: block;
  padding: 8px 12px;
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85) !important;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links ul.nav-links-list > li > a:hover,
.nav-links ul.nav-links-list > li.current-menu-item > a,
.nav-links ul.nav-links-list > li.current-menu-ancestor > a {
  color: var(--gold-light) !important;
  text-decoration: none !important;
}

/* Donate item — gold CTA pill (targets menu-item-427 in this site's menu) */
.nav-links ul.nav-links-list > li.menu-item-427 > a,
.nav-links ul.nav-links-list > li.menu-item-donate > a,
.nav-links ul.nav-links-list > li > a.nav-cta {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 8px 18px;
  font-weight: 600;
  border-radius: var(--radius);
}
.nav-links ul.nav-links-list > li.menu-item-427 > a:hover,
.nav-links ul.nav-links-list > li.menu-item-donate > a:hover,
.nav-links ul.nav-links-list > li > a.nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy-dark) !important;
  text-decoration: none !important;
}

/* ---------- Dropdowns ---------- */
.nav-links ul.nav-links-list .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--navy-dark);
  border: 1px solid var(--navy-mid);
  border-radius: var(--radius-lg);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
}

.nav-links ul.nav-links-list li:hover > .sub-menu,
.nav-links ul.nav-links-list li:focus-within > .sub-menu {
  display: block;
}

.nav-links ul.nav-links-list .sub-menu li a {
  display: block;
  padding: 9px 20px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none !important;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links ul.nav-links-list .sub-menu li a:hover {
  color: var(--gold-light) !important;
  background: rgba(255,255,255,0.06);
  text-decoration: none !important;
}

/* ---------- Hamburger ---------- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Body offset for fixed nav ---------- */
body:not(.nlsm-homepage) #content,
body:not(.nlsm-homepage) > main {
  padding-top: var(--nav-height);
}

/* =============================================================
   FOOTER
   NOTE: parent theme (header-footer.css) declares
         .site-footer .footer-inner { display: flex; }
         We must match or exceed that specificity (0,0,2,0).
   ============================================================= */

/* Override parent theme's .site-footer padding and footer-inner flex */
.site-footer {
  background: var(--navy-dark) !important;
  color: var(--text-light);
  margin-top: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-block-start: 0 !important;
  padding-block-end: 0 !important;
}

/* Override parent theme's .site-footer .footer-inner { display: flex; flex-wrap: wrap; } */
.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid !important;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
  /* Reset parent theme flex properties */
  flex-wrap: unset;
  justify-content: unset;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo-img { height: 56px; width: auto; display: block; }
.footer-tagline {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Footer headings — use !important to override
   body:not(.nlsm-homepage) h4 { color: var(--text-dark); } (specificity 111)
   which would otherwise make them invisible on the dark background */
.site-footer .footer-col h4 {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin: 0 0 16px;
  line-height: 1.4;
}

.footer-col ul,
.footer-col ul.footer-nav-list { list-style: none; margin: 0; padding: 0; }
.footer-col ul li,
.footer-col ul.footer-nav-list li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 6px;
}
.site-footer .footer-col ul li a,
.site-footer .footer-col ul.footer-nav-list li a {
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none !important;
  transition: color var(--transition);
}
.site-footer .footer-col ul li a:hover,
.site-footer .footer-col ul.footer-nav-list li a:hover {
  color: var(--gold-light) !important;
  text-decoration: none !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
}
.footer-bottom .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom small { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.footer-privacy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4) !important;
  text-decoration: none !important;
  transition: color var(--transition);
}
.footer-privacy:hover { color: var(--gold-light) !important; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }

  .nav-links ul.nav-links-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }
  .nav-links ul.nav-links-list > li > a {
    font-size: 1.1rem !important;
    padding: 14px 24px !important;
    text-align: center;
  }
  .nav-links ul.nav-links-list .sub-menu {
    position: static;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-links ul.nav-links-list .sub-menu li a {
    font-size: 0.9rem !important;
    padding: 8px 24px !important;
    text-align: center;
    color: rgba(255,255,255,0.6) !important;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 40px;
    padding: 48px 24px 40px;
  }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 600px) {
  .footer-cols { grid-template-columns: 1fr; }
}
