/* =========================================================
   DRA. PRISCILA BIESEK — STYLESHEET
   Paleta oficial: #854621 · #D9B9A0 · #E3D6C5
   Fontes: Cormorant Garamond (display) · Montserrat (corpo)
   ========================================================= */

/* === RESET & BASE ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brown:        #854621;
  --brown-dark:   #5C2E0F;
  --brown-mid:    #9B6040;
  --beige:        #D9B9A0;
  --cream:        #E3D6C5;
  --cream-light:  #F5EFE8;
  --white:        #FFFFFF;
  --text:         #3A2510;
  --border:       #D9B9A0;

  --f-head: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Montserrat', sans-serif;

  --w: clamp(1180px, 82vw, 1440px);  /* escala para telas 1440px+ */
  --r:    12px;
  --r-lg: 20px;
  --ease: 0.35s ease;

  --sh-sm: 0 2px 12px rgba(133,70,33,.08);
  --sh-md: 0 8px 32px rgba(133,70,33,.13);
  --sh-lg: 0 20px 60px rgba(133,70,33,.18);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* === CONTAINER =========================================== */
.container {
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* === TYPOGRAPHY ========================================== */
.section__eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: .75rem;
}
.section__title {
  font-family: var(--f-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.highlight { color: var(--brown); font-style: italic; }

/* === BUTTONS ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  font-family: var(--f-body);
  font-size: .9rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brown);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn--hero {
  background: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
  padding: .9rem 2.2rem;
}
.btn--hero:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

/* === HEADER ============================================== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  /* Fundo branco sólido — sempre visível, em qualquer slide */
  background: var(--white);
  border-bottom: 1px solid rgba(133,70,33,.10);
  transition: background var(--ease), box-shadow var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding-inline: clamp(1.75rem, 5vw, 4rem);
  gap: 2rem;
}
.header.scrolled {
  background: var(--white);
  box-shadow: var(--sh-sm);
}
/* Logo */
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  color: var(--brown-dark);
  transition: color var(--ease);
  flex-shrink: 0;
  margin-right: 1rem;
}
.logo__img {
  height: 50px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.logo__name {
  font-family: var(--f-head);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}
.logo__specialty {
  font-family: var(--f-body);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brown);
  transition: color var(--ease);
}
/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brown-dark);
  position: relative;
  transition: color var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--brown);
  transition: width var(--ease);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
/* CTA */
.header__cta {
  display: flex;
  flex-shrink: 0;
  margin-left: 1rem;
  background: var(--brown) !important;
  color: var(--white) !important;
}
.header__cta:hover {
  background: var(--brown-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  z-index: 1001;
}
.hamburger__bar {
  width: 24px; height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}
.header.scrolled .hamburger__bar { background: var(--brown-dark); }
.hamburger.open .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === CAROUSEL ============================================ */
.carousel-section {
  position: relative;
  width: 100%;
  height: 100dvh;       /* dvh: full viewport, sem margens de browser */
  min-height: 620px;
  overflow: hidden;
  background: var(--creaml-light);   /* bege escuro — borda exterior de 50px */
}
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Cada slide ocupa o espaço absoluto inteiro */
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease-in-out;
  pointer-events: none;
}
.carousel__slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Layout: texto 50% | foto 50% — borda bege exterior */
.carousel__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  width: 100%;
  gap: 0;
  padding: 50px;
  padding-top: calc(80px + 50px);   /* 80px header + 50px borda */
  box-sizing: border-box;
}

/* ---- Painel de texto (esquerda) ---- */
.carousel__text-panel {
  background: var(--brown-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 0;
  padding: 3rem clamp(1.75rem, 5vw, 4.5rem);
  color: var(--white);
  position: relative;
  z-index: 2;
}
.carousel__text-panel::after { display: none; }

/* ---- Painel de fotos (direita) ---- */
.carousel__photo-panel {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;        /* evita que o grid cell estoure o padding do split */
  overflow: hidden;
  background: var(--brown-dark);
  position: relative;
}
/* Fade da esquerda: sobrepõe a foto com gradiente marrom */
.carousel__photo-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 35%;
  background: linear-gradient(to right, var(--brown-dark) 0%, transparent 100%);  /* funde com painel de texto */
  z-index: 3;
  pointer-events: none;
}

/* (classe --center reservada para uso futuro) */

