/* ==========================================================================
   Academia Água & Cia — Folha de estilos principal
   Organização:
   1. Tokens de design (variáveis CSS)
   2. Reset e bases
   3. Utilitários e layout
   4. Cabeçalho / navegação
   5. Hero
   6. Seções (sobre, estrutura, modalidades, avaliações, horários, contato)
   7. Rodapé e botão flutuante
   8. Animações
   9. Responsividade
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS DE DESIGN
   Altere aqui as cores/fontes e todo o site acompanha.
   -------------------------------------------------------------------------- */
:root {
  /* Paleta: azul profundo de piscina + turquesa + areia */
  --c-deep: #06202e;
  --c-deep-2: #0b3247;
  --c-water: #12b5b0;
  --c-water-dark: #0a8f8b;
  --c-sand: #f4a63a;
  --c-sand-soft: #ffd9a0;
  --c-cream: #f6f3ec;
  --c-text: #10262f;
  --c-text-soft: #4d6570;
  --c-white: #ffffff;
  --c-line: rgba(6, 32, 46, 0.12);

  /* Tipografia */
  --font-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Karla", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Espaçamento e formas */
  --radius: 14px;
  --radius-lg: 26px;
  --shadow: 0 18px 45px -22px rgba(6, 32, 46, 0.55);
  --shadow-soft: 0 8px 24px -14px rgba(6, 32, 46, 0.45);
  --maxw: 1160px;
  --section-y: clamp(3.5rem, 8vw, 7rem);
}

/* --------------------------------------------------------------------------
   2. RESET E BASES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-title);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

/* Acessibilidade: texto visível apenas para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Link "pular para o conteúdo" */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--c-sand);
  color: var(--c-deep);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--c-sand);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. UTILITÁRIOS E LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--dark {
  background: var(--c-deep);
  color: var(--c-cream);
}

.section--dark .section__label {
  color: var(--c-water);
}

.section__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-water-dark);
  margin-bottom: 0.75rem;
  display: block;
}

.section__lead {
  max-width: 58ch;
  color: var(--c-text-soft);
  font-size: 1.05rem;
}

.section--dark .section__lead {
  color: rgba(246, 243, 236, 0.75);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--c-sand);
  color: var(--c-deep);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover {
  background: #ffb954;
}

.btn--ghost {
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   4. CABEÇALHO / NAVEGAÇÃO
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
  padding-block: 1rem;
}

/* Classe aplicada via JS após rolagem */
.header.is-scrolled {
  background: rgba(6, 32, 46, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
  padding-block: 0.55rem;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--c-cream);
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand__name {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-water);
}

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

.nav__link {
  color: var(--c-cream);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-block: 0.25rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--c-sand);
  transition: width 0.25s ease;
}
.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__cta {
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
}

/* Botão hambúrguer (aparece no mobile) */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  height: 2px;
  width: 20px;
  background: var(--c-cream);
  margin-inline: auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before {
  transform: translateY(-6px);
}
.nav-toggle span::after {
  transform: translateY(4px);
}
.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-2px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
  padding-top: 7rem;
  overflow: hidden;
  color: var(--c-cream);
  background: var(--c-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 32, 46, 0.85) 0%, rgba(6, 32, 46, 0.35) 40%, rgba(6, 32, 46, 0.95) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(18, 181, 176, 0.18);
  border: 1px solid rgba(18, 181, 176, 0.5);
  color: #9ff2ef;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero h1 {
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--c-water);
}

.hero__text {
  max-width: 52ch;
  font-size: 1.1rem;
  color: rgba(246, 243, 236, 0.85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* Faixa de indicadores do hero */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: rgba(246, 243, 236, 0.18);
  border: 1px solid rgba(246, 243, 236, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__stat {
  background: rgba(6, 32, 46, 0.72);
  padding: 1.1rem 1.25rem;
}
.hero__stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1;
  color: var(--c-sand);
}
.hero__stat span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.7);
}

/* --------------------------------------------------------------------------
   6. SEÇÕES
   -------------------------------------------------------------------------- */

/* --- Sobre --- */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* Selo de nota do Google sobreposto */
.rating-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.rating-badge strong {
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1;
  color: var(--c-deep);
}
.rating-badge span {
  font-size: 0.8rem;
  color: var(--c-text-soft);
  display: block;
}
.stars {
  color: var(--c-sand);
  letter-spacing: 2px;
  font-size: 0.9rem;
}

