/* ============================================================
   Instituto Vitta Prime — Editorial Premium
   Paleta: ivory · noir · champagne · sage · dust rose
   ============================================================ */

:root {
  --ivory:        #FAF7F1;
  --ivory-deep:   #F2EDE3;
  --noir:         #1A1614;
  --noir-soft:    #2A2522;
  --champagne:    #A67C52;
  --champagne-l:  #C9A57A;
  --sage:         #5B6B5A;
  --rose:         #C8A89A;
  --line:         rgba(26,22,20,0.10);
  --line-strong:  rgba(26,22,20,0.20);
}

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--noir);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
.font-display { font-family: 'Cormorant Garamond', 'Cormorant', serif; font-weight: 400; letter-spacing: -0.01em; }
.font-eyebrow { font-family: 'Marcellus', serif; letter-spacing: 0.22em; text-transform: uppercase; font-size: 11px; }
.font-body    { font-family: 'Lora', Georgia, serif; }

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; color: var(--noir); }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }

.italic-display { font-style: italic; color: var(--champagne); }

/* ---------- Atmosphere & details ---------- */
.grain::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: multiply;
}

.hairline { border-top: 1px solid var(--line); }
.hairline-strong { border-top: 1px solid var(--line-strong); }

/* ---------- Buttons & links ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--noir);
  color: var(--ivory);
  padding: 1rem 2rem;
  font-family: 'Marcellus', serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all 0.45s cubic-bezier(.2,.7,.2,1);
  border: 1px solid var(--noir);
}
.btn-primary:hover {
  background: var(--champagne);
  border-color: var(--champagne);
  letter-spacing: 0.28em;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--noir);
  padding: 1rem 0;
  font-family: 'Marcellus', serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--noir);
  transition: all 0.4s ease;
}
.btn-ghost:hover { color: var(--champagne); border-color: var(--champagne); padding-bottom: 1.3rem; }

a.linklift { position: relative; }
a.linklift::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
a.linklift:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Decorative ---------- */
.serif-numeral {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--champagne);
  font-size: 0.9em;
  letter-spacing: 0.04em;
}

.divider-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 1.2rem;
  color: var(--champagne);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}
.divider-ornament::before, .divider-ornament::after {
  content: ''; flex: 1; max-width: 80px;
  height: 1px; background: var(--champagne); opacity: 0.6;
}

/* ---------- Layout helpers ---------- */
.col-rule { border-left: 1px solid var(--line); padding-left: 2.5rem; }

/* ---------- Image treatments ---------- */
.img-warm { filter: saturate(0.92) contrast(1.02); }
.img-vignette { box-shadow: inset 0 0 80px 20px rgba(26,22,20,0.08); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee { display: flex; gap: 4rem; animation: marquee 38s linear infinite; }

/* ---------- FAQ accordion ---------- */
details.faq {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
}
details.faq:last-child { border-bottom: 1px solid var(--line); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 500;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+'; font-size: 1.6rem; color: var(--champagne); transition: transform 0.4s;
  font-family: 'Cormorant Garamond', serif;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq > div { margin-top: 1.2rem; color: var(--noir-soft); font-size: 1rem; }

/* ---------- WhatsApp floating ---------- */
.fab-wa {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--noir); color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(26,22,20,0.18);
  z-index: 50;
  transition: all 0.4s;
}
.fab-wa:hover { background: var(--champagne); transform: translateY(-2px); }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

nav a { transition: color 0.3s ease; }
nav a:hover { color: var(--champagne); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--noir);
  color: var(--ivory);
  font-size: 14px;
}
footer.site-footer h4 { color: var(--ivory); }
footer.site-footer a { color: var(--ivory); opacity: 0.7; transition: opacity 0.3s; }
footer.site-footer a:hover { opacity: 1; color: var(--champagne-l); }

/* ---------- Selection ---------- */
::selection { background: var(--champagne); color: var(--ivory); }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .col-rule { border-left: 0; padding-left: 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
  .fab-wa { bottom: 18px; right: 18px; }
}

/* ============================================================
   v2 additions: depoimentos + reviews + mosaic + asymmetric
   ============================================================ */

/* Polaroid frame */
.polaroid {
  background: #fff;
  padding: 16px 16px 56px;
  box-shadow: 0 18px 40px -20px rgba(26,22,20,0.35), 0 4px 12px -4px rgba(26,22,20,0.1);
  display: inline-block;
}
.polaroid img { display: block; width: 100%; height: auto; }
.polaroid .cap { margin-top: 14px; font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--noir-soft); font-size: 14px; text-align: center; }

