:root {
  --bg: #f4f9f8;
  --bg-soft: #eaf4f1;
  --text: #1f2f35;
  --white: #ffffff;
  --muted: #4a646d;
  --primary: #4c9fa3;
  --primary-strong: #2f7f84;
  --accent: #d3a16e;
  --border: #ccddd8;
  --surface: #fbfefd;
  --shadow: 0 4px 12px rgba(25, 60, 72, 0.06);
  --shadow-soft: 0 2px 8px rgba(25, 60, 72, 0.05);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff 0%, #f6fbf9 40%, #f2f8f6 100%);
  scroll-behavior: smooth;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.nav {
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 67px;
  width: auto;
  display: block;
  filter: none;
}

.brand-subtitle {
  color: #4b6972;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu a {
  color: #2e4e57;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d7e4e0;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf9 100%);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.menu a:hover {
  border-color: #a5c3c1;
  color: #214249;
  background: #f8fdfb;
}

.menu-cta {
  background: linear-gradient(135deg, #e4bb8f, #d3a16e) !important;
  color: #27393f !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  border: 1px solid #c99661 !important;
  box-shadow: none;
}

.menu-cta:hover {
  background: linear-gradient(135deg, #e8c39a, #d8aa7b) !important;
  color: #27393f !important;
  border-color: #c99661 !important;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.45rem;
  cursor: pointer;
}

.top-rotator {
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 0;
  width: auto;
}

.hero-rotator {
  margin-top: 14px;
}

.top-rotator__label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6b858c;
  padding: 4px 8px;
  border: 1px solid #d7e4e0;
  border-radius: 999px;
  background: #ffffff;
}

.top-rotator__text {
  font-size: 0.84rem;
  font-weight: 600;
  color: #35565f;
  letter-spacing: 0.01em;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.top-rotator__text.is-fading {
  opacity: 0;
}

.hero {
  background:
    radial-gradient(circle at 10% 5%, rgba(76, 159, 163, 0.2) 0, rgba(76, 159, 163, 0) 40%),
    radial-gradient(circle at 85% 10%, rgba(211, 161, 110, 0.2) 0, rgba(211, 161, 110, 0) 38%),
    linear-gradient(120deg, var(--bg) 0%, var(--bg-soft) 60%, #f8fcfa 100%);
  color: var(--text);
  padding: 92px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.98rem, 4vw, 3.08rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero p {
  color: #45626b;
  font-size: 1.06rem;
  max-width: 62ch;
}

.hero p a {
  color: inherit;
  text-decoration: none;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ddb589, var(--accent));
  color: #27393f;
  box-shadow: 0 10px 24px rgba(211, 161, 110, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(211, 161, 110, 0.35);
}

.btn-outline {
  border: 1px solid #7ea3a5;
  color: #2b4047;
  background: rgba(255, 255, 255, 0.75);
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-sonar {
  position: relative;
  isolation: isolate;
}

.btn-sonar::before,
.btn-sonar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 999px;
  border: 2px solid rgba(76, 159, 163, 0.55);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
  animation: sonar 1.8s ease-out infinite;
}

.btn-sonar::after {
  animation-delay: 0.9s;
}

@keyframes sonar {
  0% {
    width: 10px;
    height: 10px;
    opacity: 0.65;
  }
  70% {
    width: 120px;
    height: 120px;
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.hero-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.hero-card h2 {
  margin-top: 0;
}

.hero-card ul {
  margin: 0;
  padding-left: 20px;
  color: #3f5961;
  display: grid;
  gap: 10px;
}

section {
  padding: 56px 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.card:hover {
  border-color: #b4cdc9;
  background: #ffffff;
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e8f0ed;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 16px 18px 20px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.services-list {
  background: linear-gradient(180deg, #f8fcfa 0%, #f2f8f6 100%);
}

/* Garante que o título da seção aparece ao usar âncoras (#lista-servicos),
   compensando o header sticky. */
#lista-servicos {
  scroll-margin-top: 110px;
}

.services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #7ea3a5;
  color: #2b4047;
  background: rgba(255, 255, 255, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: none;
  white-space: nowrap;
}

.map-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: #6f98a0;
}

.services-seo {
  margin: -8px 0 26px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 80ch;
}

.price-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.price-card:hover {
  border-color: #b4cdc9;
  background: #ffffff;
}

.price-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #2a4e57;
  letter-spacing: -0.01em;
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
  color: #3f5961;
  display: grid;
  gap: 8px;
  line-height: 1.3;
}

.instagram-wrap {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.instagram-heading {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.01em;
  color: #2a4e57;
}

.instagram-subtitle {
  margin-bottom: 24px;
}

.instagram-subtitle a {
  color: var(--primary-strong);
  font-weight: 600;
  text-decoration: none;
}

.instagram-subtitle a:hover {
  text-decoration: underline;
}

.instagram-feed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.5vw, 22px);
  align-items: start;
  justify-items: center;
  overflow-x: hidden;
}

.ig-card {
  min-width: 0;
  width: 100%;
  max-width: min(220px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(25, 60, 72, 0.08);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ig-card:hover {
  border-color: #9ec0be;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(34, 75, 86, 0.12);
}

.ig-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.ig-card__thumb {
  position: relative;
  aspect-ratio: 1;
  background: #e8f0ed;
}

.ig-card__skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, #e3ece9 0%, #f0f7f4 45%, #dde8e4 90%);
  background-size: 200% 100%;
  animation: igShimmer 1.35s ease-in-out infinite;
  transition: opacity 0.45s ease;
}

.ig-card.is-loaded .ig-card__skeleton {
  opacity: 0;
  pointer-events: none;
}

.ig-card.is-error .ig-card__skeleton {
  animation: none;
  opacity: 0.45;
  background: #dce8e4;
}

.ig-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.ig-card.is-loaded .ig-card__img {
  opacity: 1;
}

.ig-card__caption {
  margin: 0;
  padding: 11px 12px 23px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #3d555e;
  background: #ffffff;
  border-top: 1px solid rgba(25, 60, 72, 0.1);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
  flex: 0 0 auto;
}

@keyframes igShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.about {
  background: linear-gradient(180deg, #f4f9f7 0%, #edf5f1 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.about p {
  color: var(--muted);
}

.about-points {
  display: grid;
  gap: 12px;
}

.about-points p {
  margin: 0;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 600;
  color: #1f2937;
  box-shadow: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 19px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  border-color: #9ec0be;
  box-shadow: 0 14px 32px rgba(34, 75, 86, 0.14);
}

.contact-item strong {
  display: block;
  margin-bottom: 8px;
}

.contact-item span {
  color: var(--muted);
  line-height: 1.4;
}

.footer {
  background: linear-gradient(135deg, #21353b, #2d4b54);
  color: #d9ece6;
  text-align: center;
  padding: 24px 0;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50%;
  border: 1px solid #1fb257;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
  z-index: 30;
  transition: transform 0.2s ease;
}

.floating-whatsapp::before,
.floating-whatsapp::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: whatsappPulse 2.2s ease-out infinite;
}

.floating-whatsapp::after {
  animation-delay: 1.1s;
}

.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
}

.floating-whatsapp__icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 2;
}

.floating-whatsapp__icon svg {
  width: 100%;
  height: 100%;
}

.floating-whatsapp__label {
  position: absolute;
  right: 74px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: #ffffff;
  color: #2c4c54;
  border: 1px solid #d7e5e1;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(24, 57, 69, 0.08);
  z-index: 2;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.28);
    opacity: 0;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .price-groups {
    grid-template-columns: repeat(2, 1fr);
  }

  .instagram-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .brand {
    gap: 8px;
  }

  .brand img {
    height: 58px;
  }

  .brand-subtitle {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    top: 72px;
    right: 4%;
    width: min(280px, 92%);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .top-rotator {
    padding: 0;
    width: 100%;
  }

  .top-rotator__text {
    font-size: 0.78rem;
  }

  .menu a {
    border-radius: 10px;
    padding: 9px 10px;
  }

  .menu.is-open {
    display: flex;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .price-groups {
    grid-template-columns: 1fr;
  }

  .instagram-feed {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }

  .floating-whatsapp__label {
    display: none;
  }
}
