/* DonClean — identidade visual */
:root {
  --teal: #008489;
  --teal-deep: #00666b;
  --teal-dark: #004d52;
  --lime: #96c93d;
  --lime-bright: #a8d94f;
  --lime-soft: #e8f5c8;
  --ink: #1a2b2c;
  --muted: #5a6b6c;
  --fog: #f3f7f4;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(0, 77, 82, 0.12);
  --radius: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Figtree", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
.font-display {
  font-family: "Outfit", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.font-script {
  font-family: "Caveat", cursive;
  font-weight: 600;
}

/* Atmosfera — padrão de pontos + gradiente suave */
.bg-atmosphere {
  background-color: var(--fog);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(150, 201, 61, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(0, 132, 137, 0.12), transparent 50%),
    radial-gradient(circle, rgba(0, 132, 137, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
}

.bg-hero {
  background:
    linear-gradient(105deg, rgba(0, 77, 82, 0.88) 0%, rgba(0, 132, 137, 0.55) 42%, rgba(0, 132, 137, 0.25) 100%),
    var(--hero-img) center / cover no-repeat;
}

.wave-top {
  position: relative;
}

.wave-top::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,32 C240,64 480,0 720,24 C960,48 1200,64 1440,24 L1440,0 L0,0 Z'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  pointer-events: none;
}

.wave-bottom::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23008489' d='M0,40 C360,0 720,64 1080,32 C1260,16 1380,8 1440,16 L1440,64 L0,64 Z'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Sparkles animados */
.sparkle {
  display: inline-block;
  color: var(--lime);
  animation: sparkle-pulse 2.4s ease-in-out infinite;
}

.sparkle:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes sparkle-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Hero brand entrance */
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-anim > * {
  animation: hero-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-anim > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-anim > *:nth-child(2) {
  animation-delay: 0.2s;
}
.hero-anim > *:nth-child(3) {
  animation-delay: 0.35s;
}
.hero-anim > *:nth-child(4) {
  animation-delay: 0.5s;
}

/* Flag language switcher */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  font-size: 0.75rem;
  font-weight: 600;
  color: inherit;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lang-btn.is-active {
  border-color: var(--lime);
  background: rgba(150, 201, 61, 0.18);
}

.lang-btn img,
.lang-btn svg {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: visible;
}

@media (min-width: 640px) {
  .fab-whatsapp {
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3.75rem;
    height: 3.75rem;
  }
}

.fab-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55);
}

.fab-whatsapp::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: fab-ring 2s ease-out infinite;
}

@keyframes fab-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Nav glass */
.nav-glass {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(0, 132, 137, 0.08);
}

.nav-glass.is-scrolled {
  box-shadow: 0 8px 30px rgba(0, 77, 82, 0.08);
}

/* Service tiles — interaction containers, not decorative cards */
.service-tile {
  border: 1px solid rgba(0, 132, 137, 0.12);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--lime);
}

.service-tile img {
  transition: transform 0.6s ease;
}

.service-tile:hover img {
  transform: scale(1.06);
}

/* Icon circle */
.icon-circle {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Contact highlight blocks */
.contact-block {
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.contact-block:hover {
  transform: translateY(-4px);
}

.contact-block a {
  word-break: break-word;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-menu.is-open {
  max-height: 420px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .hero-anim > *,
  .sparkle,
  .fab-whatsapp::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--lime-soft);
  color: var(--teal-dark);
}