/* =========================================================
   Natália Roza — Design de Interiores
   Folha de estilos — visual idêntico à versão anterior
   ========================================================= */

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

:root {
  --creme: #F7F3EE;
  --areia: #E8DDD1;
  --terracota: #C1876A;
  --terracota-escuro: #9A6249;
  --marrom: #4A3728;
  --marrom-claro: #6B5547; /* contraste ajustado p/ AA sobre fundo claro */
  --branco: #FDFAF7;
  --foco: #1A5FB4; /* cor de foco visível p/ navegação por teclado */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', Arial, Helvetica, sans-serif;
  background: var(--creme);
  color: var(--marrom);
  overflow-x: hidden;
  line-height: 1.5;
}

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

a { color: inherit; }

/* Foco visível para acessibilidade de teclado */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--foco);
  outline-offset: 3px;
}

/* Link "saltar para o conteúdo" — acessibilidade para leitores de tela */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--terracota);
  color: var(--branco);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-size: 0.85rem;
  text-decoration: none;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247,243,238,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--areia);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  max-width: 1600px;
  margin: 0 auto;
}
.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--marrom);
  text-transform: uppercase;
  text-decoration: none;
}
.nav-logo span { color: var(--terracota-escuro); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--marrom-claro);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--terracota-escuro); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--terracota);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  color: var(--marrom);
  font-size: 0.95rem;
  cursor: pointer;
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 5rem;
  overflow: hidden;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
}
.hero-tag {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracota-escuro);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-tag::before { content: ''; display: block; width: 32px; height: 1px; background: var(--terracota); }
.hero-h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.2rem;
  font-weight: 300;
  line-height: 1.1;
  color: var(--marrom);
  margin-bottom: 1.5rem;
}
.hero-h1 em { font-style: italic; color: var(--terracota-escuro); }
.hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--marrom-claro);
  max-width: 400px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.btn-primary, .btn-outline, .btn-branco, .btn-transp {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  border-radius: 2px;
}
.btn-primary { background: var(--terracota); color: var(--branco); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--terracota-escuro); }
.btn-outline { border: 1px solid var(--terracota); color: var(--terracota-escuro); margin-left: 1rem; }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--terracota); color: var(--branco); }
.hero-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

.hero-image { position: relative; overflow: hidden; background: var(--areia); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-decor {
  position: absolute; bottom: 2rem; right: 2rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 5rem; font-weight: 300;
  color: rgba(193,135,106,0.12);
  line-height: 1;
  pointer-events: none;
}

/* ===================== SEÇÕES GERAIS ===================== */
section { padding: 5rem 3rem; }
.section-tag {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracota-escuro);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-tag::before { content: ''; display: block; width: 32px; height: 1px; background: var(--terracota); }
.section-tag.centered { justify-content: center; }
.section-tag.centered::before { display: none; }

/* ===================== SOBRE ===================== */
.sobre {
  background: var(--branco);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.sobre-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--marrom);
  margin-bottom: 1.5rem;
}
.sobre-h2 em { font-style: italic; color: var(--terracota-escuro); }
.sobre-p { font-size: 0.95rem; line-height: 1.9; color: var(--marrom-claro); margin-bottom: 1.2rem; font-weight: 300; }
.familia-card { background: var(--creme); border-left: 3px solid var(--terracota); padding: 1.5rem; margin-top: 2rem; }
.familia-label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--terracota-escuro); font-weight: 500; margin-bottom: 1rem; }
.familia-membros { display: flex; gap: 1.5rem; flex-wrap: wrap; list-style: none; }
.membro { display: flex; align-items: center; gap: 0.6rem; }
.membro-initial {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--terracota);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem; color: var(--branco); font-weight: 400;
  flex-shrink: 0;
}
.membro-nome { font-size: 0.85rem; color: var(--marrom); font-weight: 400; }
.membro-papel { font-size: 0.72rem; color: var(--marrom-claro); font-weight: 300; }

.sobre-foto { position: relative; }
.foto-familia-frame { width: 100%; aspect-ratio: 4/5; background: var(--areia); overflow: hidden; position: relative; }
.foto-familia-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.foto-badge {
  position: absolute; bottom: -1rem; left: -1rem;
  background: var(--terracota); color: var(--branco);
  padding: 1rem 1.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem; font-style: italic;
  z-index: 1;
}

/* ===================== SERVIÇOS ===================== */
.servicos { background: var(--creme); }
.servicos-header { text-align: center; margin-bottom: 3rem; }
.servicos-h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.8rem; font-weight: 300; color: var(--marrom); }
.servicos-h2 em { font-style: italic; color: var(--terracota-escuro); }
.servicos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; list-style: none; }
.servico-card { background: var(--branco); padding: 2rem; border-top: 2px solid var(--terracota); transition: transform 0.3s; }
.servico-card:hover { transform: translateY(-4px); }
.servico-num { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.5rem; font-weight: 300; color: var(--areia); margin-bottom: 1rem; line-height: 1; }
.servico-titulo { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; font-weight: 400; color: var(--marrom); margin-bottom: 0.75rem; }
.servico-desc { font-size: 0.85rem; line-height: 1.8; color: var(--marrom-claro); font-weight: 300; }