/* Marca d'água — centralizada horizontalmente, fixada embaixo */
.carousel__watermark {
  position: absolute;
  bottom: clamp(70px, 8vh, 110px);   /* +50px em relação ao anterior, escala com altura da tela */
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: auto;
  opacity: 0.6;
  pointer-events: none;
  z-index: 10;
  filter: invert(1);
  mix-blend-mode: difference; /* visível em fundo escuro E claro */
}
.carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 1;
}

/* Posicionamento individual por slide — em vh para escalar com a tela */
.carousel__slide[data-slide="0"] .carousel__img {
  transform: translateY(-5vh);
}
.carousel__slide[data-slide="2"] .carousel__img {
  transform: translateY(-40vh);
}

/* ---- Tipografia interna do carrossel ---- */
.carousel__eyebrow {
  font-family: var(--f-body);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--beige);
  margin-bottom: .9rem;
}
.carousel__title {
  font-family: var(--f-head);
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.carousel__title em {
  font-style: italic;
  color: var(--beige);
}
.carousel__title .subtitle {
  display: block;
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  font-family: var(--f-body);
  font-weight: 400;
  font-style: normal;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  margin-top: .6rem;
}
.carousel__subtitle {
  font-family: var(--f-body);
  font-size: clamp(.85rem, 1.4vw, 1rem);
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
/* Ícone SVG inline (ex: pino de localização) alinha com a primeira linha do texto */
.carousel__subtitle svg {
  flex-shrink: 0;
  margin-top: .25em;   /* .25em = ~4px relativo ao font-size atual */
  vertical-align: unset;
}
.carousel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.carousel__tags span {
  font-family: var(--f-body);
  font-size: .73rem;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 100px;
  padding: .3rem .85rem;
}

/* Botão dentro do painel escuro */
.btn--light {
  background: var(--white);
  color: var(--brown-dark);
  align-self: flex-start;
}
.btn--light:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

/* Prev / Next arrows — ficam sobre o painel de fotos */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background var(--ease);
}
.carousel__btn:hover { background: rgba(255,255,255,.35); }
.carousel__btn--prev { left: 1.25rem; }   /* borda esquerda da tela */
.carousel__btn--next { right: 1.25rem; }  /* borda direita da tela  */

/* Dots — centralizados na base do carrossel */
.carousel__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .6rem;
  z-index: 20;
}
.carousel__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.38);
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.carousel__dot.active {
  background: var(--white);
  transform: scale(1.35);
}


/* === ABOUT =============================================== */
.about {
  padding: 7rem 0;
  background: var(--cream-light);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
/* Gallery: foto única */
.about__gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  align-items: start;
}
.about__gallery--single {
  grid-template-columns: 1fr;
}
.about__gallery--single img {
  width: 100%;
  height: 100%;
  max-height: clamp(520px, 45vw, 780px);
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

/* Bloco consulta + formação */
.about__consulta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.about__consulta-title {
  font-family: var(--f-head);
  font-size: 1.4rem;
  color: var(--brown-dark);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
.about__consulta-row > * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.about__formation { margin: 0; }
.about__formation-title { margin-top: 0; }
/* Text */
.about__lead {
  font-family: var(--f-head);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--brown);
  line-height: 1.6;
  border-left: 3px solid var(--beige);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}
.about__text {
  font-size: .93rem;
  color: var(--brown-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about__formation { margin: 2rem 0; }
.about__formation-title {
  font-family: var(--f-head);
  font-size: 1.1rem;
  color: var(--brown-dark);
  margin-bottom: .75rem;
}
.about__formation-list li {
  font-size: .83rem;
  color: var(--brown-mid);
  padding: .4rem 0 .4rem 1.2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.about__formation-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--brown);
  font-size: .45rem;
  top: .7rem;
}

/* === SERVICES ============================================ */
.services {
  padding: 7rem 0;
  background: var(--cream);
}
.services__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 4rem;
}
.services__subtitle {
  font-size: .95rem;
  color: var(--brown-mid);
  line-height: 1.7;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.service-card h3 {
  font-family: var(--f-head);
  font-size: 1.15rem;
  color: var(--brown-dark);
  line-height: 1.2;
}
.service-card p {
  font-size: .85rem;
  color: var(--brown-mid);
  line-height: 1.65;
}
/* === INSTAGRAM FEED ====================================== */
.instagram-section {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}
.instagram__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.instagram__title {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--brown-dark);
  margin-bottom: .5rem;
}
.instagram__handle {
  font-size: .85rem;
  color: var(--brown);
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
}
.instagram__handle:hover { text-decoration: underline; }

/* Viewport com overflow escondido para o carrossel infinito */
.instagram__viewport {
  overflow: hidden;
  width: 100%;
}

/* Track animado — CSS infinite scroll */
.instagram__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: instagramScroll 28s linear infinite;
}
.instagram__track:hover {
  animation-play-state: paused;
}

