/* Nevarino shared site header and footer. Independent of homepage style.css. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Kalam:wght@400;700&family=Poppins:wght@500;600;700&display=swap');

.nv-site-header, .nv-site-footer { box-sizing:border-box; background:#f6f0e7; color:#153f37; font-family:'DM Sans',Arial,sans-serif; }
.nv-site-header *, .nv-site-footer * { box-sizing:border-box; }
.nv-site-header a, .nv-site-footer a { color:inherit; text-decoration:none; }
.nv-site-header a:hover, .nv-site-footer a:hover { opacity:.75; }
.nv-site-header { width:100%; position:relative; z-index:50; }
.nv-site-header__inner { width:min(100% - 48px, 1240px); min-height:100px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.nv-site-header__brand { display:flex; flex:0 0 auto; align-items:center; }
.nv-site-header__brand img { display:block; width:200px; max-width:100%; height:auto; }
.nv-site-header__desktop-nav { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:clamp(12px,1.7vw,26px); font-size:22px; font-weight:600; }
.nv-site-header__desktop-nav a { white-space:nowrap; }
.nv-site-header__donate { display:inline-flex; flex:0 0 auto; justify-content:center; align-items:center; min-height:44px; padding:11px 24px; background:#153f37; color:#fff!important; border-radius:20px; font-size:15px; font-weight:700; }
.nv-site-header__mobile-menu { display:none; }

.nv-site-footer { width:100%; margin-top:0; padding:20px 0 12px; }
.nv-site-footer__inner { width:min(100% - 48px, 1120px); margin:auto; }
.nv-site-footer__columns { display:grid; grid-template-columns:1.35fr 1fr 1fr; gap:24px; padding-bottom:12px; }
.nv-site-footer__identity img { display:block; width:200px; max-width:100%; height:auto; }
.nv-site-footer__slogan { margin:12px 0 0; font:400 18px/1.4 'Kalam',cursive; }
.nv-site-footer__links { display:flex; flex-direction:column; align-items:flex-start; gap:0px; font-size:17px; }
.nv-site-footer__links h2 { margin:0 0 10px; font:600 20px/1.4 'Poppins',sans-serif; color:#153f37; }
.nv-site-footer__bottom { border-top:1px solid rgba(21,63,55,.22); display:flex; justify-content:space-between; gap:20px; padding:13px 0 0; font:400 14px/1.5 'Kalam',cursive; }
/* Avoid the theme's default gap between content and footer. */
body .wp-site-blocks > footer.wp-block-template-part { margin-block-start:0; }

@media (max-width:1050px) {
  .nv-site-header__inner { min-height:82px; }
  .nv-site-header__brand img { width:175px; }
  .nv-site-header__desktop-nav { gap:12px; font-size:13px; }
  .nv-site-header__donate { padding:10px 18px; font-size:13px; }
}
@media (max-width:850px) {
  .nv-site-header__inner { width:min(100% - 32px, 1240px); min-height:76px; }
  .nv-site-header__brand img { width:175px; }
  .nv-site-header__desktop-nav, .nv-site-header__donate { display:none; }
  .nv-site-header__mobile-menu { display:block; margin-left:auto; position:relative; }
  .nv-site-header__mobile-menu summary { display:flex; width:44px; height:44px; flex-direction:column; justify-content:center; align-items:center; gap:5px; cursor:pointer; list-style:none; }
  .nv-site-header__mobile-menu summary::-webkit-details-marker { display:none; }
  .nv-site-header__mobile-menu summary span { display:block; width:23px; height:2px; background:#153f37; border-radius:2px; }
  .nv-site-header__mobile-menu nav { position:absolute; right:0; top:calc(100% + 12px); width:min(290px,calc(100vw - 32px)); display:flex; flex-direction:column; gap:0; padding:10px 18px; background:#f6f0e7; box-shadow:0 10px 28px rgba(21,63,55,.18); border:1px solid rgba(21,63,55,.12); border-radius:12px; }
  .nv-site-header__mobile-menu nav a { padding:11px 4px; font-size:15px; font-weight:600; }
  .nv-site-footer__columns { gap:28px; }
}
@media (max-width:620px) {
  .nv-site-footer { padding:30px 0 16px; }
  .nv-site-footer__inner { width:calc(100% - 40px); }
  .nv-site-footer__columns { grid-template-columns:1fr 1fr; gap:32px 20px; }
  .nv-site-footer__identity { grid-column:1 / -1; }
  .nv-site-footer__bottom { flex-wrap:wrap; }
}

/* Support CTA inside the mobile navigation only. */
@media (max-width:850px) {
  .nv-site-header__mobile-menu nav a.nv-site-header__mobile-donate {
    display:flex; align-items:center; justify-content:center;
    min-height:44px; margin:10px 0 4px; padding:11px 16px;
    background:#153f37; color:#fff!important; border-radius:20px;
    font-size:15px; font-weight:700; text-align:center;
  }
}
