/* ==========================================================================
   MIAU Pet Shop — folha de estilos
   Paleta: branco #FFFFFF · bege claro #F5EFE6 · bege amadeirado #D8BFA5 ·
           caramelo #A47752 · marrom escuro #59402F
   Ordem do arquivo = ordem da cascata. Cuidado ao mover blocos de lugar.
   Fontes 'Mosk' e 'MoonBlossom': não há @font-face nem arquivos de fonte no projeto,
   então o navegador usa as fontes reservas (Trebuchet MS / Georgia).
   ========================================================================== */

/* ==========================================================================
   Variáveis e reset
   ========================================================================== */

:root {
  --branco: #FFFFFF;
  --bege-claro: #F5EFE6;
  --bege-amadeirado: #D8BFA5;
  --caramelo: #A47752;
  --marrom: #59402F;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--marrom);
  background: var(--branco);
  font-family: 'Mosk', 'Trebuchet MS',Arial,sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -.04em;
}

h1 {
  font-size: clamp(52px,5.8vw,88px);
  font-weight: 800;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(32px,3.55vw,54px);
  font-weight: 800;
}

h3 {
  font-size: 19px;
  letter-spacing: -.025em;
}

em {
  font-family: 'MoonBlossom', Georgia, serif;
  font-weight: 400;
  color: var(--caramelo);
}

p {
  color: var(--marrom);
}

/* ==========================================================================
   Layout base, topo e menu
   ========================================================================== */

.wrap {
  max-width: 1280px;
  padding: 0 48px;
  margin: auto;
}

.topline {
  text-align: center;
  font-size: 12px;
  letter-spacing: .06em;
  background: var(--marrom);
  color: var(--bege-claro);
  padding: 8px;
}

.topline span {
  margin-left: 14px;
  color: var(--bege-amadeirado);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bege-claro);
  border-bottom: 1px solid #59402F0d;
  transition: box-shadow .2s;
}

.header.scrolled {
  box-shadow: 0 5px 20px #59402F10;
}

.nav {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  flex-shrink: 0;
  width: 132px;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav nav {
  display: flex;
  gap: 25px;
  font-size: 13px;
  font-weight: bold;
}

.nav nav a:hover,
.text-link:hover {
  color: var(--caramelo);
}

/* ==========================================================================
   Botões e links
   ========================================================================== */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 23px;
  border: 1px solid var(--marrom);
  border-radius: 100px;
  background: var(--marrom);
  color: #FFFFFF;
  padding: 16px 25px;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.3;
  transition: transform .2s,background .2s;
}

.button:hover {
  background: #A47752;
  transform: translateY(-3px);
}

.button span {
  font-size: 21px;
  line-height: 1;
}

.button.small {
  padding: 13px 20px;
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  font-size: 13px;
  font-weight: bold;
  background: none;
  border: 0;
  padding: 0;
  line-height: 1.4;
}

.text-link span {
  font-size: 23px;
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   Hero (primeira tela)
   ========================================================================== */

.hero {
  background: var(--bege-claro);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  padding-top: 62px;
  padding-bottom: 70px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .16em;
  color: var(--marrom);
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--caramelo);
  border-radius: 50%;
}

.hero h1 {
  margin-bottom: 28px;
}

.lead {
  font-size: 17px;
  max-width: 370px;
  line-height: 1.8;
}

.actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 12px;
  margin-top: 31px;
}

.hero-note span {
  font-size: 21px;
  margin-right: 9px;
  color: var(--caramelo);
}

.hero-art {
  position: relative;
  padding: 15px 8px 24px;
}

.photo-arch {
  height: 500px;
  border-radius: 230px 230px 120px 120px;
  overflow: hidden;
  background: var(--bege-amadeirado);
}

.photo-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% center;
}

.doodle {
  position: absolute;
  z-index: 2;
}

.heart {
  font-family: Georgia,serif;
  font-size: 100px;
  right: -10px;
  top: -49px;
  transform: rotate(19deg);
  color: var(--caramelo);
}

