/* Shared navigation, floating breadcrumb and mobile footer refinements. */

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-color, rgba(42, 53, 50, 0.1));
  border-radius: 50%;
  background: transparent;
  color: var(--primary-deep, #1c6b3d);
  cursor: pointer;
}

.menu-toggle svg {
  width: 21px;
  height: 21px;
}

.analytics-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: min(520px, calc(100% - 40px));
  padding: 18px 20px;
  border: 1px solid rgba(28, 107, 61, 0.18);
  border-radius: 12px;
  background: rgba(252, 250, 247, 0.96);
  box-shadow: 0 20px 55px rgba(16, 45, 32, 0.2);
  backdrop-filter: blur(14px);
  color: var(--ink);
  font: 13px/1.55 'DM Sans', sans-serif;
}

.analytics-consent__copy strong { color: var(--primary-deep); }
.analytics-consent__copy p { margin: 6px 0 8px; }
.analytics-consent__copy a { color: var(--primary-deep); font-weight: 700; }
.analytics-consent__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.analytics-consent__actions button {
  padding: 8px 12px;
  border: 1px solid rgba(28, 107, 61, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--primary-deep);
  cursor: pointer;
  font: 700 12px/1 'DM Sans', sans-serif;
}
.analytics-consent__actions button[data-consent="granted"] { background: var(--primary); color: #fff; }

.language-picker {
  position: relative;
  display: inline-flex;
}

.language-picker__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 168px;
  padding: 7px;
  border: 1px solid rgba(28, 107, 61, 0.16);
  border-radius: 12px;
  background: rgba(252, 250, 247, 0.98);
  box-shadow: 0 18px 42px rgba(16, 45, 32, 0.17);
  backdrop-filter: blur(14px);
}

.language-picker__menu[hidden] { display: none; }

.language-picker__menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--primary-deep, #1c6b3d);
  font: 600 13px/1.2 'DM Sans', 'Noto Sans SC', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.language-picker__menu a:hover,
.language-picker__menu a:focus-visible {
  background: rgba(47, 174, 96, 0.09);
  outline: none;
}

.language-picker__menu a.active {
  background: var(--primary, #2fae60);
  color: #fff;
}

[dir="rtl"] .language-picker__menu {
  right: auto;
  left: 0;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-color, rgba(42, 53, 50, 0.1));
  background: rgba(246, 248, 245, 0.95);
  backdrop-filter: blur(10px);
}

header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1092px, calc(100% - 48px));
  margin: 0 auto;
  padding: 14px 0;
}

