/* ============================================================
   HEREKTUS — design editorial
   Paleta original preservada. Foco: respiração, fotos sem
   adornos, ornamentos pontuais, transições restritas.
   ============================================================ */

:root {
  --brown-900:  #2b1810;
  --brown-700:  #5e443a;
  --brown-500:  #8d7b74;
  --brown-300:  #d7915c;
  --cream-50:   #faf4f1;
  --cream-100:  #f4eeeb;
  --gold:       #ffbf52;
  --whatsapp:   #49e670;
  --grey-100:   #f6f5f3;
  --grey-200:   #e8e4df;
  --grey-300:   #c7c2bb;
  --footer:     #1a1410;
  --white:      #ffffff;

  --maxw:        1280px;
  --maxw-text:   720px;
  --img-radius:  12px;

  --t-fast: .2s;
  --t-base: .35s;
  --ease:   cubic-bezier(.22, 1, .36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--brown-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--brown-900);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0 0 1em; color: var(--brown-700); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), padding var(--t-base);
}
.site-header.scrolled {
  border-color: var(--grey-200);
}
.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding var(--t-base);
}
.site-header.scrolled .nav-wrap { padding: 12px 32px; }
.logo img { height: 56px; width: auto; display: block; transition: height var(--t-base); }
.site-header.scrolled .logo img { height: 44px; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--brown-900);
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--brown-700); }
.nav-links a.active { color: var(--brown-900); font-weight: 600; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brown-900);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-base) var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.search-icon {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--brown-500);
  cursor: pointer;
  transition: color var(--t-fast);
}
.search-icon:hover { color: var(--brown-900); }
.search-icon svg { width: 16px; height: 16px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none; background: transparent;
  flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--brown-900);
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- MOBILE DRAWER ---------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--white);
  padding: 100px 32px 32px;
  z-index: 49;
  transform: translateX(100%);
  transition: transform var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
.mobile-drawer.open { transform: translateX(0); visibility: visible; }
.mobile-drawer a {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--brown-900);
  padding: 18px 0;
  border-bottom: 1px solid var(--grey-200);
  transition: color var(--t-fast);
}
.mobile-drawer a:hover { color: var(--brown-300); }

/* ---------- HERO ---------- */
.hero-section {
  padding: 0;
  background: var(--white);
}
.hero {
  position: relative;
  width: 100%;
  height: clamp(420px, 65vh, 640px);
  overflow: hidden;
  background: var(--cream-50);
  border-radius: var(--img-radius);
}
.hero-section { padding: 24px 24px 80px; }
@media (min-width: 1280px) {
  .hero-section { max-width: var(--maxw); margin: 0 auto; padding: 32px 0 96px; }
}
.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1.4s cubic-bezier(.7, 0, .15, 1);
  will-change: transform;
}
.hero-track.no-anim { transition: none !important; }
.hero-slide img { transition: opacity .8s ease, transform 1.4s ease; }
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  user-select: none;
  pointer-events: none;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .6);
  color: var(--brown-900);
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 6;
  opacity: .85;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity var(--t-base), background var(--t-base), transform var(--t-fast);
}
.hero:hover .hero-arrow {
  opacity: 1;
  background: var(--white);
}
.hero-arrow:hover { transform: translateY(-50%) scale(1.05); }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dots button {
  width: 24px; height: 2px;
  border: none;
  background: rgba(255, 255, 255, .45);
  padding: 0;
  cursor: pointer;
  transition: background var(--t-fast);
}
.hero-dots button.active { background: var(--white); }

/* ---------- LAYOUT TOKENS ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 120px 0; position: relative; }
.section-cream { background: var(--cream-50); }
.section-tight { padding: 80px 0; }

/* ---------- SECTION HEADING (editorial) ---------- */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-300);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--brown-900);
  margin: 0;
}
.section-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--brown-700);
  margin: 24px 0 0;
  max-width: 56ch;
}

