/* =============================================
   LIBELINHA DESIGN — Folha de estilos principal
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --creme:       #f7f3ee;
  --creme-escuro:#ede7dc;
  --castanho:    #3a2e24;
  --terra:       #7c5c3e;
  --verde-musgo: #4a5c45;
  --coral:       #c97b5a;
  --cinzento:    #888077;
  --branco:      #ffffff;

  --fonte-titulo: 'Cormorant Garamond', Georgia, serif;
  --fonte-corpo:  'DM Sans', sans-serif;

  --max-width: 1100px;
  --raio: 2px;
  --transicao: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fonte-corpo);
  background: var(--creme);
  color: var(--castanho);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}

/* ---- TIPOGRAFIA ---- */
h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1rem; letter-spacing: 0.15em; text-transform: uppercase; font-family: var(--fonte-corpo); font-weight: 500; }

p { margin-bottom: 1.2em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* =====================
   NAVEGAÇÃO
   ===================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--creme);
  border-bottom: 1px solid var(--creme-escuro);
  transition: box-shadow var(--transicao);
}
nav.scrolled { box-shadow: 0 2px 20px rgba(58,46,36,0.08); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--castanho);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transicao);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--terra);
  transition: width var(--transicao);
}

.nav-links a:hover { color: var(--terra); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--terra); }
.nav-links a.active::after { width: 100%; }

.nav-ig {
  font-size: 1.15rem;
  color: var(--cinzento);
  transition: color var(--transicao);
}
.nav-ig:hover { color: var(--coral); }

/* Hamburguer mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--castanho);
  transition: all var(--transicao);
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--castanho);
  color: var(--creme);
  padding: 3.5rem 2rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247,243,238,0.15);
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(247,243,238,0.6);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-logo {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-nav h5,
.footer-newsletter h5 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,243,238,0.5);
  margin-bottom: 1rem;
  font-family: var(--fonte-corpo);
  font-weight: 500;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(247,243,238,0.75);
  transition: color var(--transicao);
}
.footer-nav a:hover { color: var(--coral); }

.footer-newsletter form {
  display: flex;
  gap: 0;
  margin-top: 0.5rem;
}

.footer-newsletter input[type="email"] {
  flex: 1;
  padding: 0.65rem 1rem;
  background: rgba(247,243,238,0.08);
  border: 1px solid rgba(247,243,238,0.2);
  border-right: none;
  color: var(--creme);
  font-family: var(--fonte-corpo);
  font-size: 0.8rem;
  outline: none;
  border-radius: var(--raio) 0 0 var(--raio);
}
.footer-newsletter input::placeholder { color: rgba(247,243,238,0.35); }

.footer-newsletter button {
  padding: 0.65rem 1.2rem;
  background: var(--terra);
  color: var(--creme);
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--fonte-corpo);
  transition: background var(--transicao);
  border-radius: 0 var(--raio) var(--raio) 0;
}
.footer-newsletter button:hover { background: var(--coral); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  color: rgba(247,243,238,0.4);
}

.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a {
  color: rgba(247,243,238,0.4);
  transition: color var(--transicao);
}
.footer-legal a:hover { color: rgba(247,243,238,0.75); }

/* =====================
   UTILITÁRIOS
   ===================== */
.btn {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--fonte-corpo);
  font-weight: 400;
  cursor: pointer;
  transition: all var(--transicao);
  border-radius: var(--raio);
}

.btn-escuro {
  background: var(--castanho);
  color: var(--creme);
  border: 1px solid var(--castanho);
}
.btn-escuro:hover { background: var(--terra); border-color: var(--terra); }

.btn-outline {
  background: transparent;
  color: var(--castanho);
  border: 1px solid var(--castanho);
}
.btn-outline:hover { background: var(--castanho); color: var(--creme); }

.etiqueta {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.75rem;
}

.divisor {
  width: 50px;
  height: 1px;
  background: var(--terra);
  margin: 1.5rem 0;
}