.logo-container {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

header.site .logo-img {
  display: block;
  width: auto;
  max-width: 180px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links > a,
.nav-links .dropdown > span {
  color: var(--primary-deep, #1c6b3d);
  font: 700 12px/1.2 'DM Sans', 'Noto Sans SC', sans-serif;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-links .dropdown:hover > span {
  color: var(--primary, #2fae60);
}

.dropdown {
  position: relative;
  padding: 10px 0;
}

.dropdown > span { cursor: pointer; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 220px;
  padding: 8px 0;
  border: 1px solid var(--line-color, rgba(42, 53, 50, 0.1));
  border-radius: 8px;
  background: var(--bg-surface, #fcfaf7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.dropdown:hover .dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-menu a {
  padding: 11px 18px;
  color: var(--primary-deep, #1c6b3d);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  text-decoration: none;
  text-transform: none;
}

.dropdown-menu a:hover { background: rgba(47, 174, 96, 0.055); }

.header-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.sound-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--primary-deep, #1c6b3d);
  cursor: pointer;
}

.sound-toggle svg {
  width: 20px;
  height: 20px;
}

.lang-btn {
  padding: 8px 16px;
  border: 1px solid var(--primary, #2fae60);
  border-radius: 999px;
  background: transparent;
  color: var(--primary, #2fae60);
  cursor: pointer;
  font: 700 12px/1 'DM Sans', 'Noto Sans SC', sans-serif;
}

.lang-btn:hover {
  background: var(--primary, #2fae60);
  color: #fff;
}

/* The breadcrumb stays in document flow when possible, then becomes a compact
   floating capsule beneath the sticky header without covering body copy. */
.breadcrumb-container {
  position: sticky;
  top: 66px;
  left: auto;
  width: 100%;
  height: 26px;
  margin: 0;
  z-index: 45;
  pointer-events: none;
}

.breadcrumb-inner {
  max-width: 1140px;
  height: 26px;
  margin: 0 auto;
  padding: 5px 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  pointer-events: none;
}

.custom-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
}

.custom-breadcrumb .skew-box {
  display: flex;
  align-items: center;
  width: 60px;
  height: 16px;
  box-sizing: border-box;
  padding-left: 4px;
  padding-right: 4px;
  border: 1px solid var(--gold, #c28b5e);
  transform: skewX(-20deg);
  background: transparent;
}

.custom-breadcrumb .deco-bars span {
  display: block;
  width: 1.5px;
  height: 7px;
  border-radius: 1px;
}

.custom-breadcrumb .deco-bars {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1px;
  margin-right: 2px;
}

.custom-breadcrumb .b1 { background: #3b82f6; }
.custom-breadcrumb .b2 { background: #fbbf24; }
.custom-breadcrumb .b3 { background: #ef4444; }

.custom-breadcrumb .skew-box .text {
  flex: 1;
  width: 100%;
  transform: skewX(20deg);
  text-align: center;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-breadcrumb .slash-divider {
  width: 1.5px;
  height: 12px;
  border-radius: 1px;
  background: var(--primary, #2fae60);
  transform: skewX(-20deg);
}

.sin-footer {
  padding: 1.8rem 3rem 1.4rem;
  background: var(--bg-footer, #f6f2ea);
  color: var(--ink, #2a3532);
  font: 14px/1.35 'DM Sans', 'Noto Sans SC', sans-serif;
}

.sin-footer__grid {
  display: flex;
  gap: 2.6rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.sin-footer__col { flex: 1; min-width: 0; }

.sin-footer__title,
.sin-footer__brand-name {
  margin: 0 0 0.5rem;
  color: var(--primary-deep, #1c6b3d);
  font: 700 14px/1.35 'Playfair Display', serif;
}

.sin-footer__brand-name {
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sin-footer__brand-desc,
.sin-footer__brand-loc,
.sin-footer__contact,
.sin-footer__contact-sub,
.sin-footer__note p {
  margin: 0;
  color: var(--ink, #2a3532);
}

.sin-footer__brand-desc span { display: block; margin-bottom: 0.4rem; }
.sin-footer__brand-loc { margin-top: 0.3rem; font-weight: 500; }
.sin-footer__links { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.sin-footer__contact-sub { margin-top: 0.4rem; opacity: 0.8; }

.sin-footer a {
  position: relative;
  display: inline-block;
  color: var(--primary-deep, #1c6b3d);
  text-decoration: none;
}

.sin-footer a::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: 0;
  left: -2px;
  height: 1px;
  background: var(--primary, #2fae60);
  opacity: 0;
}

.sin-footer a:hover::after { opacity: 1; }

.sin-footer__legal {
  max-width: 1200px;
  margin: 1.2rem auto 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-color, rgba(42, 53, 50, 0.1));
  color: var(--ink, #2a3532);
  font-size: 12px;
  opacity: 0.7;
}

.sin-footer__legal a { color: var(--ink, #2a3532); }

@media (max-width: 1023px) {
  .sin-footer__grid { flex-wrap: wrap; gap: 1.5rem; }
  .sin-footer__col { flex: 1 1 calc(50% - 1.5rem); min-width: 200px; }
}

@media (max-width: 767px) {
  header.site {
    z-index: 60;
  }

  header.site .bar {
    width: calc(100% - 40px);
    padding: 12px 0;
    gap: 8px;
  }

  header.site .logo-img {
    max-width: 155px;
    height: 31px;
  }

  header.site .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
  }

  header.site .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: rgba(246, 248, 245, 0.98);
    border-bottom: 1px solid var(--line-color, rgba(42, 53, 50, 0.1));
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.07);
  }

  header.site .nav-links.active {
    display: flex;
  }

  header.site .nav-links > a,
  header.site .nav-links .dropdown > span {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: left;
    font-size: 13px;
  }

  header.site .nav-links .dropdown {
    width: 100%;
    padding: 0;
  }

  header.site .nav-links .dropdown-menu {
    position: static;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    padding: 0 0 8px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  header.site .nav-links .dropdown:hover .dropdown-menu {
    display: none;
  }

  header.site .nav-links .dropdown.open .dropdown-menu {
    display: flex;
  }

  header.site .nav-links .dropdown-menu a {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: left;
  }

  header.site .header-controls {
    flex: 0 0 auto;
    gap: 7px;
  }

  header.site .header-controls .lang-btn {
    padding: 7px 11px;
  }

  .breadcrumb-container {
    top: 60px;
    height: 26px;
  }

  .breadcrumb-inner {
    height: 26px;
    padding: 5px 20px;
  }

  .custom-breadcrumb {
    padding: 0;
  }

  .custom-breadcrumb .skew-box {
    width: 60px;
    height: 16px;
  }

  .sin-footer {
    padding: 40px 24px 28px;
  }

  .sin-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sin-footer__col {
    width: 100%;
    min-width: 0;
  }

  .sin-footer__links {
    gap: 8px;
  }

  .sin-footer__contact,
  .sin-footer__note,
  .sin-footer__legal {
    overflow-wrap: anywhere;
  }

  .sin-footer__legal {
    margin-top: 0;
    line-height: 1.8;
    text-align: left;
  }
}
