/* ==========================================================================
   CAPPUCCINO QUERIDINHO — Design tokens
   ========================================================================== */
:root {
  /* Cores — base creme/artesanal */
  --color-cream-100: #FBF6EC;
  --color-cream-200: #F6EDDC;
  --color-cream-300: #F0E4CC;
  --color-cream-400: #E7D6B4;

  /* Marrons — contraste e texto */
  --color-brown-900: #2B1B12;
  --color-brown-800: #3B2416;
  --color-brown-700: #5A3822;
  --color-brown-600: #96643A;
  --color-brown-500: #9C6A3E;

  --color-white: #FFFFFF;
  --color-text: var(--color-brown-900);
  --color-text-muted: #7C6C5D;

  --color-whatsapp: #25D366;

  /* Tipografia */
  --font-display: "Fraunces", "Georgia", serif;
  --font-script: "Kaushan Script", cursive;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaçamento */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;

  /* Layout */
  --container-max: 1440px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);

  /* Raios */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.75rem;
  --radius-xl: 2.5rem;
  --radius-pill: 999px;

  /* Sombra */
  --shadow-soft: 0 20px 40px -20px rgba(43, 27, 18, 0.25);
  --shadow-card: 0 12px 30px -14px rgba(43, 27, 18, 0.2);

  /* Transições */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream-100);
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.btn .icon-whatsapp {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  flex-shrink: 0;
}

.btn--primary,
.btn--cta {
  background: var(--color-brown-800);
  color: var(--color-cream-100);
  box-shadow: var(--shadow-card);
}

.btn--primary:hover,
.btn--cta:hover {
  background: var(--color-brown-900);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(43, 27, 18, 0.45);
}

.btn--primary:active,
.btn--cta:active {
  transform: translateY(0);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream-100);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 12px 24px -18px rgba(43, 27, 18, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: 1.1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 2.5rem;
  width: auto;
}

/* Navegação */
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--color-brown-700);
  padding-block: 0.35rem;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 2px;
  background: var(--color-brown-800);
  border-radius: var(--radius-pill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover {
  color: var(--color-brown-900);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: var(--color-brown-900);
}

.nav__link.is-active::after {
  transform: scaleX(1);
}

/* Botão hamburguer (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 95; /* fica acima do menu aberto (z-index 90) para o X aparecer */
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-brown-800);
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(24rem, 35vw, 31rem);
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem) clamp(2.5rem, 4.5vw, 3.75rem);
  overflow: hidden;

  /* Distância do início do texto até a borda esquerda do viewport —
     usada para alinhar a fotografia sem depender de porcentagens soltas. */
  --hero-text-edge: max(0px, (100vw - var(--container-max)) / 2) + var(--container-pad);
  --hero-text-width: 36rem;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  position: relative;
  max-width: var(--hero-text-width);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brown-600);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.65rem, 5vw, 4rem);
  line-height: 1.04;
  color: var(--color-brown-900);
  letter-spacing: -0.02em;
}

.hero__title-accent {
  display: block;
  color: var(--color-brown-600);
  font-weight: 700;
}

.hero__description {
  margin-top: var(--space-5);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 27rem;
}

.hero__content .btn--primary {
  margin-top: var(--space-5);
}

/* ==========================================================================
   Composição visual do hero — fotografia integrada ao fundo
   ========================================================================== */

/* A fotografia começa logo depois do texto e vai até a borda direita do
   viewport, sem moldura, borda ou sombra de "card". A posição inicial é
   calculada a partir do próprio limite do texto (não uma % solta), então
   nunca colide com o conteúdo em nenhuma largura de tela. A transição é
   um degradê longo e suave — não uma linha reta separando as áreas. */
.hero__photo {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: calc(var(--hero-text-edge) + var(--hero-text-width) - 4.5rem);

  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 28%, black 62%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 28%, black 62%);
}

.hero__photo picture {
  display: contents;
}

.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 52%;
}

/* Onda cor de creme que fecha a base do Hero, unindo texto e fotografia
   numa única composição — igual à transição do mockup de referência. */
.hero__wave {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(2.25rem, 5vw, 3.75rem);
  display: block;
}

.hero__wave-path {
  fill: var(--color-cream-100);
}

/* ==========================================================================
   Responsivo — Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }

  .hero__content {
    max-width: 38rem;
  }

  /* A foto volta ao fluxo normal, abaixo do conteúdo, inteira e sem corte */
  .hero__photo {
    position: static;
    order: 2;
    width: min(32rem, 100%);
    height: auto;
    margin: var(--space-8) auto 0;

    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__photo img {
    height: auto;
    object-fit: contain;
    border-radius: 1.75rem;
  }

  .hero__inner {
    order: 1;
  }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    background: var(--color-cream-100);
    padding: 6.5rem var(--container-pad) 2.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
    z-index: 90;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }

  .nav__link {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .header__cta {
    display: none;
  }
}

