:root {
  --cream: #f7f2e9;
  --paper: #fffdf8;
  --sage: #71877e;
  --sage-dark: #536b62;
  --pink: #d9a5a2;
  --brand-pink: #bd8587;   
  --rose: #985d60;       
  --rose-soft: #f6e9e5;
  --ink: #3e4944;
  --muted: #5f675f;
  --line: #e9e1d5;

  --font-title: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', Arial, sans-serif;

  --header-h: 68px;
  --sec-pad: 56px;
  --overlap: 28px;
  --radius-sec: 28px;
}

@media (min-width: 760px) {
  :root {
    --header-h: 82px;
    --sec-pad: 76px;
    --overlap: 40px;
    --radius-sec: 40px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(152, 93, 96, .5);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, 92%);
  margin: auto;
}

/* ---------- CABEÇALHO ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}

header.scrolled {
  box-shadow: 0 6px 20px rgba(62, 73, 68, .08);
}

.header-bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 55px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand strong {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--sage-dark);
}

.brand span {
  display: flex;
  flex-direction: column; /* Garante que "ESPAÇO CRIARE" fique em cima e o nome embaixo */
}

.brand small {
  display: block;
  font: .65rem Arial, sans-serif; /* Aumentado de .6rem para .65rem */
  letter-spacing: .05em; 
  color: var(--muted);
  white-space: nowrap;
}

/* Retorna ao tamanho e espaçamento originais em telas maiores (tablets e PCs) */
@media (min-width: 760px) {
  .brand small {
    font-size: .72rem;
    letter-spacing: .12em;
  }
}

/* botão hambúrguer (celular) */
.menu-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(113, 135, 126, .25);
  background: rgba(113, 135, 126, .1);
  color: var(--sage-dark);
  cursor: pointer;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s, background .25s;
}

.bars {
  position: relative;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before {
  top: -6px;
}

.bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .bars::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* menu hamburguer celular */
nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 10px;
  padding: 18px 4% 24px;
  background: rgba(255, 253, 248, .98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 24px rgba(62, 73, 68, .08);
}

nav.open {
  display: flex;
}

nav a {
  text-decoration: none;
  text-align: center;
  color: var(--sage-dark);
  background: rgba(113, 135, 126, .1);
  border: 1px solid rgba(113, 135, 126, .2);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  transition: .2s;
}

nav a:hover {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
  transform: translateY(-1px);
}

nav a.active {
  color: #fff;
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

nav a.active:hover {
  background: var(--rose);
  border-color: var(--rose);
}

@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }

  nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  nav a {
    padding: 8px 18px;
    font-size: .95rem;
  }
}

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--sage-dark);
  background: var(--sage-dark);
  color: #fff;
  text-decoration: none;
  font: 700 .95rem var(--font-body);
  letter-spacing: .02em;
  transition: .2s;
}

.btn:hover {
  background: #40564d;
  border-color: #40564d;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--sage-dark);
}

.btn-outline:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #fff;
}

.btn svg {
  flex-shrink: 0;
}

/* ---------- ENFEITES (aquarela + folhinhas + borboletas) ---------- */
/* o conteúdo fica sempre na frente dos enfeites */
section>.wrap {
  position: relative;
  z-index: 1;
}

/* seções com enfeites que não podem vazar para fora */
#sobre,
#atendimentos,
.location {
  overflow: hidden;
}

.hero::before,
.contact::before,
.contact::after {
  content: "";
  position: absolute;
  aspect-ratio: 1;
  border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
  pointer-events: none;
  filter: blur(8px);
  z-index: 0;
}

.hero::before {
  width: clamp(220px, 34vw, 420px);
  left: -90px;
  top: -60px;
  background: radial-gradient(circle at 40% 40%, rgba(217, 165, 162, .38), rgba(217, 165, 162, 0) 70%);
}

.contact::before {
  width: clamp(240px, 34vw, 420px);
  left: -110px;
  top: 40px;
  background: radial-gradient(circle at 40% 40%, rgba(217, 165, 162, .30), rgba(217, 165, 162, 0) 70%);
}

.contact::after {
  width: clamp(260px, 36vw, 460px);
  right: -120px;
  bottom: -60px;
  background: radial-gradient(circle at 60% 60%, rgba(113, 135, 126, .22), rgba(113, 135, 126, 0) 70%);
}

