/* Shared header, footer and contact band for every page.
   Linked last in <head>; the markup is stamped by scripts/sync-nav.mjs.
   Colors and fonts come from the :root variables each page already defines. */

/* ── Header ───────────────────────────────── */
header.site {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 244, 237, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
}
header.site .nav {
  min-height: 76px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 0;
}
header.site .brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
header.site .brand-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--sage-deep);
  letter-spacing: 0.005em;
  line-height: 1;
}
header.site .brand-loc {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 500;
  display: none;
}
@media (min-width: 1200px) { header.site .brand-loc { display: inline; } }

header.site .nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--sage);
}
header.site .nav-links a { font-size: inherit; transition: color 160ms ease; }
header.site .nav-links a:hover,
header.site .nav-links a.active { color: var(--coral); }

header.site .lang-switch {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--hairline);
  color: var(--sage-soft);
}
header.site .lang-switch a {
  color: var(--sage-soft);
  padding: 0 6px;
  transition: color 160ms ease;
  text-decoration: none;
}
header.site .lang-switch a:hover { color: var(--coral); }
header.site .lang-switch a.active { color: var(--sage-deep); font-weight: 600; }
header.site .lang-switch .sep { color: var(--hairline); margin: 0 2px; }

header.site .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
header.site .nav-book {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
header.site .nav-book:hover { background: var(--coral-deep); transform: translateY(-1px); }

header.site .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sage-deep);
  cursor: pointer;
}
header.site .nav-toggle svg { width: 24px; height: 24px; }
header.site .nav-toggle .icon-close { display: none; }
header.site.open .nav-toggle .icon-open { display: none; }
header.site.open .nav-toggle .icon-close { display: block; }

/* The full bar needs about 960px (1020px once Extras is added), so the menu
   takes over at 1040px and the bar tightens its gaps below 1200px. */
@media (max-width: 1199px) {
  header.site .nav,
  header.site .nav-links { gap: 22px; }
}
@media (max-width: 1040px) {
  header.site .nav { min-height: 60px; gap: 12px; }
  header.site .brand-name { font-size: 1.3rem; }
  header.site .nav-book { padding: 9px 18px; font-size: 0.7rem; }

  /* With JavaScript: links collapse into a panel under the bar. */
  .js header.site .nav-toggle { display: inline-flex; }
  .js header.site .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 4px 20px 22px;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-soft);
    font-size: 0.86rem;
  }
  .js header.site.open .nav-links { display: flex; }
  .js header.site .nav-links > a {
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline-soft);
  }
  .js header.site .lang-switch {
    margin: 18px 0 0;
    padding-left: 0;
    border-left: 0;
    font-size: 0.82rem;
  }
  .js header.site .lang-switch a { padding: 6px 10px; }
  .js header.site .lang-switch a:first-child { padding-left: 0; }

  /* Without JavaScript: links wrap onto a row under the bar. */
  html:not(.js) header.site .nav { flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) header.site .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-left: 0;
    font-size: 0.74rem;
  }
}

/* ── Contact band (home pages) ────────────── */
.contact-band {
  background: var(--paper);
  border-top: 1px solid var(--hairline-soft);
  text-align: center;
  padding: clamp(56px, 7vw, 92px) 0;
  scroll-margin-top: 60px;
}
.contact-band .wrap { max-width: 720px; }
.contact-band h2 { margin-bottom: 14px; }
.contact-band p { max-width: 52ch; margin: 0 auto 26px; }
.contact-band .contact-email {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border: 1px solid var(--sage);
  border-radius: 999px;
  color: var(--sage-deep);
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  overflow-wrap: anywhere;
}
.contact-band .contact-email:hover { background: var(--sage); color: var(--paper); }
.contact-band .contact-meta {
  margin: 26px auto 0;
  font-size: 0.92rem;
  color: var(--sage-soft);
}
.contact-band .contact-meta a {
  color: var(--sage);
  border-bottom: 1px solid var(--hairline);
  transition: color 160ms ease, border-color 160ms ease;
}
.contact-band .contact-meta a:hover { color: var(--coral); border-color: var(--coral); }

/* ── AI rendering label on generated photos ─ */
.feature-img { position: relative; }
.ai-note {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 20px);
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(20, 24, 14, 0.62);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.68rem;
  line-height: 1.2;
  pointer-events: none;
}
.ai-pill {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--sage-deep);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ai-caption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Footer ───────────────────────────────── */
footer.site {
  padding: 56px 0 64px;
  background: var(--cream);
  border-top: 1px solid var(--hairline-soft);
}
footer.site .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
footer.site .footer-brand img { height: 88px; width: auto; margin-bottom: 16px; }
footer.site .footer-brand p { font-size: 0.92rem; max-width: 36ch; }
footer.site .footer-brand p a { color: var(--coral); }
footer.site .footer-col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-soft);
  font-weight: 600;
  margin: 0 0 14px;
}
footer.site .footer-col a,
footer.site .footer-col .footer-line {
  display: block;
  color: var(--sage);
  font-size: 0.94rem;
  padding: 4px 0;
}
footer.site .footer-col a { transition: color 160ms ease; overflow-wrap: anywhere; }
footer.site .footer-col a:hover { color: var(--coral); }
footer.site .footer-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--sage-soft);
}
@media (max-width: 1040px) {
  footer.site .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  footer.site .footer-grid { grid-template-columns: 1fr; }
}
.contact-band .contact-email + .contact-email { margin-left: 10px; }
@media (max-width: 560px) { .contact-band .contact-email + .contact-email { margin-left: 0; margin-top: 10px; } }