/* Ornamento minimalista (losango) — só onde precisa pontuar */
.diamond-mark {
  width: 14px; height: 14px;
  background: var(--gold);
  transform: rotate(45deg);
  display: block;
}
.diamond-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.diamond-row::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--grey-200);
}

/* ---------- "CONHEÇA A CLÍNICA" — split editorial ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 96px;
  align-items: center;
}
.intro-text .section-eyebrow { margin-bottom: 14px; }
.intro-text h2 { margin-bottom: 28px; }
.intro-text p { font-size: 16px; line-height: 1.75; max-width: 52ch; color: var(--brown-700); }
.intro-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  border-top: 1px solid var(--grey-200);
  padding-top: 28px;
}
.intro-list li {
  font-size: 14px;
  font-weight: 500;
  color: var(--brown-900);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.intro-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}
.intro-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: var(--img-radius);
}

/* ---------- TÉCNICAS (alternância editorial) ---------- */
.techniques { display: flex; flex-direction: column; gap: 120px; }
.technique-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 80px;
  align-items: center;
}
.technique-row.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.technique-row.reverse .technique-image { order: -1; }
.technique-text .technique-num {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--brown-300);
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.technique-text h3 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.technique-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--brown-700);
  max-width: 56ch;
}
.technique-text p + p { margin-top: 14px; }
.technique-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: var(--img-radius);
}

/* ---------- GALERIA (mosaico editorial) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.gallery-item {
  overflow: hidden;
  position: relative;
  border-radius: var(--img-radius);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter var(--t-base) var(--ease);
}
.gallery-item:hover img { filter: brightness(1.04); }
/* Mosaico assimétrico — varia para não ser 3-col genérico */
.gallery-item:nth-child(1) { grid-column: span 7; aspect-ratio: 4 / 3; }
.gallery-item:nth-child(2) { grid-column: span 5; aspect-ratio: 4 / 3; }
.gallery-item:nth-child(3) { grid-column: span 4; aspect-ratio: 1; }
.gallery-item:nth-child(4) { grid-column: span 8; aspect-ratio: 16 / 9; }
.gallery-item:nth-child(5) { grid-column: span 6; aspect-ratio: 3 / 2; }
.gallery-item:nth-child(6) { grid-column: span 6; aspect-ratio: 3 / 2; }

/* ---------- PAGE TITLE (sobre/contato) ---------- */
.page-title-bar {
  background: var(--cream-50);
  padding: 100px 32px 110px;
  text-align: center;
  position: relative;
}
.page-title-bar h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}
.page-title-bar .page-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-300);
  margin-bottom: 24px;
  font-weight: 600;
}
.page-title-bar .diamond-floating {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 24px; height: 24px;
  background: var(--gold);
}

/* ---------- LOSANGO DIVISOR (pontua transições entre seções) ---------- */
.section-divider {
  position: relative;
  height: 0;
  z-index: 3;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 22px;
  height: 22px;
  background: var(--gold);
  box-shadow: 0 4px 14px rgba(53, 30, 21, 0.08);
}
.section-divider.sm::before { width: 16px; height: 16px; top: -8px; }

/* ---------- HISTÓRIA (sobre) — texto pareado com imagem ---------- */
.story-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 80px;
  align-items: center;
}
.story-row.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.story-row.reverse .story-text { order: 2; }
.story-row.reverse .story-image { order: 1; }
.story-text p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--brown-700);
  margin: 0;
  max-width: 56ch;
}
.story-image {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.story-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: var(--img-radius);
}
.story-image figcaption {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--brown-500);
  text-align: center;
  letter-spacing: .01em;
}

