/* =====================================================================
   NATI · Gracefully Growing: site header and footer
   The same markup on every page. Scoped to .nati-chrome so any theme
   around it is untouched.
   ===================================================================== */

@font-face { font-family: "NATI Marcellus"; src: url("fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NATI Parisienne"; src: url("fonts/parisienne-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NATI Hanken"; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NATI Hanken"; src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "NATI Hanken"; src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "NATI Mono"; src: url("fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

.nati-chrome {
  --canvas: #f7f5ee; --cream: #efebdf; --panel: #fbfaf5;
  --forest: #243d2b; --forest-2: #344b32; --sage: #929878; --sage-ink: #676d50;
  --gold: #c3ae70; --gold-deep: #74622a; --ink: #33342f; --ink-2: #5b5e50; --line: #d9d4c3; --line-strong: #8e8b78;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "NATI Marcellus", "Times New Roman", serif;
  --script: "NATI Parisienne", cursive;
  --sans: "NATI Hanken", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "NATI Mono", ui-monospace, monospace;
  --top: var(--wp-admin--admin-bar--height, 0px);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--forest);
  -webkit-font-smoothing: antialiased; letter-spacing: normal; text-transform: none; text-align: left;
}
.nati-chrome *, .nati-chrome *::before, .nati-chrome *::after { box-sizing: border-box; }
.nati-chrome :where(p, ul, li, nav, form) { margin: 0; padding: 0; }
.nati-chrome :where(ul) { list-style: none; }
.nati-chrome :where(a) { color: inherit; text-decoration: none; box-shadow: none; border: 0; }
.nati-chrome :where(img, svg) { display: block; max-width: 100%; height: auto; }
.nati-chrome :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-transform: none; letter-spacing: inherit; line-height: inherit; box-shadow: none; border-radius: 0; min-height: 0; width: auto; }
.nati-chrome :where(input) { font: inherit; color: inherit; margin: 0; }
.nati-chrome :focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }
.nati-chrome .nh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.nati-hd { position: relative; z-index: 90; transition: transform .55s var(--ease); }
.nati-hd .nh-bg { position: absolute; inset: 0; z-index: -1; background: rgba(247,245,238,.94); box-shadow: 0 1px 0 rgba(36,61,43,.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity .6s var(--ease); }
.nati-hd .nh-in { position: relative; max-width: 1440px; margin: 0 auto; height: 80px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 768px) { .nati-hd .nh-in { height: 92px; padding: 0 32px; } }

/* solid: every page except the homepage film */
.nati-hd.is-solid { position: relative; }
.nati-hd.is-solid.is-scrolled .nh-bg { box-shadow: 0 10px 30px -22px rgba(36,61,43,.45), 0 1px 0 rgba(36,61,43,.12); }

/* overlay: floats over the homepage film, clear until the film ends, out of the way while it plays */
.nati-hd.is-overlay { position: fixed; left: 0; right: 0; top: var(--top); }
.nati-hd.is-overlay .nh-bg { opacity: 0; }
.nati-hd.is-overlay.is-filled .nh-bg, .nati-hd.menu-open .nh-bg, .nati-hd.search-open .nh-bg { opacity: 1; }
.nati-hd.is-hidden { transform: translateY(calc(-100% - var(--top) - 4px)); }
.nati-hd.is-hidden.menu-open, .nati-hd.is-hidden.search-open, .nati-hd.is-hidden:focus-within { transform: none; }

.nati-hd .nh-nav { display: none; flex: 1; align-items: center; gap: 26px; font-size: .92rem; font-weight: 500; }
@media (min-width: 1024px) { .nati-hd .nh-nav { display: flex; } }
.nati-hd .nh-link { position: relative; padding: 6px 0; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.nati-hd .nh-link:hover, .nati-hd .nh-link[aria-current] { background-size: 100% 1px; }
.nati-hd .nh-item { position: relative; display: flex; align-items: center; gap: 4px; }
.nati-hd .nh-sub-tg { width: 24px; height: 28px; display: inline-grid; place-items: center; border-radius: 6px; color: var(--forest-2); }
.nati-hd .nh-sub-tg svg { transition: transform .4s var(--ease); }
.nati-hd .nh-item.open .nh-sub-tg svg { transform: rotate(180deg); }
.nati-hd .nh-sub { position: absolute; left: -24px; top: calc(100% + 18px); min-width: 280px; padding: 18px 10px 12px; border-radius: 18px;
  background: var(--panel); box-shadow: 0 30px 60px -30px rgba(36,61,43,.45), 0 0 0 1px rgba(36,61,43,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.nati-hd .nh-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.nati-hd .nh-item.open .nh-sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .nati-hd .nh-item:hover .nh-sub { opacity: 1; visibility: visible; transform: none; } .nati-hd .nh-item:hover .nh-sub-tg svg { transform: rotate(180deg); } }
.nati-hd .nh-sub li a { display: block; padding: 9px 14px; border-radius: 10px; font-family: var(--display); font-size: 1.15rem; color: var(--forest); transition: background-color .3s var(--ease); }
.nati-hd .nh-sub li a:hover, .nati-hd .nh-sub li a[aria-current] { background: var(--cream); }
.nati-hd .nh-sub-all { display: block; margin: 8px 14px 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--gold-deep); }

.nati-hd .nh-logo { flex: 0 0 auto; display: block; }
.nati-hd .nh-logo img { height: 62px; width: auto; }
@media (min-width: 768px) { .nati-hd .nh-logo img { height: 72px; } }
.nati-hd .nh-act { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: .92rem; font-weight: 500; }
.nati-hd .nh-ico { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; min-width: 44px; justify-content: center; padding: 0 10px; border-radius: 999px; transition: background-color .3s var(--ease); }
.nati-hd .nh-ico:hover { background: rgba(36,61,43,.06); }
.nati-hd .nh-ico .t { display: none; }
@media (min-width: 1280px) { .nati-hd .nh-ico .t { display: inline; } }
.nati-hd .nh-hide-sm { display: none; }
@media (min-width: 768px) { .nati-hd .nh-hide-sm { display: inline-flex; } }
.nati-hd .nh-badge { position: absolute; left: 22px; top: 2px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; background: var(--forest); color: var(--canvas); font-size: .7rem; font-weight: 600; line-height: 20px; text-align: center; opacity: 0; transform: scale(.6); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.nati-hd .nh-badge.on { opacity: 1; transform: none; }
.nati-hd .nh-badge.bump { animation: nati-bump .6s var(--ease); }
@keyframes nati-bump { 35% { transform: scale(1.35); } }

.nati-hd .nh-burger { order: -1; display: inline-flex; flex: 1; justify-content: flex-start; height: 44px; align-items: center; padding-left: 6px; }
.nati-hd .nh-burger i { position: relative; width: 24px; height: 12px; display: block; }
.nati-hd .nh-burger i::before, .nati-hd .nh-burger i::after { content: ""; position: absolute; left: 0; width: 24px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.nati-hd .nh-burger i::before { top: 0; } .nati-hd .nh-burger i::after { top: 11px; }
.nati-hd.menu-open .nh-burger i::before { top: 5.5px; transform: rotate(45deg); }
.nati-hd.menu-open .nh-burger i::after { top: 5.5px; transform: rotate(-45deg); }
@media (min-width: 1024px) { .nati-hd .nh-burger { display: none; } }
@media (max-width: 1023.98px) { .nati-hd .nh-act { flex: 1; } }

/* search */
.nati-hd .nh-search { position: relative; border-top: 1px solid rgba(36,61,43,.1); }
.nati-hd .nh-search form { max-width: 820px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 10px; color: var(--forest); }
.nati-hd .nh-search input[type=search] { flex: 1; min-width: 0; min-height: 48px; padding: 0 6px; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important;
  font-family: var(--display); font-size: 1.35rem; color: var(--forest); }
.nati-hd .nh-search input::placeholder { color: var(--ink-2); opacity: .8; }
.nati-hd .nh-btn { min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--forest); color: var(--canvas); font-weight: 600; font-size: .9rem; }
.nati-hd .nh-x { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; }
.nati-hd .nh-x:hover { background: rgba(36,61,43,.06); }

/* mobile menu */
.nati-hd .nh-mnav { position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--top) + 80px); z-index: -2; background: var(--canvas); padding: 12px 24px 40px; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s; }
@media (min-width: 768px) { .nati-hd .nh-mnav { top: calc(var(--top) + 92px); } }
.nati-hd.menu-open .nh-mnav { opacity: 1; visibility: visible; transform: none; }
.nati-hd .nh-mnav .mn-top { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--forest); padding: 14px 0; border-bottom: 1px solid var(--line); }
.nati-hd .nh-mnav .mn-kids { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.nati-hd .nh-mnav .mn-kids a { padding: 8px 0; font-size: .98rem; color: var(--ink); }
.nati-hd .nh-mnav .mn-util { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 24px; }
.nati-hd .nh-mnav .mn-util a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: .9rem; }
@media (min-width: 1024px) { .nati-hd .nh-mnav { display: none; } }
html.nati-lock { overflow: hidden; }

