/* ========================================================================== */
/* RESET & BASE */
/* ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html, body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: #f7f9fc;
  color: #111827;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  transition: 0.2s;
}

:root {
  --blue: #1d4ed8;
  --blue-hover: #153ea6;
  --dark-bg: #0f1623;
  --dark-card: #1b2537;
  --text-dark: #f1f5f9;
}

html.dark body {
  background: var(--dark-bg);
  color: #e2e8f0;
}


/* ========================================================================== */
/* CONTAINER */
/* ========================================================================== */
.container {
  width: 100%;
  max-width: 1320px;
  margin: auto;
  padding: 0 50px;
}

@media (max-width: 992px) {
  .container {
    padding: 0 20px;
  }
}


/* ========================================================================== */
/* HEADER */
/* ========================================================================== */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background: #ffffffd9;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}

html.dark .header {
  background: #0f172ad9;
  border-bottom: 1px solid #1e293b;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  position: relative;
}


/* ========================================================================== */
/* BRAND */
/* ========================================================================== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e3a8a;
}

html.dark .brand-title {
  color: #93c5fd;
}


/* ========================================================================== */
/* NAV CENTRAL */
/* ========================================================================== */
.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 48px;
  align-items: center;
}

.nav a {
  font-size: 1.05rem;
  font-weight: 500;
  color: #475569;
}

.nav a:hover {
  color: #1e40af;
}

html.dark .nav a {
  color: #cbd5e1;
}

html.dark .nav a:hover {
  color: #60a5fa;
}


/* ========================================================================== */
/* RIGHT SIDE (CTA + THEME) */
/* ========================================================================== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* CTA BUTTON */
.nav-right .cta {
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  padding: 12px 26px;
  border-radius: 10px;
  color: #ffffff !important;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px #1e40af40;
}

/* Pulse */
.nav-right .cta::after {
  content: "";
  position: absolute;
  border: 3px solid #2563eb;
  border-radius: 14px;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  animation: pulseStrong 1.5s infinite;
  opacity: 0;
}

@keyframes pulseStrong {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}


/* ========================================================================== */
/* THEME TOGGLE – DESKTOP */
/* ========================================================================== */
.theme-toggle {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.theme-toggle:hover {
  transform: scale(1.25) rotate(12deg);
}

.theme-toggle.animate {
  opacity: 0;
  transform: scale(0.2) rotate(-90deg);
}


/* ========================================================================== */
/* NAV TOGGLE (hamburger) */
/* ========================================================================== */
.nav-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #1e293b;
}

html.dark .nav-toggle {
  color: #e2e8f0;
}


/* ========================================================================== */
/* RESPONSIVE NAV */
/* ========================================================================== */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .nav-right {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .header .container {
    justify-content: space-between;
  }
}


/* ========================================================================== */
/* MOBILE MENU */
/* ========================================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 25px #00000030;
  padding: 70px 25px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: right 0.35s ease;
  z-index: 10000;
}
html.dark .mobile-menu {
  background: #1e293b;
  color: #e2e8f0;
}
.mobile-menu a {
  font-size: 1.2rem;
  color: #1e293b;
  font-weight: 600;
}
html.dark .mobile-menu a {
  color: #e2e8f0;
}
.mobile-menu .cta {
  margin-top: 10px;
  background: #1e3a8a;
  color: white;
  padding: 12px;
  text-align: center;
  border-radius: 10px;
}
.mobile-menu.open {
  right: 0;
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9998; /* logo abaixo do menu (10000) e acima de tudo mais */
}
.menu-backdrop.active {
  opacity: 1;
  pointer-events: all;
}


/* ========================================================================== */
/* MOBILE THEME BUTTON */
/* ========================================================================== */
.theme-toggle-mobile {
  margin-top: 20px;
  padding: 10px 15px;
  font-size: 22px;
  background: #f1f5f9;
  border-radius: 10px;
  width: fit-content;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease;
}

html.dark .theme-toggle-mobile {
  background: #1e293b;
  color: #e2e8f0;
}

.theme-toggle-mobile:hover {
  transform: scale(1.2);
}

@media (min-width: 901px) {
  .theme-toggle-mobile {
    display: none;
  }
}

@media (max-width: 900px) {
  #themeToggle {
    display: none;
  }
}