/* ==========================================================================
   Responsivo — Mobile
   ========================================================================== */
@media (max-width: 640px) {
  .header__inner {
    padding-block: 0.85rem;
  }

  .logo img {
    height: 2rem;
  }

  .hero {
    padding-block: 1.5rem 2.5rem;
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__title {
    font-size: clamp(2.3rem, 9.5vw, 2.75rem);
  }

  .hero__description {
    font-size: 1rem;
    margin-inline: auto;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }

  .hero__content .btn--primary {
    width: auto;
    display: inline-flex;
    margin-inline: auto;
  }

  .hero__photo {
    width: min(20rem, 92%);
    margin-top: var(--space-6);
  }
}

/* ==========================================================================
   Produtos
   ========================================================================== */
.products {
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
}

.products__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.products__heading {
  max-width: 24rem;
}

.products__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  color: var(--color-brown-900);
  letter-spacing: -0.01em;
}

.products__title-accent {
  display: block;
}

.products__intro {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  max-width: 29rem;
  padding-bottom: 0.2rem;
}

.products__description {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.products__note {
  flex-shrink: 0;
  font-family: var(--font-script);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--color-brown-600);
  transform: rotate(-4deg);
  padding-top: 0.3rem;
  white-space: nowrap;
}

/* Grade de cards */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid rgba(43, 27, 18, 0.07);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 30px -24px rgba(43, 27, 18, 0.3);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -20px rgba(43, 27, 18, 0.3);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3.3;
  background: var(--color-cream-300);
  overflow: hidden;
}

/* Marca d'água discreta enquanto a foto real do produto não é adicionada.
   Some automaticamente atrás da imagem assim que o arquivo existir. */
.product-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/favicon.png') center / 2.5rem auto no-repeat;
  opacity: 0.12;
}

.product-card__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem 1.5rem 1.75rem;
}

.product-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--color-brown-900);
}

.product-card__desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  min-height: 2.8em;
}

.product-card__btn {
  margin-top: 0.4rem;
}

.product-card__arrow {
  transition: transform 0.25s var(--ease);
}

.product-card__btn:hover .product-card__arrow {
  transform: translateX(3px);
}

/* Botão em escala menor, mesma linguagem visual do botão principal */
.btn--sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.82rem;
  gap: 0.4rem;
}

/* ==========================================================================
   Revelação suave ao rolar (usada pela seção de Produtos e futuras seções)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.products__grid .product-card:nth-child(1) { transition-delay: 0.05s; }
.products__grid .product-card:nth-child(2) { transition-delay: 0.12s; }
.products__grid .product-card:nth-child(3) { transition-delay: 0.19s; }
.products__grid .product-card:nth-child(4) { transition-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Produtos — Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
  .products__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .products__intro {
    max-width: 100%;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .products {
    padding-block: 3rem 3.5rem;
  }

  .products__header {
    align-items: center;
    text-align: center;
  }

  .products__heading {
    margin-inline: auto;
  }

  .products__title {
    font-size: clamp(2rem, 8vw, 2.4rem);
  }

  .products__intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
  }

  .product-card__body {
    align-items: center;
    text-align: center;
  }

  /* Mantém o botão do card compacto — a regra global do CTA do Hero
     (mesma especificidade) o deixaria em largura total no mobile */
  .product-card__btn {
    width: auto;
    padding: 0.6rem 1.15rem;
  }

  .products__note {
    transform: rotate(-2deg);
    padding-top: 0;
  }

  .products__grid {
    grid-template-columns: 1fr;
  }

  .product-card__media {
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   Sobre nós
   ========================================================================== */
.about {
  --about-gold: color-mix(in srgb, var(--color-brown-600) 55%, var(--color-cream-200) 45%);

  display: flex;
  align-items: stretch;
  background: var(--color-brown-900);
  color: var(--color-cream-100);
  overflow: hidden;
}

.about__photo {
  flex: 0 0 45%;
  max-width: 45%;
  min-height: clamp(22rem, 34vw, 29rem);
  position: relative;
  background: var(--color-brown-700);
  overflow: hidden;
}

/* Marca d'água discreta enquanto a foto de preparo não é adicionada */
.about__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/favicon.png') center / 4rem auto no-repeat;
  opacity: 0.16;
}

.about__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% 42%;
  display: block;
}

