:root {
  --primary-blue: #1c66a9;
  --dark-blue: #1a2f58;
  --light-blue: #61c7e6;
  --highlight-yellow: #f9c521;
  --background: #f3f4f8;
  --accent-dark: #302319;
}

/* ===================== */
/* HEADER                */
/* ===================== */
.dm-header {
  background-color: var(--primary-blue);
  color: #fff;
  padding: 0.3rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  position: relative;
  z-index: 9999; /* header inteiro acima da imagem */
}

.header-logo {
  height: 44px;
  width: auto;
  border-radius: 50%;
}

/* MENU DESKTOP */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active {
  font-weight: 700;
  color: var(--highlight-yellow);
}

/* HAMBÚRGUER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 10001; /* sempre acima da imagem */
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* IDIOMA */
.language-selector {
  position: relative;
  z-index: 9999;
}
#language-btn {
  background-color: #e0e7f1;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary-blue);
}
.arrow-down { margin-left: 0.3rem; }

.language-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 2.4rem;
  background: white;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  z-index: 99999; /* acima de tudo */
}
.language-dropdown li {
  padding: 0.4rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  color: var(--primary-blue);
  font-weight: 600;
}
.language-dropdown li:hover {
  background-color: #f0f0f0;
  color: var(--dark-blue);
}

/* MOBILE MENU */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;              /* logo abaixo do header */
    right: 1rem;
    background: var(--primary-blue);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    z-index: 10000;
  }
  .nav-links.active { display: flex; }

  .nav-links a {
    color: white;
    padding: 0.5rem 0;
  }

  .hamburger { display: flex; }
}

