:root {
  --color-primary: #5fd1f5;
  --color-primary-dark: #3ab8df;
  --color-primary-light: #e6f7fd;
  --color-brand: #064379;
  --color-brand-dark: #042f55;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f6fbff;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-full: 999px;
  --shadow: 0 10px 28px rgba(6, 67, 121, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 67, 121, 0.92);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-symbol {
  width: auto;
  height: 34px;
  object-fit: contain;
}

.brand-name {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nav a.active {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  background: var(--color-primary);
  color: var(--color-brand);
  cursor: pointer;
}

.btn:hover {
  background: #88ddf7;
}

.btn-small {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-slide:nth-child(1) {
  background-image: url("./assets/img/bg_casa.jpg");
}

.hero-slide:nth-child(2) {
  background-image: url("https://plus.unsplash.com/premium_photo-1725408023984-f535e86aa58f?q=80&w=2942&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}

.hero-slide:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1581578731548-c64695cc6952?q=80&w=1800&auto=format&fit=crop");
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(6, 67, 121, 0.94), rgba(6, 67, 121, 0.78));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 5rem 0;
  max-width: 780px;
  transform: translateY(-52px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(clamp(70px, 10vw, 130px) + 16px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  opacity: 0.75;
}

.hero-dot:hover {
  transform: scale(1.1);
  opacity: 1;
}

.hero-dot.is-active {
  background: #fff;
  opacity: 1;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(70px, 10vw, 130px);
  z-index: 2;
  line-height: 0;
  overflow: hidden;
}

.hero-wave svg {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 220%;
  min-width: 1600px;
  height: clamp(70px, 10vw, 130px);
}

.hero-wave path {
  fill: var(--bg);
}

.hero-wave .wave-a {
  opacity: 0.95;
  animation: waveMoveA 14s linear infinite;
}

.hero-wave .wave-b {
  opacity: 0.45;
  animation: waveMoveB 20s linear infinite reverse;
}

@keyframes waveMoveA {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes waveMoveB {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.06;
  margin: 0.9rem 0;
}

h1 span {
  color: var(--color-primary);
}

.hero-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.hero-trust {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 86px;
}

.section-soft {
  background: var(--bg-soft);
}

#areas {
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url("./assets/img/euro.png") center / cover no-repeat;
}

.section-head {
  margin-bottom: 1.25rem;
}

.label {
  color: var(--color-brand);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--color-brand);
  margin: 0.35rem 0 0;
}

.cards {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 4px 18px rgba(6, 67, 121, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-has-badge {
  position: relative;
  padding-top: 2.15rem;
}

.card-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.card h3 {
  margin: 0 0 0.45rem;
  color: var(--color-brand);
}

.card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

#servicos .card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 30px rgba(6, 67, 121, 0.18);
  border-color: #c8e8f5;
}

#servicos .card:active {
  transform: translateY(-2px) scale(1.01);
}

.about {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
}

.about-points {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.about-point-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.12rem;
}

.about-point-icon svg {
  width: 13px;
  height: 13px;
}

.about-point strong {
  color: var(--color-brand);
  display: block;
  font-size: 0.98rem;
}

.about-point p {
  margin: 0.2rem 0 0;
  color: var(--color-muted);
  line-height: 1.5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  justify-items: center;
}

.stats div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 220px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stats strong {
  display: block;
  color: var(--color-brand);
  font-size: 1.4rem;
}

.stats span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.contact {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.contact-info p {
  margin: 0.45rem 0;
  color: var(--color-muted);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(6, 67, 121, 0.08);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 700;
  color: var(--color-brand);
  position: relative;
  padding-right: 2.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--color-brand);
  font-size: 0.9rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.footer {
  position: relative;
  overflow: visible;
  background: #0a1628;
  color: rgba(255, 255, 255, 0.8);
  padding: 1.25rem 0;
}

.footer-wave {
  position: absolute;
  left: 0;
  right: 0;
  top: -62px;
  height: 62px;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.footer-wave svg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 220%;
  min-width: 1500px;
  height: 62px;
}

.footer-wave path {
  fill: #0a1628;
}

.footer-wave-a {
  opacity: 0.92;
  animation: footerWaveMoveA 14s linear infinite;
}

.footer-wave-b {
  opacity: 0.45;
  animation: footerWaveMoveB 20s linear infinite reverse;
}

@keyframes footerWaveMoveA {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes footerWaveMoveB {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.footer-brand-symbol {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.footer-brand-name {
  height: 45px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.footer-social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.footer-cookie-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.footer-cookie-link:hover {
  color: #fff;
}

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  justify-content: center;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__content {
  width: min(720px, 100%);
  background: rgba(10, 22, 40, 0.97);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(10, 22, 40, 0.28);
  padding: 1.35rem;
  backdrop-filter: blur(14px);
}

.cookie-consent__eyebrow {
  margin: 0 0 0.4rem;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.cookie-consent p {
  margin: 0.65rem 0 0;
  line-height: 1.6;
}

.cookie-consent__details {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-consent__details summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
}

.cookie-consent__details p {
  color: rgba(255, 255, 255, 0.84);
}

.cookie-consent__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.cookie-btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.float-btn svg {
  width: 26px;
  height: 26px;
}

.float-btn:hover {
  transform: translateY(-2px);
}

.float-whatsapp {
  background: #25d366;
}

.float-whatsapp:hover {
  background: #1fb95a;
}

.float-top {
  background: var(--color-brand);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}

.float-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #063a69;
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }

  .btn-small {
    display: none;
  }

  .grid-3,
  .grid-2,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .cookie-consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-consent__content {
    padding: 1.1rem;
  }

  .cookie-consent__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .cookie-consent__actions .btn {
    width: 100%;
  }

  .float-btn {
    width: 52px;
    height: 52px;
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-slide {
    transition: none;
  }

  .card {
    transition: none;
  }

  #servicos .card:hover,
  #servicos .card:active {
    transform: none;
    box-shadow: 0 4px 18px rgba(6, 67, 121, 0.08);
  }

  .hero-wave .wave-a,
  .hero-wave .wave-b {
    animation: none;
  }

  .footer-wave-a,
  .footer-wave-b {
    animation: none;
  }

}
