/* FRESH site header — the same look as the homepage header (hub/fresh-web, SiteHeader.astro and
   styles/theme.css): a white pill with the logo, the main navigation and a green pill button.
   Used by the nova calculator (site-header.jsx) and the contract success page
   (app/views/shared/_fresh_site_header.html.erb), so both stay in line with the homepage. */
/* Gabarito and Figtree: self-hosted in fonts/fonts.css (loaded by the layout) */

:root {
  --fs-green: #088141;
  --fs-green-h: #0a9b4e;
  --fs-muted: #5e7268;
}

.fs-hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px var(--gutter, 20px) 8px;
}

.fs-hdr-in {
  max-width: var(--maxw, 1240px);
  margin-inline: auto;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 22px -12px rgba(18, 33, 28, 0.28);
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 11px 12px 11px 26px;
}

.fs-brand img {
  height: 27px;
  width: auto;
  display: block;
}

.fs-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.fs-nav a {
  text-decoration: none;
  color: var(--fs-muted);
  padding-block: 6px;
}

.fs-nav a:hover {
  color: var(--fs-green);
}

.fs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--fs-green);
  color: #fff;
  text-decoration: none;
  font-family: "Gabarito", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}

.fs-btn:hover {
  background: var(--fs-green-h);
  transform: translateY(-1px);
}

.fs-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.fs-btn-out {
  background: #fff;
  color: #1d473e;
  box-shadow: inset 0 0 0 1.5px #dfe8e0;
}

.fs-btn-out:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--fs-green);
}

/* the calculator: only the logo, scrolls away with the page */
.fs-hdr-simple {
  position: static;
}

.fs-hdr-simple .fs-hdr-in {
  padding-block: 16px;
}

.fs-chat {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 0;
  background: #15803d;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  font-family: "Gabarito", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.fs-chat:hover {
  transform: scale(1.04);
}

@media (min-width: 980px) {
  .fs-chat {
    display: none;
  }
}

.fs-chat:focus-visible {
  outline: 3px solid #3bb944;
  outline-offset: 2px;
}

.fs-chat svg {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}

/* the calculator's progress, as a thin bar under the pill */
.fs-progress {
  max-width: var(--maxw, 1240px);
  margin: 10px auto 0;
  padding-inline: 26px;
}

.fs-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(8, 129, 65, 0.12);
  overflow: hidden;
}

.fs-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--fs-green);
  transition: width 380ms ease;
}

@media (max-width: 1000px) {
  .fs-nav {
    display: none;
  }

  .fs-hdr-in {
    justify-content: space-between;
    gap: 12px;
  }
}

/* on narrow screens the button has to fit next to the logo */
@media (max-width: 560px) {
  .fs-hdr-in {
    padding: 10px 10px 10px 18px;
  }

  .fs-hdr-in .fs-btn {
    font-size: 14.5px;
    padding: 11px 16px;
  }

  .fs-hdr-in .fs-btn svg {
    display: none;
  }
}
