/* Studio Kedma Cardoso, style.css */

:root {
  --canvas: hsl(30, 35%, 96%);
  --superficie: hsl(28, 30%, 91%);
  --canvas-tom: hsl(26, 28%, 88%);
  --canvas-escuro: hsl(20, 22%, 14%);
  --canvas-escuro-2: hsl(20, 18%, 19%);

  --tinta: hsl(20, 22%, 15%);
  --texto-suave: hsl(20, 10%, 30%);
  --texto-inverso: hsl(30, 35%, 96%);
  --texto-inverso-suave: hsl(28, 20%, 78%);

  --acento: hsl(16, 55%, 42%);
  --acento-hover: hsl(16, 55%, 34%);

  --hairline: hsla(20, 22%, 15%, .12);
  --hairline-forte: hsla(20, 22%, 15%, .24);
  --hairline-inversa: hsla(30, 35%, 96%, .16);
  --sombra: 0 18px 55px hsla(20, 30%, 10%, .12);
  --sombra-hover: 0 26px 70px hsla(20, 30%, 10%, .18);

  --font-display: "Fraunces", serif;
  --font-body: "Sora", sans-serif;
  --text-h1: clamp(2.5rem, 6vw, 4.25rem);
  --text-h2: clamp(1.9rem, 3.8vw, 2.9rem);
  --text-h3: clamp(1.2rem, 2vw, 1.4rem);
  --text-body: clamp(1rem, calc(.4vw + .93rem), 1.125rem);
  --text-kicker: .75rem;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(3.25rem, 7vw, 6rem);
  --content-gap: clamp(1.5rem, 3vw, 3rem);
  --header-h: 72px;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);

  --traco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q 15 1 30 8 T 60 8 T 90 8 T 120 8' fill='none' stroke='%23A65030' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  --traco-claro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q 15 1 30 8 T 60 8 T 90 8 T 120 8' fill='none' stroke='%23F8F5F1' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--tinta);
  background: var(--canvas);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* -------- Ritmo de seções -------- */
.sec { padding-block: var(--section-space); position: relative; }
.sec--claro { background: var(--canvas); color: var(--tinta); }
.sec--tom { background: var(--canvas-tom); color: var(--tinta); }
.sec--escuro { background: var(--canvas-escuro); color: var(--texto-inverso); }
.sec--escuro h2 { color: var(--texto-inverso); }

.kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: var(--text-kicker);
  font-weight: 600;
  color: var(--texto-suave);
  margin: 0 0 1em;
}
.sec--escuro .kicker { color: hsl(16, 55%, 68%); }

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

.marca-traco { position: relative; font-style: italic; color: var(--acento); }
.marca-traco::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.08em;
  height: .16em;
  background-image: var(--traco);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* -------- Header -------- */
