/* ================= FONTES DO MANUAL (Pasta fontes/) ================= */
@font-face {
  font-family: "Tan Pearl";
  src: url("../fontes/TanPearl.woff2") format("woff2"),
       url("../fontes/TanPearl.ttf") format("truetype"),
       url("../fontes/TanPearl.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir";
  src: url("../fontes/Avenir.woff2") format("woff2"),
       url("../fontes/Avenir.ttf") format("truetype"),
       url("../fontes/Avenir.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --escuro: #2f2621;
  --taupe: #c7ac9f;
  --areia: #f4ede8;
  --creme: #fff9f6;
  --texto-suave: #6c5d56;
  --linha: rgba(47, 38, 33, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir", "Nunito Sans", system-ui, sans-serif;
  background-color: var(--creme);
  color: var(--escuro);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-main, .monograma-display {
  font-family: "Tan Pearl", "Bodoni Moda", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

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

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

.container {
  width: min(1140px, 90%);
  margin: 0 auto;
}

/* ================= HEADER (COM LOGO EM DESTAQUE) ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 246, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linha);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
}

.brand-main {
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 0.64rem;
  letter-spacing: 0.36em;
  margin-top: 4px;
  color: var(--texto-suave);
}

.brand-logo-img {
  height: 68px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--texto-suave);
}

.main-nav a:hover {
  color: var(--escuro);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--linha);
  border-radius: 6px;
  padding: 0 7px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--escuro);
}

/* ================= BOTÕES ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.22s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 0.58rem 1.25rem;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
  margin-top: 1.25rem;
}

.btn-primary {
  background-color: var(--escuro);
  color: var(--creme);
}

.btn-primary:hover {
  background-color: #463a33;
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--escuro);
  color: var(--escuro);
}

.btn-outline:hover {
  background-color: var(--areia);
}

.btn-taupe {
  background-color: var(--taupe);
  color: var(--escuro);
}

.btn-taupe:hover {
  background-color: #d7bfb3;
}

/* ================= TAGS & SECÇÕES ================= */
.eyebrow, .section-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--texto-suave);
  margin-bottom: 0.6rem;
}

.tag-light {
  color: var(--taupe);
}

.section {
  padding: 3.4rem 0;
}

.section-sand {
  background-color: var(--areia);
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}

.section h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
}

.section-desc {
  color: var(--texto-suave);
  font-size: 0.94rem;
  margin: 0.4rem 0 0;
  max-width: 52ch;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.text-link {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--escuro);
  padding-bottom: 2px;
}

/* ================= MOLDURA EDITORIAL MODERNA (SEM CAMPAS) ================= */
.arch-frame {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8f2ee, #eee3dc);
  border: 1px solid rgba(199, 172, 159, 0.6);
  box-shadow: 0 18px 40px rgba(47, 38, 33, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Segunda moldura fina deslocada por trás */
.arch-frame::after {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--taupe);
  border-radius: 14px;
  z-index: -1;
  pointer-events: none;
}

.arch-sm {
  aspect-ratio: 1 / 1;
}

.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}

.arch-frame img.placeholder-logo-img {
  width: auto;
  height: auto;
  max-width: 68%;
  max-height: 145px;
  object-fit: contain;
  border-radius: 0;
  margin: 0 auto 0.75rem;
}

.foto-placeholder {
  text-align: center;
  padding: 1.5rem;
  color: var(--texto-suave);
  width: 100%;
}

.monograma-display {
  display: block;
  font-size: 3rem;
  color: var(--escuro);
  opacity: 0.85;
}

.foto-placeholder small {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

/* ================= 1. CAPA HERO ================= */
.hero-section {
  padding: 3rem 0 3.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.35rem, 4.2vw, 3.55rem);
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--texto-suave);
  margin: 0 0 1.85rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-visual {
  max-width: 440px;
  width: 100%;
  justify-self: end;
  padding-right: 12px;
  padding-bottom: 12px;
}

/* ================= 2. SOBRE MIM ================= */
.sobre-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  align-items: center;
}

.sobre-media-col {
  padding-right: 12px;
  padding-bottom: 12px;
}

.sobre-text-col h2 {
  margin-bottom: 1rem;
}

.sobre-texto p {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: var(--texto-suave);
}

.sobre-destaques {
  list-style: none;
  padding: 1rem 0 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--linha);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.5rem;
}

.sobre-destaques li {
  font-size: 0.86rem;
  font-weight: 600;
}

