#nav-placeholder { min-height: 74px; contain: layout; }
#footer-placeholder { min-height: 400px; contain: layout; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 238, .94);
  color: #321708;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(120, 55, 8, .14);
  box-shadow: 0 8px 28px rgba(80, 35, 5, .08);
}
.nav-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; flex: 0 0 auto; }
.logo-link img { width: 142px; height: 61px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 18px; color: #4b2209; font-weight: 900; }
.desktop-nav a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.desktop-nav a:hover {
  color: #281100;
  background: rgba(255, 159, 28, .16);
  transform: translateY(-1px);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.site-header .btn-secondary {
  border-color: rgba(75, 34, 9, .18);
  color: #321708;
  background: #fff7e8;
}
.site-header .btn-secondary:hover { background: #fff0c7; }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(75, 34, 9, .18);
  background: #fff7e8;
  color: #321708;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}
.mobile-menu > a {
  display: block;
  padding: 14px 0;
  color: #4b2209;
  text-decoration: none;
  border-top: 1px solid rgba(75, 34, 9, .14);
  font-weight: 900;
}
.mobile-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 10px;
}
.mobile-actions .btn { width: 100%; }
.mobile-menu.is-open { display: block; }
.site-footer { background: #080301; border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-grid { width: min(1120px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand img { width: 150px; height: 65px; object-fit: contain; }
.footer-title { color: var(--primary-2); font-weight: 900; margin-bottom: 12px; }
.footer-links a { display: block; color: var(--muted); text-decoration: none; margin: 7px 0; }
.footer-bottom { width: min(1120px, calc(100% - 32px)); margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .95rem; }
.age-badge { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #281100; font-weight: 900; margin-bottom: 12px; }
@media (max-width: 840px) {
  .desktop-nav, .header-actions .desktop-cta { display: none; }
  .burger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Footer refresh */
.site-footer {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 193, 7, .22), transparent 28%),
    linear-gradient(180deg, #fffaf0 0%, #fff1d1 100%);
  color: #321708;
  border-top: 1px solid rgba(120, 55, 8, .16);
  padding: 52px 0 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.footer-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr .8fr .9fr;
  gap: 34px;
  align-items: start;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}
.footer-logo img,
.footer-brand img {
  width: 150px;
  height: 65px;
  object-fit: contain;
}
.footer-brand p {
  max-width: 450px;
  margin: 0 0 18px;
  color: #5d3215;
  line-height: 1.7;
}
.footer-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-col {
  display: grid;
  gap: 9px;
}
.footer-title {
  color: #8a3a09;
  font-weight: 1000;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .82rem;
}
.footer-col a,
.footer-links a {
  color: #4b2209;
  text-decoration: none;
  font-weight: 800;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-col a:hover,
.footer-links a:hover {
  color: #c75b00;
  border-color: rgba(199, 91, 0, .35);
  transform: translateX(2px);
}
.footer-trust {
  width: min(1120px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(120, 55, 8, .14);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(80, 35, 5, .08);
}
.trust-copy {
  color: #5d3215;
  line-height: 1.55;
}
.trust-copy strong {
  display: block;
  color: #321708;
  margin-bottom: 2px;
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-logos img {
  display: block;
  max-width: 132px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(50, 23, 8, .12));
}
.trust-logos img[src$="18.svg"] {
  width: 54px;
  height: 54px;
}
.footer-bottom {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(120, 55, 8, .14);
  color: #6b3b19;
  font-size: .94rem;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.age-badge { display: none; }

@media (max-width: 840px) {
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-trust { align-items: flex-start; flex-direction: column; }
  .trust-logos { justify-content: flex-start; }
  .footer-bottom { display: grid; }
}

/* Contrast and mobile overflow fixes */
.site-header,
.site-header .btn-secondary,
.burger,
.mobile-menu {
  color: #241004;
}

.site-header .btn-secondary {
  background: #ffffff;
  border-color: rgba(36, 16, 4, .28);
}

.site-footer {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 159, 28, .16), transparent 26%),
    linear-gradient(180deg, #241004 0%, #0b0301 100%);
  color: #fff7e8;
  border-top-color: rgba(255, 209, 102, .28);
}

.footer-brand p,
.trust-copy,
.footer-bottom {
  color: #ffe4b3;
}

.footer-title,
.trust-copy strong {
  color: #ffd166;
}

.footer-col a,
.footer-links a {
  color: #fff7e8;
}

.footer-col a:hover,
.footer-links a:hover {
  color: #ffd166;
  border-color: rgba(255, 209, 102, .5);
}

.footer-brand .btn-secondary {
  color: #2b1204;
  background: #ffffff;
  border-color: rgba(255, 209, 102, .45);
}

.footer-trust {
  background: rgba(255, 247, 232, .08);
  border-color: rgba(255, 209, 102, .28);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
}

.trust-logos img {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 209, 102, .3);
  border-radius: 12px;
  padding: 7px;
  max-width: min(132px, 42vw);
}

.trust-logos img[src$="18.svg"] {
  padding: 0;
  background: transparent;
  border: 0;
}

.footer-bottom {
  border-top-color: rgba(255, 209, 102, .24);
}

@media (max-width: 640px) {
  #nav-placeholder { min-height: 64px; }

  .nav-inner {
    min-height: 64px;
    gap: 8px;
  }

  .logo-link img {
    width: 116px;
    height: auto;
  }

  .burger {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
  }

  .header-actions {
    gap: 6px;
    min-width: 0;
  }

  .mobile-menu {
    padding-bottom: 14px;
  }

  .footer-main,
  .footer-trust,
  .footer-bottom {
    width: min(100% - 24px, 1120px);
  }

  .footer-trust {
    padding: 16px;
  }

  .trust-logos {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .trust-logos img {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  .trust-logos img[src$="18.svg"] {
    width: 54px;
    justify-self: start;
  }
}
