:root {
  --bg: #F5FAFB;
  --bg-alt: #E6F3F6;
  --ink: #0B2733;
  --ink-soft: #4C6975;
  --deep: #0A3A54;
  --deep-2: #0E4E70;
  --blue: #1C8FC4;
  --blue-soft: #CDE9F3;
  --teal: #17B18F;
  --teal-dark: #0F8F72;
  --amber: #F2A65A;
  --white: #FFFFFF;
  --shadow: 0 20px 60px -20px rgba(10, 58, 84, 0.35);
  --ease: cubic-bezier(0.22, 0.9, 0.32, 1);
  --radius: 14px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--deep);
}

p {
  margin: 0;
}

::selection {
  background: var(--teal);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.container,
.wrap {
  width: min(1180px, 92%);
  margin-inline: auto;
  padding-inline: clamp(0px, 0vw, 0px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(23, 177, 143, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  font-family: var(--font-body);
}

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

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(23, 177, 143, 0.55);
}

.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 16px 30px -10px rgba(23, 177, 143, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid rgba(10, 58, 84, 0.25);
}

.btn-ghost:hover {
  border-color: var(--deep);
  background: rgba(10, 58, 84, 0.05);
}

.btn-whatsapp {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(23, 177, 143, 0.55);
}

.btn-whatsapp:hover {
  background: var(--teal-dark);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

/* ---------- ambient ripples ---------- */
.ripple-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(28, 143, 196, 0.18);
}

@keyframes ripple-grow {
  0% { transform: scale(0.7); opacity: 0.55; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- header ---------- */
.site-header,
.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 250, 251, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 58, 84, 0.08);
}

.site-header .container,
.lp-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--deep);
}

.brand img {
  height: 34px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(14%) sepia(30%) saturate(1200%) hue-rotate(160deg) brightness(95%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--deep);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn-sm,
.site-header .btn-primary {
  padding: 11px 22px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--deep);
  transition: transform 0.2s ease;
}

.nav-toggle span { top: 10px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

.back-link {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--deep);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(70px, 10vw, 140px) 0 clamp(50px, 7vw, 90px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.loop-svg {
  overflow: visible;
}

.loop-ring {
  transform-origin: center;
  animation: ring-rotate 24s linear infinite;
}

.loop-ring-outer {
  stroke-dasharray: 3 8;
  animation-duration: 28s;
}

.loop-ring-inner {
  animation-duration: 20s;
  animation-direction: reverse;
}

@keyframes ring-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loop-drop {
  animation: drop-bob 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes drop-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin: 16px 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-sub {
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- lp hero ---------- */
.lp-hero {
  position: relative;
  padding: clamp(70px, 10vw, 120px) 0 clamp(40px, 5vw, 70px);
  overflow: hidden;
}

.lp-hero .container {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.lp-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 16px 0;
}

.lp-hero p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.lp-body {
  padding: 0 0 clamp(70px, 10vw, 100px);
  background: var(--bg);
}

.form-card {
  background: var(--white);
  border-radius: 32px;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin-inline: auto;
}

/* ---------- search / map ---------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  margin: 0 auto 20px;
  position: relative;
  background: var(--white);
  border-radius: 100px;
  padding: 8px 8px 8px 22px;
  box-shadow: 0 18px 40px -18px rgba(10, 58, 84, 0.28);
  border: 1.5px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.search-bar:focus-within {
  border-color: rgba(23, 177, 143, 0.45);
  box-shadow: 0 22px 48px -16px rgba(10, 58, 84, 0.32), 0 0 0 5px rgba(23, 177, 143, 0.12);
  transform: translateY(-1px);
}

.search-bar::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--ink-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.55;
}

.search-bar input {
  flex: 1;
  border-radius: 100px;
  padding: 12px 4px;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
}

.search-bar input::placeholder {
  color: var(--ink-soft);
  opacity: 0.7;
}

.search-bar input:focus {
  outline: none;
}

.search-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 620px;
  margin: 0 auto 44px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.search-hint .loc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.86rem;
  padding: 2px 4px;
}

.search-hint .loc-btn:hover {
  text-decoration: underline;
}

/* Estilos para o autocomplete */
.autocomplete-items {
  position: absolute;
  border: 1px solid rgba(10, 58, 84, 0.1);
  border-radius: 20px;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 20px 44px -14px rgba(10, 58, 84, 0.28);
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  margin-top: 8px;
}

.autocomplete-item {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.94rem;
  color: var(--ink);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease;
}

.autocomplete-item::before {
  content: "";
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background: var(--blue);
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.autocomplete-item:hover {
  background-color: var(--bg-alt);
}

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  min-height: 30px;
}

.results-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.results-header h2 strong {
  color: var(--teal-dark);
}

.results-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.results-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: start;
}

.map-panel {
  position: sticky;
  top: 96px;
}

#map {
  height: 560px;
  border-radius: 32px 32px 32px 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  outline: 6px solid var(--white);
  outline-offset: -1px;
}

.leaflet-popup-content-wrapper {
  border-radius: 16px;
  box-shadow: 0 16px 34px -14px rgba(10, 58, 84, 0.4);
}

.leaflet-popup-content {
  font-family: var(--font-body);
  color: var(--ink);
  margin: 12px 14px;
}

.leaflet-popup-content strong {
  font-family: var(--font-display);
  color: var(--deep);
}

.results-list {
  display: grid;
  gap: 14px;
  max-height: 560px;
  overflow-y: auto;
  padding: 4px 6px 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 58, 84, 0.2) transparent;
}

.results-list::-webkit-scrollbar {
  width: 6px;
}

.results-list::-webkit-scrollbar-thumb {
  background: rgba(10, 58, 84, 0.18);
  border-radius: 10px;
}

/* ---------- piscineiro card ---------- */
.piscineiro-card {
  position: relative;
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 10px 30px -20px rgba(10, 58, 84, 0.35);
  border: 1.5px solid rgba(10, 58, 84, 0.06);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  animation: card-in 0.5s var(--ease) backwards;
}

.piscineiro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -18px rgba(10, 58, 84, 0.34);
  border-color: rgba(23, 177, 143, 0.3);
}

