/* ===== Design tokens ===== */
:root {
  --color-bg: #EDDFD5;
  --color-bg-soft: #F5ECE5;
  --color-taupe: #AB9082;
  --color-caramel: #B08967;
  --color-caramel-dark: #8C6949;
  --color-text: #4A3629;
  --color-text-muted: #6B5747;
  --color-white: #FFFFFF;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', Arial, sans-serif;
  --container-width: 1140px;
  --radius: 2px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--color-caramel); outline-offset: 2px; }

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; color: var(--color-text); }
h1 { font-size: 47px; line-height: 1.16; letter-spacing: -0.5px; }
h2 { font-size: 37px; line-height: 1.22; letter-spacing: -0.3px; }
h3 { font-size: 23px; line-height: 1.3; }
p { color: var(--color-text); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-cta {
  background: var(--color-caramel);
  color: var(--color-white);
}
.btn-cta:hover { background: var(--color-caramel-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-taupe);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-caramel); color: var(--color-caramel); }

/* ===== Header & Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(237, 223, 213, 0.92);
  backdrop-filter: blur(6px);
  z-index: 100;
  border-bottom: 1px solid rgba(171, 144, 130, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
}
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a:not(.btn) {
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--color-text);
  transition: color 0.2s ease;
}
.nav-menu a:not(.btn):hover, .nav-menu a.is-active { color: var(--color-caramel); }
.nav-cta { padding: 10px 20px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-text); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    border-bottom: 1px solid rgba(171, 144, 130, 0.25);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 12px 0; width: 100%; }
  .nav-cta { margin-top: 8px; }
}

/* ===== Footer ===== */
.site-footer { background: var(--color-text); color: var(--color-bg); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid img { height: 36px; margin-bottom: 12px; }
.footer-grid h4 { font-family: var(--font-serif); font-size: 16px; margin-bottom: 16px; color: var(--color-bg); }
.footer-grid p, .footer-grid a { color: rgba(237, 223, 213, 0.75); font-size: 14px; line-height: 1.8; }
.footer-grid a:hover { color: var(--color-caramel); }
.footer-bottom {
  border-top: 1px solid rgba(237, 223, 213, 0.15);
  padding-top: 24px;
  font-size: 12px;
  color: rgba(237, 223, 213, 0.5);
  text-align: center;
}

/* ===== WhatsApp floating button ===== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  z-index: 200;
}
.whatsapp-float a {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ===== Hero ===== */
.hero { position: relative; padding: 128px 0 116px; overflow: hidden; }
.hero-inner { max-width: 640px; position: relative; z-index: 2; }
.hero-eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-caramel);
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 28px; }
.hero .lead { font-size: 18px; line-height: 1.7; color: var(--color-text-muted); margin-bottom: 42px; max-width: 490px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-decor { position: absolute; right: -40px; top: -20px; width: 380px; opacity: 0.5; z-index: 1; }
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .hero-decor { width: 220px; }
}

/* ===== Sections ===== */
.section { padding: 108px 0; }
.section-alt { background: var(--color-bg-soft); }
.section-title { margin-bottom: 18px; }
.section-lead { color: var(--color-text-muted); font-size: 16.5px; max-width: 580px; margin-bottom: 54px; }

/* ===== Social proof ===== */
.social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid rgba(171, 144, 130, 0.25);
  border-bottom: 1px solid rgba(171, 144, 130, 0.25);
}
.social-proof strong { font-family: var(--font-serif); font-size: 24px; color: var(--color-caramel); }
.social-proof a { color: var(--color-text-muted); border-bottom: 1px solid currentColor; }
.social-proof a:hover { color: var(--color-caramel); }

/* ===== Specialty cards ===== */
.specialty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.specialty-card {
  background: var(--color-white);
  border: 1px solid rgba(171, 144, 130, 0.2);
  padding: 32px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.specialty-card:hover { border-color: var(--color-caramel); transform: translateY(-4px); }
.specialty-card .badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--color-caramel);
}
.specialty-card p { color: var(--color-text-muted); font-size: 14px; margin-top: 8px; }
.specialty-card.is-featured { background: var(--color-text); border-color: var(--color-text); }
.specialty-card.is-featured h3, .specialty-card.is-featured p { color: var(--color-white); }
.specialty-card.is-featured .badge { color: var(--color-bg); }
.specialty-more { margin-top: 32px; text-align: center; }