@keyframes instagramScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* 50% porque os posts são duplicados */
}

/* Card individual */
.instagram__post {
  flex-shrink: 0;
  width: 260px;
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  display: block;
  background: var(--cream);
}
.instagram__post img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.instagram__post:hover img { transform: scale(1.04); }

/* Placeholder quando ainda sem imagem */
.instagram__post-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
}

/* Overlay com ícone do Instagram no hover */
.instagram__post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(92, 46, 15, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.instagram__post:hover .instagram__post-overlay { opacity: 1; }

/* === OFFICE ============================================== */
.office {
  padding: 7rem 0 0;
  background: var(--white);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.office__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
}
.office__subtitle {
  font-size: .93rem;
  color: var(--brown-mid);
  line-height: 1.7;
}
/* Gallery: 1 big + 2x2 grid */
.office__gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4px;
  height: clamp(420px, 35vw, 660px);  /* fluido: cresce com a tela */
  overflow: hidden;
}
.office__gallery-main {
  height: 100%;
  overflow: hidden;
}
.office__gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.office__gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 100%;
  overflow: hidden;
}
.office__gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Address card — 2 colunas: info esquerda + mapa direita */
.office__address {
  padding: 3rem 0 7rem;
}
.office__address-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  min-height: 260px;
}

/* Coluna esquerda: info */
.office__address-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  padding: 2.5rem 3rem;
}
.office__address-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}
.office__address-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.office__address-item div { display: flex; flex-direction: column; gap: .2rem; }
.office__address-item strong { font-size: .85rem; color: var(--brown-dark); }
.office__address-item span { font-size: .82rem; color: var(--brown-mid); line-height: 1.5; }

/* Coluna direita: mapa */
.office__address-map {
  height: 100%;
  min-height: 260px;
  overflow: hidden;
}
.office__address-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  border-radius: 0;
}

/* === TESTIMONIALS ======================================== */
.testimonials {
  padding: 7rem 0;
  background: var(--white);
  position: relative;
  z-index: 2;
}
.testimonials__header {
  text-align: center;
  margin-bottom: 3rem;
}
.testimonials__big-title {
  font-family: var(--f-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.2;
}
.testimonials__big-title .highlight { color: var(--brown); font-style: italic; }

/* Carrossel de reviews */
.reviews-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.reviews-carousel__track-wrap {
  flex: 1;
  overflow: hidden;
}
.reviews-carousel__track {
  display: flex;
  gap: 1.5rem;
  transition: transform .45s ease;
}
.reviews-carousel__btn {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--brown-mid);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--ease);
  box-shadow: var(--sh-sm);
  z-index: 2;
}
.reviews-carousel__btn:hover {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
}

