/* ===== Tokens ===== */
:root {
  --navy: #131936;
  --wine: #990011;
  --terracota: #9F4B14;
  --ameixa: #35213A;
  --oliva: #5D5437;
  --areia: #D8D1C7;

  --cream: #FAF7F2;
  --white: #FFFFFF;
  --ink: #1C1A17;

  --font-display: "Cormorant Garamond", serif;
  --font-body: "Inter", sans-serif;
  --font-hand: "Caveat", cursive;

  --max-width: 1180px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

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

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

/* ===== Botão ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.9rem 2.1rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn--primary {
  background: var(--wine);
  color: var(--white);
  border-color: var(--wine);
}

.btn--primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(19, 25, 54, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header__brand img {
  height: 26px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-nav a:hover { opacity: 1; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19,25,54,0.55) 0%, rgba(19,25,54,0.35) 45%, rgba(19,25,54,0.75) 100%);
  z-index: -1;
}

.hero__inner {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 640px;
}

.hero__logo {
  width: min(420px, 80vw);
  margin: 0 auto 1.75rem;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--white);
  margin-bottom: 2.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* ===== Sobre + Processo Criativo — tratamento mural/scrapbook ===== */
.sobre, .processo {
  position: relative;
  padding: 6rem 0 7rem;
  overflow: hidden;
}

.processo__intro {
  text-align: center;
  max-width: 620px;
  margin: -2.5rem auto 3.5rem;
  color: #4a453f;
  font-size: 1.02rem;
}

.sobre__paper {
  position: absolute;
  inset: 0;
  background-color: var(--areia);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.25), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(0,0,0,0.06), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  z-index: -1;
}

.sobre__title {
  text-align: center;
  margin-bottom: 4rem;
}

.sobre__title .torn-frame {
  display: inline-block;
}

.sobre__title .torn-card {
  display: inline-block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  padding: 1.1rem 2.4rem;
}

/* ---- Borda rasgada (papel arrancado à mão — midpoint displacement, sem
   repetição). Estrutura em duas camadas: .torn-frame é a "fibra" clara do
   papel exposta no rasgo; o filho direto (.torn-card / .note-card) é o
   miolo, alguns pintados de branco, outros de navy — como se fossem
   rasgados da mesma folha. Isolar num wrapper de verdade (em vez
   de ::before com z-index negativo) porque `filter` no card cria stacking
   context próprio e o pseudo-elemento nunca conseguia ficar atrás do fundo
   do próprio elemento. ---- */