.deco {
  position: absolute;
  top: calc(var(--overlap) + 20px);
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.hero .deco {
  top: 24px;
}

/* folhinhas: uma de cada lado */
.deco-l,
.deco-r {
  width: 48px;
  color: var(--sage);
  opacity: .2;
}

.deco-l {
  left: 1%;
  transform: rotate(-14deg);
}

.deco-r {
  right: 1%;
  transform: scaleX(-1) rotate(-14deg);
}

/* borboleta */
.deco-bf {
  width: 34px;
  right: 10%;
  top: calc(var(--overlap) + 80px);
  color: var(--brand-pink);
  opacity: .4;
  rotate: 12deg;
  animation: flutter 5s ease-in-out infinite;
}

.hero .deco-bf {
  top: 90px;
}

.deco-bf--l {
  right: auto;
  left: 10%;
  rotate: -12deg;
}

@keyframes flutter {
  50% {
    translate: 0 -10px;
  }
}

@media (min-width: 760px) {

  .deco-l,
  .deco-r {
    width: 90px;
  }

  .deco-bf {
    width: 52px;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 44px 0 calc(64px + var(--overlap));
  background:
    radial-gradient(circle at 82% 24%, #e8d7cf 0, transparent 26%),
    linear-gradient(135deg, #f7f2e9, #f2e9df);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 32px;
}

.eyebrow {
  font: 700 .7rem var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

h1 {
  font: 500 clamp(2.5rem, 10vw, 4.6rem)/1.05 var(--font-title);
  margin: 14px 0 18px;
  color: #45574f;
}

h1 em {
  font-style: normal;
  color: var(--rose);
}

.pink {
  color: var(--rose);
}

.lead {
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
  color: #566159;
}

.tagline {
  margin: 20px 0 24px;
  font: 700 .72rem var(--font-body);
  letter-spacing: .16em;
  color: var(--sage-dark);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}

/* aviso do metrô no Hero */
.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  font: 600 .85rem var(--font-body);
  color: var(--muted);
}

.hero-note svg {
  flex-shrink: 0;
  color: var(--rose);
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  width: min(70%, 260px);
  background: rgba(233, 238, 232, .6);
  border-radius: 50%;
  padding: 22px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 18px 24px rgba(75, 78, 66, .12);
  object-fit: contain;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
  }
}

@media (min-width: 900px) {
  .hero {
    text-align: left;
    padding: 76px 0 calc(68px + var(--overlap));
  }

  .hero-grid {
    grid-template-columns: 1.15fr .85fr;
    gap: 44px;
  }

  .eyebrow {
    font-size: .75rem;
    letter-spacing: .2em;
  }

  .lead {
    font-size: 1.15rem;
    margin: 0;
  }

  .tagline {
    font-size: .8rem;
    letter-spacing: .18em;
    margin: 22px 0 28px;
  }

  .hero-actions {
    justify-content: flex-start;
    margin: 0;
  }

  .hero-note {
    justify-content: flex-start;
  }

  .hero-logo {
    justify-content: flex-end;
  }

  .hero-logo img {
    width: min(100%, 380px);
    padding: 32px;
  }
}

/* ---------- SEÇÕES: fundos alternados + topo arredondado ---------- */
section {
  padding: var(--sec-pad) 0;
}

#sobre,
#atendimentos,
.location,
.contact {
  position: relative;
  margin-top: calc(var(--overlap) * -1);
  padding-top: calc(var(--sec-pad) + var(--overlap));
  border-radius: var(--radius-sec) var(--radius-sec) 0 0;
}

#sobre {
  background: var(--paper);
  z-index: 1;
}

#atendimentos {
  background: var(--rose-soft);
  z-index: 2;
}

.location {
  background: #edf0e9;
  z-index: 3;
}

.contact {
  background: var(--cream);
  z-index: 4;
  overflow: hidden;
  text-align: center;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: center;
}

h2 {
  font: 500 clamp(2rem, 7vw, 2.9rem)/1.15 var(--font-title);
  color: var(--sage-dark);
  margin: 10px 0;
}

h2 em {
  font-style: italic;
  color: var(--rose);
}

.section-head p,
.about p {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- ATENDIMENTOS (cards) ---------- */
.cards {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(71, 76, 65, .04);
  transition: translate .25s ease, box-shadow .25s ease;
}

.card:hover {
  translate: 0 -4px;
  box-shadow: 0 16px 32px rgba(71, 76, 65, .11);
}

.card .num {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 700 .8rem var(--font-body);
  letter-spacing: .12em;
  color: var(--rose);
}

.card h3 {
  font: 600 1.5rem/1.2 var(--font-title);
  color: var(--sage-dark);
  margin: 10px 0;
}

.card p {
  font: .95rem/1.7 var(--font-body);
  color: var(--muted);
  margin: 0;
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* ---------- SOBRE ---------- */
.about-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.about h2 {
  margin-top: 0;
}

.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.values span {
  border: 1.5px solid var(--brand-pink);
  background: transparent;
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--sage-dark);
  font: 600 .85rem var(--font-body);
  transition: .2s;
}

.values span:hover {
  background: rgba(189, 133, 135, .08);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: .8fr 1.2fr;
    gap: 48px;
    text-align: left;
  }

  .values {
    justify-content: flex-start;
  }
}

/* ---------- ESPAÇO ---------- */
.location-grid {
  display: grid;
  gap: 24px;
}

.location-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 20px;
}

