/* ===================================================
   TOKENS — mesmos do portfólio principal
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f5f0e8;
  --bg-card:     #faf7f3;
  --bg-dark:     #1a1814;
  --text:        #1a1814;
  --text-mid:    #4a4540;
  --text-muted:  #8a7f70;
  --accent:      #c4a97a;
  --line:        rgba(26, 24, 20, 0.09);
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Inter', system-ui, sans-serif;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --max:         1080px;
  --gutter:      2.5rem;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img   { display: block; max-width: 100%; height: auto; }
a     { text-decoration: none; color: inherit; }
em    { font-style: italic; }

/* ===================================================
   NAV
=================================================== */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.35s;
}

.nav.scrolled {
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-block: 1.1rem;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: gap 0.4s var(--ease), color 0.3s;
}

.nav-back:hover { gap: 1rem; color: var(--text); }
.nav-back svg   { flex-shrink: 0; transition: transform 0.4s var(--ease); }
.nav-back:hover svg { transform: translateX(-4px); }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* ===================================================
   HERO
=================================================== */
.hero {
  padding-block-start: 7rem;
  padding-inline: var(--gutter);
  padding-block-end: 0;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* Client name */
.hero-client {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

/* Project title */
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

/* Tag pills */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
}

.hero-tag {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}

/* Hero image — full bleed, rounded top */
.hero-image {
  width: 100%;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--bg-card);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Placeholder visual when no image */
.hero-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  /* PLACEHOLDER: troque o gradient pela cor do projeto */
  background: linear-gradient(140deg, #2a2520 0%, #4a4035 100%);
}

/* ===================================================
   OVERVIEW (meta + intro)
=================================================== */
.overview {
  padding: 5rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.overview-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Role/year meta row */
.overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.meta-item {}

.meta-item h4 {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.meta-item ul {
  list-style: none;
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 2;
  color: var(--text-mid);
}

/* Intro text */
.overview-intro {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 780px;
}

/* ===================================================
   SECTION BASE
=================================================== */
.section {
  padding: 6rem var(--gutter);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* Numbered heading block (Kreativa style) */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.section-number {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-number::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.col-label {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.col-text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-mid);
}

.col-text p + p { margin-top: 1rem; }

/* Big statement text */
.statement {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 820px;
  margin-bottom: 3rem;
}

/* ===================================================
   GALLERY BLOCKS
=================================================== */

/* Full-bleed image */
.img-full {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
}

.img-full img {
  width: 100%;
  object-fit: cover;
}

/* Two images side by side */
.img-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.img-grid img,
.img-grid .img-placeholder {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

/* Captioned image */
.img-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.img-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Placeholder box (usar quando ainda não tem imagem) */
.img-placeholder {
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-height: 240px;
}

/* Device mockup frame (phone) */
.device-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem 0;
}

.device-frame {
  flex: 0 0 auto;
  width: 220px;
  background: #1a1814;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.05);
}

.device-screen {
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-screen .img-placeholder {
  border-radius: 0;
  border: none;
  min-height: auto;
  height: 100%;
  background: var(--bg-card);
  font-size: 0.6rem;
}

/* ===================================================
   STYLE GUIDE (paleta + tipografia)
=================================================== */
.style-guide {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 2.5rem;
  margin-top: 3rem;
}

.style-guide-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Color swatches */
.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.color-swatch {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 80px;
}

.swatch-box {
  width: 100%;
  height: 60px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.swatch-hex {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.swatch-name {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-mid);
}

/* Typography preview */
.type-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.type-item {}

.type-sample {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.type-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===================================================
   TESTIMONIAL / QUOTE
=================================================== */
.testimonial {
  background: var(--bg-dark);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  margin-block: 4rem;
}

.testimonial blockquote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.85);
  margin-bottom: 2rem;
}

.testimonial blockquote::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 0;
  vertical-align: -0.5em;
  color: var(--accent);
  margin-right: 0.15em;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-name {
  font-size: 0.84rem;
  font-weight: 400;
  color: rgba(245,240,232,0.9);
  display: block;
  margin-bottom: 0.15rem;
}

.author-role {
  font-size: 0.72rem;
  color: rgba(245,240,232,0.4);
  letter-spacing: 0.04em;
}

/* ===================================================
   RESULTS / METRICS
=================================================== */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-block: 3rem;
}

.metric {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
}

.metric-value {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===================================================
   NEXT PROJECT
=================================================== */
.next-project {
  padding: 5rem var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
}

.next-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.next-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.next-label::before,
.next-label::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.next-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
  transition: opacity 0.3s;
}

.next-title:hover { opacity: 0.65; }

.next-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.25rem;
  transition: gap 0.4s var(--ease), opacity 0.3s;
}

.next-link:hover { gap: 1.4rem; opacity: 0.6; }

/* ===================================================
   FOOTER
=================================================== */
footer {
  padding: 1.75rem var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ===================================================
   SCROLL REVEAL
=================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (min-width: 640px) {
  .img-grid     { grid-template-columns: 1fr 1fr; }
  .type-preview { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .overview-inner   { grid-template-columns: 280px 1fr; align-items: start; }
  .section-head     { grid-template-columns: 200px 1fr; align-items: start; }
  .two-col          { grid-template-columns: 1fr 1fr; }
  .metrics          { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
  :root { --gutter: 1.5rem; }
  .nav  { padding: 1.25rem var(--gutter); }
  .hero { padding-block-start: 6rem; }
  .testimonial { padding: 2.5rem 1.75rem; }
  .style-guide { padding: 1.75rem; }
  footer { flex-direction: column; text-align: center; }
}
