:root {
  --rosa-claro: #fce4ec;
  --rosa: #f8bbd9;
  --rosa-medio: #f48fb1;
  --rosa-escuro: #ec407a;
  --cinza-texto: #424242;
  --cinza-claro: #f5f5f5;
  --branco: #fff;
  --sombra: rgba(0, 0, 0, 0.08);
  --sombra-hover: rgba(236, 64, 122, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--cinza-texto);
  line-height: 1.6;
  background: var(--branco);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

/* Header */
.header {
  background: var(--branco);
  box-shadow: 0 2px 12px var(--sombra);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo-link {
  display: block;
}

.logo {
  display: block;
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--rosa-escuro);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--rosa-medio);
}

/* Hero */
.hero {
  background: var(--branco);
  padding: 3rem 1.5rem 1.5rem;
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .logo-link {
  display: block;
}

.hero .logo {
  margin-top: -40px;
  display: block;
  width: 400px;
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

@media (min-width: 769px) {
  .hero .logo {
    width: 600px;
  }
}

.hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--rosa-escuro);
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.25rem;
  color: var(--cinza-texto);
  font-weight: 500;
}

.hero .tagline {
  margin: 1rem 0 0;
}

/* Galeria */
.galeria {
  padding: 3rem 1.0rem;
  background: var(--rosa-claro);
  overflow-x: hidden;
}

/* Wrapper: no desktop só ocupa a largura do .container; no mobile centraliza o bloco com margin:auto */
.galeria-inner {
  display: block;
  width: 100%;
  margin: 0;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.galeria-card {
  cursor: default;
  padding: 1rem;
  min-width: 0;
}

/* Telas estreitas / celular: bloco único centralizado (breakpoint amplo para pegar tablets em pé) */
@media (max-width: 900px) {
  .galeria {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .galeria .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    max-width: 100%;
  }

  .galeria-inner {
    width: 100%;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
  }

  .galeria-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
  }

  .galeria .galeria-card.card {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .galeria-card-inner {
    min-width: 0;
  }
}

.galeria-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.galeria-thumb {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  background: var(--cinza-claro);
}

.galeria-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.galeria-thumb:hover img {
  transform: scale(1.03);
}

/* Lightbox (ampliação ao clicar) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-fechar {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--branco);
  font-size: 2.5rem;
  text-decoration: none;
  line-height: 1;
  z-index: 1001;
}

.lightbox-fechar:hover {
  opacity: 0.85;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Contato */
.contato {
  padding: 3rem 1.5rem;
  background: var(--cinza-claro);
}

.contato h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.75rem;
  color: var(--rosa-escuro);
  text-align: center;
  margin-bottom: 2rem;
}

.contato-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--branco);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px var(--sombra);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--sombra-hover);
}

.card-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.instagram-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto 0.75rem;
  display: block;
}

.card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.25rem;
  color: var(--rosa-escuro);
  margin-bottom: 0.25rem;
}

.card p {
  color: var(--cinza-texto);
  margin-bottom: 0.5rem;
}

.card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rosa-medio);
}

.endereco-box {
  background: var(--branco);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 16px var(--sombra);
}

.endereco-box h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  color: var(--rosa-escuro);
  margin-bottom: 0.5rem;
}

.endereco-box address {
  font-style: normal;
  color: var(--cinza-texto);
  line-height: 1.7;
}

/* Localização / Mapa */
.localizacao {
  padding: 3rem 1.5rem;
  margin-top: -1.5rem;
  background: var(--branco);
}

.localizacao h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.75rem;
  color: var(--rosa-escuro);
  text-align: center;
  margin-bottom: 0.75rem;
}

.localizacao-texto {
  text-align: center;
  margin-bottom: 1.5rem;
}

.maps-link {
  color: var(--rosa-escuro);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}

.maps-link:hover {
  text-decoration: underline;
}

.mapa-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--sombra);
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.mapa-wrapper iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 350px;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--rosa-escuro) 0%, var(--rosa-medio) 100%);
  color: var(--branco);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-logo {
  max-height: 50px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer p {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.footer a {
  color: var(--branco);
  text-decoration: underline;
}

.footer a:hover {
  opacity: 0.9;
}

/* Responsivo */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .hero .logo {
    max-height: 300px;
  }
}