/* Editorial mosaic — staggered, asymmetric, slight rotations */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.mosaic > * { overflow: hidden; }
.m-1 { grid-column: 1/5;  grid-row: 1/3; aspect-ratio: 3/4; transform: rotate(-1.2deg); }
.m-2 { grid-column: 5/9;  grid-row: 1/2; aspect-ratio: 4/3; transform: translateY(-12px) rotate(0.6deg); }
.m-3 { grid-column: 9/13; grid-row: 1/3; aspect-ratio: 3/4; transform: rotate(1.3deg); }
.m-4 { grid-column: 5/8;  grid-row: 2/3; aspect-ratio: 1/1; transform: translateY(20px) rotate(-0.6deg); }
.m-5 { grid-column: 8/10; grid-row: 2/3; aspect-ratio: 3/4; transform: translateY(-8px) rotate(1.8deg); }
.m-6 { grid-column: 10/13;grid-row: 3/4; aspect-ratio: 4/3; transform: translateX(-30px) rotate(-1deg); }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(6, 1fr); gap: 0.8rem; }
  .m-1 { grid-column: 1/4; grid-row: auto; aspect-ratio: 3/4; transform: none; }
  .m-2 { grid-column: 4/7; grid-row: auto; aspect-ratio: 4/3; transform: none; }
  .m-3 { grid-column: 1/4; grid-row: auto; aspect-ratio: 3/4; transform: none; }
  .m-4 { grid-column: 4/7; grid-row: auto; aspect-ratio: 1/1; transform: none; }
  .m-5 { grid-column: 1/4; grid-row: auto; aspect-ratio: 3/4; transform: none; }
  .m-6 { grid-column: 4/7; grid-row: auto; aspect-ratio: 4/3; transform: none; }
}

/* Google reviews bar */
.google-bar {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -12px rgba(26,22,20,0.18);
}
.google-bar .g {
  font-family: 'Marcellus', serif; font-size: 11px; letter-spacing: 0.22em; color: var(--noir-soft);
}
.google-bar .stars { color: #F6B701; letter-spacing: 0.2em; font-size: 16px; }
.google-bar .num { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 500; line-height: 1; }

/* Review card */
.review-card {
  background: var(--ivory);
  padding: 2rem;
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.4s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -16px rgba(26,22,20,0.2); }
.review-card::before {
  content: '"'; position: absolute; top: -10px; left: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem; line-height: 1; color: var(--champagne); font-style: italic;
}
.review-card .stars { color: #F6B701; letter-spacing: 0.15em; font-size: 14px; margin-bottom: 1rem; }
.review-card .text { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.2rem; line-height: 1.55; color: var(--noir); margin-bottom: 1.4rem; }
.review-card .author { font-family: 'Marcellus', serif; font-size: 11px; letter-spacing: 0.18em; color: var(--noir-soft); }
.review-card .author small { font-family: 'Lora', serif; letter-spacing: 0; text-transform: none; color: var(--noir-soft); opacity: 0.6; font-size: 12px; }

/* IG-like polaroid grid - random tilts */
.tilt-left { transform: rotate(-2.2deg); }
.tilt-right { transform: rotate(1.8deg); }
.tilt-mild-l { transform: rotate(-0.7deg); }
.tilt-mild-r { transform: rotate(0.9deg); }

/* Stamp ornament */
.stamp {
  display: inline-block;
  border: 1px solid var(--champagne);
  padding: 0.6rem 1.2rem;
  font-family: 'Marcellus', serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--champagne);
  text-transform: uppercase;
  position: relative;
}
.stamp::before, .stamp::after {
  content: ''; position: absolute; width: 6px; height: 6px;
  background: var(--ivory); border: 1px solid var(--champagne); border-radius: 50%;
}
.stamp::before { top: -4px; left: -4px; }
.stamp::after  { bottom: -4px; right: -4px; }

/* Pull quote */
.pullquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.18;
  border-left: 2px solid var(--champagne);
  padding-left: 2rem;
  margin: 2rem 0;
}

/* Asymmetric column */
.asym-2col { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
.asym-2col-r { display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .asym-2col, .asym-2col-r { grid-template-columns: 1fr; gap: 2rem; } }

/* Service card with image */
.svc-card { position: relative; overflow: hidden; }
.svc-card .img { aspect-ratio: 16/9; overflow: hidden; background: #F2EDE3; }
.svc-card .img img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.svc-card:hover .img img { transform: scale(1.04); }
.svc-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(26,22,20,0.55) 100%);
}
.svc-card .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem; color: var(--ivory); }
.svc-card .content .num { font-family: 'Cormorant Garamond', serif; font-style: italic; opacity: 0.7; font-size: 0.95rem; }
.svc-card .content .title { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; line-height: 1.1; margin-top: 0.4rem; }


/* ============================================================
   Media fit policies (decide pelo conteúdo, não força 1:1)
   ============================================================ */

/* Foto fotográfica (pessoa, sala, equipamento) — corta só o pé, nunca a cabeça */
.media-cover-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Slide com texto, infográfico, antes-depois — mostra inteiro, fundo ivory */
.media-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ivory-deep);
}

/* Container que aceita ambas — fundo ivory-deep quando contain mostra letterbox */
.media-frame {
  background: var(--ivory-deep);
  overflow: hidden;
}