.location-box p {
  color: var(--muted);
}

.address {
  margin-top: 16px;
}

.address-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.address-line svg {
  color: var(--sage-dark);
}

/* selo do metrô */
.location-box .metro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(152, 93, 96, .1);
  color: var(--rose);
  font: 600 .85rem/1.4 var(--font-body);
  text-align: left;
}

.metro-badge svg {
  flex-shrink: 0;
}

.maps-link-wrap {
  margin-top: 12px;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(113, 135, 126, .1);
  color: var(--sage-dark);
  text-decoration: none;
  font: 700 .85rem var(--font-body);
  transition: .2s;
}

.maps-link:hover {
  background: rgba(113, 135, 126, .2);
}

.location-note {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: .85rem;
}

@media (min-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
  }

  .location-box {
    align-items: flex-start;
    text-align: left;
    padding: 38px;
  }

  .location-box .address,
  .location-box .metro-badge,
  .location-box .maps-link-wrap {
    align-self: center;
    text-align: center;
  }
}

/* ---------- CARROSSEIS ---------- */
.carousel {
  --car-h: 260px;
  position: relative;
  height: var(--car-h);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  touch-action: pan-y;
  aspect-ratio: 9 / 9;
}

.carousel-track {
  display: flex;
  height: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* carrossel da seção Sobre */
.about-carousel {
  --car-h: 300px;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  background: rgba(233, 238, 232, .6);
}

.about-slide-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.about-slide-logo img {
  width: auto;
  height: auto;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

/* carrossel do espaço: sempre quadrado, em qualquer tela */
.location .carousel {
  height: auto;
  aspect-ratio: 1 / 1;
  align-self: center;      /* impede de esticar junto com a caixa de texto */
  width: 100%;
  max-width: 520px;        /* limita o tamanho no PC */
  margin-inline: auto;
}

.location .carousel-track,
.location .carousel-slide {
  min-height: 0;
  height: 100%;
}

/* só o carrossel do "Sobre" muda no PC */
@media (min-width: 900px) {
  .about-carousel {
    --car-h: 320px;
    margin-inline: 0 auto;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .92);
  color: var(--sage-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  transition: .2s;
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--cream);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: .1px solid var(--cream);
  padding: 0;
  background: rgba(255, 253, 248, .7);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--brand-pink);
}

/* ---------- CONTATO ---------- */
.contact p {
  color: var(--muted);
  max-width: 620px;
  margin: 12px auto 26px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 320px;
  margin: 20px auto 0;
}

@media (min-width: 480px) {
  .contact-buttons {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: none;
    gap: 14px;
  }
}

/* ---------- RODAPÉ ---------- */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 4%;
  background: #526a61;
  color: #fff;
  text-align: center;
}

footer img {
  width: 45px;
  height: auto;
}

footer small {
  font: 600 .72rem/1.5 var(--font-body);
  letter-spacing: .05em;
}

@media (min-width: 760px) {
  footer {
    flex-direction: row;
    justify-content: center;
    padding: 28px 4%;
  }

  footer small {
    font-size: .8rem;
  }
}

/* ---------- WHATSAPP FLUTUANTE ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .2s;
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: .5;
  z-index: -1;
  /* animation: wa-pulse 2.6s ease-out infinite; */
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: .5;
  }

  70%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (min-width: 760px) {
  .wa-float {
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
  }

  .wa-float svg {
    width: 34px;
    height: 34px;
  }
}

/* ---------- ANIMAÇÃO DE ROLAGEM  ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease-out, transform .8s ease-out;
  will-change: opacity, transform;
}

.js .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* os cards mantêm a animação de entrada e o efeito de elevação */
.js .card.reveal {
  transition: opacity .8s ease-out, transform .8s ease-out, translate .25s ease, box-shadow .25s ease;
}

/* ---------- ACESSIBILIDADE: menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}