/* ---------- CONTATO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 96px;
  align-items: start;
}
.contact-intro {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brown-900);
  max-width: 22ch;
  margin: 0 0 56px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-500);
}
.field label .req { color: var(--brown-300); margin-left: 2px; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--grey-300);
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--brown-900);
  outline: none;
  transition: border-color var(--t-fast);
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--brown-900); }
.field textarea { min-height: 80px; resize: vertical; }
.contact-form button {
  align-self: flex-start;
  margin-top: 8px;
  padding: 16px 40px;
  background: var(--brown-900);
  color: var(--white);
  border: none;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  transition: background var(--t-base);
}
.contact-form button:hover { background: var(--brown-700); }

.contact-info-block { margin-bottom: 36px; }
.contact-info-block:last-child { margin-bottom: 0; }
.contact-info h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-500);
  margin: 0 0 8px;
}
.contact-info p {
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--brown-900);
  line-height: 1.6;
}
.contact-info a { color: var(--brown-900); transition: color var(--t-fast); border-bottom: 1px solid transparent; }
.contact-info a:hover { color: var(--brown-300); }

/* ---------- ENDEREÇO/CONTATO HOME ---------- */
.address-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}
.address-block h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-500);
  margin: 0 0 14px;
}
.address-block p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--brown-900);
  margin: 0 0 6px;
}
.address-block p strong { font-weight: 600; }

/* ============================================================
   FOOTER — visit-us em cima (creme) + barra escura embaixo
   ============================================================ */
footer { padding: 0; border: none; background: transparent; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* TOPO: VISIT US (creme) */
.footer-top {
  background: var(--cream-50);
  padding: 64px 0;
  border-top: 1px solid var(--grey-200);
}
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}
.visit-block { color: var(--brown-700); }
.visit-block h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brown-900);
  margin: 0 0 14px;
  line-height: 1.1;
}
.visit-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--brown-700);
  margin: 0 0 24px;
  max-width: 38ch;
}
.visit-list { display: flex; flex-direction: column; gap: 18px; }
.visit-list .item h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-300);
  margin: 0 0 6px;
}
.visit-list .item p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: var(--brown-900);
}
.visit-list .item a { color: var(--brown-900); transition: color var(--t-fast); }
.visit-list .item a:hover { color: var(--brown-300); }
.visit-hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Mapa */
.footer-map-block { display: flex; flex-direction: column; gap: 14px; }
.footer-map {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--img-radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--grey-200);
}
.footer-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: var(--white);
  font-family: 'Montserrat', sans-serif;
  outline: none;
}
.footer-map .leaflet-control-attribution,
.footer-map .leaflet-control-container .leaflet-control,
.footer-map .leaflet-bottom,
.footer-map .leaflet-top {
  display: none !important;
}
.footer-map-actions {
  display: flex;
  gap: 10px;
}
.map-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--brown-900);
  border: 1px solid var(--grey-200);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.map-btn:hover {
  border-color: var(--brown-900);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(53, 30, 21, .08);
}
.map-btn img {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.map-btn-maps img { width: 14px; height: 18px; }
.map-btn-waze img { width: 18px; height: 18px; }

/* BARRA ESCURA: logo + links */
.footer-dark {
  background: var(--brown-900);
  color: rgba(255, 255, 255, .8);
  padding: 56px 0 0;
}
.footer-dark-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.footer-logo-block { display: flex; flex-direction: column; gap: 20px; max-width: 420px; }
.footer-tagline {
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--brown-900);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.footer-social svg { width: 15px; height: 15px; }

.quick-links h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.quick-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.quick-links a {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.quick-links a:hover { color: var(--white); padding-left: 4px; }

/* Pin teardrop estático */
.map-pin {
  width: 36px; height: 44px;
  filter: drop-shadow(0 4px 10px rgba(53, 30, 21, .25));
}
.map-pin svg { width: 100%; height: 100%; display: block; }
.map-pin .pin-body { fill: var(--brown-900); stroke: var(--white); stroke-width: 2.5; }
.map-pin .pin-dot  { fill: var(--gold); }
.map-popup {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  padding: 4px 6px;
  min-width: 180px;
}
.map-popup-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--brown-900);
  margin-bottom: 4px;
}
.map-popup-addr {
  color: var(--brown-700);
  font-size: 12px;
  line-height: 1.45;
}
.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18) !important;
}