/* ===================== */
/* HERO IMAGE            */
/* ===================== */
.header-image {
  width: 100%;
  min-height: clamp(320px, 42vw, 520px);
  background: url('../images/CleaningTeam313.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0; /* atrás do header/menu */
}

/* Texto na imagem */
.header-text {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 2px 2px 6px rgba(0,0,0,.6);
  top: 58%;
  left: 50%;                         /* centraliza */
  transform: translate(-50%, -50%);
  max-width: 360px;
  font-size: 1.6rem;
  text-align: center;                /* garante centralização */
}
@media (max-width: 768px) {
  .header-text {
    top: 65%;
    font-size: clamp(1rem, 4vw, 1.3rem);
    max-width: 90%;
  }
}
@media (max-width: 600px) {
  .header-text { font-size: 1.1rem; max-width: 250px; }
}

/* ===================== */
/* FUNDO / TEXTOS / LINKS*/
/* ===================== */
body {
  background-color: var(--background);
  color: var(--dark-blue);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}
a { color: var(--primary-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* BOTÕES */
.button-primary {
  background-color: var(--primary-blue);
  color: white;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.button-primary:hover { background-color: var(--dark-blue); }
.highlight {
  background-color: var(--highlight-yellow);
  color: var(--accent-dark);
  padding: 0.4em 0.8em;
  border-radius: 4px;
  font-weight: bold;
}

/* ===================== */
/* CARDS MVV             */
/* ===================== */
.dm-cards { max-width: 1100px; margin: 2.5rem auto; padding: 0 1rem; }
.dm-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.dm-card {
  background:#fff;
  border-radius:14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  padding: 1.2rem 1.25rem 1.4rem;
  border-top: 6px solid var(--primary-blue);
}
.dm-card:nth-child(2){ border-top-color: #31c48d; }
.dm-card:nth-child(3){ border-top-color: #e84a5f; }
.dm-card-icon {
  display:inline-flex;
  width:46px; height:46px;
  align-items:center; justify-content:center;
  border-radius:12px;
  background: rgba(97,199,230,.18);
  margin-bottom:.6rem;
  font-size: 1.2rem; color: var(--dark-blue);
}
.dm-card h3{ margin:.2rem 0 .5rem; font-size:1.3rem; font-weight:800; color: var(--dark-blue); }
.dm-card p{ margin:0; line-height:1.6; }
.dm-card-list { margin:.25rem 0 0 1rem; padding:0; line-height:1.6; text-align:left; }
.dm-card-list li { margin:.25rem 0; }

@media (max-width: 900px){ .dm-cards-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .dm-cards-grid{ grid-template-columns: 1fr; } }

/* ===================== */
/* CARROSSEL SERVIÇOS    */
/* ===================== */
.carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 56px;
}
.carousel {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: 0 0 calc((100% - 2 * 32px) / 3);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.carousel-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  display: block;
}
.carousel-caption {
  margin-top: 10px;
  width: 100%;
  text-align: center;
  line-height: 1.35;
  color: var(--dark-blue);
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border: 0; border-radius: 10px;
  background: var(--primary-blue);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.arrow.left  { left: 8px; }
.arrow.right { right: 8px; }

/* ===================== */
/* SERVIÇOS ÍCONES       */
/* ===================== */
.servicos-icones {
  padding: 3rem 1rem;
  text-align: center;
  background-color: white;
  color: var(--dark-blue);
}
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}
.servico-box { text-align: center; max-width: 120px; }
.servico-box img {
  width: 80px; height: 80px; object-fit: contain;
  display: block; margin: 0 auto 0.5rem;
}
.servico-box p { margin:0; font-weight:600; color: var(--dark-blue); }

/* ===================== */
/* DEPOIMENTOS           */
/* ===================== */
.testimonials-section {
  background: rgba(97,199,230,.15);
  padding: 4rem 1rem;
}
.testimonials-container { max-width: 1100px; margin: 0 auto; }
.testimonials-title { text-align:center; font-size:2.2rem; margin:0 0 .5rem; color:var(--dark-blue); font-weight:800; }
.testimonials-subtitle { text-align:center; margin:0 0 1.8rem; opacity:.9; }
.rating-summary {
  margin: 1.5rem auto 2.2rem;
  background: #fff;
  border-radius: 12px;
  padding: .85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  max-width: 500px;
  text-align: center;
  font-weight: 600;
  color: var(--dark-blue);
}
.rating-summary strong { color: var(--primary-blue); }
.rating-summary .stars { display: flex; gap: 3px; align-items: center; }
.rating-summary .stars i { color: var(--highlight-yellow); font-size: 1.2rem; }
.rating-summary .score { margin-left: 0.5rem; color: var(--dark-blue); font-weight: 700; }
.rating-summary .count { margin-left: 0.5rem; color: var(--primary-blue); }
.rating-summary .brand { margin-left: 0.5rem; color: var(--accent-dark); font-weight: 600; }

.testimonial-card {
  background: #ececec26;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.t-name { font-weight:800; }
.t-meta { font-size:.95rem; opacity:.8; margin-top:2px; }
.t-stars i { color: var(--highlight-yellow); }
.t-text { margin:.6rem 0 0; line-height:1.55; }

@media (max-width: 900px){ .testimonials-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .testimonials-grid { grid-template-columns: 1fr; } }

/* ===================== */
/* FORMULÁRIO CONTATO    */
/* ===================== */
.contact-form-section {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  text-align: center;
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; text-align: left; }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: .4rem; font-weight: 600; color: var(--dark-blue); }
.form-group input,
.form-group textarea {
  width: 100%; box-sizing: border-box;
  padding: .8rem; border: 1px solid #ccc; border-radius: 6px;
  font-size: 1rem; outline: none; background:#fff; color:#222;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #9aa0a6; }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 4px rgba(28,102,169,.2);
}
.contact-form button {
  align-self: flex-start;
  padding: .8rem 1.4rem;
  font-weight: 700;
}
@media (max-width: 480px) {
  .contact-form button { width: 100%; text-align: center; }
}

/* ===================== */
/* WHATSAPP FLOAT        */
/* ===================== */
.whatsapp-float {
  position: fixed;
  width: 60px; height: 60px;
  bottom: 20px; right: 20px;
  background-color: #25d366;
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  background-color: #20ba5a;
}

/* ===================== */
/* ÁREA DE SERVIÇO       */
/* ===================== */
.area-servico {
  background-color: var(--background);
  color: var(--dark-blue);
  text-align: center;
  padding: 3rem 1rem;
}
.area-servico h2 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 800;
}
.area-servico p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* ===================== */
/* FOOTER                */
/* ===================== */
.footer-diemarias {
  background-color: var(--dark-blue);
  color: white;
  padding: 1.5rem 1rem;
  border-top: 2px solid #e0e0e0;
}
.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-copy { margin: 0; font-size: .95rem; }
.footer-social { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.footer-social a {
  background-color: var(--light-blue);
  color: var(--dark-blue);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.footer-social a:hover {
  background-color: var(--highlight-yellow);
  color: var(--accent-dark);
  transform: scale(1.1);
}
@media (max-width: 600px) {
  .footer-container { flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
}

/* ===================== */
/* ANIMAÇÕES             */
/* ===================== */
.pulse { animation: pulse-animation 1.5s infinite; }
@keyframes pulse-animation {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