.piscineiro-card.active {
  border-color: var(--teal);
  box-shadow: 0 22px 44px -16px rgba(23, 177, 143, 0.35), 0 0 0 4px rgba(23, 177, 143, 0.1);
  background: linear-gradient(180deg, rgba(23, 177, 143, 0.05), rgba(255, 255, 255, 1) 40%);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.avatar {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  background: linear-gradient(150deg, var(--blue), var(--teal));
  box-shadow: 0 8px 18px -6px rgba(23, 177, 143, 0.55);
  outline: 3px solid var(--white);
  /* overflow: hidden; */
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-grad-0 { background: linear-gradient(150deg, var(--blue), var(--teal)); }
.avatar-grad-1 { background: linear-gradient(150deg, var(--teal), #0A3A54); }
.avatar-grad-2 { background: linear-gradient(150deg, #F2A65A, var(--teal-dark)); }
.avatar-grad-3 { background: linear-gradient(150deg, var(--deep-2), var(--blue)); }
.avatar-grad-4 { background: linear-gradient(150deg, #17B18F, #1C8FC4); }

.avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--teal);
  border: 2.5px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-badge svg {
  width: 9px;
  height: 9px;
  stroke: var(--white);
  stroke-width: 3.2;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.piscineiro-card h3 {
  font-size: 1.04rem;
  line-height: 1.25;
}

.piscineiro-card .empresa {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.distance-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-alt);
  color: var(--deep-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 100px;
  white-space: nowrap;
}

.distance-badge::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--teal-dark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.card-meta span {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card-meta b {
  color: var(--deep);
  font-weight: 600;
}

.swimmer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.swimmer-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: rgba(23, 177, 143, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
}

.swimmer-tag.more {
  color: var(--deep-2);
  background: var(--bg-alt);
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-actions .btn {
  padding: 9px 16px;
  font-size: 0.82rem;
}

.card-actions .btn-ghost {
  border-color: rgba(10, 58, 84, 0.15);
}

/* ---------- empty / loading states ---------- */
.results-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.results-empty .empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-empty .empty-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue);
}

.results-empty p {
  max-width: 300px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.skeleton-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: 22px;
  padding: 20px 22px;
  border: 1.5px solid rgba(10, 58, 84, 0.06);
}

.skeleton-avatar,
.skeleton-line {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(10, 58, 84, 0.06) 25%, rgba(10, 58, 84, 0.12) 37%, rgba(10, 58, 84, 0.06) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.skeleton-line { height: 12px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-75 { width: 75%; }

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .piscineiro-card { animation: none; }
  .skeleton-avatar, .skeleton-line { animation: none; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.65);
  padding: 50px 0 30px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand img {
  height: 34px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-weight: 400;
}

.footer-col a,
.footer-col li {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a:hover {
  color: var(--amber);
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *, .reveal, .loop-ring-outer, .loop-ring-inner, .loop-drop, .benefit-icon, .ripple {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 340px;
    margin: 0 auto;
    order: -1;
  }

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

  .split,
  .split-cta,
  .results-layout,
  .signup-panel {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .signup-panel {
    border-radius: 28px;
  }

  .signup-aside {
    padding: 34px;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(10, 58, 84, 0.08);
    box-shadow: 0 12px 30px rgba(10, 58, 84, 0.1);
  }

  .map-panel {
    position: static;
    order: -1;
  }

  #map {
    height: 320px;
    border-radius: 24px;
  }

  .results-list {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .search-bar {
    padding: 6px 6px 6px 18px;
  }

  .search-bar .btn {
    padding: 12px 18px;
  }

  .piscineiro-card {
    padding: 18px;
    gap: 12px;
  }

  .avatar {
    width: 46px;
    height: 46px;
    font-size: 1.02rem;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .benefit-grid,
  .cards,
  .split-cta {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }
}