/* ================= 3. GALERIA DE TRABALHOS ================= */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.galeria-item {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.galeria-foto-box {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--areia);
  border: 1px solid var(--linha);
  box-shadow: 0 10px 24px rgba(47, 38, 33, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.galeria-foto-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.galeria-item:hover .galeria-foto-box img {
  transform: scale(1.04);
}

.galeria-legenda {
  margin-top: 0.6rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--texto-suave);
}

/* ================= 4. SERVIÇOS (MENU DE ATELIER) ================= */
.servicos-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filtro-btn {
  border: 1px solid var(--linha);
  background: var(--creme);
  color: var(--texto-suave);
  padding: 0.42rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filtro-btn.ativo, .filtro-btn:hover {
  background: var(--escuro);
  color: var(--creme);
  border-color: var(--escuro);
}

.atelier-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2.75rem;
  align-items: start;
}

.servico-item {
  border-bottom: 1px solid var(--linha);
  padding-bottom: 1.1rem;
}

.servico-linha-topo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.servico-item h3 {
  font-size: 1.38rem;
}

.servico-preco-tempo {
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--escuro);
}

.servico-preco-tempo span {
  font-weight: 400;
  color: var(--texto-suave);
  margin-right: 0.45rem;
}

.servico-resumo {
  font-size: 0.88rem;
  color: var(--texto-suave);
  margin: 0.35rem 0 0.55rem;
}

.servico-acoes {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.servico-toggle {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--escuro);
  cursor: pointer;
  border-bottom: 1px solid var(--taupe);
}

.servico-agendar {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--texto-suave);
}

.servico-agendar:hover {
  color: var(--escuro);
}

.servico-detalhes {
  display: none;
  margin-top: 0.75rem;
  padding: 0.85rem;
  background: var(--creme);
  border-radius: 10px;
  border: 1px solid var(--linha);
}

.servico-item.aberto .servico-detalhes {
  display: block;
}

.servico-explicacao {
  font-size: 0.86rem;
  color: var(--texto-suave);
  margin: 0;
}

.servico-foto {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.65rem;
}

/* ================= 5. FEEDBACKS ================= */
.swipe-hint {
  display: none;
  font-size: 0.78rem;
  color: var(--texto-suave);
}

.feedbacks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feedback-card {
  border-top: 2px solid var(--taupe);
  padding-top: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feedback-aspas {
  font-family: "Tan Pearl", "Bodoni Moda", serif;
  font-size: 2.2rem;
  line-height: 0.6;
  color: var(--taupe);
  margin-bottom: 0.45rem;
}

.feedback-texto {
  font-size: 0.9rem;
  color: var(--texto-suave);
  margin: 0 0 1rem;
  font-style: italic;
}

.feedback-autor strong {
  display: block;
  font-size: 0.88rem;
}

.feedback-autor span {
  font-size: 0.76rem;
  color: var(--texto-suave);
}

/* ================= 6. BLOCO FINAL ESPRESSO ================= */
.section-espresso {
  background-color: var(--escuro);
  color: var(--creme);
  padding: 3.5rem 0;
}

.espresso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.espresso-col h3 {
  font-size: 1.75rem;
  margin-bottom: 1.1rem;
}

.horarios-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.horarios-lista li {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 249, 246, 0.12);
  font-size: 0.88rem;
}

.horario-fechado {
  opacity: 0.5;
}

.horarios-nota {
  font-size: 0.8rem;
  color: var(--taupe);
  margin: 0.9rem 0 0;
}

.contacto-intro {
  font-size: 0.9rem;
  color: rgba(255, 249, 246, 0.8);
  margin: 0 0 1.25rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.social-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(199, 172, 159, 0.32);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.social-item:hover {
  background-color: rgba(199, 172, 159, 0.14);
}

.morada-box {
  margin-top: 1.25rem;
  font-size: 0.86rem;
  color: var(--taupe);
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--escuro);
  color: rgba(255, 249, 246, 0.65);
  border-top: 1px solid rgba(255, 249, 246, 0.1);
  padding: 1.25rem 0;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 880px) {
  .header-inner {
    height: 74px;
  }

  .brand-logo-img {
    height: 52px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--creme);
    flex-direction: column;
    padding: 1.15rem 5%;
    gap: 0.9rem;
    border-bottom: 1px solid var(--linha);
  }

  .main-nav.aberto {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-grid,
  .sobre-layout,
  .atelier-menu,
  .espresso-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-visual {
    justify-self: center;
    max-width: 320px;
  }

  .sobre-media-col {
    max-width: 220px;
    margin: 0 auto;
  }

  .sobre-destaques {
    grid-template-columns: 1fr;
  }

  .galeria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .swipe-hint {
    display: inline;
  }

  .feedbacks-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
  }

  .feedback-card {
    min-width: 82%;
    scroll-snap-align: start;
  }
}