
/* floating nav — shared base. Keeps the Live in Seven palette. */
html { scroll-padding-top: 120px; }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  background: transparent; border-bottom: 0; padding: 16px 0;
  transition: padding .3s cubic-bezier(.2,.8,.2,1);
}
.nav.compact { box-shadow: none; padding: 10px 0; }
.nav.compact .nav-inner { padding-top: 8px; padding-bottom: 8px; }
.hero { padding-top: 96px; }
.phero { padding-top: calc(96px + clamp(40px, 5vw, 78px)); }
.nav-links { min-width: 0; flex: 0 1 auto; }
.nav-links a { font-weight: 600; font-size: 13.5px; letter-spacing: .05em; white-space: nowrap; }
.nav-links a::after { content: ""; display: block; height: 2px; margin-top: 5px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }
.nav-inner > .btn { border-radius: 9999px; height: 42px; padding: 0 22px; font-size: 13px;
  letter-spacing: .07em; line-height: 1; display: inline-flex; align-items: center; flex: none; }
@media (max-width: 1359px) {
  .nav-links.open {
    top: calc(100% + 12px); left: 0; right: 0; border: 1px solid var(--line-2);
    border-radius: 20px; padding: 6px 20px 14px; background: rgba(4,7,12,.97);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.95);
  }
  .nav-links.open a::after { display: none; }
}

/* A — a single capsule floating over the hero */
.nav-inner {
  width: calc(100% - 2 * var(--edge)); max-width: 1180px; margin: 0 auto;
  background: rgba(11,17,27,.68); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.14); border-radius: 9999px;
  padding: 10px 12px 10px 20px; gap: clamp(12px, 1.4vw, 20px); flex-wrap: nowrap;
  box-shadow: 0 20px 50px -28px rgba(0,0,0,.9);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative;
}
.nav.compact .nav-inner {
  background: rgba(4,7,12,.88); border-color: rgba(255,255,255,.2);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.95);
}
.brand img { height: 34px; }
.nav.compact .brand img { height: 30px; }
.brand-name b { font-size: 15px; letter-spacing: .1em; }

/* WhatsApp button in the nav */
.nav-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; flex: none; border-radius: 9999px;
  border: 1px solid rgba(37,211,102,.45); background: rgba(37,211,102,.12);
  color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: .06em;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.nav-wa:hover { background: rgba(37,211,102,.22); border-color: rgba(37,211,102,.75);
  color: #fff; transform: translateY(-1px); }
.nav-wa svg { width: 17px; height: 17px; fill: #25d366; flex: none; }
@media (max-width: 1359px) { .nav-wa span { display: none; } .nav-wa { padding: 0; width: 42px; } }
@media (max-width: 1359px) { .nav-wa { display: none; } }

/* the pill switches to the hamburger before the links can touch the logo */
@media (max-width: 1359px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: grid; }
}
@media (min-width: 1360px) {
  .nav-links { gap: clamp(16px, 1.8vw, 26px); }
  .nav-inner { gap: clamp(16px, 2vw, 28px); }
}

/* keep everything inside the capsule: the links row is the part that gives way */
.nav-inner { flex-wrap: nowrap; }
.nav-links { min-width: 0; flex: 0 1 auto; }
.nav-inner > .btn, .nav-wa, .brand { flex: none; }

/* links never shrink into the buttons; below 1320px the hamburger takes over */
.nav-links { flex: none; min-width: auto; }
.nav-wa { margin-left: clamp(10px, 1.4vw, 20px); }

/* the capsule has to fit 1195px of content plus its own padding */
.nav-inner { max-width: 1268px; }
@media (min-width: 1360px) {
  .nav-links { gap: 24px; }
  .nav-inner { gap: 24px; }
  .nav-wa { margin-left: 14px; }
  .nav-inner > .btn { padding: 0 20px; }
}

/* breakpoint sits where the content genuinely fits, with 25px to spare */
@media (min-width: 1360px) { .brand { padding-right: 32px; } }

/* ── smaller nav buttons; WhatsApp drops the green tint for our own palette ── */
.nav-inner > .btn { height: 36px; padding: 0 18px; font-size: 12.5px; letter-spacing: .06em; }
.nav-wa {
  height: 36px; padding: 0 15px; font-size: 12.5px;
  border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.04);
  color: var(--dim);
}
.nav-wa:hover { background: rgba(53,214,242,.08); border-color: var(--cyan); color: #fff; transform: none; }
.nav-wa svg { width: 15px; height: 15px; fill: currentColor; }
.nav-wa:hover svg { fill: var(--cyan); }

/* ── mobile panel: a real vertical list, not a wrapped row ── */
@media (max-width: 1359px) {
  .nav-links.open {
    display: grid; grid-auto-flow: row; gap: 0;
    position: absolute; top: calc(100% + 12px); left: 0; right: 0;
    padding: 4px 20px 12px; border-radius: 20px;
    background: rgba(4,7,12,.97); border: 1px solid var(--line-2);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.95);
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .nav-links.open a {
    display: block; width: 100%; padding: 16px 0; font-size: 15px;
    border-top: 1px solid var(--line); white-space: normal;
  }
  .nav-links.open a:first-child { border-top: 0; }
  .nav-links.open a::after { display: none; }
  .nav-links.open .lang-m {
    display: flex; gap: 18px; align-items: center;
    padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--line-2);
  }
  .nav-links.open .lang-m a { border-top: 0; padding: 0; width: auto; font-size: 14px; }
}