/* ========================================================================== */
/* HERO */
/* ========================================================================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 140px 0 60px;
  gap: 40px;
}

.hero-left, .hero-right {
  opacity: 0;
  transform: translateY(25px);
  animation: heroFade 0.9s ease forwards;
}

.hero-right {
  animation-delay: 0.25s;
}

@keyframes heroFade {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-left {
  flex: 1.1;
}

.hero-left h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0f172a;
}

html.dark .hero-left h2 {
  color: #f8fafc;
}

.hero-left .lead {
  margin-top: 16px;
  font-size: 1.1rem;
  color: #475569;
}

html.dark .hero-left .lead {
  color: #cbd5e1;
}

.actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 14px #1d4ed845;
}

.btn-ghost {
  background: #e4e8f5;
  color: #1e293b;
}

.specs {
  margin-top: 32px;
  list-style: none;
}

.specs .muted {
  color: #64748b;
}


/* ========================================================================== */
/* HERO IMAGE */
/* ========================================================================== */
.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero-image {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  box-shadow: 0 5px 20px #00000015;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}


/* HERO — (max-width: 900px) */
@media (max-width: 900px) {

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px; 
    padding-bottom: 60px;
    gap: 25px;
  }

  .hero-left {
    align-items: center;
    justify-content: center;
  }

  .hero-left h2 {
    font-size: 2.2rem;
    line-height: 1.25;
  }

  .lead {
    max-width: 90%;
    margin: 0 auto;
  }

  .actions {
    justify-content: center;
  }
  .hero-image,
  .hero-right {
    display: none !important;
  }
}



/* ========================================================================== */
/* SECTION — MODELOS */
/* ========================================================================== */

.portfolio {
  padding: 50px 0 80px;
}
.portfolio h3 {
  font-size: 2.4rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 10px;
}
html.dark .portfolio h3 {
  color: #f1f5f9;
}
.portfolio .muted {
  color: #475569;
  font-size: 1.1rem;
}
html.dark .portfolio .muted {
  color: #cbd5e1;
}

/* ===========================
   REVEAL ANIMATION (CARDS)
  =========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================== */
/* GRID */
/* ========================================================================== */
.portfolio .grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 1100px) {
  .portfolio .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .portfolio .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ========================================================================== */
/* CARD */
/* ========================================================================== */
.card {
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 20px #00000010;
  transition: 0.25s ease;
}
html.dark .card {
  background: #1b2537;
  border: 1px solid #2a3448;
  box-shadow: 0 6px 20px #00000040;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px #00000020;
}
html.dark .card:hover {
  box-shadow: 0 14px 36px #00000070;
}

/* ========================================================================== */
/* CARD TITLE / THUMB */
/* ========================================================================== */
.thumb {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 14px;
}
.thumb span {
  color: #2563eb;
}
html.dark .thumb {
  color: #93c5fd;
}
html.dark .thumb span {
  color: #60a5fa;
}

/* ========================================================================== */
/* CARD DESCRIPTION */
/* ========================================================================== */
.card p.muted {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.5;
}

/* ========================================================================== */
/* ACTION BUTTONS */
/* ========================================================================== */
.card-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* DEMO BUTTON */
.btn-demo {
  flex: 1;
  background: #808285;
  padding: 12px 22px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  transition: 0.2s ease;
}
.btn-demo:hover {
  background: #102a5b;
  box-shadow: 0 6px 20px #1e3a8a55;
}
html.dark .btn-demo {
  background: #374151;
  color: #f1f5f9;
}
html.dark .btn-demo:hover {
  background: #4b5563;
}

/* CHOOSE BUTTON */
.btn-choose {
  flex: 1;
  background: #1e3a8a;
  padding: 10px 22px;
  border-radius: 10px;
  text-align: center;
  color: white;
  transition: 0.2s ease;
  box-shadow: 0 4px 14px #1e3a8a40;
}
.btn-choose:hover {
  background: #646568;
  box-shadow: 0 6px 20px #1e3a8a55;
}

/* ========================================================================== */
/* MOBILE RESPONSIVE */
/* ========================================================================== */
@media (max-width: 700px) {
  .card-actions {
    flex-direction: column;
  }
  .btn-demo,
  .btn-choose {
    width: 100%;
  }
  .card {
    padding: 26px;
  }
}

/* ========================================================================== */
/* REVEAL ANIMATION */
/* ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================== */
/* PLANOS (PRICING) */
/* ========================================================================== */

.pricing {
  padding: 100px 0;
  text-align: center;
}

.pricing h3 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.pricing .muted.small {
  margin-top: 22px;
  font-size: 0.9rem;
}

html.dark .pricing h3 {
  color: #f1f5f9;
}

/* GRID */
.pricing-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

/* CARD */
.price {
  background: white;
  padding: 40px 32px;
  border-radius: 18px;
  text-align: left;
  box-shadow: 0 8px 30px #00000015;
  border: 1px solid #e5e7eb;
  position: relative;
  transition: 0.3s ease;
}

html.dark .price {
  background: #1b2537;
  border: 1px solid #2d3748;
  box-shadow: 0 8px 30px #0005;
}

.price:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 38px #00000025;
}

/* RECOMENDADO — SOMENTE NO PLANO BÁSICO (primeiro card) */
.pricing-grid .price:first-child::before {
  content: "RECOMENDADO";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  color: white;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px #1e40af55;
}

/* TÍTULO + PREÇO */
.price h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.price .value {
  font-size: 2rem;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 20px;
}

html.dark .price .value {
  color: #60a5fa;
}

/* LISTA */
.price ul {
  list-style: none;
  margin: 0 0 28px 0;
  padding: 0;
}

