/* ==========================================================================
   Layout — the chrome shared by every page: sticky header, main navigation,
   footer, and the floating Instagram button.
   ========================================================================== */

/* Header and navigation --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(32, 79, 39, 0.12);
  background: rgba(248, 245, 237, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  align-self: stretch;
  width: 104px;
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: auto;
  height: 66px;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  position: relative;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: #49764c;
}

/* Gold underline that slides in for the current page or section.
   section-nav.js sets aria-current as you scroll the home page. */
nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

nav a[aria-current]::after {
  transform: scaleX(1);
}

/* Footer ------------------------------------------------------------------ */

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 6vw;
  background: #102d14;
  color: #bfcfbc;
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.footer-links a {
  text-underline-offset: 4px;
}

.footer-links a:hover {
  color: #fff;
}

/* Floating Instagram button ----------------------------------------------- */

.floating-instagram {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: linear-gradient(145deg, #275f2e, #153819);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 42, 18, 0.32);
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.floating-instagram svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.floating-instagram .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.floating-instagram:hover {
  background: linear-gradient(145deg, #d3ad55, #b88125);
  color: #153819;
  box-shadow: 0 16px 34px rgba(15, 42, 18, 0.4);
  transform: translateY(-50%) scale(1.06);
}

/* This button floats over cream, the yellow poster and the dark gallery, so a
   single colour cannot stay visible. The dark ring plus a cream halo keeps it
   legible on every one of them. */
.floating-instagram:focus-visible {
  outline: 3px solid var(--focus-on-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--cream);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
  }

  .brand {
    width: 90px;
  }

  .brand-icon {
    height: 58px;
  }

  nav {
    gap: 14px;
  }
}

/* Stack the logo above the nav once they no longer fit side by side. */
@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .floating-instagram {
    right: 10px;
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .floating-instagram svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-inline: 20px;
  }

  nav {
    gap: 10px;
    font-size: 0.8rem;
  }

  footer {
    flex-direction: column;
    padding-inline: 20px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  nav a::after,
  .floating-instagram {
    transition: none;
  }
}
