/* ==========================================================================
   components.css — pieces used on every page: navbar and footer.
   Markup lives in /partials/navbar.html and /partials/footer.html.
   ========================================================================== */

/* ==========================================================================
   NAVBAR — floating overlay. No bar behind it: the brand, the white pill and
   the right-hand links sit directly on the page, fixed at the top.
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: var(--nav-top);
  pointer-events: none;            /* the empty space around the items stays clickable-through */
}

.nav__inner {
  width: min(calc(100% - clamp(32px, 8vw, 200px)), 1560px);   /* same edges as the home page content */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav__inner > * { pointer-events: auto; }

.nav__brand {
  justify-self: start;
  font: 700 1.2rem var(--font-head);
  letter-spacing: -.03em;
}

/* The pill */
.nav__pill {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}

.nav__pill > a {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 999px;
  color: #111;
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Orange highlight that slides to the hovered / current link (positioned by main.js) */
.nav__hl {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--orange);
  opacity: 0;
  transition: transform .32s cubic-bezier(.3, .8, .3, 1), width .32s cubic-bezier(.3, .8, .3, 1), opacity .2s;
}

/* Circular dropdown button */
.nav__more { position: relative; display: flex; margin-left: 3px; }

.nav__more-btn {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.nav__more-btn svg { width: 12px; height: 12px; transition: transform .25s; }
.nav__more.open .nav__more-btn svg { transform: rotate(180deg); }
.nav__more-btn:hover,
.nav__more-btn.is-active { background: var(--orange); color: #111; }

.nav__drop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}

.nav__more.open .nav__drop { display: flex; }

.nav__drop a {
  padding: 9px 14px;
  border-radius: 12px;
  color: #111;
  font-size: .84rem;
  font-weight: 500;
}

.nav__drop a:hover,
.nav__drop a.is-active { background: var(--orange); }

/* Right side: socials + quote button */
.nav__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__social { display: flex; gap: 6px; margin-right: 2px; }

.nav__social a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(0, 0, 0, .4);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: background .2s, border-color .2s, color .2s;
}

.nav__social a:hover { background: var(--orange); border-color: var(--orange); color: #111; }
.nav__social svg { width: 14px; height: 14px; }

.nav__cta { min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; }
.nav__cta.is-active { background: #fff; border-color: #fff; color: #111; }

/* Hamburger (tablet / phone only) */
.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.nav__toggle svg { width: 17px; height: 17px; }

/* Mobile menu panel: a floating card under the bar */
.nav__panel {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 12px;
  right: 12px;
  max-height: calc(100vh - var(--nav-h) - 16px);
  overflow-y: auto;
  flex-direction: column;
  padding: 6px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0a0a0a;
  pointer-events: auto;
}

.nav__panel a.nav__plink {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font: 500 1rem var(--font-body);
  color: #ddd;
}

.nav__panel a.nav__plink.is-active { color: var(--orange); }
.nav__panel .nav__social { margin: 20px 0 0; }
.nav__panel .nav__cta { margin-top: 18px; min-height: 44px; }

.nav.open .nav__panel { display: flex; }

@media (max-width: 1100px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__pill,
  .nav__end > .nav__social { display: none; }
  .nav__toggle { display: grid; }
}

@media (max-width: 520px) {
  .nav__end > .nav__cta { display: none; }
}

/* ==========================================================================
   FOOTER — unchanged design
   ========================================================================== */

.footer {
  padding: 95px 0 30px;
  background: #000;
  border-top: 1px solid var(--line-soft);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 70px;
}

.footer__brand { font: 700 1.45rem var(--font-head); }

.footer h4 {
  margin-bottom: 12px;
  font-size: .78rem;
  text-transform: uppercase;
}

.footer a,
.footer p {
  display: block;
  margin: 10px 0;
  color: #858585;
  font-size: .85rem;
}

.footer a:hover { color: #fff; }
.footer .footer__brand { color: #fff; font-size: 1.45rem; margin: 0 0 6px; }

.footer__copy {
  display: flex;
  justify-content: space-between;
  margin-top: 70px;
  padding-top: 27px;
  border-top: 1px solid var(--line-soft);
  color: #606060;
  font-size: .74rem;
}

@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__grid > div:last-child { grid-column: 2; }
}

@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:last-child { grid-column: auto; }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__copy { display: block; }
  .footer__copy span + span { display: block; margin-top: 7px; }
}

/* ==========================================================================
   CLOSING CTA + FAQ — used on every page (markup: partials/cta.html)
   ========================================================================== */

/* ---------- Closing call-to-action (partials/cta.html) ---------- */
.cta { padding: 140px 0; background: #050505; text-align: center; }
.cta__box {
  width: min(calc(100% - var(--gutter)), 920px);
  min-height: 420px;
  margin: auto;
  padding: 80px 35px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #141414;
  border: 1px solid var(--line-soft);
  border-radius: 25px;
}
.cta__box .eyebrow { justify-content: center; }
.cta__box h2 { font-size: 44px; }
.cta__box p { max-width: 600px; margin: 16px auto 0; color: var(--muted); }
.cta__box .btns { justify-content: center; margin-top: 28px; }

/* ---------- FAQ (native <details>, no JavaScript) ---------- */
.faq { max-width: 1050px; margin: 36px auto 0; }
.faq details { margin: 8px 0; background: var(--panel); border: 1px solid #242428; border-radius: 4px; }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 16px; cursor: pointer; list-style: none;
  font: 600 16px var(--font-head); letter-spacing: 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font: 400 1.4rem/1 var(--font-body); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 16px 16px; color: var(--muted); font-size: 15px; }

@media (max-width: 520px) {
  .cta { padding: 88px 0; }
  .cta__box { min-height: 340px; padding: 55px 22px; }
  .cta__box h2 { font-size: 38px; }
  .btns .btn { width: 100%; }
}