/* ===== About teaser ===== */
.about-teaser { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.about-teaser .photo-frame { width: 100%; max-width: 260px; aspect-ratio: 3 / 4; margin: 0 auto; }
.about-teaser .photo-frame img.real-photo { width: 100%; height: 100%; object-fit: cover; }
.about-teaser p { color: var(--color-text-muted); margin-bottom: 24px; }
@media (max-width: 720px) {
  .about-teaser { grid-template-columns: 1fr; text-align: center; }
  .about-teaser .photo-frame { margin-bottom: 8px; }
}

/* ===== CTA band ===== */
.cta-band { background: var(--color-taupe); color: var(--color-white); padding: 80px 0; text-align: center; }
.cta-band h2 { color: var(--color-white); margin-bottom: 24px; }
.cta-band .btn-cta { background: var(--color-white); color: var(--color-taupe); }
.cta-band .btn-cta:hover { background: var(--color-bg); }

/* ===== Page hero (páginas internas) ===== */
.page-hero { padding: 70px 0 50px; text-align: center; }
.page-hero .hero-eyebrow { display: block; margin: 0 auto 16px; }
.page-hero p.lead { max-width: 560px; margin: 16px auto 0; }

/* ===== Sobre: bio + valores ===== */
.about-bio { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.about-bio .photo-frame { width: 100%; max-width: 280px; aspect-ratio: 3 / 4; margin: 0 auto; }
.about-bio .photo-frame img.real-photo { width: 100%; height: 100%; object-fit: cover; }
.about-bio p { color: var(--color-text); margin-bottom: 16px; }
.about-bio .credential { font-size: 13px; color: var(--color-text); margin-top: 24px; }
@media (max-width: 720px) {
  .about-bio { grid-template-columns: 1fr; text-align: center; }
}

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-top: 16px; }
.value-item { padding-top: 20px; border-top: 2px solid var(--color-caramel); }
.value-item h3 { margin-bottom: 12px; }
.value-item p { color: var(--color-text-muted); }

/* ===== Service blocks (seções alternadas) ===== */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid rgba(171, 144, 130, 0.15);
}
.service-block:last-child { border-bottom: none; }
.service-block.is-reversed .service-media { order: 2; }
.service-block.is-reversed .service-content { order: 1; }
.service-media {
  position: relative;
  background: var(--color-bg-soft);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-media img.service-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-block:hover .service-media img.service-photo { transform: scale(1.04); }
.service-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 54, 41, 0.45), rgba(74, 54, 41, 0) 45%);
  pointer-events: none;
}
.service-media .service-number {
  position: absolute;
  left: 18px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.service-content .badge-featured {
  display: inline-block;
  background: var(--color-caramel-dark);
  color: var(--color-white);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 16px;
}
.service-content h2 { margin-bottom: 16px; }
.service-content p { color: var(--color-text-muted); margin-bottom: 16px; }
.service-content ul { margin: 0 0 28px; }
.service-content ul li {
  color: var(--color-text-muted);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.service-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--color-caramel);
}
@media (max-width: 780px) {
  .service-block { grid-template-columns: 1fr; padding: 48px 0; }
  .service-block.is-reversed .service-media,
  .service-block.is-reversed .service-content { order: initial; }
}

/* ===== Contato / Localização ===== */
.map-frame { width: 100%; height: 100%; min-height: 220px; border: 0; display: block; }

.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }

.feature-pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid rgba(171, 144, 130, 0.25);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-text);
}
.feature-pill svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--color-caramel); }

.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; margin-bottom: 32px; }
.info-card {
  background: var(--color-white);
  border: 1px solid rgba(171, 144, 130, 0.2);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(74, 54, 41, 0.05);
}
.info-card .info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-soft);
  border-radius: 50%;
  color: var(--color-caramel);
  margin-bottom: 16px;
}
.info-card .info-icon svg { width: 20px; height: 20px; }
.info-card h3 { font-size: 16px; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--color-text-muted); }

.location-contact { color: var(--color-text-muted); font-size: 14px; }
.location-contact a { color: var(--color-caramel); border-bottom: 1px solid currentColor; }

.location-media {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(171, 144, 130, 0.2);
  overflow: hidden;
}
.location-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; flex-shrink: 0; }
.map-card { position: relative; flex: 1; min-height: 220px; }