.about__content-wrap {
  flex: 1 1 55%;
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) var(--container-pad) clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4.5rem);
}

.about__content {
  max-width: 34rem;
}

.about .eyebrow {
  color: var(--about-gold);
}

.about__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  color: var(--color-cream-100);
  letter-spacing: -0.01em;
}

.about__title-accent {
  display: block;
  color: var(--about-gold);
  font-weight: 700;
}

.about__text {
  margin-top: var(--space-5);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-cream-200);
  max-width: 30rem;
}

.about__details {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-6);
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(9rem, 1fr));
  gap: var(--space-5) var(--space-6);
}

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.highlight__icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  color: var(--about-gold);
}

.highlight span {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--color-cream-200);
}

.about__note {
  flex-shrink: 0;
  font-family: var(--font-script);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--about-gold);
  transform: rotate(-3deg);
  padding-top: 0.2rem;
}

/* ==========================================================================
   Sobre nós — Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
  .about__photo {
    flex-basis: 42%;
    max-width: 42%;
  }

  .about__content-wrap {
    flex-basis: 58%;
    padding-left: clamp(1.75rem, 4vw, 3rem);
  }

  .about__details {
    gap: var(--space-6);
  }
}

/* A divisão em duas colunas se mantém por todo o tablet — só empilha
   verticalmente na faixa mobile, junto com o restante do site. */
@media (max-width: 640px) {
  .about {
    flex-direction: column;
  }

  .about__photo {
    flex-basis: auto;
    max-width: 100%;
    width: 100%;
    min-height: 16rem;
    height: 16rem;
  }

  .about__content-wrap {
    padding: clamp(2.5rem, 6vw, 3.5rem) var(--container-pad);
  }

  .about__content-wrap {
    justify-content: center;
  }

  .about__content {
    max-width: 100%;
  }

  .about .eyebrow,
  .about__title {
    text-align: center;
  }

  .about__title {
    font-size: clamp(2rem, 8vw, 2.4rem);
  }

  .about__details {
    flex-direction: column;
    gap: var(--space-5);
    margin-top: var(--space-8);
  }

  .about__highlights {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: var(--space-4);
    width: 100%;
  }

  /* Nota manuscrita fica só no desktop/tablet — no mobile ela ficava
     desalinhada abaixo da grade de destaques */
  .about__note {
    display: none;
  }
}

/* Utilitário — conteúdo só para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Depoimentos
   ========================================================================== */
.testimonials {
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
}

.testimonials__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.testimonials__heading {
  max-width: 36rem;
}

.testimonials__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  color: var(--color-brown-900);
  letter-spacing: -0.01em;
}

.testimonials__title-accent {
  display: block;
  color: var(--color-brown-600);
  font-weight: 700;
}

/* Botão discreto — apenas texto, sem preenchimento */
.btn--ghost {
  padding: 0.5rem 0.1rem;
  background: transparent;
  box-shadow: none;
  color: var(--color-brown-800);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--color-brown-900);
  transform: none;
  box-shadow: none;
}

.testimonials__cta-arrow {
  transition: transform 0.25s var(--ease);
}

.testimonials__cta:hover .testimonials__cta-arrow {
  transform: translateX(3px);
}

.testimonials__body {
  display: flex;
  align-items: stretch;
  gap: var(--space-6);
}

.testimonials__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

.testimonial-card {
  position: relative;
  background: var(--color-cream-200);
  border: 1px solid rgba(43, 27, 18, 0.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 12px 26px -22px rgba(43, 27, 18, 0.25);
}

.testimonial-card__google {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 1.35rem;
  height: 1.35rem;
}

.testimonial-card__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.testimonial-card__avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brown-800);
  color: var(--color-cream-100);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-brown-900);
}

.testimonial-card__stars {
  color: var(--color-brown-600);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.testimonial-card__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* Fotografia decorativa — elemento menor, não compete com os depoimentos */
.testimonials__photo {
  position: relative;
  flex: 0 0 15rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-cream-300);
}

/* Marca d'água discreta enquanto a foto não é adicionada */
.testimonials__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/favicon.png') center / 3rem auto no-repeat;
  opacity: 0.14;
}

.testimonials__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonials__note {
  position: absolute;
  z-index: 2;
  top: var(--space-5);
  left: 50%;
  width: 100%;
  text-align: center;
  font-family: var(--font-script);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--color-cream-100);
  text-shadow: 0 2px 10px rgba(43, 27, 18, 0.55);
  transform: translateX(-50%) rotate(-3deg);
}