/* Lista de diferenciais */
.checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--c-water) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* --- Modalidades (cards) --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}
.card__body {
  padding: 1.5rem;
}
.card__body p {
  color: var(--c-text-soft);
  margin: 0;
  font-size: 0.98rem;
}

/* --- Estrutura (grid de itens) --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.feature {
  border: 1px solid rgba(246, 243, 236, 0.16);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.04);
}
.feature__icon {
  width: 34px;
  height: 34px;
  color: var(--c-water);
  margin-bottom: 0.8rem;
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(246, 243, 236, 0.72);
}

/* --- Avaliações --- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.review {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--c-water);
}
.review blockquote {
  margin: 0.75rem 0 1.25rem;
  font-size: 1.02rem;
}
.review footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--c-text-soft);
}
.avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-deep-2);
  color: var(--c-cream);
  font-family: var(--font-title);
  font-size: 1.1rem;
}
.review footer strong {
  display: block;
  color: var(--c-text);
}

/* Resumo de notas */
.rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-soft);
  margin-top: 2rem;
}
.rating-summary__score {
  text-align: center;
}
.rating-summary__score strong {
  font-family: var(--font-title);
  font-size: 3.5rem;
  line-height: 1;
  display: block;
}
.rating-bars {
  flex: 1 1 240px;
  display: grid;
  gap: 0.4rem;
  min-width: 220px;
}
.rating-bars div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--c-text-soft);
}
.bar {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(6, 32, 46, 0.1);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--c-sand);
  border-radius: 99px;
}

/* --- Horários --- */
.hours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.hours__card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
.hours__card dl {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.hours__card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--c-line);
  padding-bottom: 0.5rem;
  font-size: 0.95rem;
}
.hours__card dt {
  font-weight: 700;
}
.hours__card dd {
  margin: 0;
  color: var(--c-text-soft);
}

/* Indicador aberto/fechado preenchido via JS */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(18, 181, 176, 0.15);
  color: var(--c-water-dark);
  margin-bottom: 1rem;
}
.status-pill.is-closed {
  background: rgba(214, 69, 69, 0.12);
  color: #b93a3a;
}
.status-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

/* Gráfico de movimento (barras) */
.peak {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 130px;
  margin-top: 1rem;
}
.peak div {
  flex: 1;
  background: linear-gradient(180deg, var(--c-water), var(--c-water-dark));
  border-radius: 6px 6px 0 0;
  min-height: 6px;
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.peak-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--c-text-soft);
  margin-top: 0.4rem;
}

/* --- Contato --- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
/* Impede que o iframe do mapa estoure a coluna do grid */
.contact__grid > * {
  min-width: 0;
}
.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.contact__list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.contact__list svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--c-water);
  margin-top: 3px;
}
.contact__list a:hover {
  color: var(--c-water-dark);
  text-decoration: underline;
}
.map-embed {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Faixa de chamada final */
.cta-band {
  background: linear-gradient(120deg, var(--c-water-dark), var(--c-deep-2));
  color: var(--c-cream);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 {
  margin: 0;
  max-width: 18ch;
}

/* --------------------------------------------------------------------------
   7. RODAPÉ E BOTÃO FLUTUANTE
   -------------------------------------------------------------------------- */
.footer {
  background: var(--c-deep);
  color: rgba(246, 243, 236, 0.72);
  padding-block: 3rem 2rem;
  font-size: 0.9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer h3 {
  color: var(--c-cream);
  font-size: 1.05rem;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.footer a:hover {
  color: var(--c-water);
}
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246, 243, 236, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
}

/* WhatsApp flutuante */
.float-wpp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.float-wpp:hover {
  transform: scale(1.07);
}
.float-wpp svg {
  width: 28px;
  height: 28px;
}

/* --------------------------------------------------------------------------
   8. ANIMAÇÕES (revelar ao rolar — ativadas por JS)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   9. RESPONSIVIDADE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  /* Menu vira painel deslizante */
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: var(--c-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -20px 0 40px -25px #000;
  }
  .nav.is-open {
    transform: translateX(0);
  }
  .nav__link {
    font-size: 1.05rem;
  }

  .hero {
    min-height: auto;
    padding-top: 8rem;
  }
  .rating-summary {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
