/* KE Jewelry — shared header + footer only (safe to load on any page).
   Uniquely-named classes so it never collides with a page's own styles.
   Relies on the page defining --navy, --silver, --muted, --line, etc. */

/* ── unified header: hamburger left (mobile), BIG centered logo, lang toggle right ── */
/* z-index: must stay ABOVE .nav-overlay (59) so the slide-out menu inside
   .nav (including its links) can still receive clicks/taps over the overlay. */
.nav { position: sticky; top: 0; z-index: 70; background: rgba(13,22,38,0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft, rgba(255,255,255,0.08)); }
.nav-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1180px; margin: 0 auto; padding: 12px 20px; }
.nav-logo { justify-self: center; grid-column: 2; }
.nav-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
@media (max-width: 700px) { .nav-logo img { height: 34px; } }
.nav-left { grid-column: 1; justify-self: start; display: flex; align-items: center; }
.nav-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--silver, #d7dce5); display: block; transition: .3s; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line, rgba(255,255,255,0.16)); border-radius: 99px; overflow: hidden; }
.lang-toggle button { background: none; border: none; color: var(--muted, #9aa3b4); cursor: pointer; padding: 5px 12px; font-size: 12px; font-family: inherit; letter-spacing: 1px; }
.lang-toggle button.active { background: #fff; color: #162238; font-weight: 700; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; padding: 0 20px 12px; }
.nav-links a { text-decoration: none; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver, #d7dce5); transition: opacity .2s; white-space: nowrap; }
body.km .nav-links a { letter-spacing: 0; text-transform: none; }
.nav-links a:hover { opacity: 0.55; }
.nav-links a.active { text-decoration: none; color: #fff; border-bottom: 1px solid #fff; padding-bottom: 2px; }
/* mobile menu overlay (backdrop behind the sliding panel) */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(5,9,17,0.55); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 59;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-toggle span { transition: transform .3s ease, opacity .2s ease; transform-origin: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: fixed; top: 0; left: 0; right: auto; height: 100dvh; width: min(300px, 82vw);
    background: #162238; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px;
    padding: 90px 36px 40px; transform: translateX(-100%); transition: transform .4s cubic-bezier(.22,1,.36,1);
    z-index: 60; box-shadow: 0 0 50px rgba(0,0,0,0.4);
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 16px; opacity: 0; transform: translateX(-16px); transition: opacity .35s ease, transform .35s ease; }
  .nav-links.open a { opacity: 1; transform: none; }
  .nav-links.open a:nth-child(1) { transition-delay: .08s; }
  .nav-links.open a:nth-child(2) { transition-delay: .13s; }
  .nav-links.open a:nth-child(3) { transition-delay: .18s; }
  .nav-links.open a:nth-child(4) { transition-delay: .23s; }
  .nav-links.open a:nth-child(5) { transition-delay: .28s; }
  .nav-links.open a:nth-child(6) { transition-delay: .33s; }
}

/* footer */
.footer { border-top: 1px solid var(--line-soft, rgba(255,255,255,0.08)); margin-top: 20px; }
.footer .fcontainer { max-width: 1180px; margin: 0 auto; padding: 60px 24px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer img.flogo { height: 40px; filter: brightness(0) invert(1); margin: -10px 0 14px -2px; }
.footer p.tag { color: var(--muted, #9aa3b4); font-size: 14px; max-width: 260px; line-height: 1.6; }
.footer .col-title { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted, #9aa3b4); margin-bottom: 16px; }
body.km .footer .col-title { letter-spacing: 0.05em; text-transform: none; }
.footer .col a, .footer .col p { display: block; text-decoration: none; color: var(--silver, #d7dce5); font-size: 15px; margin-bottom: 10px; transition: color .2s; line-height: 1.5; }
.footer .col a:hover { color: #fff; }
.footer .socials { display: flex; gap: 12px; margin-top: 8px; }
.footer .socials a { width: 40px; height: 40px; text-decoration: none; border: 1px solid var(--line, rgba(255,255,255,0.16)); border-radius: 50%; display: grid; place-items: center; margin: 0; }
.footer .socials a:hover { background: #fff; }
.footer .socials svg { width: 18px; height: 18px; fill: var(--silver, #d7dce5); }
.footer .socials a:hover svg { fill: #162238; }
.footer-bottom { border-top: 1px solid var(--line-soft, rgba(255,255,255,0.08)); }
.footer-bottom .fcontainer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 24px; font-size: 13px; color: var(--muted, #9aa3b4); }