.divisor-centro {
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   HERO — HOMEPAGE
   ===================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--creme);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 55vw; height: 55vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, var(--creme-escuro) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-texto { position: relative; z-index: 1; }

.hero-texto .etiqueta { color: var(--terra); }

.hero-titulo {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 0.1em;
  color: var(--castanho);
}

.hero-titulo em {
  font-style: italic;
  color: var(--terra);
}

.hero-subtitulo {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--cinzento);
  margin: 1.5rem 0 0.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-frase {
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: 1rem;
  color: var(--terra);
  margin: 1.5rem 0 2.5rem;
  line-height: 1.6;
}

.hero-frase em { display: block; }

.hero-acoes { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-imagem {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-imagem img {
  max-height: 75vh;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(58,46,36,0.12));
  animation: flutuar 6s ease-in-out infinite;
}

@keyframes flutuar {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* =====================
   SECÇÃO DESTAQUE — INDEX
   ===================== */
.destaque-nav {
  padding: 5rem 2rem;
  background: var(--creme-escuro);
}

.destaque-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.destaque-nav-inner h2 {
  margin-bottom: 3rem;
  font-weight: 300;
}

.cards-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.card-nav {
  background: var(--creme);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid transparent;
  transition: all var(--transicao);
  position: relative;
  overflow: hidden;
}

.card-nav::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--terra);
  transform: scaleX(0);
  transition: transform var(--transicao);
}

.card-nav:hover { border-color: var(--creme-escuro); transform: translateY(-4px); }
.card-nav:hover::before { transform: scaleX(1); }

.card-nav-icone {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card-nav h3 {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.card-nav p {
  font-size: 0.85rem;
  color: var(--cinzento);
  margin-bottom: 1.5rem;
}

/* =====================
   NEWSLETTER — HOMEPAGE
   ===================== */
.newsletter {
  padding: 5rem 2rem;
  background: var(--verde-musgo);
  color: var(--creme);
  text-align: center;
}

.newsletter h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.newsletter p {
  color: rgba(247,243,238,0.7);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.2rem;
  background: rgba(247,243,238,0.1);
  border: 1px solid rgba(247,243,238,0.25);
  border-right: none;
  color: var(--creme);
  font-family: var(--fonte-corpo);
  font-size: 0.85rem;
  outline: none;
  border-radius: var(--raio) 0 0 var(--raio);
}
.newsletter-form input::placeholder { color: rgba(247,243,238,0.4); }

.newsletter-form button {
  padding: 0.85rem 1.8rem;
  background: var(--coral);
  color: var(--creme);
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--fonte-corpo);
  transition: background var(--transicao);
  border-radius: 0 var(--raio) var(--raio) 0;
}
.newsletter-form button:hover { background: var(--terra); }

/* =====================
   PÁGINA — SOBRE
   ===================== */
.page-hero {
  padding-top: 72px;
  background: var(--creme);
  overflow: hidden;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.page-hero-texto .etiqueta { color: var(--terra); }
.page-hero-texto h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.page-hero-texto p {
  font-size: 1rem;
  color: var(--cinzento);
  line-height: 1.9;
}

.page-hero-foto {
  position: relative;
}

.page-hero-foto img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
}

.page-hero-foto::before {
  content: '';
  position: absolute;
  top: -12px; right: -12px;
  width: 100%; height: 100%;
  border: 1px solid var(--creme-escuro);
  border-radius: 2px;
  z-index: -1;
}

/* Secção manifesto */
.manifesto {
  background: var(--castanho);
  color: var(--creme);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '"';
  position: absolute;
  top: -0.2em; left: 50%;
  transform: translateX(-50%);
  font-family: var(--fonte-titulo);
  font-size: 20rem;
  color: rgba(247,243,238,0.03);
  line-height: 1;
  pointer-events: none;
}

.manifesto h2 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.manifesto p {
  color: rgba(247,243,238,0.65);
  font-size: 0.95rem;
}

.manifesto .divisor { background: var(--coral); margin: 1.5rem auto; }

/* Missão */
.missao {
  padding: 5rem 2rem;
  background: var(--creme);
}

.missao-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.missao-foto img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.missao-texto h2 { margin-bottom: 1.5rem; }
.missao-texto p { color: var(--cinzento); }

.missao-lista {
  list-style: none;
  margin-top: 1.5rem;
}

.missao-lista li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: var(--cinzento);
}