.round-stamp {
  position: absolute;
  left: -35px;
  top: 31px;
  background: var(--bege-amadeirado);
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1.4;
  font-weight: bold;
  text-align: center;
  letter-spacing: .04em;
  transform: rotate(-15deg);
}

.round-stamp b {
  font-size: 27px;
  margin-top: 3px;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  right: -15px;
  padding: 18px 24px;
  background: var(--branco);
  box-shadow: 0 8px 30px #59402F0c;
  border-radius: 12px;
  transform: rotate(-3deg);
  font-size: 12px;
  line-height: 1.7;
}

.photo-caption>span {
  float: left;
  font-size: 27px;
  margin-right: 15px;
  color: var(--caramelo);
}

.hero-bottom {
  border-top: 1px solid #59402F21;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 43px;
  padding: 22px;
  font-size: 13px;
  font-weight: bold;
}

.hero-bottom>span:nth-child(even) {
  color: var(--caramelo);
  font-size: 22px;
}

/* ==========================================================================
   Seções em geral e categorias
   ========================================================================== */

.section {
  padding: 95px 0;
}

.section-intro {
  text-align: center;
  max-width: 680px;
  margin: auto auto 48px;
}

.section-intro .eyebrow {
  justify-content: center;
}

.section-intro>p:last-child {
  margin: 22px auto 0;
  max-width: 580px;
  font-size: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 14px;
}

.category {
  position: relative;
  border: 1px solid #59402F24;
  border-radius: 18px;
  padding: 27px 19px 33px;
  transition: transform .2s,box-shadow .2s;
  min-height: 242px;
}

.category:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px #59402F11;
}

.icon {
  display: flex;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bege-claro);
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.icon svg {
  width: 33px;
  height: 33px;
}

.category:nth-child(even) .icon {
  background: #D8BFA5;
}

.category h3 {
  font-size: 16px;
  margin-bottom: 13px;
}

.category p {
  font-size: 12px;
  line-height: 1.65;
}

.arrow {
  position: absolute;
  bottom: 12px;
  right: 18px;
  font-size: 19px;
}

/* ==========================================================================
   Sobre
   ========================================================================== */

.about {
  background: var(--bege-claro);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: center;
}

.split h2 {
  margin-bottom: 24px;
}

.split p+p {
  margin-top: 17px;
}

.split p {
  font-size: 14px;
  line-height: 1.85;
}

.about-photo {
  position: relative;
}

.about-photo>img {
  height: 490px;
  width: 100%;
  object-fit: cover;
  border-radius: 18px 120px 18px 18px;
  object-position: 35% center;
}

.label-note {
  position: absolute;
  bottom: 25px;
  left: -15px;
  padding: 17px 23px;
  background: var(--branco);
  border-radius: 6px;
  transform: rotate(-4deg);
  font-family: Georgia,serif;
  font-style: italic;
  font-size: 20px;
}

.signature {
  font-weight: bold;
  color: var(--marrom);
  margin-bottom: 25px;
}

/* ==========================================================================
   Produtos e filtros
   ========================================================================== */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}

.section-heading h2 {
  margin-bottom: 17px;
}

.section-heading p:not(.eyebrow) {
  font-size: 14px;
}

.catalog-note {
  font-size: 11px;
  border: 1px solid #59402F28;
  border-radius: 25px;
  padding: 8px 15px;
  white-space: nowrap;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filters button {
  border: 1px solid #59402F22;
  background: transparent;
  border-radius: 30px;
  padding: 9px 19px;
  font-size: 12px;
}

.filters button.active {
  background: var(--marrom);
  color: #FFFFFF;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px 24px;
}

.product[hidden] {
  display: none;
}

.product-art {
  position: relative;
  background: var(--bege-claro);
  aspect-ratio: 1.2;
  overflow: hidden;
  border-radius: 15px;
}

.product-art>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}

