/* =========================================================
   Shared site theme – header, footer & colour theme
   (copied from index.html / styles1.css "Modern Emerald")
   Used by every page except index.html.
   ========================================================= */
:root {
  --st-ink: #102b27;
  --st-ink-2: #173b35;
  --st-ink-3: #245249;
  --st-gold: #b28b4c;
  --st-gold-light: #d6b471;
  --st-serif: "Libre Caslon Display", Georgia, serif;
  --st-sans: "DM Sans", Arial, sans-serif;
  --st-ease: cubic-bezier(.2, .75, .25, 1);
  --st-gutter: clamp(20px, 4vw, 72px);
}

html body {
  font-family: var(--st-sans);
  -webkit-font-smoothing: antialiased;
}
html body h1, html body h2 {
  font-family: var(--st-serif);
  font-weight: 400;
  letter-spacing: -.01em;
}
body.menu-open { overflow: hidden; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  padding: 10px 14px; color: var(--st-ink); background: #fff; border-radius: 2px;
}
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */
html body header.site-header {
  position: sticky;
  top: 0;
  inset: auto;
  z-index: 1000;
  height: 84px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: #0b2723;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: var(--st-sans);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.6;
}
html body header.site-header.is-scrolled { height: 76px; background: rgba(11,39,35,.98); }
.site-header .header-inner {
  width: min(calc(100% - 36px), 1380px);
  max-width: none;
  height: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.site-header .brand,
.site-footer .brand {
  display: inline-flex; align-items: center; gap: 12px; min-width: 0;
  color: #fff; text-decoration: none; border: 0; padding: 0; margin: 0;
}
.site-header .brand img,
.site-footer .brand img {
  display: block;
  width: 350px;
  max-width: min(350px, 62vw);
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

.site-header .primary-nav {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(18px, 2.2vw, 38px);
  margin: 0;
  padding: 0;
  max-height: none;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
}
.site-header .primary-nav a {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: none;
  text-decoration: none;
  font-family: var(--st-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: none;
  opacity: 1;
}
.site-header .primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -7px;
  width: auto;
  height: 1px;
  background: var(--st-gold-light);
  transition: right .25s var(--st-ease);
}
.site-header .primary-nav a:hover { color: #fff; }
.site-header .primary-nav a:hover::after { right: 0; }
.site-header .primary-nav a.nav-cta {
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: none;
}
.site-header .primary-nav a.nav-cta:hover { background: #fff; color: var(--st-ink); }

.site-header .menu-toggle {
  display: none;
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font: inherit;
}
.site-header .menu-toggle span::before,
.site-header .menu-toggle span::after { content: none; display: none; }
.site-header .menu-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.site-header .menu-icon { position: static; width: 26px; height: 18px; display: grid; align-content: center; gap: 6px; background: none; transform: none; }
.site-header .menu-icon i { display: block; width: 100%; height: 1px; background: currentColor; transition: transform .25s ease; }
.site-header .menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header .menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .site-header .primary-nav { gap: 18px; }
}

@media (max-width: 900px) {
  html body header.site-header,
  html body header.site-header.is-scrolled { height: 72px; background: #0b2723; }

  .site-header .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 9px 0 9px 9px;
    cursor: pointer;
  }

  .site-header .primary-nav,
  .site-header .primary-nav.open {
    position: fixed;
    top: 72px; right: 0; bottom: 0; left: 0;
    height: calc(100dvh - 72px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 26px 20px 60px;
    overflow-y: auto;
    background: #0b2723;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
    z-index: 999;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s var(--st-ease), visibility .35s;
  }
  .site-header .primary-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-header .primary-nav a {
    display: block;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
    font-family: var(--st-serif);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0;
  }
  .site-header .primary-nav a::after { display: none; }
  .site-header .primary-nav a.nav-cta {
    margin-top: 24px;
    border: 1px solid rgba(255,255,255,.35);
    padding: 16px;
    text-align: center;
    font-family: var(--st-sans);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
  }
}
@media (max-width: 640px) {
  .site-header .header-inner { width: calc(100% - 28px); }
  .site-header .brand img { max-width: min(260px, 60vw); }
}

/* ---------- Footer ---------- */
html body footer.site-footer {
  position: static;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  max-width: none;
  width: auto;
  text-align: left;
  color: rgba(255,255,255,.74);
  background: #061916;
  font-family: var(--st-sans);
  font-size: 1rem;
  line-height: 1.6;
}
.site-footer .container-wide {
  width: min(100% - (var(--st-gutter) * 2), 1320px);
  margin-inline: auto;
}
.site-footer .footer-top { display: grid; grid-template-columns: 1fr .7fr; gap: 80px; padding-top: 70px; padding-bottom: 70px; }
.site-footer .footer-brand > p { max-width: 360px; margin: 28px 0 0; font-size: .9rem; color: rgba(255,255,255,.5); }
.site-footer .footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px;
  flex-direction: row; justify-content: normal; margin: 0; padding: 0;
  font-size: 1rem; text-transform: none; letter-spacing: normal;
}
.site-footer .footer-links h3 {
  margin: 0 0 20px; color: #fff; font-family: var(--st-sans);
  font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.site-footer .footer-links a {
  display: block; padding: 6px 0; margin: 0; font-size: .86rem;
  color: rgba(255,255,255,.74); text-decoration: none; text-transform: none; letter-spacing: normal;
}
.site-footer .footer-links a:hover { color: var(--st-gold-light); }
.site-footer .footer-bottom {
  display: flex; justify-content: space-between; gap: 30px;
  padding-top: 24px; padding-bottom: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .72rem; color: rgba(255,255,255,.42);
}
.site-footer .footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .site-footer .footer-top { grid-template-columns: 1fr; gap: 55px; }
}
@media (max-width: 640px) {
  .site-footer .container-wide { width: calc(100% - 40px); }
  .site-footer .footer-links { gap: 28px; }
  .site-footer .footer-bottom { flex-direction: column; gap: 8px; }
}