#topo {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
#topo.is-scrolled {
  background: hsla(30, 35%, 96%, .92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline);
  box-shadow: var(--sombra);
}
.topo-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--tinta);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#topo.is-scrolled .logo { color: var(--tinta); }
#topo:not(.is-scrolled) .logo { color: var(--texto-inverso); text-shadow: 0 1px 10px hsla(20,30%,5%,.7); }
.nav-desktop { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav-desktop a {
  font-size: .92rem;
  font-weight: 500;
  position: relative;
  padding: .3em 0;
  color: inherit;
}
#topo:not(.is-scrolled) .nav-desktop a { color: var(--texto-inverso); text-shadow: 0 1px 10px hsla(20,30%,5%,.7); }
.nav-desktop a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-desktop a:hover::after { transform: scaleX(1); }

/* -------- Botões -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  min-height: 44px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
  cursor: pointer;
  border: none;
}
.btn-primario {
  background: var(--acento);
  color: var(--texto-inverso);
  position: relative;
}
.btn-primario:hover { background: var(--acento-hover); transform: translateY(-2px); box-shadow: var(--sombra-hover); }
.btn-primario:active { transform: translateY(0); }
.btn-secundario {
  background: transparent;
  border: 1.5px solid var(--hairline-forte);
  color: inherit;
}
.btn-secundario:hover { border-color: var(--acento); color: var(--acento); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-full { width: 100%; justify-content: center; }

/* -------- Hero -------- */
.sec-hero {
  padding-block: 0;
  min-height: min(94vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% 24%;
  filter: saturate(1.08) contrast(1.03);
  animation: hero-zoom 1.4s var(--ease-expo) both;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, hsla(20,22%,10%,.62) 0%, hsla(20,22%,9%,.72) 45%, hsla(20,22%,8%,.94) 100%),
    linear-gradient(100deg, hsla(20,24%,8%,.5) 0%, hsla(20,22%,10%,.2) 55%, transparent 85%);
}
@keyframes hero-zoom { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }

.hero-conteudo {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-h) + 2.5rem) 3.5rem;
  max-width: 720px;
  color: var(--texto-inverso);
}
.hero-conteudo > * { animation: hero-rise .8s var(--ease) both; }
.hero-conteudo > *:nth-child(2) { animation-delay: .12s; }
.hero-conteudo > *:nth-child(3) { animation-delay: .24s; }
.hero-conteudo > *:nth-child(4) { animation-delay: .36s; }
.hero-conteudo > *:nth-child(5) { animation-delay: .48s; }
.hero-conteudo > *:nth-child(6) { animation-delay: .6s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-conteudo .kicker { color: hsl(16, 62%, 84%); text-shadow: 0 1px 8px hsla(20,30%,5%,.7); }
.hero-conteudo h1 { text-shadow: 0 2px 22px hsla(20,30%,5%,.6), 0 1px 4px hsla(20,30%,5%,.4); }
.hero-sub { font-size: 1.1rem; color: hsl(30, 22%, 94%); max-width: 46ch; text-shadow: 0 1px 10px hsla(20,30%,5%,.6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .9rem; }
.hero-ctas .btn-secundario { border-color: var(--hairline-inversa); color: var(--texto-inverso); }
.hero-ctas .btn-secundario:hover { border-color: var(--texto-inverso); color: var(--texto-inverso); }
.hero-microcopy { font-size: .85rem; color: hsl(30, 18%, 90%); margin-bottom: 1.5rem; text-shadow: 0 1px 8px hsla(20,30%,5%,.6); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: hsla(30, 35%, 96%, .12);
  border: 1px solid var(--hairline-inversa);
  padding: .6em 1.1em;
  border-radius: 999px;
  font-size: .88rem;
  backdrop-filter: blur(6px);
  transition: background .25s var(--ease);
}
.hero-badge:hover { background: hsla(30, 35%, 96%, .2); }
.hero-badge-nota { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--texto-inverso); }

/* -------- Diferenciais -------- */
.quote-destaque {
  margin: 0 0 var(--content-gap);
  padding: 1.5rem 1.75rem;
  background: var(--canvas);
  border-left: 4px solid var(--acento);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  max-width: 640px;
}
.quote-destaque p { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; margin-bottom: .4em; }
.quote-destaque cite { font-style: normal; font-size: .85rem; color: var(--texto-suave); }

.cards-diferenciais {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--content-gap);
  margin: var(--content-gap) 0 2.5rem;
}
.card-diferencial {
  background: var(--canvas);
  border-radius: var(--r-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--sombra);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border: 1px solid transparent;
}
.card-diferencial:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); border-color: var(--acento); }
.icone-diferencial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--superficie);
  color: var(--acento);
  margin-bottom: 1.1rem;
}
.icone-diferencial svg { width: 26px; height: 26px; }
.card-diferencial svg path,
.card-diferencial svg circle {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  transition: stroke-dashoffset 1s var(--ease) .2s;
}
.card-diferencial.is-in svg path,
.card-diferencial.is-in svg circle { stroke-dashoffset: 0; }
.card-diferencial h3 { margin-bottom: .4em; }
.card-diferencial p { color: var(--texto-suave); margin: 0; font-size: .96rem; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--content-gap);
  margin-top: var(--content-gap);
}
.galeria-item {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 4 / 3;
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.galeria-item:hover img { transform: scale(1.04); }

/* -------- Avaliações -------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--content-gap);
  margin: var(--content-gap) 0 2rem;
}
.review-card {
  background: var(--superficie);
  border-radius: var(--r-md);
  padding: 2rem 1.75rem 1.6rem;
  position: relative;
}
.review-aspas {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--acento);
  opacity: .35;
  display: block;
  margin-bottom: -.2em;
}
.review-texto { font-size: .98rem; color: var(--tinta); }
.review-rodape { display: flex; flex-direction: column; gap: .25rem; border-top: 1px solid var(--hairline); padding-top: .9rem; }
.review-estrelas { color: var(--acento); letter-spacing: .1em; font-size: .95rem; }
.review-autor { font-size: .85rem; color: var(--texto-suave); font-weight: 600; }
.avaliacoes-rodape { margin-bottom: 2rem; }
.avaliacoes-rodape a { color: var(--acento); font-weight: 600; }
.avaliacoes-rodape a:hover { text-decoration: underline; }
.texto-pequeno { font-size: .8rem; color: var(--texto-suave); }

/* -------- Localização -------- */
.localizacao-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: var(--content-gap);
  align-items: center;
  margin-bottom: var(--content-gap);
}
.localizacao-foto {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 3 / 4;
  position: relative;
}
.localizacao-foto::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 10px;
  background-image: var(--traco-claro);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 1;
  opacity: .8;
}
.localizacao-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: brightness(1.1) saturate(.92);
  transition: transform .6s var(--ease);
}
.localizacao-foto:hover img { transform: scale(1.03); }
.localizacao-endereco { color: var(--texto-inverso-suave); }
.horarios-lista { margin-bottom: 1.75rem; }
.horarios-lista li {
  display: flex;
  justify-content: space-between;
  padding: .7rem 0;
  border-bottom: 1px solid var(--hairline-inversa);
  font-size: .98rem;
}
.horarios-lista li span { color: var(--texto-inverso-suave); }
.mapa-embed {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline-inversa);
  aspect-ratio: 16 / 7;
}
.mapa-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }

