/* ===== JOURNEY SHELL — sidebar, nav, footer, buttons ===== */
:root {
  --journey-max: 1360px;
  --journey-wide: 1440px;
  --nav-h: 56px;
  --sidebar-w: 248px;
  --grass: #5d9a35;
  --grass-bright: #7bc44a;
  --grass-dark: #3d6b22;
  --stone: #2a2f38;
  --deepslate: #12151c;
  --charcoal: #0a0c10;
  --parchment: #e8e4d4;
  --font-display: "Russo One", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.journey-site {
  margin: 0;
  font-family: var(--font-body);
  color: var(--parchment);
  background: #050810;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

.hidden { display: none !important; }

/* --- SIDEBAR (desktop) --- */
.crest-sidebar {
  display: none;
}

@media (min-width: 1100px) {
  body.journey-site {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
  }

  #crest-menu-toggle,
  #crest-drawer {
    display: none !important;
  }

  .crest-sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    background: linear-gradient(180deg, #141820 0%, #0a0c12 100%);
    border-right: 3px solid #1e232b;
    box-shadow: inset -4px 0 0 rgba(93, 154, 53, 0.15);
    z-index: 100;
    padding: 1.25rem 0;
  }

  .crest-sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0 1.25rem 1.5rem;
    text-decoration: none;
    border-bottom: 2px solid #1e232b;
    margin-bottom: 1rem;
  }

  .crest-sidebar-brand img {
    width: 140px;
    height: auto;
  }

  .crest-sidebar-name {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grass-bright);
  }

  .crest-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0 0.75rem;
  }

  .crest-sidebar-link {
    display: block;
    padding: 0.65rem 0.75rem;
    color: #b8bcc8;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-left: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
  }

  .crest-sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
  }

  .crest-sidebar-link.is-active {
    color: var(--grass-bright);
    border-left-color: var(--grass);
    background: rgba(93, 154, 53, 0.08);
  }

  .crest-sidebar-foot {
    padding: 1rem 1.25rem 0;
    border-top: 2px solid #1e232b;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .crest-sidebar .locale-picker { width: 100%; }

  .ui-desktop-only { display: none !important; }
}

/* --- MOBILE / TABLET TOP BAR --- */
.crest-shell {
  position: sticky;
  top: 0;
  z-index: 90;
}

@media (min-width: 1100px) {
  .crest-shell { display: none; }
}

.crest-bar {
  background: #141820;
  border-bottom: 3px solid #1a1f28;
  box-shadow: 0 2px 0 rgba(93, 154, 53, 0.2);
}

.crest-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0 1rem;
  max-width: var(--journey-wide);
  margin: 0 auto;
}

.crest-bar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.crest-logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.crest-logo-img {
  height: 28px;
  width: auto;
}

.crest-product-name {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grass-bright);
}

.crest-links {
  display: none;
}

@media (min-width: 1024px) {
  .crest-bar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    max-width: 1400px;
    padding: 0 2rem;
  }

  .crest-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
  }

  .crest-link {
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
  }

  .crest-link.is-active {
    color: var(--grass-bright);
    box-shadow: inset 0 -2px 0 var(--grass);
  }

  .crest-actions {
    margin-left: 0;
    justify-content: flex-end;
  }

  #crest-menu-toggle {
    display: none !important;
  }

  .crest-logo-link {
    padding-left: 0 !important;
  }

  .crest-nav-dl {
    display: inline-flex;
  }
}

.crest-nav-dl {
  display: none;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .crest-links {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
  }

  .crest-link {
    color: #b8bcc8;
    text-decoration: none;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.5rem;
  }

  .crest-link.is-active {
    color: var(--grass-bright);
    box-shadow: inset 0 -2px 0 var(--grass);
  }
}

.crest-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
}

.crest-drawer {
  background: #0e1018;
  border-bottom: 1px solid #1e232b;
  padding: 0.75rem 1rem 1rem;
}

.crest-drawer-link {
  display: block;
  padding: 0.625rem 0;
  color: #c8ccd8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crest-drawer-link.is-active { color: var(--grass-bright); }

.crest-strip {
  background: #0a0c10;
  border-bottom: 1px solid #1e232b;
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8494;
  padding: 0.4rem 1rem;
}

.crest-strip span { color: #9aa8b8; }

.journey-canvas {
  min-width: 0;
}

/* --- BUTTONS --- */
.btn-grass,
.btn-grass-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--grass-bright) 0%, var(--grass) 55%, var(--grass-dark) 100%);
  border: none;
  border-top: 2px solid #9ed66a;
  border-bottom: 3px solid #2a5018;
  box-shadow: 0 3px 0 #1a3010;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-grass:hover,
.btn-grass-dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #1a3010;
  color: #fff;
}

.btn-grass:active,
.btn-grass-dl:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #1a3010;
}

.btn-stone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #d8dce8;
  background: linear-gradient(180deg, #3a4048 0%, #2a3038 100%);
  border-top: 2px solid #5a6270;
  border-bottom: 3px solid #1a1f28;
  box-shadow: 0 3px 0 #0a0c10;
  transition: transform 0.1s, border-color 0.15s;
}

.btn-stone:hover {
  color: #fff;
  border-top-color: #7a8494;
  transform: translateY(-1px);
}

/* --- FOOTER --- */
.crest-footer {
  background: linear-gradient(180deg, #0e1018 0%, #060810 100%);
  border-top: 4px solid #1a1f28;
  margin-top: 0;
}

.crest-footer-core {
  display: grid;
  gap: 2rem;
  max-width: var(--journey-wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

@media (min-width: 900px) {
  .crest-footer-core {
    grid-template-columns: 1fr 2fr auto;
    align-items: start;
  }
}

.crest-footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.crest-footer-copy,
.crest-footer-guidelines {
  font-size: 0.8125rem;
  color: #7a8494;
  margin: 0.5rem 0 0;
}

.crest-footer-guidelines a { color: #9aa8b8; }

.crest-footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
}

.crest-footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.75rem;
}

.crest-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.crest-footer-col a {
  color: #8a94a4;
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.8;
}

.crest-footer-col a:hover { color: var(--grass-bright); }

.crest-legal-wrap {
  background: #060810;
  border-top: 1px solid #1a1f28;
}

.crest-legal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--journey-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
}

.crest-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.crest-legal-links a { color: #6a7484; text-decoration: none; }
.crest-legal-links a:hover { color: #9aa8b8; }

.crest-footer-ms {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.crest-fab-dl {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 80;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1100px) {
  .crest-fab-dl { display: none; }
}

#crest-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#crest-lightbox.hidden { display: none; }

#crest-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

#crest-lightbox-img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
}

.crest-bar.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ui-mobile-only.sm-show { display: none; }

@media (max-width: 1023px) {
  .ui-mobile-only.sm-show { display: inline-flex; }
}

@media (min-width: 1024px) {
  .ui-mobile-only.sm-show { display: none !important; }
}
