/* ============================================================
   LAYOUT — Header, Footer, WhatsApp flutuante
   ============================================================ */

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(15,25,35,0.08);
  padding: 12px 0 8px;
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 24px -6px rgba(15,25,35,0.18);
  padding: 9px 0 6px;
}

.site-header > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo {
  height: 44px;
  width: 44px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
}
.brand-logo--master {
  width: 147px;
  height: 50px;
  object-fit: contain;
  border-radius: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.brand-name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.brand-partner {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Nav */
.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.main-nav a {
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1.5px;
  background: var(--sage);
  transition: right .25s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.icon-close { display: none; }
body.nav-open .nav-toggle { color: var(--on-dark); }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--midnight);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    font-size: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .38s var(--ease), opacity .3s;
    z-index: 99;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; }
  .main-nav a { color: var(--on-dark); }
  .main-nav a::after { background: var(--lime); }
  .brand-name { font-size: 18px; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: flex; z-index: 101; position: relative; }
  body.nav-open .icon-menu  { display: none; }
  body.nav-open .icon-close { display: block; }
  .nav-wa-btn { display: flex; margin-top: 8px; }
}

/* Between the mobile breakpoint and a comfortably wide desktop, the
   inline nav has no room to spare — drop the partner subtitle so
   "Como funciona" etc. don't wrap onto a second line. */
@media (min-width: 901px) and (max-width: 1220px) {
  .brand-partner { display: none; }
}

.nav-wa-btn { display: none; }
@media (max-width: 600px) {
  .brand-logo { height: 38px; width: 38px; }
  .brand-logo--master { width: 116px; height: 40px; }
  .brand-name { font-size: 17px; }
  .site-header { padding: 10px 0 6px; }
  .site-header.is-scrolled { padding: 8px 0 5px; }
  .brand { gap: 8px; }
  .brand-partner { font-size: 10px; }
}
@media (max-width: 480px) {
  .brand-logo { height: 34px; width: 34px; }
  .brand-logo--master { width: 108px; height: 37px; }
  .brand-name { font-size: 16px; }
}

/* ── Footer ── */
.site-footer {
  background: var(--midnight);
  padding: 56px 0 32px;
  border-top: 1px solid rgba(76,214,128,0.10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { margin-bottom: 16px; }
.footer-logo {
  height: 40px;
  width: 40px;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}
.footer-tagline { font-size: 13.5px; color: var(--on-dark-soft); margin-bottom: 20px; line-height: 1.6; }
.footer-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--on-dark-soft);
  border: 1px solid rgba(237,244,240,0.12);
  padding: 5px 10px;
  border-radius: 6px;
}
.footer-nav-title { font-size: 11px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 16px; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { font-size: 14px; color: var(--on-dark-soft); transition: color .2s; }
.footer-nav a:hover { color: var(--on-dark); }
.footer-contact { display: grid; gap: 10px; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-dark-soft); }
.footer-contact-item svg { width: 15px; height: 15px; color: var(--lime); flex-shrink: 0; }

.footer-partners { margin-bottom: 32px; }
.footer-partners nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-partners nav a { color: var(--on-dark-soft); font-size: 14px; }
.footer-partners nav a:hover { color: var(--on-dark); }
.footer-bottom {
  border-top: 1px solid rgba(237,244,240,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--on-dark-soft); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(237,244,240,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.footer-social a:hover { color: var(--on-dark); border-color: var(--lime); background: var(--lime-dim); }
.footer-social svg { width: 15px; height: 15px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── WhatsApp flutuante ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 98;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px -4px rgba(37,211,102,0.65);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: pulse-wa 3.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(37,211,102,0.75);
  animation: none;
}
.whatsapp-float svg { width: 28px; height: 28px; }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 8px 28px -4px rgba(37,211,102,0.65); }
  50%       { box-shadow: 0 8px 38px 6px rgba(37,211,102,0.30); }
}

@media (max-width: 600px) {
  .whatsapp-float { bottom: 20px; right: 16px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}