/* Card individual */
.testimonial-card {
  background: #F8F8F8;
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem 1.5rem;
  min-width: calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  transition: box-shadow var(--ease), transform var(--ease);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

/* Avatar Google no topo */
.testimonial-card__avatar-wrap {
  position: relative;
  margin-bottom: .25rem;
}
.testimonial-card__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  flex-shrink: 0;
}
/* Badge Google sobreposto ao avatar */
.testimonial-card__google-icon {
  position: absolute;
  bottom: -3px; right: -3px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.testimonial-card__name {
  font-family: var(--f-body);
  font-size: .9rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.2;
}
.testimonial-card__date {
  font-size: .75rem;
  color: #888;
}
.testimonial-card__stars {
  display: flex;
  align-items: center;
  gap: .2rem;
  color: #F4B400;
  font-size: 1rem;
}
/* checkmark verificado */
.testimonial-card__verified {
  color: #1A73E8;
  font-size: .85rem;
  margin-left: .25rem;
}
.testimonial-card__text {
  font-size: .85rem;
  color: #444;
  line-height: 1.75;
  flex: 1;
}
.testimonial-card__more {
  font-size: .78rem;
  color: #888;
  margin-top: .25rem;
}

/* Loading */
.testimonials__loading {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding: 3rem 0;
  color: var(--brown-mid); font-size: .9rem;
}
.testimonials__spinner {
  width: 34px; height: 34px;
  border: 3px solid rgba(133,70,33,.2);
  border-top-color: var(--brown);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer: badge + CTA */
.testimonials__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
}
.testimonials__google-badge {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: #666;
}
.testimonials__google-badge strong { color: var(--brown-dark); }

/* Botão outline marrom */
.btn--outline-brown {
  background: transparent;
  border: 1.5px solid var(--brown-dark);
  color: var(--brown-dark);
  padding: .9rem 3rem;
  border-radius: 100px;
  font-family: var(--f-body);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--ease);
  cursor: pointer;
}
.btn--outline-brown:hover {
  background: var(--brown-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* === MAP ================================================= */
.map-section { background: var(--white); padding-top: 4rem; }
.map-section__header { text-align: center; margin-bottom: 2rem; }
.map-section__embed { width: 100%; line-height: 0; }
.map-section__embed iframe { display: block; width: 100%; height: 500px; }

/* === CONTACT ============================================= */
.contact { padding: 7rem 0; background: var(--cream); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: flex-start;
}
.contact__text { font-size: .93rem; color: var(--brown-mid); margin-bottom: 2rem; line-height: 1.7; }
.contact__details { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contact__item { display: flex; align-items: flex-start; gap: .9rem; }
.contact__item-icon { font-size: 1.25rem; flex-shrink: 0; }
.contact__item div { display: flex; flex-direction: column; gap: .15rem; }
.contact__item strong { font-size: .87rem; color: var(--brown-dark); }
.contact__item span  { font-size: .83rem; color: var(--brown-mid); line-height: 1.5; }
/* Form */
.contact__form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--sh-sm);
}
.contact__form-title {
  font-family: var(--f-head);
  font-size: 1.6rem;
  color: var(--brown-dark);
  margin-bottom: 1.75rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--brown-dark); letter-spacing: .04em; }
.form-group input,
.form-group textarea {
  font-family: var(--f-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--cream-light);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: .8rem 1rem;
  width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(133,70,33,.12);
}
.form__submit { width: 100%; justify-content: center; margin-top: .5rem; }
.form__note { font-size: .72rem; color: var(--brown-mid); text-align: center; margin-top: .75rem; }

/* === FOOTER ============================================== */
.footer { background: var(--brown-dark); color: var(--white); padding: 4rem 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand { display: flex; flex-direction: column; gap: .25rem; }
.footer__brand .logo__name { font-size: 1.3rem; }
.footer__brand .logo__specialty { color: rgba(255,255,255,.6); }
.footer__tagline { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: .75rem; }
.footer__links h4,
.footer__social h4 {
  font-size: .72rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--beige); margin-bottom: 1rem;
}
.footer__links ul { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color var(--ease); }
.footer__links a:hover { color: var(--white); }
.social-link {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .83rem; color: rgba(255,255,255,.6);
  transition: color var(--ease);
}
.social-link:hover { color: var(--beige); }
.footer__bottom { padding: 1.25rem 0; text-align: center; }
.footer__bottom p { font-size: .75rem; color: rgba(255,255,255,.35); }

/* === MOBILE CTA BAR (oculta no desktop) ================= */
.mobile-cta {
  display: none; /* ativada só no breakpoint mobile */
}