:root {
  --torn-a: polygon(0.00% 1.40%, 3.13% 1.90%, 6.25% 2.48%, 9.38% 1.36%, 12.50% 1.62%, 15.63% -0.18%, 18.75% -2.00%, 21.88% -2.00%, 25.00% -2.00%, 28.13% -2.00%, 31.25% -2.00%, 34.38% -2.00%, 37.50% -1.85%, 40.63% -2.00%, 43.75% -2.00%, 46.88% -2.00%, 50.00% -2.00%, 53.13% -1.89%, 56.25% -2.00%, 59.38% -2.00%, 62.50% -2.00%, 65.63% -2.00%, 68.75% -1.74%, 71.88% -1.63%, 75.00% -2.00%, 78.13% -2.00%, 81.25% -2.00%, 84.38% -1.90%, 87.50% -2.00%, 90.63% -0.49%, 93.75% -0.71%, 96.88% 0.19%, 100.00% 1.40%, 100.00% 98.60%, 96.88% 96.89%, 93.75% 97.49%, 90.63% 95.99%, 87.50% 94.83%, 84.38% 94.91%, 81.25% 96.67%, 78.13% 95.03%, 75.00% 94.45%, 71.88% 93.64%, 68.75% 93.86%, 65.63% 94.10%, 62.50% 94.63%, 59.38% 95.90%, 56.25% 95.20%, 53.13% 94.14%, 50.00% 95.34%, 46.88% 94.20%, 43.75% 94.34%, 40.63% 95.24%, 37.50% 95.74%, 34.38% 96.13%, 31.25% 99.06%, 28.13% 98.56%, 25.00% 99.12%, 21.88% 100.18%, 18.75% 100.11%, 15.63% 100.49%, 12.50% 100.97%, 9.38% 100.88%, 6.25% 98.82%, 3.13% 99.48%, 0.00% 98.60%);
  --torn-b: polygon(0.00% 1.40%, 3.13% 1.38%, 6.25% 3.14%, 9.38% 2.55%, 12.50% 2.86%, 15.63% 1.77%, 18.75% 0.88%, 21.88% 2.36%, 25.00% 1.69%, 28.13% 1.58%, 31.25% 1.20%, 34.38% 1.40%, 37.50% 1.49%, 40.63% 1.46%, 43.75% 2.09%, 46.88% 1.93%, 50.00% 1.84%, 53.13% 1.41%, 56.25% 0.98%, 59.38% 2.18%, 62.50% 3.37%, 65.63% 2.92%, 68.75% 2.09%, 71.88% 2.17%, 75.00% 2.34%, 78.13% 2.04%, 81.25% 0.76%, 84.38% 2.30%, 87.50% 0.65%, 90.63% -0.22%, 93.75% 0.63%, 96.88% 0.55%, 100.00% 1.40%, 100.00% 98.60%, 96.88% 99.56%, 93.75% 100.54%, 90.63% 98.49%, 87.50% 99.15%, 84.38% 100.46%, 81.25% 98.80%, 78.13% 100.14%, 75.00% 99.48%, 71.88% 98.85%, 68.75% 98.06%, 65.63% 98.01%, 62.50% 99.22%, 59.38% 100.50%, 56.25% 101.96%, 53.13% 100.22%, 50.00% 100.98%, 46.88% 100.36%, 43.75% 101.06%, 40.63% 100.81%, 37.50% 98.35%, 34.38% 97.34%, 31.25% 98.72%, 28.13% 98.69%, 25.00% 100.14%, 21.88% 98.36%, 18.75% 98.06%, 15.63% 98.75%, 12.50% 98.66%, 9.38% 99.08%, 6.25% 99.69%, 3.13% 99.29%, 0.00% 98.60%);
  --torn-c: polygon(0.00% 1.40%, 3.13% 0.53%, 6.25% 1.81%, 9.38% 3.01%, 12.50% 1.79%, 15.63% 1.21%, 18.75% 0.20%, 21.88% 1.75%, 25.00% 2.16%, 28.13% 1.14%, 31.25% 1.75%, 34.38% 1.53%, 37.50% 1.07%, 40.63% 0.87%, 43.75% 1.41%, 46.88% -0.56%, 50.00% -1.30%, 53.13% -1.59%, 56.25% 0.21%, 59.38% 1.26%, 62.50% 0.83%, 65.63% 0.40%, 68.75% 1.51%, 71.88% 1.65%, 75.00% 0.07%, 78.13% 0.61%, 81.25% 1.04%, 84.38% 3.34%, 87.50% 2.88%, 90.63% 2.30%, 93.75% 0.66%, 96.88% 2.06%, 100.00% 1.40%, 100.00% 98.60%, 96.88% 98.73%, 93.75% 97.15%, 90.63% 98.22%, 87.50% 96.33%, 84.38% 97.22%, 81.25% 98.90%, 78.13% 97.20%, 75.00% 97.40%, 71.88% 96.61%, 68.75% 96.09%, 65.63% 95.84%, 62.50% 95.36%, 59.38% 97.38%, 56.25% 97.94%, 53.13% 98.04%, 50.00% 97.24%, 46.88% 98.50%, 43.75% 98.44%, 40.63% 98.93%, 37.50% 99.37%, 34.38% 98.66%, 31.25% 98.93%, 28.13% 97.65%, 25.00% 99.14%, 21.88% 100.00%, 18.75% 98.29%, 15.63% 96.50%, 12.50% 97.08%, 9.38% 97.14%, 6.25% 98.06%, 3.13% 97.78%, 0.00% 98.60%);
}

.torn-frame {
  --rot: 0deg;
  padding: 7px;
  background: #F3ECDD;
  filter: drop-shadow(0 10px 20px rgba(28, 26, 23, 0.3));
  transform: rotate(var(--rot));
}

.torn--a { clip-path: var(--torn-a); }
.torn--b { clip-path: var(--torn-b); }
.torn--c { clip-path: var(--torn-c); }

/* ---- Cartão (miolo branco, dentro do torn-frame) ---- */
.torn-card {
  background: var(--white);
  padding: 2rem 2.1rem 2.4rem;
}

.torn-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.torn-card p {
  font-size: 0.98rem;
  color: #4a453f;
}

/* ---- Nota estilo bilhete (frases de apoio), dentro do torn-frame ---- */
.note-card {
  background: var(--navy);
  color: var(--areia);
  font-family: var(--font-hand);
  font-size: 1.6rem;
  line-height: 1.35;
  text-align: center;
  padding: 1.75rem 1.75rem 2rem;
}

