/* Hi-Altitude Brands: shared styles for every page. No build step: edit and refresh.
   Values come from the live WordPress site (Elementor kit post-7.css).
   Root font-size is 10px, so 1rem = 10px, as on the live site. */

/* ---------- Fonts ----------
   Matter weight mapping copied from the live site: 100 Light, 400 Regular,
   500 SemiBold (!), 700 Bold. Headings use 500, which renders SemiBold. */
@font-face { font-family: "Matter"; src: url("/assets/fonts/MatterLight.woff2") format("woff2"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Matter"; src: url("/assets/fonts/MatterLightItalic.woff2") format("woff2"); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: "Matter"; src: url("/assets/fonts/MatterRegular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Matter"; src: url("/assets/fonts/MatterRegularItalic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Matter"; src: url("/assets/fonts/MatterSemiBold.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Matter"; src: url("/assets/fonts/MatterSemiBoldItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Matter"; src: url("/assets/fonts/MatterBold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Matter"; src: url("/assets/fonts/MatterBoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
/* Onest: Inspiro theme font, used only for the header nav links. */
@font-face { font-family: "Onest"; src: url("/assets/fonts/Onest-Var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #1D2225;          /* text, headings, button border, headline band */
  --teal: #55C9C4;
  --teal-light: #98DFDB;
  --mint: #CCF0E9;
  --accent: #F9B361;
  --peach: #F6C68D;
  --cream: #F5F2ED;
  --stone: #D8D8D2;
  --gray: #6E6F6A;
  --eyebrow-ink: #202020;
  --rule: #C4C4C4;
  --white: #FFFFFF;

  --font: "Matter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-nav: "Onest", var(--font);

  --content-max: 1140px;   /* 1024 tablet, 767 mobile: the viewport caps it */
  --gap: 20px;             /* Elementor default widget spacing */
  --header-h: 80px;
}
/* Breakpoints (Elementor): desktop >= 1025px, tablet 768-1024px, mobile <= 767px. */
@media (max-width: 1023px) { :root { --header-h: 70px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
@media (max-width: 768px) { body { font-size: 14px; } }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 0 0 15px; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--white); padding: 1rem 1.6rem; }
.skip-link:focus { left: 0; }

/* Eyebrow headings ("What We Do", "Our Approach", "Our Founders"). */
.eyebrow {
  font-size: 2.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  word-spacing: .2rem;
  text-align: center;
}
@media (max-width: 1024px) { .eyebrow { font-size: 22px; } }
@media (max-width: 767px)  { .eyebrow { font-size: 1.8rem; } }

/* ---------- Button ---------- */
.button {
  display: inline-block;
  background: transparent;
  border: 3px solid var(--ink);
  border-radius: 0;
  padding: 12px 24px;
  font: 500 16px/1 var(--font);
  text-transform: capitalize;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.button:hover, .button:focus-visible { background: var(--ink); color: var(--cream); }
.button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header (global) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--white);
  transition: transform .3s ease, background-color .5s;
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  height: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: block; line-height: 0; }
.brand img { height: 36px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 3rem; }
.site-nav a {
  font: 500 14px/1.2 var(--font-nav);
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav-toggle, .nav-close, .nav-backdrop { display: none; }

/* Tablet + mobile: hamburger left, logo centred, slide-in side nav. */
@media (max-width: 1024px) {
  .header-inner { display: grid; grid-template-columns: 44px 1fr 44px; }
  .brand { justify-self: center; max-width: 60%; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px 8px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle-bar { display: block; height: 2px; background: var(--ink); }

  .site-nav {
    position: fixed; inset: 0 auto 0 0; z-index: 60;
    width: min(320px, 85vw);
    background: var(--white);
    padding: 7rem 3rem 3rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, .15);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  .site-nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .site-nav ul { flex-direction: column; gap: 2.4rem; }
  .site-nav a { font-size: 18px; }

  .nav-close {
    display: block; position: absolute; top: 1.4rem; right: 1.4rem;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 0; cursor: pointer;
    font: 400 32px/1 var(--font); color: var(--ink);
  }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .4); }
  .nav-backdrop[hidden] { display: none; }
}

/* ---------- Footer (global) ---------- */
.site-footer { background: var(--white); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: var(--gap); padding-top: 5rem; padding-bottom: 3rem; }
.footer-logo { width: 324px; max-width: 80%; }
.footer-social { display: block; line-height: 0; }
.footer-social img { width: 34px; height: 34px; }
.footer-rule { width: 100%; height: 0; margin: 0; border: 0; border-top: 1px solid var(--rule); }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.4rem; justify-content: center; color: var(--gray); font-size: 1.4rem; }
.footer-copy { margin: 0; color: var(--gray); font-size: 1.4rem; }

/* ---------- Simple inner pages (Careers, Contact, 404) until their own tickets ---------- */
.page-section { padding-block: 6rem; }
.page-section.narrow { max-width: 640px; }
.page-section h1 { font-size: 4.5rem; margin-bottom: 2rem; }
.page-section h2 { font-size: 3rem; margin: 3rem 0 1.5rem; }
.lede { font-size: 2rem; line-height: 2.7rem; }

.roles { list-style: none; padding: 0; display: grid; gap: 1rem; }
.role { border: 1px solid var(--stone); padding: 2rem; }
.role-meta { color: var(--gray); }

/* Contact form */
.field { margin-bottom: 2rem; }
.field label { display: block; font-weight: 500; margin-bottom: .5rem; }
.field input, .field textarea { width: 100%; font: inherit; padding: 1rem 1.2rem; border: 1px solid var(--ink); border-radius: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin-bottom: 2rem; min-height: 65px; }
.form-status { min-height: 1.5em; margin-top: 1.5rem; }
.form-status.is-error { color: #B42318; }
.form-status.is-success { color: #067647; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- 404 page ---------- */
.not-found-band { background: var(--ink); color: var(--white); text-align: center; padding: 7rem 2rem; }
.not-found-code { margin: 0 0 1rem; font-size: 2.1rem; font-weight: 500; letter-spacing: 1px; color: var(--teal); }
.not-found-title { font-size: 7.2rem; line-height: 1.1; }
.not-found-title em { color: var(--teal); }
.not-found-body { text-align: center; padding-top: 5rem; padding-bottom: 7rem; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 3rem; }
@media (max-width: 1024px) { .not-found-title { font-size: 5.6rem; } }
@media (max-width: 767px) {
  .not-found-band { padding: 5rem 2rem; }
  .not-found-title { font-size: 4rem; }
  .not-found-links { flex-direction: column; }
  .not-found-links .button { width: 100%; }
}