.price ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
}

.price ul li::before {
  content: "✔";
  color: #1d4ed8;
  font-weight: 700;
}

html.dark .price ul li {
  color: #cbd5e1;
}

html.dark .price ul li::before {
  color: #60a5fa;
}

/* BOTÕES */
.price .buy {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.price .btn-primary:hover {
  transform: scale(1.03);
}

.price .btn-ghost:hover {
  transform: scale(1.03);
}

/* ========================================================================== */
/* ABOUT + CONTACT */
/* ========================================================================== */

.about {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* TEXT BLOCK */
.about-grid h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

html.dark .about-grid h3 {
  color: #f1f5f9;
}

.about-grid p.muted {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
}

html.dark .about-grid p.muted {
  color: #94a3b8;
}

/* ========================================================================== */
/* CONTACT CARD */
/* ========================================================================== */

.contact-card {
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  box-shadow: 0 10px 40px #00000020;
  border: 1px solid #e5e7eb;
  transition: 0.3s ease;
}

html.dark .contact-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid #374151;
  box-shadow: 0 10px 40px #0007;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 45px #00000025;
}

/* FORM */
.contact-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-card label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 1rem;
  transition: 0.2s;
  outline: none;
}

/* HOVER/FOCUS */
.contact-card input:focus,
.contact-card textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #2563eb33;
}

/* DARK MODE FIELDS */
html.dark .contact-card input,
html.dark .contact-card textarea {
  background: #1f2937;
  border: 1px solid #4b5563;
  color: #f1f5f9;
}

html.dark .contact-card input:focus,
html.dark .contact-card textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px #60a5fa33;
}

/* BUTTON */
.contact-card .btn-primary {
  width: 100%;
  padding: 14px 0;
}

.contact-card .btn-primary:hover {
  transform: scale(1.03);
}

/* FOOTNOTE */
.contact-card p.small {
  margin-top: 14px;
  text-align: center;
}

/* ========================================================================== */
/* REVEAL ANIMATION (já integrado ao seu site) */
/* ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================== */
/* FOOTER */
/* ========================================================================== */

.footer {
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  margin-top: 80px;
}

.footer-inner p {
  margin: 6px 0;
  font-size: 1rem;
  color: #334155;
}

.footer-inner .muted {
  color: #64748b;
  font-size: 0.95rem;
}

/* DARK MODE */
html.dark .footer {
  border-top: 1px solid #334155;
}

html.dark .footer-inner p {
  color: #e2e8f0;
}

html.dark .footer-inner .muted {
  color: #94a3b8;
}

/* ========================================================================== */
/* POPUP MODELOS */
/* ========================================================================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: #00000080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.popup-overlay.active {
  display: flex;
}

.popup-box {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  padding: 28px 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 40px #00000040;
  animation: popupFade 0.4s ease;
}

html.dark .popup-box {
  background: #1e293b;
  color: #f1f5f9;
  box-shadow: 0 10px 40px #00000080;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botão do popup */
.popup-btn {
  margin-top: 20px;
  background: #1d4ed8;
  color: white;
  padding: 12px 0;
  width: 100%;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.25s;
}

.popup-btn:hover {
  background: #102a5b;
  transform: scale(1.03);
}

html.dark .popup-btn {
  background: #3b82f6;
}
html.dark .popup-btn:hover {
  background: #60a5fa;
}

/* ========================================================================== */
/* WHATSAPP POPUP */
/* ========================================================================== */

.wpp-popup {
  position: fixed;
  bottom: 110px;
  right: 20px;
  width: 260px;
  padding: 18px 16px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 35px #00000035;
  z-index: 99999;
  display: none;
  animation: wppSlide 0.35s ease;
}

.wpp-popup.active {
  display: block;
}

html.dark .wpp-popup {
  background: #1e293b;
  box-shadow: 0 10px 35px #0007;
  color: #e2e8f0;
}

@keyframes wppSlide {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wpp-header {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.wpp-text {
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.4;
  color: #475569;
}

html.dark .wpp-text {
  color: #cbd5e1;
}

/* Botão WhatsApp no popup */
.wpp-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #25d366;
  color: white;
  padding: 12px 0;
  border-radius: 10px;
  font-weight: 700;
  transition: 0.2s;
}

.wpp-btn:hover {
  background: #128c7e;
  transform: scale(1.03);
}

/* ========================================================================== */
/* WHATSAPP FLOAT BUTTON */
/* ========================================================================== */

.wpp-bubble {
  position: fixed;
  bottom: 25px;
  right: 22px;
  width: 65px;
  height: 65px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px #00000040;
  z-index: 99998;
  transition: 0.2s ease;
}

.wpp-bubble img {
  width: 36px;
}

.wpp-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px #00000050;
}

/* DARK MODE */
html.dark .wpp-bubble {
  background: #22c55e;
}

/* Esconde bolha quando popup abrir */
.wpp-popup.active + .wpp-bubble {
  display: none;
}