/* sticky header inside block themes: the template part wrapper carries it */
.nati-hd-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 90; margin: 0 !important; }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

/* ---------- footer ---------- */
.nati-ft { background: var(--forest); color: var(--canvas); }
.nati-ft .nf-top { display: grid; gap: 56px; padding: 80px 20px 40px; max-width: 1440px; margin: 0 auto; }
@media (min-width: 768px) { .nati-ft .nf-top { padding: 88px 40px 48px; } }
@media (min-width: 1024px) { .nati-ft .nf-top { grid-template-columns: 1.1fr 2fr; } }
.nati-ft .nf-brand img { height: 112px; width: auto; }
.nati-ft .nf-brand p { margin-top: 24px; max-width: 24rem; color: rgba(247,245,238,.8); line-height: 1.6; }
.nati-ft .nf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (min-width: 640px) { .nati-ft .nf-cols { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.nati-ft .nf-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.nati-ft li + li { margin-top: 10px; }
.nati-ft .nf-link { color: rgba(247,245,238,.85); font-size: .95rem; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease), color .3s; }
.nati-ft .nf-link:hover { background-size: 100% 1px; color: var(--canvas); }
.nati-ft .nf-bot { border-top: 1px solid rgba(247,245,238,.15); }
.nati-ft .nf-bot > div { max-width: 1440px; margin: 0 auto; padding: 24px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; font-size: .82rem; color: rgba(247,245,238,.7); }
@media (min-width: 768px) { .nati-ft .nf-bot > div { padding: 24px 40px; } }
.nati-ft .nf-script { font-family: var(--script); font-size: 1.4rem; color: var(--gold); }
.nati-ft .nf-notice { background: var(--cream); color: var(--ink-2); text-align: center; font-size: .8rem; padding: 12px 16px; }

/* ---------- toast (shared by every page) ---------- */
.nati-toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, calc(100% + 48px)); visibility: hidden; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  background: var(--forest); color: var(--canvas); border-radius: 999px; padding: 10px 10px 10px 22px; box-shadow: 0 20px 40px -20px rgba(20,32,22,.6); font-size: .92rem;
  transition: transform .6s var(--ease), visibility 0s linear .6s; }
.nati-toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
.nati-toast a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--canvas); color: var(--forest); font-weight: 600; font-size: .85rem; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .nati-chrome *, .nati-chrome *::before, .nati-chrome *::after, .nati-hd, .nati-toast { transition-duration: .01ms !important; animation: none !important; }
}
