/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  color: #222;
  background: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= HEADER ================= */

.header {
  background: #0f172a;
  border-bottom: 1px solid #0140c0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.1rem 0;
}

/* LOGO */

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 46px;
  width: auto;
}

/* ================= NAV ================= */

.nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* LINKS PRINCIPAIS */

.nav-trigger,
.nav-item > a {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  padding: 0.5rem 0;
  text-decoration: none;
}

.nav-item.btn-wrapper {
  margin-left: auto;
}

.nav-trigger:hover,
.nav-item > a:hover {
  color: #2563eb;
}

/* ================= BOTÃO CONTATO ================= */

.btn-contato {
  background-color: #2563eb !important;
  color: #ffffff !important;

  padding: 0.8rem 1.5rem !important;
  min-height: 44px;

  border-radius: 9px;
  font-weight: 600;

  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 0 0 2px #2563eb;
  transition: transform 0.6s ease;
}

.btn-contato:hover {
  transform: scale(1.15);
}




/* ================= DROPDOWN ================= */

.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  min-width: 220px;
  padding: 0.6rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  color: #0f172a;
  text-decoration: none;
}

.dropdown-panel a:hover {
  background: #f1f5f9;
}


/* ================= SERVIÇOS (MENU HIERÁRQUICO) ================= */

.services-column {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-item.has-sub span::after {
  content: "›";
  float: right;
  opacity: 0.6;
}


.service-item.has-sub:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  
}



/* ================= HERO ================= */

.hero {
  background: linear-gradient(120deg, #020617, #1d2a47);
  color: #fff;
  padding: 6rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin-bottom: 2rem;
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  font-weight: bold;
  transition: transform 0.6s ease;
  margin: 0.1rem
}

.btn.primary {
  background: #2563eb;
  color: #fff;
}

.btn.primary:hover, .btn.outline:hover{
  transform: scale(1.05);
  box-shadow: 0 14px 30px #0d2863ad;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn.outline {
  border: 2px solid #fff;
  color: #fff;
}

/* ================= SERVIÇOS SECTION ================= */

.servicos {
  padding: 5rem 0;
}

.servicos h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  padding: 1.2rem;
}

/* ================= SOBRE ================= */

.sobre {
  background: #f1f5f9;
  padding: 5rem 0;
}

/* ================= FOOTER ================= */

.footer {
  background: #020617;
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
  margin-top: auto;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding-bottom: 6rem; /* zona segura */
}


/* ================= RESPONSIVO ================= */

@media (max-width: 768px) {
  .menu {
    gap: 1.2rem;
  }

  .logo img {
    height: 38px;
  }

  /* (Depois podemos fazer menu mobile animado) */
}


/* ================= PAG - CONTATO ================= */

.contato {
  padding: 6rem 0;
  background: #f8fafc;
}

.contato h1 {
  margin-bottom: 1rem;
}

.contato p {
  max-width: 600px;
  margin-bottom: 3rem;
}

.contato-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contato-form input,
.contato-form textarea {
  padding: 0.9rem 1rem;
  border-radius: 6px;
  border: 1px solid #cbd5f5;
  font-size: 0.95rem;
}

.contato-form input:focus,
.contato-form textarea:focus{
  outline: none;
  border-color: #2563eb;
}



/* ================= WHATSAPP FLOAT ================= */

.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 65px;
  height: 65px;

  background: #25d366;
  color: #ffffff;

  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  background: #1ebe5d;
}

.whatsapp-float svg{
  width: 50px;
  height: 50px;
}

/* ================= BOTÃO WHATSAPP na ABA CONTATO ================= */

.btn-whatsapp {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

/* ================= PÁGINA SOBRE ================= */

.sobre h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.sobre p {
  max-width: 760px;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.sobre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.sobre-grid h3 {
  margin-bottom: 0.5rem;
  color: #2563eb;
}


/* ================= PORTFÓLIO ================= */

.portfolio h1 {
  font-size: 2.2rem;
  margin-top: 1rem;
}

.portfolio-intro {
  max-width: 760px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 2rem;
}

.portfolio-item {
  border-radius: 14px;
  overflow: hidden;
}

.portfolio-image {
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.85),
    rgba(2, 6, 23, 0.15)
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-overlay h3 {
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.portfolio-overlay p {
  color: #e5e7eb;
  font-size: 0.95rem;
}

/* Hover premium */
.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .portfolio-grid {
  grid-template-columns: 1fr;
  }
}

/* ================= ANTES E DEPOIS ================= */

.before-after {
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.before-after h3 {
  margin-bottom: 1rem;
}

.ba-wrapper {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 14px;
  cursor: ew-resize;
}

.ba-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-image.after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.1s linear;
}

/* Linha central */
.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.05);
  transform: translateX(-50%);
}

.ba-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  background: #2563eb;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ba-description {
  margin-top: 1rem;
  color: #334155;
  font-size: 0.95rem;
}

/* ================= FEEDBACKS ================= */

.feedbacks-page {
  padding: 5rem 0 6rem;
  background: #f8fafc;
}

.feedbacks-header {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.feedbacks-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  color: #020617;
}

.feedbacks-header p {
  font-size: 1rem;
  color: #475569;
}

/* GRID */
.feedbacks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* CARD */
.feedback-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.feedback-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.feedback-card figcaption {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: #334155;
  text-align: center;
}

/* ================= SERVIÇOS ================= */

.services-page {
  padding: 5rem 0 6rem;
  background: #f8fafc;
}

.services-header {
  max-width: 640px;
  margin-bottom: 4rem;
  text-align: center;
  margin: 0 auto 4rem;
}

.services-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #020617;
}

.services-header p {
  color: #475569;
}

/* BLOCO DO SERVIÇO */
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.service-item.reverse {
  direction: rtl;
}

.service-item.reverse .service-text {
  direction: ltr;
}

.service-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #0f172a;
}

.service-text p {
  color: #475569;
  line-height: 1.6;
}

.service-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  margin-top: 3rem;
}

.service-image img:hover {
  transform: scale(1.03);
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .service-item {
    grid-template-columns: 1fr;
  }

  .service-item.reverse {
    direction: ltr;
  }
}

html {
  scroll-behavior: smooth;
}