.product .tag {
  font-size: 10px;
  position: absolute;
  left: 16px;
  top: 16px;
  border-radius: 25px;
  padding: 5px 11px;
  background: #FFFFFF;
}

.product-body {
  padding: 18px 4px;
}

.product-body>p {
  font-size: 12px;
  margin: 9px 0 13px;
}

.product-body .eyebrow {
  font-size: 9px;
  margin: 0 0 8px;
  color: var(--caramelo);
}

.product-body h3 {
  font-size: 21px;
}

.product-body .text-link {
  font-size: 12px;
}

/* ==========================================================================
   Serviços
   ========================================================================== */

.services {
  background: #D8BFA5;
}

.service-list {
  margin: 30px 0;
}

.service-list p {
  font-size: 12px;
  line-height: 1.5;
}

.service-photo {
  position: relative;
}

.service-photo img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: 52% center;
  border-radius: 200px 200px 20px 20px;
}

.service-stamp {
  position: absolute;
  bottom: 26px;
  left: -22px;
  background: var(--bege-claro);
  padding: 20px 28px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  transform: rotate(-4deg);
}

.button.light {
  background: var(--bege-claro);
  color: var(--marrom);
  border-color: var(--bege-claro);
}

.button.light:hover {
  background: #FFFFFF;
}

/* ==========================================================================
   Diferenciais
   ========================================================================== */

.difference-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
  text-align: center;
}

.difference-grid .icon {
  margin: 0 auto 22px;
  background: var(--bege-claro);
}

.difference-grid h3 {
  font-size: 17px;
}

.difference-grid p {
  font-size: 12px;
  margin-top: 12px;
}

/* ==========================================================================
   Instagram
   ========================================================================== */

.instagram {
  background: var(--bege-claro);
}

/* ==========================================================================
   Contato
   ========================================================================== */

.contact {
  background: var(--marrom);
  color: var(--bege-claro);
  padding-bottom: 45px;
}

.contact h2 {
  font-size: clamp(43px,5vw,74px);
}

.contact em {
  color: var(--bege-amadeirado);
}

.contact .eyebrow {
  color: var(--bege-claro);
}

.contact p {
  color: #D8BFA5;
  max-width: 450px;
  font-size: 14px;
  margin-top: 23px;
}

.contact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-heart {
  font-family: Georgia,serif;
  font-size: 235px;
  color: var(--bege-amadeirado);
  line-height: 1;
  transform: rotate(-15deg);
  padding-right: 50px;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
  border-top: 1px solid #F5EFE62b;
  margin-top: 60px;
  padding-top: 35px;
}

.contact-details h3 {
  font-size: 15px;
}