/* === WHATSAPP FLOAT ====================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 999;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--ease);
  animation: waPulse 2.5s 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%      { box-shadow: 0 4px 40px rgba(37,211,102,.7), 0 0 0 10px rgba(37,211,102,.1); }
}

/* === SCROLL REVEAL ======================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal--right { transform: translateX(28px); }
.reveal.visible { opacity: 1; transform: translate(0); }

/* === RESPONSIVE ========================================== */
/* 1024 */
@media (max-width: 1024px) {
  .about__inner   { gap: 3.5rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .carousel__title { font-size: clamp(1.8rem, 2.8vw, 3rem); }
}
/* 900 */
@media (max-width: 900px) {
  .about, .services, .office, .testimonials, .contact { padding: 5rem 0; }
  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about__gallery {
    max-width: 480px;
    margin-inline: auto;
  }
  .services__patients {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem;
  }
  .office__gallery {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .office__gallery-main img { max-height: 380px; }
  .office__gallery-grid { grid-template-columns: repeat(2, 1fr); max-height: 380px; }
  /* Address card: empilha em mobile */
  .office__address-card { grid-template-columns: 1fr; }
  .office__address-map  { min-height: 240px; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer__inner  { grid-template-columns: 1fr 1fr; }
  .footer__brand  { grid-column: 1/-1; }
}
/* 768 */
@media (max-width: 768px) {

  /* === BARRA CTA WHATSAPP FIXADA NO RODAPÉ =============== */
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #1DA851;
    z-index: 1100;
    box-shadow: 0 -2px 20px rgba(0,0,0,.18);
    padding-bottom: env(safe-area-inset-bottom); /* notch iPhone */
  }
  .mobile-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    width: 100%;
    padding: 1rem 1.5rem;
    color: #fff;
    font-family: var(--f-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
  }
  /* Espaço para a barra não cobrir conteúdo */
  body { padding-bottom: 64px; }
  /* Esconde o botão flutuante de WhatsApp (substituído pela barra) */
  .whatsapp-float { display: none; }
  /* Esconde watermark no mobile — fica sobre a foto empilhada */
  .carousel__watermark { display: none; }

  /* === NAV → OVERLAY ===================================== */
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(40,15,5,.97);
    backdrop-filter: blur(10px);
    gap: 2rem;
    z-index: 1000;
  }
  .nav.open .nav__list { flex-direction: column; align-items: center; gap: 2.5rem; }
  .nav.open .nav__link { font-size: 1.4rem; color: var(--white); }
  .header__cta { display: none; }
  .hamburger    { display: flex; }

  /* === CARROSSEL ========================================= */
  /* Reset dos translateY definidos para desktop */
  .carousel__slide[data-slide="0"] .carousel__img { transform: translateY(0); }
  /* Slide 2 (doc_4): ajuste de posição vertical no mobile — edite aqui se precisar */
  .carousel__slide[data-slide="2"] .carousel__img { transform: translateY(-10vh); }
  .carousel-section { height: 100dvh; min-height: 580px; }
  .carousel__split {
    grid-template-columns: 1fr !important;
    grid-template-rows: 42vw 1fr;   /* foto no topo; texto preenche o restante */
    max-height: 100dvh;
    padding: 0;
    padding-top: 76px;
    overflow: hidden;
  }
  /* Foto sobe para o topo, texto desce para baixo */
  .carousel__photo-panel {
    order: -1;
    height: 42vw;
    min-height: 160px;
    max-height: 240px;
  }
  .carousel__text-panel {
    order: 1;
    padding: 1.5rem;
    padding-top: 1.25rem;
    justify-content: flex-start;
  }
  .carousel__text-panel::after { display: none; }
  .carousel__title { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
  .carousel__subtitle { font-size: .85rem; margin-bottom: 1rem; }
  /* Watermark menor no mobile */
  .carousel__watermark { width: 90px; bottom: clamp(50px, 6vh, 70px); }
  .carousel__btn--prev { left: .75rem; top: auto; bottom: 1.5rem; transform: none; }
  .carousel__btn--next { right: 4rem;  top: auto; bottom: 1.5rem; transform: none; }
  .carousel__dots { right: auto; left: 50%; transform: translateX(-50%); bottom: 1.5rem; }

  /* === SOBRE ============================================= */
  .about, .services, .office, .testimonials, .contact { padding: 3.5rem 0; }
  /* Mostra só os 2 primeiros parágrafos da bio (esconde 3º e 4º) */
  .about__content p.about__text:nth-of-type(n+3) { display: none; }
  /* "Como funciona" em coluna única, compacto */
  .about__consulta-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
  /* Esconde o segundo bloco (Formação) — mantém só "Como funciona" */
  .about__consulta-row > *:nth-child(n+2) { display: none; }
  /* Esconde o 2º parágrafo dentro de "Como funciona" (mantém só o 1º) */
  .about__consulta-row p.about__text:nth-of-type(n+2) { display: none; }
  /* Esconde botão de agendar da seção about (barra substitui) */
  .about__content .btn { display: none; }

  /* === ÁREAS DE ATUAÇÃO ================================= */
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  /* Cards mais compactos: só título */
  .service-card { padding: 1.1rem 1rem; gap: .2rem; }
  .service-card p { display: none; }

  /* === INSTAGRAM ========================================= */
  .instagram__post { width: 180px; }
  .instagram__track { gap: 12px; }

  /* === CONSULTÓRIO ======================================= */
  .office__gallery { grid-template-columns: 1fr; max-height: none; height: auto; }
  .office__gallery-main img { max-height: 260px; }
  .office__gallery-grid { display: none; } /* simplifica: só foto principal */
  .office__address-card { grid-template-columns: 1fr; }
  .office__address-map  { min-height: 220px; }

  /* === CONTATO =========================================== */
  .contact__inner { grid-template-columns: 1fr; gap: 2rem; }
  /* Esconde formulário — CTA WhatsApp é o foco no mobile */
  .contact__form-wrap { display: none; }
  /* Esconde botão de agendar da seção contato (barra substitui) */
  .contact__info .btn { display: none; }

  /* === DEPOIMENTOS ======================================= */
  .testimonial-card {
    min-width: calc(80vw);
    max-width: calc(80vw);
  }

  /* === FOOTER ============================================ */
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__links { display: none; } /* simplifica footer no mobile */
  .footer { padding-top: 2.5rem; padding-bottom: 1.5rem; }
  .map-section__embed iframe { height: 420px; }
}
/* 480 */
@media (max-width: 480px) {
  .about, .services, .office, .testimonials, .contact { padding: 3rem 0; }
  .section__title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .carousel__title { font-size: clamp(1.4rem, 6vw, 2rem); }
  /* Cards em coluna única em telas muito pequenas */
  .services__grid { grid-template-columns: 1fr; }
  .service-card { padding: 1rem; }
  .map-section__embed iframe { height: 320px; }
  /* Instagram ainda menor */
  .instagram__post { width: 150px; }
}

/* =========================================================
   LARGE SCREENS — 1440px+
   Ajustes para monitores widescreen (1440–1919px)
   ========================================================= */
@media (min-width: 1440px) {
  :root {
    --w: clamp(1300px, 78vw, 1560px);
  }

  html { font-size: 17px; }

  /* Header */
  .header__inner { padding-inline: clamp(2rem, 5vw, 4rem); }

  /* Carousel — borda proporcional à tela */
  .carousel__split {
    padding: clamp(50px, 3.5vw, 70px);
    padding-top: calc(80px + clamp(50px, 3.5vw, 70px));
  }
  .carousel__title {
    font-size: clamp(3rem, 3vw, 3.8rem);
  }
  .carousel__subtitle {
    font-size: clamp(.95rem, 1.1vw, 1.1rem);
  }

  /* About */
  .about__inner { gap: 6rem; }
  .about__gallery--single img { max-height: clamp(600px, 48vw, 900px); }
  .about__consulta-row { gap: 5rem; }

  /* Services grid — mais colunas */
  .services__grid { grid-template-columns: repeat(4, 1fr); }

  /* Office gallery */
  .office__gallery { height: clamp(560px, 38vw, 740px); }

  /* Contact */
  .contact__inner { gap: 6rem; }

  /* Instagram posts — um pouco maiores */
  .instagram__post { width: 300px; }
}

/* =========================================================
   EXTRA-LARGE SCREENS — 1920px+
   Monitores Full-HD e ultra-wide
   ========================================================= */
@media (min-width: 1920px) {
  :root {
    --w: clamp(1440px, 72vw, 1800px);
  }

  html { font-size: 18px; }

  /* Carousel */
  .carousel__split {
    padding: 80px;
    padding-top: calc(80px + 80px);
  }
  .carousel__title {
    font-size: clamp(3.4rem, 2.8vw, 4.5rem);
  }
  .carousel__subtitle {
    font-size: clamp(1rem, .9vw, 1.2rem);
  }
  /* Reajusta translateY para não cortar demais em telas altas */
  .carousel__slide[data-slide="0"] .carousel__img { transform: translateY(-3vh); }
  .carousel__slide[data-slide="2"] .carousel__img { transform: translateY(-28vh); }

  /* About */
  .about__gallery--single img { max-height: clamp(680px, 44vw, 1000px); }

  /* Office gallery */
  .office__gallery { height: clamp(620px, 36vw, 820px); }

  /* Instagram */
  .instagram__post { width: 340px; }
  .instagram__track { gap: 20px; animation-duration: 36s; }

  /* Section padding cresce com a tela */
  .about, .services, .office, .testimonials, .contact {
    padding-top: clamp(6rem, 7vw, 10rem);
    padding-bottom: clamp(6rem, 7vw, 10rem);
  }
}