/* ── phone nav: brand keeps its name, CTA shrinks, hamburger sits last ── */
@media (max-width: 620px) {
  .nav-inner { padding: 8px 10px 8px 14px; gap: 10px; }
  .brand { padding-right: 0; margin-right: auto; }
  .brand img { height: 26px; }
  .brand-name b { font-size: 12px; letter-spacing: .08em; }
  .nav-inner > .btn { height: 34px; padding: 0 14px; font-size: 11.5px; letter-spacing: .04em; }
  .nav-toggle { order: 3; width: 34px; height: 34px; }
}
@media (max-width: 400px) {
  .nav-inner { padding: 8px 8px 8px 12px; gap: 8px; }
  .brand-name b { font-size: 11px; letter-spacing: .06em; }
  .nav-inner > .btn { padding: 0 11px; font-size: 10.5px; }
}

/* ── phone nav: fluid so 360px reads the same as 430px ── */
@media (max-width: 620px) {
  .nav { padding: 12px 0; }
  .nav-inner {
    width: calc(100% - 2 * var(--edge)); max-width: none;
    padding: 7px 7px 7px clamp(10px, 3.2vw, 14px);
    gap: clamp(6px, 2vw, 10px);
  }
  .brand { gap: clamp(7px, 2.2vw, 11px); }
  .brand img { height: clamp(22px, 6.6vw, 28px); }
  .brand-name b { font-size: clamp(10px, 3.1vw, 13px); letter-spacing: .07em; white-space: nowrap; }
  .nav-inner > .btn {
    height: clamp(30px, 8.6vw, 36px); padding: 0 clamp(10px, 3.4vw, 16px);
    font-size: clamp(9.5px, 2.9vw, 12px); letter-spacing: .03em; white-space: nowrap;
  }
  .nav-toggle {
    order: 3; flex: none;
    width: clamp(30px, 8.6vw, 36px); height: clamp(30px, 8.6vw, 36px);
  }
  .nav-toggle svg { width: clamp(15px, 4.4vw, 18px); height: clamp(15px, 4.4vw, 18px); }
}

/* ── phone nav: nothing in the capsule may wrap or shrink into a second line ── */
@media (max-width: 620px) {
  .nav-inner { flex-wrap: nowrap; align-items: center; }
  .brand { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  .brand img { flex: none; }
  .brand-name { min-width: 0; overflow: hidden; }
  .brand-name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: clip; }
  .nav-inner > .btn {
    flex: none; white-space: nowrap; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .nav-toggle { flex: none; }
}
/* very narrow phones: the brand mark alone, so the button never wraps */
@media (max-width: 344px) {
  .brand-name { display: none; }
}

/* ── phone: the hamburger square must sit inside the capsule, not touch its edge ── */
@media (max-width: 620px) {
  .nav-inner { padding-right: clamp(6px, 2vw, 9px); }
  .nav-toggle {
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.05);
    display: grid; place-items: center;
    box-sizing: border-box;
  }
  .nav-toggle:hover, .nav-toggle[aria-expanded="true"] {
    border-color: var(--cyan); background: rgba(53,214,242,.1); color: #fff;
  }
  .nav-toggle svg { display: block; stroke: currentColor; stroke-width: 2; fill: none; }
}



/* ── desktop capsule fit: the primary CTA must sit inside the pill.
      Declared last so it wins over the earlier max-width / gap / flex rules. ── */
@media (min-width: 1360px) {
  .nav-inner { max-width: 1320px; gap: 16px; flex-wrap: nowrap; }
  .nav-links { min-width: 0; flex: 0 1 auto; gap: 16px; }
  .nav-links a { white-space: nowrap; }
  .nav-wa { margin-left: 0; padding: 0 12px; }
  .nav-inner > .btn { padding: 0 18px; flex: none; }
}
@media (min-width: 1360px) and (max-width: 1465px) {
  .nav-inner { gap: 12px; }
  .nav-links { gap: 12px; }
  .nav-wa span { display: none; }
  .nav-wa { padding: 0; width: 42px; }
}