.contact-details p {
  font-size: 12px;
  margin-top: 12px;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */

footer {
  border-top: 1px solid #F5EFE633;
  background: #59402F;
  color: var(--bege-claro);
  padding: 38px 0 20px;
  font-size: 12px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand img {
  width: 132px;
  height: auto;
  border-radius: 3px;
  margin-bottom: 12px;
}

.footer-top>div {
  display: flex;
  gap: 25px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 35px;
  font-size: 10px;
  color: #D8BFA5;
}

.back-top {
  font-size: 11px;
}

/* ==========================================================================
   Janela modal (dialog)
   ========================================================================== */

dialog {
  border: 0;
  border-radius: 20px;
  max-width: 560px;
  width: calc(100% - 32px);
  padding: 42px 32px;
  color: var(--marrom);
  background: var(--branco);
  box-shadow: 0 20px 80px #0003;
}

dialog::backdrop {
  background: #59402Faa;
  backdrop-filter: blur(3px);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: 0;
  font-size: 28px;
  padding: 4px 12px;
}

.dialog-image {
  max-height: 65vh;
  margin: auto;
  border-radius: 10px;
}

dialog p {
  margin: 17px 0 24px;
  font-size: 14px;
}

dialog .eyebrow {
  margin-top: 20px;
  margin-bottom: 12px;
}

dialog h2 {
  font-size: 32px;
}

.dialog-note {
  font-size: 12px;
  background: var(--bege-claro);
  border-radius: 10px;
  padding: 13px;
}

/* ==========================================================================
   Acessibilidade
   ========================================================================== */

.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.skip:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  padding: 10px;
  background: #FFFFFF;
  z-index: 100;
}

:focus-visible {
  outline: 3px solid var(--caramelo);
  outline-offset: 5px;
}

/* ==========================================================================
   Responsivo e ajustes principais
   ========================================================================== */

@media (min-width: 1600px) {
  .wrap {
    max-width: 1420px;
  }

  .photo-arch {
    height: 540px;
  }
}

@media (max-width: 1050px) {
  .wrap {
    padding: 0 30px;
  }

  .nav nav {
    gap: 15px;
  }

  .nav>.button {
    display: none;
  }

  .hero-grid {
    gap: 35px;
    padding-top: 45px;
    padding-bottom: 55px;
  }

  .photo-arch {
    height: 440px;
  }

  .hero-bottom {
    gap: 23px;
    font-size: 11px;
  }

  .category-grid {
    grid-template-columns: repeat(3,1fr);
  }

  .category {
    min-height: 220px;
  }

  .split {
    gap: 40px;
  }

  .service-photo img {
    height: 550px;
  }

  .section {
    padding: 75px 0;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 80px;
  }

  .wrap {
    padding: 0 22px;
  }

  .topline {
    font-size: 10px;
  }

  .nav {
    height: 77px;
  }

  .brand {
    width: 105px;
  }

  .menu-toggle {
    display: block;
    border: 1px solid #59402F26;
    background: transparent;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 23px;
  }

  .nav nav {
    display: none;
    position: absolute;
    top: 77px;
    left: 0;
    right: 0;
    padding: 24px;
    background: var(--bege-claro);
    box-shadow: 0 10px 15px #59402F18;
  }

  .nav nav.open {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 42px;
    gap: 44px;
  }

  .hero h1 {
    font-size: 62px;
    line-height: 1.04;
  }

  .hero h1 span:nth-child(2) {
    display: inline;
  }

  .hero h1 span:nth-child(3) {
    display: inline;
  }

  .hero h1 {
    max-width: 430px;
  }

  .lead {
    font-size: 16px;
    margin-top: 24px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .actions {
    gap: 20px;
  }

  .hero-note {
    margin-top: 20px;
  }

  .hero-art {
    max-width: 460px;
    width: 100%;
    margin: auto;
    padding: 5px 17px 23px;
  }

  .photo-arch {
    height: 400px;
    border-radius: 180px 180px 80px 80px;
  }

  .round-stamp {
    left: 0;
    top: 5px;
    width: 90px;
    height: 90px;
    font-size: 9px;
  }

  .heart {
    right: 5px;
    font-size: 80px;
    top: -35px;
  }

  .photo-caption {
    right: 0;
    padding: 13px 17px;
    font-size: 10px;
  }

  .hero-bottom {
    padding: 18px 15px;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 10px;
  }

  .hero-bottom>span:nth-child(4),
  .hero-bottom>span:nth-child(5),
  .hero-bottom>span:nth-child(6),
  .hero-bottom>span:nth-child(7) {
    display: none;
  }

  .section {
    padding: 62px 0;
  }

  .section-intro {
    margin-bottom: 32px;
  }

  .section-intro>p:last-child {
    font-size: 13px;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .category {
    padding: 20px 15px 30px;
    min-height: 230px;
  }

  .category:last-child {
    grid-column: 1/-1;
    min-height: auto;
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 4px 15px;
    align-items: center;
  }

  .category:last-child .icon {
    grid-row: 1/3;
    margin: 0;
  }

  .category:last-child h3 {
    margin: 0;
  }

  .category h3 {
    font-size: 16px;
  }

  .category p {
    font-size: 12px;
  }

  .category .icon {
    margin-bottom: 18px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-photo>img {
    height: 340px;
  }

  .label-note {
    font-size: 17px;
    left: -5px;
    bottom: 18px;
  }

  .section-heading {
    display: block;
  }

  .catalog-note {
    display: inline-block;
    margin-top: 20px;
  }

  .section-heading .text-link {
    margin-top: 24px;
  }

  .filters {
    gap: 7px;
  }

  .filters button {
    padding: 8px 12px;
    font-size: 11px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
  }

  .product-art {
    aspect-ratio: 1;
  }

  .product .tag {
    font-size: 8px;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
  }

  .product-body h3 {
    font-size: 18px;
  }

  .product-body>p {
    font-size: 11px;
  }

  .product-body .eyebrow {
    font-size: 8px;
    letter-spacing: .08em;
  }

  .service-photo img {
    height: 380px;
    border-radius: 150px 150px 15px 15px;
  }

  .service-stamp {
    left: 0;
    font-size: 14px;
    padding: 16px 20px;
  }

  .difference-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .difference-grid h3 {
    font-size: 16px;
  }

  .contact-heart {
    display: none;
  }

  .contact h2 {
    font-size: 52px;
  }

  .contact .text-link {
    color: var(--bege-claro);
  }

  .contact-details {
    grid-template-columns: 1fr;
    margin-top: 40px;
    gap: 26px;
  }

  .footer-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .footer-top>div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 25px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .back-top {
    width: 100%;
  }

  dialog {
    padding: 40px 24px;
  }

  dialog h2 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    animation: none!important;
    transition: none!important;
  }
}

/* ==========================================================================
   Ajustes: vitrine de produtos, serviços (details) e galeria
   ========================================================================== */

.product-art {
  aspect-ratio: 5/4;
  background: var(--bege-claro);
  isolation: isolate;
}

.product-art>img {
  opacity: 1;
  object-fit: contain;
  transition: transform .35s ease;
  will-change: transform;
}

.product:hover .product-art>img,
.product:focus-within .product-art>img {
  transform: rotate(-2deg) scale(1.045);
}

.product .tag {
  background: var(--bege-claro);
  color: var(--marrom);
  box-shadow: 0 2px 12px #59402F10;
}

.dialog-product {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 22px;
}

.service-item {
  border-top: 1px solid #59402F24;
}

.service-item:last-child {
  border-bottom: 1px solid #59402F24;
}

.service-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 23px 0;
  cursor: pointer;
}

.service-item summary::-webkit-details-marker {
  display: none;
}

.service-number {
  font-size: 11px;
  color: var(--marrom);
  flex-shrink: 0;
}

.service-title {
  display: grid;
  gap: 7px;
}

.service-title strong {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.service-title>span {
  font-size: 12px;
  color: var(--marrom);
  line-height: 1.5;
}

.service-plus {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bege-claro);
  margin-left: auto;
  font-size: 24px;
  flex-shrink: 0;
  transition: transform .2s;
}

.service-item[open] .service-plus {
  transform: rotate(45deg);
  background: var(--caramelo);
  color: #FFFFFF;
}

.service-item summary:hover strong {
  color: #A47752;
}

.service-panel {
  padding: 0 0 25px 35px;
}

.service-panel ul {
  padding-left: 20px;
  margin: 15px 0;
  font-size: 13px;
  color: var(--marrom);
}

.service-panel .service-demo {
  font-size: 11px;
  border-left: 2px solid var(--caramelo);
  padding-left: 12px;
  margin-bottom: 20px;
}

.gallery {
  background: var(--bege-claro);
}

.gallery .section-heading {
  align-items: center;
}

.gallery .section-heading p:not(.eyebrow) {
  max-width: 550px;
}

.gallery-item {
  margin: 0;
  min-width: 0;
}

.gallery-item button {
  position: relative;
  display: block;
  padding: 0;
  width: 100%;
  border: 0;
  background: var(--branco);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item button:hover img,
.gallery-item button:focus-visible img {
  transform: scale(1.04);
}

.gallery-expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--branco);
  color: var(--marrom);
  border-radius: 50%;
  font-size: 23px;
}

.gallery-item figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 2px 0;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
}