.missao-lista li::before {
  content: '→';
  color: var(--verde-musgo);
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* Técnicas */
.tecnicas {
  padding: 5rem 2rem;
  background: var(--creme-escuro);
}

.tecnicas-inner { max-width: var(--max-width); margin: 0 auto; }

.tecnicas-header { text-align: center; margin-bottom: 3.5rem; }
.tecnicas-header h2 { margin-bottom: 0.5rem; }
.tecnicas-header p { color: var(--cinzento); font-size: 0.95rem; }

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

.tecnica-card {
  background: var(--creme);
  padding: 2rem;
  border-left: 3px solid var(--creme-escuro);
  transition: border-color var(--transicao);
}

.tecnica-card:hover { border-color: var(--terra); }

.tecnica-card h4 {
  font-family: var(--fonte-titulo);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.75rem;
}

.tecnica-card p {
  font-size: 0.85rem;
  color: var(--cinzento);
  line-height: 1.8;
  margin: 0;
}

/* Galeria obras */
.obras {
  padding: 5rem 2rem;
  background: var(--creme);
}
.obras-inner { max-width: var(--max-width); margin: 0 auto; }
.obras-header { text-align: center; margin-bottom: 3rem; }

.obras-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.obra-item { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.obra-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.obra-item:hover img { transform: scale(1.05); }

.obra-ano {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(58,46,36,0.85), transparent);
  color: var(--creme);
  padding: 1.5rem 1rem 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform var(--transicao);
}
.obra-item:hover .obra-ano { transform: translateY(0); }

/* =====================
   PÁGINA — CONTACTO
   ===================== */
.contacto-page {
  padding-top: 72px;
  min-height: 100svh;
  background: var(--creme);
}

.contacto-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contacto-texto h1 { margin-bottom: 0.5rem; }
.contacto-texto .etiqueta { color: var(--terra); }
.contacto-texto p { color: var(--cinzento); margin-top: 1.5rem; }

.contacto-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--terra);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--transicao);
}
.contacto-ig:hover { color: var(--coral); }

.contacto-form { padding-top: 0.5rem; }

.campo {
  margin-bottom: 1.5rem;
}

.campo label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cinzento);
  margin-bottom: 0.5rem;
}

.campo input,
.campo textarea,
.campo select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1px solid var(--creme-escuro);
  border-bottom-color: var(--cinzento);
  color: var(--castanho);
  font-family: var(--fonte-corpo);
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color var(--transicao);
  border-radius: 0;
  appearance: none;
}

.campo input:focus,
.campo textarea:focus,
.campo select:focus {
  border-color: var(--terra);
}

.campo textarea { min-height: 130px; resize: vertical; }

/* =====================
   RESPONSIVO
   ===================== */
@media (max-width: 900px) {
  .hero-inner,
  .page-hero-inner,
  .missao-inner,
  .contacto-inner { grid-template-columns: 1fr; gap: 3rem; }

  .hero-imagem { display: none; }

  .cards-nav { grid-template-columns: 1fr; }
  .tecnicas-grid { grid-template-columns: 1fr 1fr; }
  .obras-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.aberto {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--creme);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--creme-escuro);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  }
}

@media (max-width: 600px) {
  .tecnicas-grid { grid-template-columns: 1fr; }
  .obras-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}

/* =====================
   ANIMAÇÕES DE ENTRADA
   ===================== */
.revelar {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.revelar.visivel {
  opacity: 1;
  transform: translateY(0);
}