/* -------- Footer -------- */
.rodape {
  background: var(--canvas-escuro-2);
  color: var(--texto-inverso-suave);
  padding-block: 2.5rem;
  font-size: .9rem;
}
.rodape-inner { display: flex; flex-direction: column; gap: .4rem; }
.rodape-nome { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--texto-inverso); margin-bottom: .3rem; }
.rodape a { color: var(--texto-inverso-suave); }
.rodape a:hover { color: var(--texto-inverso); }
.rodape .texto-pequeno { color: hsla(28, 20%, 78%, .65); margin-top: .5rem; }

/* -------- Sticky CTA mobile -------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: .7rem var(--gutter);
  padding-bottom: max(.7rem, env(safe-area-inset-bottom));
  background: hsla(30, 35%, 96%, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
  display: none;
}
.sticky-cta.is-on { transform: translateY(0); }

/* -------- Zap float (desktop) -------- */
.zap-float {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--acento);
  color: var(--texto-inverso);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-hover);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .2s var(--ease);
  animation: zap-in .5s var(--ease-expo) 1.2s both;
}
.zap-float:hover { background: var(--acento-hover); transform: scale(1.07); }
.zap-float.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
@keyframes zap-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* -------- Reveal on scroll -------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* -------- Responsivo -------- */
@media (max-width: 860px) {
  .nav-desktop { display: none; }
}

@media (max-width: 760px) {
  .cards-diferenciais { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .localizacao-grid { grid-template-columns: 1fr; }
  .localizacao-foto { aspect-ratio: 16 / 10; }
  .sticky-cta { display: block; }
  .zap-float { display: none; }
  .rodape { padding-bottom: calc(2.5rem + 64px); }
  .sec-localizacao { padding-bottom: calc(var(--section-space) + 64px); }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .horarios-lista li { font-size: .92rem; }
}

/* -------- Reduced motion (regra dura) -------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
