/* Helm — shared nav + footer for non-home pages.
   Loaded after /styles.css so its rules win the cascade against the
   legacy .nav / .page-footer rules. The home page does NOT load this file
   (it has the same styles inlined). */

:root {
  --nav-charcoal: #1A1A2E;
  --nav-charcoal-hover: #2A2A3E;
  --nav-mid-gray: #6A6A70;
  --nav-soft-gray: #E0DFDB;
}

/* Hard reset on the legacy nav so its old rules can't bleed through. */
.nav, .nav-inner, .brand, .nav-links, .nav-links a, .menu-toggle,
.footer, .footer-top, .footer-brand, .footer-tag, .footer-copy,
.footer h5, .footer ul, .footer ul a {
  all: unset;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nav { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(26,26,46,.06); }
.nav-inner { display: flex; max-width: 1320px; margin: 0 auto; align-items: center; justify-content: space-between; padding: 24px 56px; }
@media (max-width:680px) { .nav-inner { padding: 18px 24px; } }
.brand { display: inline-flex; align-items: center; font-weight: 600; font-size: 19px; letter-spacing: .04em; color: var(--nav-charcoal); line-height: 1; cursor: pointer; }
.brand:hover { color: var(--nav-charcoal); }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--nav-charcoal); }
.nav-links a { display: inline-flex; align-items: center; line-height: 1; cursor: pointer; color: var(--nav-charcoal); }
.nav-links a:not(.btn) { position: relative; padding-bottom: 4px; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform .25s cubic-bezier(.2,.6,.2,1); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
/* Hamburger removed on mobile — Get in touch stays visible across all viewports. */
.menu-toggle { display: none !important; }
@media (max-width:680px) { .nav-links { gap: 16px; } }

/* Buttons used inside nav + mobile overlay */
.nav .btn, .mobile-overlay .btn { display: inline-flex; align-items: center; gap: 8px; padding: 17px 36px; border-radius: 0; font-weight: 500; font-size: 16px; line-height: 1; transition: transform .18s cubic-bezier(.2,.6,.2,1), background .2s ease, color .2s ease, border-color .2s ease; letter-spacing: .04em; white-space: nowrap; text-transform: uppercase; cursor: pointer; box-sizing: border-box; font-family: inherit; }
.nav .btn:active, .mobile-overlay .btn:active { transform: scale(.985); transition-duration: .08s; }
.nav .btn-dark, .mobile-overlay .btn-dark { background: var(--nav-charcoal); color: #fff; border: 0; }
.nav .btn-dark:hover, .mobile-overlay .btn-dark:hover { background: var(--nav-charcoal-hover); color: #fff; }
.nav .btn-line, .mobile-overlay .btn-line { background: transparent; color: var(--nav-charcoal); border: 1px solid var(--nav-charcoal); padding: 16px 35px; }
.nav .btn-line:hover, .mobile-overlay .btn-line:hover { background: var(--nav-charcoal); color: #fff; }
.nav .btn-sm, .mobile-overlay .btn-sm { padding: 11px 22px; font-size: 12.5px; }
.nav .btn-line.btn-sm, .mobile-overlay .btn-line.btn-sm { padding: 10px 21px; }

/* Mobile overlay */
.mobile-overlay { position: fixed; inset: 0; background: #fff; z-index: 40; padding: 96px 32px 32px; display: none; flex-direction: column; gap: 32px; }
.mobile-overlay.open { display: flex; }
.mobile-overlay > nav { display: flex; flex-direction: column; gap: 24px; font-size: 32px; font-weight: 500; margin: auto 0; letter-spacing: -0.018em; }
.mobile-overlay > nav a { color: var(--nav-charcoal); text-decoration: none; }

/* Footer — matches home page */
.footer { display: block; padding: 80px 0 80px; font-size: 13px; color: var(--nav-mid-gray); border-top: 1px solid var(--nav-soft-gray); background: #fff; box-sizing: border-box; }
.footer .wrap { display: block; max-width: 1320px; margin: 0 auto; padding: 0 56px; box-sizing: border-box; }
@media (max-width:680px) { .footer .wrap { padding: 0 24px; } }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; }
@media (max-width:880px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand { display: block; font-size: 22px; font-weight: 600; letter-spacing: .04em; color: var(--nav-charcoal); margin-bottom: 14px; }
.footer-tag { display: block; color: var(--nav-mid-gray); max-width: 280px; line-height: 1.65; margin: 0; }
.footer-copy { display: block; margin-top: 24px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--nav-mid-gray); }
.footer h5 { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--nav-mid-gray); margin: 0 0 18px; font-weight: 500; }
.footer ul { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; gap: 9px; color: var(--nav-charcoal); }
.footer ul li { display: block; }
.footer ul a { position: relative; display: inline-block; padding-bottom: 1px; color: var(--nav-charcoal); cursor: pointer; }
.footer ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform .25s cubic-bezier(.2,.6,.2,1); }
.footer ul a:hover::after { transform: scaleX(1); }
