/* ============================================================
   Horizon Releaf — base: reset, type, chrome (util bar, nav,
   drawer, footer). Page sections live in home.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

:focus-visible {
  outline: 2px solid var(--act);
  outline-offset: 2px;
}

.container {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Display type: condensed Archivo, uppercase, tight. */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: .92;
}

/* Buttons — radius 8px, never pills. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--sun);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(14, 36, 54, .55);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--sun-hover); transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(14, 36, 54, .6); }
.btn-lg { padding: 20px 30px; font-size: 18px; gap: 10px; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arr { transition: none; } .btn:hover { transform: none; } .btn:hover .arr { transform: none; } }
.btn-sm { padding: 11px 18px; font-size: 15px; }

/* ---------- Utility bar ---------- */
.util {
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.util-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px;
}
.util a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.util a:hover { color: var(--act); }
@media (max-width: 719px) { .util { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 60;
  color: var(--navy);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  position: fixed;
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { height: 28px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 17px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-desc {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .8;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 519px) { .brand-desc { display: none; } }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger svg { width: 20px; height: 20px; }

@media (max-width: 899px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
}

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 16px var(--gutter) 40px;
}
.drawer[hidden] { display: none; }
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0 8px;
}
.drawer-close {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 24px;
}
.drawer-links a:not(.btn) {
  padding: 18px 2px;
  font-size: 22px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.drawer-links .btn { margin-top: 28px; align-self: stretch; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--navy-2);
  color: #fff;
  overflow: hidden;
  padding-top: clamp(56px, 8vw, 88px);
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .92);
}
.footer-col p { color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.65; max-width: 34ch; }
.footer-col .brand { margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  width: fit-content;
}
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-block: 18px;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
}
.footer-mark {
  position: relative;
  z-index: 0;
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 18vw;
  line-height: .78;
  white-space: nowrap;
  text-align: center;
  color: rgba(255, 255, 255, .08);
  transform: translateY(.22em);
  user-select: none;
}
@media (max-width: 899px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Original Horizon Releaf mark: gold sun is fixed; leaf + horizon line
   are forest green on light grounds and paper on dark (hero nav, footer). */
.brand-mark { --leaf: #1F3F1E; height: 40px; }
.brand-leaf { fill: var(--leaf); }
.brand-line { stroke: var(--leaf); }
.footer .brand-mark { --leaf: #FBF9F5; }
@media (max-width: 359px) { .btn-lg { padding: 18px 20px; font-size: 16px; white-space: nowrap; } }
