.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-solid,
.site-header:not(.is-home) {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header.is-home:not(.is-solid) {
  background: linear-gradient(to bottom, rgba(8, 6, 6, 0.55), rgba(8, 6, 6, 0));
}

.site-header.is-home:not(.is-solid) .nav-desktop a,
.site-header.is-home:not(.is-solid) .nav-desktop .nav-dropdown__toggle,
.site-header.is-home:not(.is-solid) .menu-toggle {
  color: var(--color-white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.site-header.is-home:not(.is-solid) .nav-desktop .nav-dropdown__menu a {
  color: var(--color-ink);
  text-shadow: none;
}

.site-header.is-home:not(.is-solid) .nav-desktop .nav-dropdown__menu a:hover,
.site-header.is-home:not(.is-solid) .nav-desktop .nav-dropdown__menu a.is-active {
  color: var(--color-red);
}

.header-inner {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand img {
  height: 4.62rem;
  width: auto;
  object-fit: contain;
  margin-top: 0.35rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav-desktop a {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--color-red);
}

.nav-desktop .nav-cta {
  background: var(--color-red);
  color: var(--color-white) !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
}

.nav-desktop .nav-cta:hover {
  background: var(--color-red-deep);
}

/* Desktop dropdowns */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: -0.1rem;
}

.nav-dropdown__toggle svg {
  transition: transform 0.2s var(--ease);
}

.nav-dropdown.is-open .nav-dropdown__toggle svg,
.nav-dropdown:hover .nav-dropdown__toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.35rem);
  min-width: 14rem;
  background: var(--color-white);
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.12);
  border: 1px solid rgba(26, 26, 26, 0.08);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 200;
  list-style: none;
  margin: 0;
}

.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 0.45rem solid transparent;
  border-bottom-color: var(--color-white);
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.is-active {
  background: var(--color-mist);
  color: var(--color-red);
}

.nav-desktop .nav-dropdown:hover .nav-dropdown__menu,
.nav-desktop .nav-dropdown.is-open .nav-dropdown__menu,
.nav-desktop .nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-desktop .nav-dropdown:hover .nav-dropdown__menu::after,
.nav-desktop .nav-dropdown.is-open .nav-dropdown__menu::after,
.nav-desktop .nav-dropdown:focus-within .nav-dropdown__menu::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--color-ink);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  margin-inline: auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.flyout-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 150;
}

.flyout-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.flyout {
  position: fixed;
  top: 0;
  right: 0;
  width: min(22rem, 88vw);
  height: 100%;
  background: var(--color-white);
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  padding: 4.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow-soft);
}

.flyout.is-open {
  transform: translateX(0);
}

.flyout-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-mist);
  color: var(--color-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.flyout-close:hover {
  background: var(--color-red);
  color: var(--color-white);
}

.flyout a {
  color: var(--color-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border);
}

.flyout a:hover,
.flyout a.is-active {
  color: var(--color-red);
}

/* Mobile flyout dropdowns */
.flyout-dropdown {
  display: flex;
  flex-direction: column;
}

.flyout-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.flyout-dropdown__header a {
  flex: 1;
  border-bottom: 0;
}

.flyout-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s var(--ease);
}

.flyout-dropdown__toggle svg {
  transition: transform 0.2s var(--ease);
}

.flyout-dropdown.is-open .flyout-dropdown__toggle svg {
  transform: rotate(180deg);
}

.flyout-dropdown__menu {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  list-style: none;
  margin: 0;
}

.flyout-dropdown.is-open .flyout-dropdown__menu {
  display: flex;
}

.flyout-dropdown__menu li {
  display: flex;
}

.flyout-dropdown__menu a {
  font-size: 1.15rem;
  padding: 0.45rem 0;
  border-bottom: 0;
}

.flyout .nav-cta {
  margin-top: 1.25rem;
  background: var(--color-red);
  color: var(--color-white) !important;
  text-align: center;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 2.85rem;
  height: 2.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-red);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-red-deep);
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top.is-visible[hidden] {
  display: inline-flex !important;
}

body.menu-open {
  overflow: hidden;
}

.site-main {
  min-height: 60vh;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: var(--space-6) 0;
}

.section--mist {
  background: var(--color-mist);
}

.section--forest {
  background: var(--color-forest);
  color: var(--color-white);
}

.section--forest a {
  color: #ffd0d2;
}

.section--forest a.btn--primary,
.section--forest a.btn--ghost {
  color: var(--color-white);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: var(--space-5);
}

.section-intro--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-intro p {
  color: var(--color-ink);
  font-size: inherit;
}

.section--forest .section-intro p {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.82);
  padding: var(--space-6) 0 var(--space-4);
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--font-size-h4);
  margin-bottom: 0.35rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.footer-social__link:hover {
  background: var(--color-red);
  color: var(--color-white);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-meta {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

.footer-meta a {
  color: #ffb4b7;
}

.footer-newsletter {
  display: grid;
  gap: 0.5rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.footer-newsletter .newsletter-form--compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  width: 100%;
}

.footer-newsletter .newsletter-form--compact .newsletter-form__fields {
  grid-template-columns: 1fr;
}

.site-footer .footer-newsletter .newsletter-form--compact .form-field input {
  color: var(--color-ink);
  background: var(--color-white);
}

.site-footer .footer-newsletter .newsletter-form--compact .form-field input::placeholder {
  color: var(--color-ink-muted);
}

.footer-newsletter .newsletter-form--compact .btn {
  width: 100%;
}

@media (min-width: 700px) {
  .footer-newsletter .newsletter-form--compact .newsletter-form__fields {
    grid-template-columns: 1fr;
  }

  .footer-newsletter .newsletter-form--compact .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav-desktop { display: flex; }
  .brand img {
    height: 4.98rem;
    width: auto;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 0.75fr 1.25fr 1fr;
    align-items: start;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .nav-desktop {
    gap: 0.85rem;
  }
  .nav-desktop a {
    font-size: 0.85rem;
  }
}

.footer-contact {
  font-size: 0.95rem;
}

.footer-contact p {
  margin: 0 0 0.5rem;
}