/* Carrossel integrado na coluna de localização (sobre o mapa) */
.location-carousel { max-width: none; margin: 0; flex-shrink: 0; }
.location-carousel .carousel-viewport { border: none; border-bottom: 1px solid rgba(171, 144, 130, 0.25); }
.location-carousel .carousel-slide img { aspect-ratio: 16 / 10; }
.location-carousel .carousel-caption { display: none; }
.location-carousel .carousel-dots { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; }
.location-carousel .carousel-dot { background: rgba(255, 255, 255, 0.55); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.location-carousel .carousel-dot.is-active { background: var(--color-white); }

/* =========================================================
   Refinamento de movimento e micro-interações
   O reveal e o fade de página só ativam com a classe .anim, que o
   <head> só adiciona quando há JS e o usuário NÃO pediu "reduzir
   movimento". Sem .anim, todo o conteúdo fica visível normalmente.
   ========================================================= */

/* Fade-in suave e rápido ao abrir a página (sem atrasar a navegação) */
.anim body { animation: pageFadeIn 0.25s ease both; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Entrada ao rolar: elementos sobem suavemente ao surgir na tela */
.anim .page-hero > *, .anim .hero-inner > *, .anim .social-proof,
.anim .section-title, .anim .section-lead,
.anim .specialty-card, .anim .about-teaser > *, .anim .about-bio > *,
.anim .value-item, .anim .service-block,
.anim .gallery-head > *, .anim .carousel,
.anim .feature-pills, .anim .info-card, .anim .location-media,
.anim .cta-band .container > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
/* !important garante que o estado "revelado" sempre vença as regras que
   escondem, mesmo as de maior especificidade (ex.: .cta-band .container > *). */
.anim .is-visible { opacity: 1 !important; transform: none !important; }

/* Escalonamento leve dos cards dentro das grades */
.anim .specialty-card:nth-child(2) { transition-delay: 0.05s; }
.anim .specialty-card:nth-child(3) { transition-delay: 0.10s; }
.anim .specialty-card:nth-child(4) { transition-delay: 0.15s; }
.anim .values-grid .value-item:nth-child(2) { transition-delay: 0.07s; }
.anim .values-grid .value-item:nth-child(3) { transition-delay: 0.14s; }

/* Micro-interações — botões */
.btn { transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(140, 105, 73, 0.32); }
.btn-cta:active { transform: translateY(0); }
.btn-outline:hover { transform: translateY(-2px); }
.cta-band .btn-cta:hover { box-shadow: 0 12px 28px rgba(74, 54, 41, 0.25); }

/* Micro-interações — cards */
.specialty-card { transition: border-color 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease; }
.specialty-card:hover { box-shadow: 0 18px 40px rgba(74, 54, 41, 0.12); }
.info-card { transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.info-card:hover { transform: translateY(-4px); border-color: var(--color-caramel); box-shadow: 0 14px 30px rgba(74, 54, 41, 0.10); }
.feature-pill { transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease; }
.feature-pill:hover { transform: translateY(-2px); border-color: var(--color-caramel); }
.value-item { transition: transform 0.3s ease; }
.value-item:hover { transform: translateY(-3px); }

/* Micro-interação — sublinhado animado nos links do menu (desktop) */
@media (min-width: 861px) {
  .nav-menu a:not(.btn) { position: relative; }
  .nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 1px;
    background: var(--color-caramel);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
  }
  .nav-menu a:not(.btn):hover::after,
  .nav-menu a:not(.btn).is-active::after { transform: scaleX(1); }
}

/* Garantia extra para quem pediu menos movimento */
@media (prefers-reduced-motion: reduce) {
  .anim body { animation: none; }
  html { scroll-behavior: auto; }
}

/* Ajuste de tipografia/espaçamento no mobile (evita títulos grandes demais) */
@media (max-width: 600px) {
  h1 { font-size: 34px; }
  h2 { font-size: 29px; }
  .section { padding: 78px 0; }
  .hero { padding: 96px 0 82px; }
}

@media (max-width: 780px) {
  .location-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; gap: 14px; }
  /* Layout compacto no mobile: ícone ao lado do título, texto embaixo */
  .info-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 14px;
    padding: 20px;
  }
  .info-card .info-icon { margin-bottom: 0; }
  .info-card h3 { margin-bottom: 0; }
  .info-card p { grid-column: 1 / -1; margin-top: 10px; }
  .location-media { height: auto; }
  .map-card { min-height: 300px; }
}

/* ===== Texture accents (subtle paper grain, matching brand book mockups) ===== */
.btn-cta, .cta-band, .specialty-card.is-featured, .site-footer {
  position: relative;
}
.btn-cta { overflow: hidden; }
.btn-cta::after,
.cta-band::after,
.specialty-card.is-featured::after,
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cta-band .btn-cta::after { content: none; }

/* ===== Carrossel do local ===== */
.gallery-head { text-align: center; margin-bottom: 40px; }
.gallery-head .hero-eyebrow { display: block; }
.gallery-head .section-lead { margin: 0 auto; }

.carousel { position: relative; max-width: 860px; margin: 0 auto; }
.carousel-viewport {
  overflow: hidden;
  border: 1px solid rgba(171, 144, 130, 0.25);
  background: var(--color-bg-soft);
}
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.carousel-slide .carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(74, 54, 41, 0.7), rgba(74, 54, 41, 0));
  color: var(--color-white);
  font-size: 14px;
  letter-spacing: 0.5px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}
.carousel-arrow:hover { background: var(--color-white); color: var(--color-caramel); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(171, 144, 130, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot:hover { background: var(--color-taupe); }
.carousel-dot.is-active { background: var(--color-caramel); transform: scale(1.25); }

@media (max-width: 600px) {
  .carousel-arrow { width: 38px; height: 38px; font-size: 20px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}