/* ==========================================================================
   Depoimentos — Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
  .testimonials__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonials__body {
    flex-direction: column;
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - (var(--space-6) / 2));
    margin-inline: auto;
  }

  .testimonials__photo {
    flex-basis: auto;
    width: 100%;
    height: 11rem;
  }
}

@media (max-width: 640px) {
  .testimonials__header {
    align-items: center;
    text-align: center;
  }

  .testimonials__title {
    font-size: clamp(2rem, 8vw, 2.4rem);
  }

  .testimonials__cta {
    width: auto;
    justify-content: center;
    margin-inline: auto;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card:last-child {
    grid-column: auto;
    max-width: 100%;
    margin-inline: 0;
  }

  .testimonials__photo {
    height: 12rem;
  }

  .testimonials__note {
    font-size: 0.95rem;
  }
}

/* Botão contornado — variante para uso sobre fundos escuros */
.btn--outline {
  background: transparent;
  color: var(--color-cream-100);
  border: 1.5px solid rgba(251, 246, 236, 0.45);
}

.btn--outline:hover {
  background: var(--color-cream-100);
  color: var(--color-brown-900);
  border-color: var(--color-cream-100);
  transform: translateY(-2px);
}

.btn--outline:active {
  transform: translateY(0);
}

/* ==========================================================================
   Instagram
   ========================================================================== */
.instagram {
  --insta-gold: color-mix(in srgb, var(--color-brown-600) 55%, var(--color-cream-200) 45%);

  display: flex;
  align-items: stretch;
  background: var(--color-brown-900);
  overflow: hidden;
}

.instagram__gallery {
  flex: 0 0 58%;
  max-width: 58%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-content: center;
  gap: 0.4rem;
}

.instagram__item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-brown-700);
}

/* Marca d'água discreta enquanto as fotos do Instagram não são adicionadas */
.instagram__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/favicon.png') center / 1.8rem auto no-repeat;
  opacity: 0.16;
}

.instagram__item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.instagram__item:hover img {
  transform: scale(1.06);
}

.instagram__content-wrap {
  flex: 1 1 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) var(--container-pad);
}

.instagram__content {
  max-width: 20rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.instagram__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--insta-gold);
  margin-bottom: var(--space-4);
}

.instagram__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--color-cream-100);
  letter-spacing: -0.01em;
}

.instagram__text {
  margin-top: var(--space-4);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-cream-200);
}

.instagram__btn {
  margin-top: var(--space-6);
}

.instagram__gallery .instagram__item:nth-child(1) { transition-delay: 0.05s; }
.instagram__gallery .instagram__item:nth-child(2) { transition-delay: 0.1s; }
.instagram__gallery .instagram__item:nth-child(3) { transition-delay: 0.15s; }
.instagram__gallery .instagram__item:nth-child(4) { transition-delay: 0.2s; }
.instagram__gallery .instagram__item:nth-child(5) { transition-delay: 0.25s; }

/* ==========================================================================
   Instagram — Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
  .instagram__gallery {
    flex-basis: 52%;
    max-width: 52%;
    grid-template-columns: repeat(3, 1fr);
  }

  .instagram__item:nth-child(n + 4) {
    display: none;
  }

  .instagram__content-wrap {
    flex-basis: 48%;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  }
}

@media (max-width: 640px) {
  .instagram {
    flex-direction: column;
  }

  .instagram__gallery {
    flex-basis: auto;
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
  }

  /* Grade 2x2 no mobile — mostra 4 das 5 publicações */
  .instagram__item:nth-child(n + 4) {
    display: block;
  }

  .instagram__item:nth-child(5) {
    display: none;
  }

  .instagram__content-wrap {
    padding: clamp(2.5rem, 7vw, 3rem) var(--container-pad);
  }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.footer__main {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-8);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__tagline {
  margin-top: var(--space-3);
  font-family: var(--font-script);
  font-size: 1.05rem;
  color: var(--color-brown-600);
}

.footer__col .eyebrow {
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__links a,
.footer__location {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--color-brown-700);
}

.footer__links a {
  transition: color 0.2s var(--ease);
}

.footer__links a:hover {
  color: var(--color-brown-900);
}

.footer__location {
  color: var(--color-text-muted);
}

.footer__link-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.footer__bottom {
  background: var(--color-brown-900);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-block: 1.25rem;
  font-size: 0.8rem;
  color: var(--color-cream-300);
}

.footer__bottom-inner p {
  opacity: 0.85;
}

/* ==========================================================================
   Responsivo — Rodapé
   ========================================================================== */
@media (max-width: 780px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .footer__brand {
    align-items: center;
  }

  .footer__col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__links a,
  .footer__location {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }
}
