/* LiveNowSF — shared styles.
   Most of each page's styling lives inline on its elements, exactly as designed.
   This file holds the fonts, page basics, and the rules that change by screen size. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* The LiveNowSF wordmark, top left and in the footer */
.brand {
  font-family: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: #1d1612;
}

:root {
  /* The orange on every "Let's talk" button. Change it here to change it everywhere. */
  --accent: #ff5b2e;
}

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

html {
  background: #fff7ea;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #1f3a8a;
  outline-offset: 3px;
}

.nav-links a:hover,
footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Menu and footer links get a thumb-sized tap area without changing how they look */
.nav-links a,
header > .brand,
footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

footer nav {
  row-gap: 0 !important;
}

/* Menu button: phones only */
.nav-toggle {
  display: none;
}

/* The three floating cards in the home page hero are hidden on smaller screens */
@media (max-width: 960px) {
  .hero-float {
    display: none;
  }
}

@media (max-width: 720px) {
  header {
    position: relative;
    gap: 12px !important;
  }

  header > a:last-of-type {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid #1d1612;
    border-radius: 999px;
    background: transparent;
    color: #1d1612;
    cursor: pointer;
  }

  .nav-links {
    display: none !important;
  }

  .nav-links.is-open {
    display: flex !important;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    gap: 0 !important;
    padding: 8px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(29, 22, 18, 0.08), 0 28px 64px rgba(29, 22, 18, 0.18);
  }

  .nav-links.is-open a {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 17px;
  }
}

/* Smallest phones: tighten the header so the menu button stays on screen */
@media (max-width: 380px) {
  header {
    gap: 8px !important;
  }

  header > .brand {
    font-size: 22px !important;
  }

  header > a:last-of-type {
    padding: 0 14px !important;
  }

  header > a:last-of-type svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
