/* Shared accessibility, mobile-navigation and privacy improvements. */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px;
  background: transparent;
  color: #f5f0e8;
  font: inherit;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before { position: absolute; transform: translateY(-6px); }
.nav-toggle-lines::after { position: absolute; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { transform: rotate(-45deg); }

.aiph-cookie-settings {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 9998;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 8px 13px;
  background: #181818;
  color: #f5f0e8;
  font: 500 12px/1.2 'DM Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.aiph-cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: 720px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(201,169,110,.42);
  border-radius: 6px;
  background: #1f1f21;
  color: #f5f0e8;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  font-family: 'DM Sans', sans-serif;
}

.aiph-cookie-banner h2 {
  margin: 0 0 8px;
  color: #fff;
  font: 400 24px/1.15 'Cormorant Garamond', Georgia, serif;
}

.aiph-cookie-banner p {
  margin: 0;
  color: #b8b5ae;
  font-size: 13.5px;
  line-height: 1.6;
}

.aiph-cookie-banner a { color: #e2c99a; }
.aiph-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.aiph-cookie-actions button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  background: transparent;
  color: #f5f0e8;
  font: 500 12.5px/1 'DM Sans', sans-serif;
  cursor: pointer;
}
.aiph-cookie-actions .aiph-cookie-accept {
  border-color: #c9a96e;
  background: #c9a96e;
  color: #0d0d0e;
}

@media (max-width: 1024px) {
  /* Keep the value proposition before the portrait montage. */
  .hero-visuals { order: initial !important; }
}

@media (max-width: 640px) {
  .nav-inner { position: relative; }
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }
  .nav-links {
    display: none !important;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 14px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(13,13,14,.98);
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 35px rgba(0,0,0,.35);
  }
  .nav-links.is-open { display: flex !important; }
  .nav-links a { display: block; padding: 12px 8px; }
  .nav-links .nav-cta { text-align: center; margin-top: 6px; }
  .aiph-cookie-actions { flex-direction: column; }
  .aiph-cookie-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-lines,
  .nav-toggle-lines::before,
  .nav-toggle-lines::after { transition: none; }
}