/* ===================== PORTFÓLIO ===================== */
.projetos { background: var(--marrom); padding: 5rem 3rem; }
.projetos .section-tag { color: var(--terracota); }
.projetos .section-tag::before { background: var(--terracota); }
.projetos-h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.8rem; font-weight: 300; color: var(--creme); margin-bottom: 2.5rem; }
.projetos-h2 em { font-style: italic; color: var(--terracota); }
.projetos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; }
.projeto-item { position: relative; overflow: hidden; }
.projeto-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.projeto-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.projeto-item:hover .projeto-img img, .projeto-item:focus-within .projeto-img img { transform: scale(1.05); }
.projeto-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(74,55,40,0.88) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.projeto-item:hover .projeto-overlay,
.projeto-item:focus-within .projeto-overlay { opacity: 1; }
.projeto-overlay-cat { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--terracota); margin-bottom: 0.3rem; }
.projeto-overlay-nome { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.1rem; color: var(--creme); font-weight: 400; }
.projeto-overlay-local { font-size: 0.72rem; color: rgba(247,243,238,0.75); margin-top: 0.2rem; }

/* ===================== PROCESSO ===================== */
.processo { background: var(--areia); }
.processo-header { text-align: center; margin-bottom: 3.5rem; }
.processo-h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.8rem; font-weight: 300; color: var(--marrom); }
.processo-h2 em { font-style: italic; color: var(--terracota-escuro); }
.processo-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
  counter-reset: passo;
}
.step { text-align: center; padding: 0 0.5rem; }
.step-num {
  width: 56px; height: 56px;
  background: var(--branco);
  border: 1.5px solid var(--terracota);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem; color: var(--terracota-escuro); font-weight: 400;
}
.step-titulo { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; color: var(--marrom); margin-bottom: 0.5rem; font-weight: 400; }
.step-desc { font-size: 0.8rem; line-height: 1.7; color: var(--marrom-claro); font-weight: 300; }
.step-arrow { display: flex; align-items: flex-start; padding-top: 26px; color: var(--terracota); opacity: 0.6; }
.step-arrow svg { width: 36px; height: 16px; }

/* ===================== DEPOIMENTOS ===================== */
.depoimentos { background: var(--branco); text-align: center; }
.depoimentos-header { margin-bottom: 1rem; }
.depoimentos-h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.5rem; font-weight: 300; color: var(--marrom); margin-bottom: 0.8rem; }
.depoimentos-h2 em { font-style: italic; color: var(--terracota-escuro); }
.google-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: var(--marrom-claro);
  margin-bottom: 3rem;
}
.google-badge .estrelas { color: var(--terracota-escuro); letter-spacing: 1px; }
.dep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 1300px;
  margin: 0 auto;
  list-style: none;
}
.dep-card {
  background: var(--creme);
  padding: 1.8rem 1.6rem;
  text-align: left;
  border-bottom: 2px solid var(--terracota);
  display: flex;
  flex-direction: column;
}
.dep-aspas { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 3rem; color: var(--areia); line-height: 0.4; margin-bottom: 0.3rem; display: block; }
.dep-stars { color: var(--terracota-escuro); font-size: 0.75rem; letter-spacing: 2px; margin-bottom: 0.7rem; }
.dep-texto { font-size: 0.83rem; line-height: 1.7; color: var(--marrom-claro); font-style: italic; margin-bottom: 1.2rem; font-weight: 300; flex-grow: 1; }
.dep-autor { font-size: 0.78rem; color: var(--marrom); font-weight: 500; letter-spacing: 0.5px; }
.dep-local { font-size: 0.7rem; color: var(--terracota-escuro); margin-top: 0.15rem; }

/* ===================== CONTATO ===================== */
.contato { background: var(--terracota); text-align: center; padding: 5rem 3rem; }
.contato-h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 3rem; font-weight: 300; color: var(--branco); line-height: 1.2; margin-bottom: 1rem; }
.contato-h2 em { font-style: italic; }
.contato-p { font-size: 1rem; color: rgba(253,250,247,0.9); margin-bottom: 2.5rem; font-weight: 300; }
.contato-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-branco { background: var(--branco); color: var(--terracota-escuro); }
.btn-branco:hover, .btn-branco:focus-visible { background: var(--creme); }
.btn-transp { border: 1px solid rgba(253,250,247,0.7); color: var(--branco); }
.btn-transp:hover, .btn-transp:focus-visible { background: rgba(253,250,247,0.15); }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--marrom);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.1rem; color: var(--creme); letter-spacing: 2px; text-transform: uppercase; text-decoration: none; }
.footer-logo span { color: var(--terracota); }
.footer-tagline { font-weight: 300; font-size: 0.85rem; opacity: 0.6; }
.footer-copy { font-size: 0.75rem; color: rgba(247,243,238,0.5); }
.footer-social { display: flex; gap: 1.2rem; list-style: none; }
.footer-social a { font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(247,243,238,0.6); text-decoration: none; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--terracota); }

/* ===================== ANIMAÇÃO DE ENTRADA ===================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-text > * { opacity: 0; animation: fadeInUp 0.7s ease forwards; }
.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.25s; }
.hero-text > *:nth-child(3) { animation-delay: 0.4s; }
.hero-text > *:nth-child(4) { animation-delay: 0.55s; }

/* Respeita usuários que pediram menos movimento (acessibilidade) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-text > * { animation: none; opacity: 1; }
  .projeto-img img, .servico-card { transition: none; }
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 1100px) {
  .dep-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  nav { padding: 1rem 1.5rem; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--creme);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--areia);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.is-open { max-height: 320px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem 1.5rem; }

  .hero { grid-template-columns: 1fr; }
  .hero-image { height: 320px; order: -1; }
  .hero-h1 { font-size: 2.6rem; }
  section { padding: 3rem 1.5rem; }
  .sobre { grid-template-columns: 1fr; gap: 2rem; }
  .servicos-grid { grid-template-columns: 1fr; }
  .projetos-grid { grid-template-columns: 1fr 1fr; }
  .processo-steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .step-arrow { display: none; }
  .dep-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; text-align: center; }
}
