/* ═══════════════════════════════════════
   LAYOUT.CSS — Nav, Sections, Grid, Footer
   ═══════════════════════════════════════ */

/* ── Container ── */
.ct {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ── Section wrappers ── */
.sec { padding: clamp(60px, 10vw, 120px) 0; }
.sec-dk { background: var(--bg-2); }
.sec-hd { margin-bottom: 48px; }
.sec-hd .bt { max-width: 600px; margin-top: 12px; }

/* ── Page header ── */
.pg-h {
  padding: calc(var(--nav-h) + 48px) 0 40px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: all .4s var(--ease);
}
.nav.sc {
  background: var(--overlay);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-b {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .05em;
  cursor: pointer;
  user-select: none;
}
.nav-b span { color: var(--text); font-weight: 300; font-style: italic; }

.nav-l { display: flex; gap: 28px; align-items: center; }
.nav-l a {
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-d);
  transition: color .3s;
  position: relative;
  cursor: pointer;
}
.nav-l a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-l a:hover::after { width: 100%; }
.nav-l a:hover { color: var(--gold); }

.nav-r { display: flex; align-items: center; gap: 12px; }

.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 9px 20px;
  transition: all .3s;
  cursor: pointer;
}
.nav-cta:hover { background: var(--gold); color: #0B0B0B; }

/* ── Theme toggle button ── */
.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s;
  background: transparent;
  color: var(--text-m);
  position: relative;
}
.theme-btn:hover { border-color: var(--gold); color: var(--gold); }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
/* Tooltip acessível */
.theme-btn::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -32px;
  right: 0;
  font-size: .6rem;
  white-space: nowrap;
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 3px 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.theme-btn:hover::after { opacity: 1; }

/* ── Hamburger ── */
.hb {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px 0;
  z-index: 101;
}
.hb span {
  display: block;
  height: 1.5px;
  background: var(--gold);
  transition: all .3s;
  border-radius: 1px;
}
.hb.on span:nth-child(1) { transform: rotate(45deg) translate(5px, 4px); }
.hb.on span:nth-child(2) { opacity: 0; }
.hb.on span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4px); }

/* ── Mobile menu ── */
.mm {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--overlay);
  backdrop-filter: blur(40px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mm.op { display: flex; }
.mm a {
  font-family: var(--fd);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  transition: color .3s;
  opacity: 0;
  transform: translateY(20px);
}
.mm.op a { animation: mmF .4s var(--ease) forwards; }
@keyframes mmF { to { opacity: 1; transform: translateY(0); } }
.mm a:nth-child(1) { animation-delay: .05s; }
.mm a:nth-child(2) { animation-delay: .10s; }
.mm a:nth-child(3) { animation-delay: .15s; }
.mm a:nth-child(4) { animation-delay: .20s; }
.mm a:nth-child(5) { animation-delay: .25s; }
.mm a:nth-child(6) { animation-delay: .30s; }
.mm a:nth-child(7) { animation-delay: .35s; }
.mm a:nth-child(8) { animation-delay: .40s; }
.mm a:hover { color: var(--gold); }

/* ── WhatsApp Float ── */
.wf {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wa);
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37,211,102,.35);
  transition: all .3s;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.wf:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(37,211,102,.45); }
.wf svg { width: 22px; height: 22px; fill: #fff; }

/* ── Footer ── */
.ft {
  padding: 0px 0 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--gold-dim);
}
.ft-g {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.ft-b {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 12px;
}
.ft-b span { color: var(--text); font-weight: 300; font-style: italic; }
.ft-d { font-size: .82rem; font-weight: 300; color: var(--text-m); line-height: 1.7; }
.ft h4 {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.ft li { margin-bottom: 10px; }
.ft li a {
  font-size: .82rem;
  font-weight: 300;
  color: var(--text-m);
  transition: color .3s;
  cursor: pointer;
}
.ft li a:hover { color: var(--gold); }
.ft-bt {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ft-cp { font-size: .68rem; color: var(--text-d); }
.ft-so { display: flex; gap: 16px; }
.ft-so a { color: var(--text-d); transition: color .3s; }
.ft-so a:hover { color: var(--gold); }
.ft-so svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal.op { opacity: 1; pointer-events: all; }
.modal-c {
  background: var(--bg-3);
  border: 1px solid var(--gold-dim);
  width: 100%;
  max-width: 440px;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s;
  max-height: 90vh;
  overflow-y: auto;
}
.modal.op .modal-c { transform: translateY(0); }
.modal-x {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  color: var(--text-d);
  cursor: pointer;
  background: none;
  border: none;
  transition: color .3s;
  line-height: 1;
}
.modal-x:hover { color: var(--text); }
.modal-sw {
  text-align: center;
  margin-top: 16px;
  font-size: .82rem;
  color: var(--text-d);
}
.modal-sw a { color: var(--gold); cursor: pointer; }
.modal-sw a:hover { text-decoration: underline; }
