/* ===================== index.css (raiz) ===================== */
:root {
  --bg: #0f0f10;
  --paper: #f8f6f2;
  --ink: #111111;
  --muted: #6a6a6a;
  --accent: #d8c3a5;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 24px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ===================== HEADER ===================== */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--paper) 80%, white 20% / 0.8);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

/* NAV DESKTOP */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: 0.25s;
}

nav a:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
}

/* BOTÃO MENU (MOBILE) */
.menu-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.2s ease, transform 0.15s ease,
    box-shadow 0.2s ease;
}

.menu-toggle .bar {
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background: #000;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Estado aberto (body.menu-open) – precisa ser controlado no JS */
body.menu-open .menu-toggle {
  background: #000;
}

body.menu-open .menu-toggle .bar {
  background: #fff;
}

body.menu-open .menu-toggle .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.menu-open .menu-toggle .bar:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===================== HERO ===================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
        180deg,
        rgba(15, 15, 16, 0.55) 0%,
        rgba(15, 15, 16, 0.35) 40%,
        rgba(15, 15, 16, 0.75) 100%
      ),
    url("img/hero.jpg") center/cover no-repeat;
  filter: saturate(0.95) contrast(1.05);
}

.hero > .inner {
  position: relative;
  padding: 6vh 1rem 10vh;
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  opacity: 0.9;
}

.title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 0.5rem 0 1rem;
}

.subtitle {
  max-width: 60ch;
  margin-inline: auto;
  opacity: 0.95;
  font-size: 0.98rem;
}

.cta {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  transition: 0.25s;
}

.btn.primary {
  background: #ffffff;
  color: #000;
  border-color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

/* ===================== SEÇÕES ===================== */

section {
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin: 0 0 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 0.96rem;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

/* ===================== SOBRE + MEDIDAS ===================== */

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.about .portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.about .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about p {
  font-size: 1.02rem;
}

/* Caixa de medidas */
.measures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  margin-top: 1.2rem;
}

.measures .measure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.measures .measure b {
  font-weight: 600;
  color: var(--ink);
}

.measures .measure span {
  color: var(--muted);
}

/* ===================== POLAROIDS / COMPOSITES ===================== */

.polaroids {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 2rem;
}

.polaroid {
  width: min(220px, 40vw);
  background: #fdfbf7;
  padding: 0.9rem 0.9rem 0.8rem;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  transform: rotate(var(--r, -2deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.polaroid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.7rem;
}

.polaroid p {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #555;
}

.polaroid:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
}

/* ===================== FILTROS PORTFÓLIO ===================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  padding: 0.45rem 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease, transform 0.15s ease;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

.chip.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.chip.active::before {
  background: #fff;
}

.chip:hover {
  transform: translateY(-1px);
}

/* ===================== GALERIA ===================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-top: 2.2rem;
}

.card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f3ee;
  box-shadow: var(--shadow);
}

.card.wide {
  aspect-ratio: 16 / 11;
}

.card.tall {
  aspect-ratio: 3 / 4;
}

/* Imagens sem distorcer, alinhadas */
.gallery .card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* não distorce, corta só se precisar */
  display: block;
}

/* Caso queira limitar a altura máxima (opcional) */
/* .gallery .card {
  max-height: 360px;
} */

/* ===================== GRID GENÉRICO (SE USAR .compgrid) ===================== */

.compgrid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

/* ===================== CONTATO / SOCIAL ===================== */

.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  transition: 0.25s;
}

.icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* ===================== FOOTER ===================== */

footer {
  border-top: 1px solid var(--line);
  background: #f2efea;
  padding: 1.1rem 0;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