.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.footer-bottom-inner a { color: rgba(255, 255, 255, .55); transition: color var(--t-fast); }
.footer-bottom-inner a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom .back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .65);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0;
  transition: color var(--t-fast);
}
.footer-bottom .back-top:hover { color: var(--white); }
.footer-bottom .back-top svg { width: 12px; height: 12px; }

/* ---------- WHATSAPP FAB (pílula branca + círculo verde) ---------- */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .12));
  transition: transform var(--t-fast) var(--ease);
}
.wa-fab:hover { transform: translateY(-1px); }
.wa-fab .wa-label {
  background: var(--white);
  color: var(--brown-900);
  padding: 9px 38px 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  margin-right: -22px;
}
.wa-fab .wa-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-fab .wa-circle svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

/* CTA WhatsApp inline (página de contato) */
.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 28px 8px 8px;
  background: var(--white);
  color: var(--brown-900);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform var(--t-fast), border-color var(--t-base);
}
.cta-whatsapp:hover { transform: translateY(-1px); border-color: var(--brown-300); }
.cta-whatsapp .cta-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cta-whatsapp .cta-circle svg { width: 22px; height: 22px; color: var(--white); }

/* ---------- ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Transição entre páginas — fade-in na carga */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes page-leave {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
main { animation: page-enter .55s cubic-bezier(.22, 1, .36, 1) both; }
body.page-leaving main { animation: page-leave .35s cubic-bezier(.4, 0, 1, 1) forwards; }
body.page-leaving .site-header { transition: opacity .25s ease; opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .section { padding: 96px 0; }
  .intro-grid, .technique-row, .technique-row.reverse,
  .story-row, .story-row.reverse, .contact-grid {
    gap: 56px;
  }
  .techniques { gap: 96px; }
}

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .container { padding: 0 24px; }
  .intro-grid,
  .technique-row,
  .technique-row.reverse,
  .story-row,
  .story-row.reverse,
  .contact-grid,
  .address-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .technique-row.reverse .technique-image,
  .story-row.reverse .story-image { order: 0; }
  .story-row.reverse .story-text { order: 0; }
  .story-image { max-width: 480px; margin-left: auto; margin-right: auto; }
  .techniques { gap: 80px; }
  .intro-list { grid-template-columns: 1fr; }
  .gallery {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
  .gallery-item:nth-child(n) { grid-column: span 3; aspect-ratio: 4 / 3; }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) { grid-column: span 6; aspect-ratio: 16 / 9; }
  .visit-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-dark-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links, .search-icon { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { padding: 0 20px; }
  .footer-top { padding: 48px 0; }
  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .visit-hours { grid-template-columns: 1fr; gap: 18px; }
  .footer-dark { padding-top: 48px; }
  .footer-dark-grid { grid-template-columns: 1fr; gap: 32px; }
  .quick-links ul { grid-template-columns: 1fr; }
  .footer-map { height: 240px; }
  .footer-bottom-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 20px;
  }
  .footer-bottom-links { flex-direction: column; gap: 8px; }
  .footer-logo img { height: 60px; }
  .pre-footer { padding: 64px 24px; }
  .pre-footer .pre-footer-actions { flex-direction: column; gap: 16px; }
  .nav-wrap { padding: 14px 20px; }
  .logo img { height: 44px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .hero { height: clamp(360px, 60vh, 520px); }
  .hero-section { padding: 16px 16px 56px; }
  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }
  .hero-arrow { width: 38px; height: 38px; }
  .hero-arrow svg { width: 18px; height: 18px; }
  .page-title-bar { padding: 64px 20px 80px; }
  .page-title-bar .diamond-floating { width: 18px; height: 18px; bottom: -9px; }
  .gallery { gap: 10px; }
  .gallery-item:nth-child(n) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .wa-fab { bottom: 16px; right: 16px; }
  .wa-fab .wa-label { font-size: 13px; padding: 8px 32px 8px 14px; }
  .wa-fab .wa-circle { width: 46px; height: 46px; }
  .wa-fab .wa-circle svg { width: 22px; height: 22px; }
}
