/* ==========================================================================
   Grow512 - shared chrome (fonts, top bar, nav, footer, tap-to-open)
   Loaded on every page, including pages that carry their own inline CSS
   (case study, review calculator, lunch). Everything is namespaced g-.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Permanent Marker';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/permanent-marker-latin.woff2) format('woff2');
}

/* ---- Top bar ------------------------------------------------------------ */
.g-top {
  background: #2f6125;
  color: #FFFFFF;
  text-align: center;
  font: 600 15px/1.3 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 9px 16px;
  position: relative;
  z-index: 31;
}
.g-top a { color: #FFFFFF; text-decoration: none; }
.g-top a span { color: #FFE066; font-weight: 800; white-space: nowrap; }
.g-top a:hover span { text-decoration: underline; }

/* ---- Nav ---------------------------------------------------------------- */
.g-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #EEEEEE;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.g-nav__in {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 32px;
  position: relative;
}
.g-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1A1A1A;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.g-brand img { width: 40px; height: 40px; display: block; }
.g-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.g-links a {
  color: #1A1A1A;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.g-links a:hover,
.g-links a[aria-current="page"] { color: #3d7530; }
.g-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: #FFE066; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.g-lunch {
  display: inline-flex;
  align-items: center;
  background: #1A1A1A;
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.g-lunch:hover { background: #3d7530; }
.g-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid #1A1A1A;
  border-radius: 12px;
  background: #FFFFFF;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.g-toggle svg { width: 22px; height: 22px; }
.g-toggle .g-x { display: none; }
.g-nav.is-open .g-toggle .g-bars { display: none; }
.g-nav.is-open .g-toggle .g-x { display: block; }

@media (min-width: 1025px) and (max-width: 1120px) {
  .g-links { gap: 16px; }
  .g-links a { font-size: 15px; }
}

@media (max-width: 1024px) {
  .g-nav__in { padding: 12px 20px; gap: 12px; }
  .g-brand { font-size: 20px; }
  .g-brand img { width: 36px; height: 36px; }
  .g-lunch { margin-left: auto; padding: 10px 16px; font-size: 15px; }
  .g-toggle { display: inline-flex; }
  .g-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #EEEEEE;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .g-nav.is-open .g-links { display: flex; }
  .g-links a {
    display: block;
    font-size: 19px;
    padding: 14px 0;
    border-bottom: 1px solid #F0F0F0;
  }
  .g-links li:last-child a { border-bottom: 0; }
}

/* ---- Footer ------------------------------------------------------------- */
.g-foot {
  background: #F6F6F4;
  color: #3A3A3A;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  border-top: 1px solid #EAEAE6;
}
.g-foot__in { max-width: 1100px; margin: 0 auto; padding: 48px 32px 28px; }
.g-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.g-foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: #1A1A1A;
  text-decoration: none;
  margin-bottom: 14px;
}
.g-foot__brand img { width: 32px; height: 32px; }
.g-foot h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f6125;
  margin: 6px 0 14px;
}
.g-foot p, .g-foot li { font-size: 16px; line-height: 1.6; margin: 0; }
.g-foot ul { list-style: none; padding: 0; margin: 0; }
.g-foot li { margin-bottom: 6px; }
.g-foot a { color: #1A1A1A; text-decoration: none; }
.g-foot a:hover { color: #3d7530; text-decoration: underline; }
.g-foot__contact p { margin-bottom: 4px; }
.g-foot__social { display: flex; gap: 14px; margin-top: 12px; }
.g-foot__social a { font-weight: 700; }
.g-foot__trades {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #E4E4DE;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 16px;
}
.g-foot__trades span { font-weight: 800; color: #1A1A1A; }
.g-foot__bottom {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #5A5A5A;
}
.g-foot__bottom a { color: #5A5A5A; text-decoration: underline; }

@media (max-width: 900px) {
  .g-foot__grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .g-foot__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .g-foot__in { padding: 36px 20px 24px; }
}

/* ---- Tap-to-open (details) ---------------------------------------------- */
.g-tap { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.g-tap summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  font-weight: 650;
  font-size: 17px;
  line-height: 1.4;
}
.g-tap summary::-webkit-details-marker { display: none; }
.g-tap summary::after {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat;
  box-shadow: inset 0 0 0 1.5px currentColor;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.g-tap[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat;
  opacity: 0.9;
}
.g-tap__body {
  padding: 0 36px 16px 0;
  font-size: 16px;
  line-height: 1.6;
}
.g-tap__body p { margin: 0; }
.g-tap summary:focus-visible { outline: 3px solid #FFE066; outline-offset: 2px; }

@media (max-width: 400px) {
  .g-nav__in { padding: 10px 14px; gap: 10px; }
  .g-brand { font-size: 18px; gap: 8px; }
  .g-brand img { width: 32px; height: 32px; }
  .g-lunch { padding: 9px 14px; font-size: 14px; }
}
.g-toggle { box-sizing: border-box; font: inherit; color: #1A1A1A; }

/* ---- Match the original site's nav exactly (Nov 2026 rebuild kept these) --- */
.g-nav { border-bottom: 0.5px solid #EEEEEE; background: rgba(255, 255, 255, 0.95); }
.g-nav__in { padding: 20px 32px; gap: 32px; }
.g-brand img { width: 44px; height: 44px; }
.g-brand { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.g-links { gap: 32px; }
.g-links a { font-size: 17px; font-weight: 600; }
.g-links a[aria-current="page"] { color: #4A8B3A; text-decoration: none; }
.g-links a:hover { color: #4A8B3A; }
.g-lunch { background: #4A8B3A; font-weight: 600; font-size: 16px; padding: 10px 20px; }
.g-lunch:hover { background: #3d7530; }
@media (min-width: 1025px) and (max-width: 1120px) {
  .g-links { gap: 24px; }
  .g-links a { font-size: 17px; }
}
@media (max-width: 1024px) {
  .g-nav__in { padding: 14px 20px; gap: 12px; }
  .g-brand img { width: 40px; height: 40px; }
  .g-lunch { font-size: 15px; padding: 9px 16px; }
  .g-links { gap: 0; }
  .g-links a { font-size: 19px; }
}
@media (max-width: 400px) {
  .g-nav__in { padding: 12px 14px; gap: 10px; }
  .g-brand img { width: 34px; height: 34px; }
  .g-brand { font-size: 19px; }
  .g-lunch { padding: 8px 13px; font-size: 14px; }
}

/* footer: three ways in, one line */
.g-foot__intent { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid #E6E6E6; font-size: 16px; font-weight: 700; color: #1A1A1A; line-height: 1.6; }
.g-foot__intent a { color: #3d7530; text-decoration: underline; text-decoration-color: #FFE066; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.g-foot__intent a:hover { color: #1A1A1A; }

/* text-us bar: phones only (desktop has the nav pill and the hero pill) */
@media (min-width: 769px) { .g-top { display: none; } }

/* phones and tablets: "what it costs" beside the lunch button, no menu tap needed */
.g-costs { display: none; }
@media (max-width: 1024px) {
  .g-costs { display: inline-flex; align-items: center; margin-left: auto; padding: 9px 14px; border-radius: 999px; border: 2px solid #1A1A1A; color: #1A1A1A; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
  .g-lunch { margin-left: 0; }
}
@media (max-width: 420px) {
  .g-brand span { display: none; }
  .g-costs, .g-lunch { font-size: 14px; padding: 8px 12px; }
}

/* phones: one pill only. "what it costs" is a text link, the menu is just the icon */
@media (max-width: 1024px) {
  .g-costs { border: 0; padding: 8px 4px; font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: #FFE066; text-decoration-thickness: 3px; text-underline-offset: 4px; }
  .g-toggle { border: 0; background: transparent; width: 40px; height: 40px; }
  .g-toggle svg { width: 26px; height: 26px; }
}
@media (max-width: 420px) {
  .g-brand span { display: inline; }
  .g-costs { font-size: 14px; padding: 8px 2px; }
}
@media (max-width: 420px) { .g-brand span { display: none; } }

/* phones: the text-us bar stays pinned above the header */
@media (max-width: 768px) {
  .g-top { position: sticky; top: 0; z-index: 32; }
  .g-nav { top: 38px; }
}
