/* =====================================================
   layout.css — header, mega menu, menu mobile, footer,
   CTA fixo mobile. Carregado em todas as páginas.
   ===================================================== */
header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(227,234,242,.9);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
  position: relative;
}
.logo-img { height: 28px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  font-size: 14.5px; font-weight: 600; color: #3D4C5C;
}
.nav-links > a,
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px; color: #3D4C5C;
}
.nav-links > a:hover,
.nav-trigger:hover { color: var(--navy); background: #F4F8FC; }
.nav-item { position: static; }
.nav-item:has(> .nav-drop) { position: relative; }
.nav-trigger { background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.nav-trigger svg { width: 12px; height: 12px; opacity: .55; transition: transform .15s ease; }
.nav-item:hover .nav-trigger svg,
.nav-item.is-open .nav-trigger svg { transform: rotate(180deg); }

/* Mega-menu Hospedagem */
.mega-host {
  display: none;
  position: absolute;
  /* Flush to .nav bottom; padding-top is the visual gap AND the hover bridge
     (avoids dead zone between trigger and panel that made the menu vanish). */
  top: 100%;
  left: 0;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 30%);
  gap: 20px 24px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 24px 24px;
  box-shadow:
    0 0 0 1px rgba(15,23,42,.05),
    0 8px 16px rgba(15,23,42,.04),
    0 24px 56px rgba(15,23,42,.12);
  z-index: 50;
}
.mega-host::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  /* Reach up through the header so moving from the trigger never leaves :hover */
  top: -72px;
  height: 72px;
}
.nav-item.is-open > .mega-host { display: grid; }
.mega-host-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  min-width: 0;
}
.mega-col { min-width: 0; }
.mega-col h4,
.mega-col-label {
  margin: 0 12px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2);
}
.mega-link {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 12px;
}
.mega-link:hover { background: #F4F8FC; }
.mega-ico {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 0; margin: 0; padding: 0; box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
.mega-ico svg {
  width: 20px; height: 20px; display: block; margin: 0; flex-shrink: 0;
  overflow: visible;
}
.mega-ico.wp { background: #E7F8FA; color: var(--teal-d); }
.mega-ico.wp img { width: 20px; height: 20px; display: block; object-fit: contain; }
.mega-ico.ssd { background: #EEF2F7; color: var(--navy); }
.mega-ico.traf { background: #E8F1FF; color: #2B5A9E; }
.mega-ico.vps { background: #F0EEFF; color: #3D3A8A; }
.mega-ico.n8n { background: #FFF3E8; color: #C05621; }
.mega-ico.mig { background: #E7F8FA; color: var(--teal-d); }
.mega-ico.ticket { background: #EEF2F7; color: var(--navy); }
.mega-ico.wa { background: #E7F6EF; color: var(--ok); }
.mega-ico.chat { background: #E8F1FF; color: #2B5A9E; }
.mega-ico.help { background: #E7F8FA; color: var(--teal-d); }
.mega-link > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mega-link strong {
  display: block; font-size: 14px; font-weight: 700; color: var(--navy);
  letter-spacing: -.01em; line-height: 1.25;
}
.mega-link > span:last-child > span {
  display: block; margin-top: 2px;
  font-size: 12.5px; font-weight: 450; color: var(--muted); line-height: 1.35;
}

/* Promo card inside mega — dark panel, Hostinger-inspired */
.mega-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 20px 18px 18px;
  border-radius: 16px;
  overflow: hidden;
  min-height: 100%;
  background:
    radial-gradient(240px 180px at 80% 8%, rgba(47,201,212,.28), transparent 58%),
    radial-gradient(200px 160px at 0% 100%, rgba(47,201,212,.12), transparent 50%),
    linear-gradient(165deg, #132846 0%, #0B1B33 55%, #071321 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.mega-promo:hover {
  border-color: rgba(47,201,212,.35);
  box-shadow: 0 12px 32px rgba(7,19,33,.28), inset 0 1px 0 rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.mega-promo-visual {
  position: relative;
  height: 110px;
  display: grid;
  place-items: center;
  margin: 0 0 4px;
}
.mega-promo-ring {
  position: absolute;
  width: 96px; height: 96px;
  border-radius: 24px;
  border: 1.5px solid rgba(47,201,212,.35);
  box-shadow:
    0 0 0 10px rgba(47,201,212,.10),
    0 0 40px rgba(47,201,212,.18);
}
.mega-promo-icon {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.96);
  color: var(--teal-d);
  box-shadow: 0 12px 28px rgba(0,0,0,.28), 0 0 0 1px rgba(47,201,212,.2);
}
.mega-promo-icon svg { width: 28px; height: 28px; display: block; }
.mega-promo-kicker {
  margin: 0;
  font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal);
}
.mega-promo h3,
.mega-promo-title {
  margin: 0;
  font-size: 20px; font-weight: 800; color: #fff;
  letter-spacing: -.025em; line-height: 1.2;
}
.mega-promo p {
  margin: 0;
  font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.68);
  line-height: 1.45;
}
.mega-promo-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 6px;
  height: 40px; padding: 0 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-size: 13.5px; font-weight: 700;
  letter-spacing: -.01em;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.mega-promo:hover .mega-promo-cta { background: #F2F8FF; }

/* Atendimento dropdown (smaller panel) */
.nav-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: min(340px, calc(100vw - 48px));
  background: #fff;
  border-radius: 14px;
  padding: 12px 10px 10px;
  box-shadow:
    0 0 0 1px rgba(15,23,42,.05),
    0 8px 16px rgba(15,23,42,.04),
    0 24px 48px rgba(15,23,42,.12);
  z-index: 50;
}
.nav-drop::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -48px;
  height: 48px;
}
.nav-item.is-open > .nav-drop { display: block; }
.nav-drop .mega-link { padding: 10px; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost,
.nav-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px;
  border-radius: 9px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 14px; font-weight: 650;
  letter-spacing: -.01em;
}
.btn-ghost:hover,
.nav-ghost:hover {
  background: #F4F8FC;
}
.btn-nav-primary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: var(--teal);
  color: var(--navy);
  font-size: 14px; font-weight: 700;
  letter-spacing: -.01em;
}
.btn-nav-primary:hover { background: #3ed3dd; }

.hamburger {
  display: none; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer; z-index: 46;
}
.hamburger i { display: block; width: 16px; height: 1.5px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav — StayCloud-style full-screen drawer (Nuvem brand) */
#mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
#mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
#mobile-nav[hidden] { display: none !important; }
.mn-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}
.mn-logo { display: inline-flex; align-items: center; }
.mn-logo .logo-img { height: 26px; width: auto; }
.mn-close {
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mn-close:hover { background: #F4F8FC; }
.mn-close svg { width: 18px; height: 18px; }
.mn-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 8px 16px;
}
.mn-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 14px 12px;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
}
.mn-row:last-child { border-bottom: 0; }
.mn-row strong {
  display: block;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.01em;
  color: var(--navy);
  line-height: 1.25;
}
.mn-row span {
  display: block;
  font-size: 13px;
  font-weight: 450;
  color: var(--muted);
  line-height: 1.35;
}
.mn-row:hover,
.mn-row:focus-visible {
  background: #F4F8FC;
  outline: none;
}
.mn-cta {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #fff;
}
.mn-cta-ghost,
.mn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
  text-align: center;
  text-decoration: none;
}
.mn-cta-ghost {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
}
.mn-cta-ghost:hover { background: #F4F8FC; border-color: #cfd8e3; }
.mn-cta-primary {
  border: 1px solid transparent;
  background: #2fc9d4;
  color: var(--navy);
}
.mn-cta-primary:hover { background: #3ed3dd; }
body.nav-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  #mobile-nav,
  #mobile-nav.is-open {
    transition: none;
    transform: none;
  }
}
@media (min-width: 981px) {
  #mobile-nav,
  #mobile-nav.is-open { display: none !important; }
}

/* ===== Hero ===== */

/* ===== Sticky mobile CTA ===== */
.sticky-cta-mobile {
  display: none;
}
@media (max-width: 768px) {
  body.has-sticky-cta {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  .sticky-cta-mobile {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 55;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(227,234,242,.95);
    box-shadow: 0 -10px 28px rgba(11,27,51,.10);
  }
  .sticky-cta-mobile.is-hidden { display: none; }
  .sticky-cta-mobile a {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 44px; border-radius: 10px;
    font-weight: 700; font-size: 14px; letter-spacing: -.01em;
  }
  .sticky-cta-mobile .sticky-plans {
    background: var(--teal); color: var(--navy);
  }
  .sticky-cta-mobile .sticky-wa {
    background: var(--navy); color: #fff;
  }
  .sticky-cta-mobile .sticky-wa svg { width: 16px; height: 16px; }
}

/* ===== Footer ===== */
footer {
  background: #071321; color: rgba(255,255,255,.7);
  padding: 48px 0 26px; font-size: 14px;
}
.foot-grid h4 {
  margin: 0 0 12px; color: #fff; font-size: 11.5px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 750;
}
.foot-grid a { display: block; margin: 0 0 7px; color: rgba(255,255,255,.66); font-size: 13.5px; }
.foot-grid a:hover { color: #fff; }
.logo-img-footer { filter: brightness(0) invert(1); opacity: .95; height: 26px; margin-bottom: 12px; }
.foot-lead { margin: 0; max-width: 260px; line-height: 1.5; font-size: 13.5px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,.48);
}
.foot-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  flex-wrap: wrap;
}
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin: 0; /* override foot-grid a display:block */
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  line-height: 0;
  flex-shrink: 0;
  vertical-align: middle;
  box-sizing: border-box;
}
.foot-social a:hover { background: rgba(255,255,255,.08); color: #fff; }
.foot-social svg {
  width: 18px; height: 18px;
  display: block;
  flex-shrink: 0;
  margin: 0;
}

/* Técnico CTA */
.foot-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 28px 36px;
  margin-bottom: 28px;
  align-items: start;
}
.foot-company { min-width: 0; }

.foot-company .logo-img-footer { margin-bottom: 12px; }
.foot-company .foot-addr { margin: 0 0 10px; }
.foot-company .foot-contact { display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.foot-company .foot-email { display: block; margin: 0; width: 100%; }
.foot-company .foot-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
  margin-top: 0;
}
.foot-company .foot-ig svg { width: 18px; height: 18px; display: block; }
.foot-company .foot-ig:hover { background: rgba(255,255,255,.08); color: #fff; }

.foot-company .foot-cnpj {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 650;
  color: rgba(255,255,255,.78);
  line-height: 1.45;
}
.foot-company .foot-addr {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}
.foot-company .foot-email {
  display: block;
  margin: 0;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 650;
  width: 100%;
}
.foot-company .foot-email:hover { color: #2fc9d4; }
.foot-links-block { min-width: 0; }
.foot-slogan {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.25;
  max-width: 420px;
}
.foot-slogan em {
  font-style: normal;
  color: #2fc9d4;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
}
.foot-social-col { min-width: 0; }
.foot-social-col h4 { margin: 0 0 12px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-social-col { grid-column: 1 / -1; }
  .foot-cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-ghost { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
}