/* ---- Polaroid ---- */
.polaroid {
  --rot: 0deg;
  background: var(--white);
  padding: 0.9rem 0.9rem 0;
  box-shadow: 0 14px 30px rgba(28, 26, 23, 0.22);
  transform: rotate(var(--rot));
}

.polaroid img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 20%;
}

.polaroid figcaption {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  text-align: center;
  color: var(--navy);
  padding: 0.6rem 0 1.1rem;
}

/* ---- Foto de croqui, dentro do torn-frame (Processo Criativo) ---- */
.torn-card--photo {
  background: var(--white);
  padding: 10px 10px 0;
}

.torn-card--photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.torn-card--photo figcaption {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  text-align: center;
  color: var(--navy);
  padding: 0.5rem 0 0.9rem;
}

/* ---- Colagem — layout livre, não-grade ---- */
.collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem 1.5rem;
  align-items: start;
}

.collage__item { min-width: 0; }

.collage__item--block1 { grid-column: 1 / 7; }
.collage__item--photo  { grid-column: 7 / 11; margin-top: 1.5rem; }
.collage__item--block2 { grid-column: 1 / 8; margin-left: 1rem; }
.collage__item--quote1 { grid-column: 8 / 12; margin-top: 2rem; }
.collage__item--block3 { grid-column: 2 / 9; }
.collage__item--block4 { grid-column: 9 / 13; margin-top: -1rem; }
.collage__item--block5 { grid-column: 8 / 13; margin-top: -2rem; }
.collage__item--quote2 { grid-column: 3 / 10; margin-top: 1rem; }

/* ---- Colagem — Processo Criativo (croquis + paleta) ---- */
.collage__item--c1 { grid-column: 1 / 6; }
.collage__item--c2 { grid-column: 6 / 12; margin-top: 3rem; }
.collage__item--c3 { grid-column: 2 / 7; margin-top: -1rem; }
.collage__item--c4 { grid-column: 7 / 13; margin-top: -2rem; }
.collage__item--c5 { grid-column: 4 / 10; margin-top: 1.5rem; }

/* ===== Peças — galeria limpa, contraste proposital com o Processo ===== */
.pecas {
  padding: 6rem 0;
  background: var(--cream);
}

.pecas__title {
  text-align: center;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

.pecas__intro {
  text-align: center;
  color: #6a655d;
  margin: 0.5rem 0 3rem;
}

.pecas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.pecas__grid figure {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(28, 26, 23, 0.12);
  aspect-ratio: 3 / 4;
}

.pecas__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pecas__grid figure:hover img {
  transform: scale(1.05);
}

/* ===== Fale com a Galliané — formulário honesto (mailto, sem backend) ===== */
.contato-form {
  padding: 5.5rem 0;
  background: var(--navy);
  color: var(--white);
}

.contato-form__inner {
  max-width: 560px;
  text-align: center;
}

.contato-form h2 {
  color: var(--white);
}

.contato-form > .container > p {
  color: var(--areia);
  margin: 0.5rem 0 2.5rem;
}

.contato-form form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.contato-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--areia);
}

.contato-form input,
.contato-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-radius: 2px;
  resize: vertical;
}

.contato-form input:focus,
.contato-form textarea:focus {
  outline: none;
  border-color: var(--areia);
}

.contato-form .btn {
  align-self: center;
  margin-top: 0.5rem;
}

.contato-form__note {
  font-size: 0.82rem;
  color: rgba(216, 209, 199, 0.75);
  margin-top: 1.5rem;
}

/* ===== Rodapé ===== */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 1.5rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.site-footer__brand img {
  height: 30px;
  margin-bottom: 0.6rem;
}

.site-footer__brand p {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--areia);
  font-size: 1rem;
}

.site-footer__contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.site-footer__contact a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.site-footer__contact a:hover { opacity: 1; }

.site-footer__contact .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.site-footer__contact .icon svg {
  width: 100%;
  height: 100%;
}

.site-footer__legal {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 1.5rem;
}

/* ===== Responsivo ===== */
@media (max-width: 860px) {
  .collage {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .collage__item {
    grid-column: auto !important;
    margin: 0 !important;
    max-width: 480px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .collage__item[style*="--rot"] {
    --rot: 0deg !important;
  }

  .polaroid img { height: 300px; }
}

@media (max-width: 520px) {
  .site-nav { gap: 0.7rem; }
  .site-nav a { font-size: 0.68rem; }
  .torn-card { padding: 1.5rem 1.5rem 1.9rem; }
  .sobre, .processo { padding: 4rem 0 5rem; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}