.gallery-item figcaption>span {
  color: var(--caramelo);
  font-size: 11px;
}

.gallery-note {
  font-size: 11px;
  margin-top: 28px;
  text-align: center;
}

.gallery-dialog {
  max-width: 800px;
  max-height: 90vh;
  overflow: auto;
}

.gallery-dialog .dialog-image {
  width: auto;
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
}

.gallery-dialog h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .gallery-item figcaption {
    font-size: 12px;
    gap: 7px;
  }

  .gallery-expand {
    width: 30px;
    height: 30px;
    right: 9px;
    bottom: 9px;
    font-size: 20px;
  }

  .service-panel {
    padding-left: 0;
  }

  .service-title strong {
    font-size: 16px;
  }

  .gallery-dialog h2 {
    font-size: 23px;
  }

  .nav nav {
    gap: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product:hover .product-art>img,
  .product:focus-within .product-art>img,
  .gallery-item button:hover img,
  .gallery-item button:focus-visible img {
    transform: none;
  }
}

/* ==========================================================================
   Ajustes: enquadramento das imagens
   ========================================================================== */

.photo-arch img {
  object-position: 76% center;
}

.about-photo>img {
  height: auto;
  aspect-ratio: 1672/941;
  object-position: center;
}

.service-photo img {
  object-position: center;
}

.studio-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.studio-link:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Instagram com uma única arte
   ========================================================================== */

.social-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 76px;
  align-items: center;
}

.social-photo {
  max-width: 488px;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.social-photo img {
  width: 100%;
  height: auto;
}

.social-copy h2 {
  margin-bottom: 24px;
}

.social-copy>p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.85;
  max-width: 450px;
  margin-bottom: 30px;
}

@media (max-width: 1050px) {
  .social-layout {
    gap: 40px;
  }
}

@media (max-width: 700px) {
  .social-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .social-photo {
    margin: auto;
  }

  .social-copy>p:not(.eyebrow) {
    font-size: 14px;
  }

  .social-copy .button {
    max-width: 100%;
    gap: 16px;
  }
}

/* ==========================================================================
   Galeria em carrossel
   ========================================================================== */

.gallery {
  padding: 36px 0;
  min-height: calc(100svh - 96px);
  display: flex;
  align-items: center;
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  align-items: center;
  gap: 72px;
  width: 100%;
}

.gallery-copy h2 {
  margin-bottom: 24px;
}

.gallery-copy>p:not(.eyebrow) {
  font-size: 14px;
  max-width: 390px;
}

.gallery-copy .catalog-note {
  display: inline-block;
  margin-top: 24px;
}

.gallery-copy .gallery-note {
  font-size: 12px;
  text-align: left;
  margin-top: 18px;
}

.gallery-carousel {
  min-width: 0;
  width: 100%;
  max-width: min(540px,calc(100svh - 240px));
  justify-self: center;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item button {
  border-radius: 22px;
}

.gallery-item figcaption {
  padding-top: 12px;
  min-height: 36px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #59402F40;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}

.carousel-arrow:hover {
  background: var(--marrom);
  color: var(--bege-claro);
}

.carousel-count {
  font-size: 12px;
  min-width: 52px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.carousel-pause {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 24px;
  background: var(--branco);
  font-size: 11px;
  min-height: 44px;
}

.gallery-carousel.is-changing .gallery-item:not([hidden]) img {
  animation: gallery-in .35s ease both;
}

@keyframes gallery-in {
  from {
    opacity: .5;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1050px) {
  .gallery-layout {
    gap: 38px;
  }

  .gallery-carousel {
    max-width: min(470px,calc(100svh - 240px));
  }
}

@media (max-width: 700px) {
  .gallery {
    min-height: calc(100svh - 77px);
    padding: 24px 0;
  }

  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-copy .eyebrow {
    margin-bottom: 10px;
  }

  .gallery-copy h2 {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .gallery-copy h2 br {
    display: none;
  }

  .gallery-copy>p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.5;
    max-width: none;
  }

  .gallery-copy .catalog-note {
    display: none;
  }

  .gallery-copy .gallery-note {
    margin-top: 8px;
    font-size: 11px;
  }

  .gallery-carousel {
    max-width: min(400px,calc(100svh - 400px));
    width: 100%;
    min-width: 170px;
  }

  .gallery-item figcaption {
    min-height: 28px;
    padding-top: 8px;
  }

  .carousel-controls {
    gap: 10px;
    margin-top: 8px;
  }

  .carousel-pause {
    margin-left: 0;
  }
}

@media (max-height: 550px) and (min-width:701px) {
  .gallery {
    padding: 24px 0;
  }

  .gallery-copy h2 {
    font-size: 34px;
  }

  .gallery-copy .catalog-note,
  .gallery-copy .gallery-note {
    display: none;
  }

  .gallery-carousel {
    max-width: calc(100svh - 210px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-carousel.is-changing .gallery-item:not([hidden]) img {
    animation: none;
  }
}

/* ==========================================================================
   Produto, rodapé e galeria ampliada (lightbox)
   ========================================================================== */

button.product-art {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: inherit;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  max-width: 530px;
}

.footer-nav a:hover {
  color: var(--bege-amadeirado);
}

@media (max-width: 700px) {
  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    justify-content: start;
    gap: 14px 22px;
  }
}

dialog.gallery-dialog {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  padding: 18px 24px 16px;
  border-radius: 0;
  background: #59402F;
  color: var(--bege-claro);
  overflow: hidden;
}

dialog.gallery-dialog::backdrop {
  background: #59402F;
}

.gallery-dialog #dialog-content {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  gap: 12px;
}

.gallery-dialog .lightbox-meta {
  padding-right: 64px;
  min-width: 0;
}

.gallery-dialog .eyebrow {
  color: var(--bege-amadeirado);
  margin: 0 0 7px;
  font-size: 10px;
}

.gallery-dialog h2 {
  font-size: 23px;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.gallery-dialog .lightbox-stage {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) 56px;
  align-items: center;
  gap: 20px;
  min-height: 0;
}

.gallery-dialog .dialog-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0;
  border-radius: 8px;
}

.gallery-dialog .lightbox-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #F5EFE655;
  background: #F5EFE61c;
  color: var(--bege-claro);
  font-size: 28px;
  line-height: 1;
}

/* ==========================================================================
   Fotos animadas (js/frames.js): o canvas toma o lugar da foto, com o mesmo enquadramento.
   Sem frames/JS, a foto (img.frame-poster) continua aparecendo normalmente.
   ========================================================================== */

canvas.frame-anim { display: none; width: 100%; }
.frame-on > canvas.frame-anim { display: block; }
.frame-on > img.frame-poster { display: none; }

.photo-arch canvas.frame-anim {
  height: 100%;
  object-fit: cover;
  object-position: 76% center;
}

.about-photo > canvas.frame-anim {
  height: auto;
  aspect-ratio: 1672/941;
  object-fit: cover;
  object-position: center;
  border-radius: 18px 120px 18px 18px;
}

.service-photo canvas.frame-anim {
  height: 580px;
  object-fit: cover;
  object-position: center;
  border-radius: 200px 200px 20px 20px;
}

@media (max-width: 1050px) {
  .service-photo canvas.frame-anim { height: 550px; }
}

@media (max-width: 700px) {
  .service-photo canvas.frame-anim {
    height: 380px;
    border-radius: 150px 150px 15px 15px;
  }
}
