/* ============================================================
   Bruna Fernanda | Estúdio de Arquitetura e Design
   Sistema visual: linho · grafite quente · latão
   ============================================================ */

:root {
  --linen: #F2EDE5;
  --linen-2: #EAE3D8;
  --paper: #FAF7F2;
  --graphite: #262523;
  --graphite-2: #2F2D2A;
  --ink: #1E1D1B;
  --ink-2: #5C574F;
  --mute: #9B9286;
  --brass: #B9975B;
  --brass-light: #E3CD8E;
  --brass-dark: #9C7F44;
  --brass-text: #7A6232; /* latão legível em fundo claro (AA para texto pequeno) */
  --line: rgba(30, 29, 27, 0.12);
  --line-dark: rgba(242, 237, 229, 0.14);
  --wa: #25D366;

  --font: "Jost", "Helvetica Neue", Arial, sans-serif;

  --h1: clamp(2.35rem, 1.1rem + 3.5vw, 4.3rem);
  --h2: clamp(1.85rem, 1rem + 2.3vw, 3.15rem);
  --lead: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);
  --body: 1.0625rem;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(84px, 10vw, 150px);
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.1; letter-spacing: -0.012em; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Tipografia ---------- */

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 22px;
}

.h1 { font-size: var(--h1); }
.h2 { font-size: var(--h2); }

.lead {
  font-size: var(--lead);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-2);
}

.on-dark { color: var(--linen); }
.on-dark .lead { color: rgba(242, 237, 229, 0.72); }
.on-dark .eyebrow { color: var(--brass-light); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 30px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-dark { background: var(--ink); color: var(--linen); }
.btn-dark:hover { background: var(--brass-dark); color: var(--ink); }

.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-light); }

.btn-sm { padding: 13px 20px; font-size: 0.875rem; }

.microcopy {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.on-dark .microcopy { color: rgba(242, 237, 229, 0.55); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(242, 237, 229, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { height: 36px; width: auto; }
@media (min-width: 720px) { .nav__logo img { height: 46px; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 64px;
  overflow: hidden;
}

.hero__mark {
  position: absolute;
  right: -7vw;
  top: 2vh;
  width: clamp(280px, 36vw, 600px);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  display: none;
}
@media (min-width: 960px) { .hero__mark { display: block; } }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
}

.hero__text { max-width: 620px; }
.hero__title { margin-bottom: 26px; }
.hero__lead { max-width: 520px; margin-bottom: 38px; }

.hero__media {
  justify-self: center;
  width: min(100%, 360px);
}
@media (min-width: 960px) {
  .hero__media { justify-self: end; width: min(100%, 390px); }
}

.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 4px;
  overflow: hidden;
  background: var(--graphite);
  box-shadow: 0 40px 90px -40px rgba(30, 29, 27, 0.45);
  cursor: pointer;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* friso de latão deslocado — referência ao friso do mármore dos projetos */
.hero__media { position: relative; isolation: isolate; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--brass);
  border-radius: 4px;
  pointer-events: none;
  z-index: 0;
}
.hero__media .video-frame { z-index: 1; }

.video-frame__tip {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--linen);
  background: rgba(30, 29, 27, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  white-space: nowrap;
  transition: opacity 0.4s var(--ease-out);
}
.video-frame__tip svg { width: 15px; height: 15px; }
.video-frame__tip .i-on { display: none; }
.video-frame.is-unmuted .video-frame__tip .i-on { display: block; }
.video-frame.is-unmuted .video-frame__tip .i-off { display: none; }

/* ---------- Seções gerais ---------- */

.section { padding-block: var(--section); }
.section--dark { background: var(--graphite); color: var(--linen); }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); }
  .split--reverse > :first-child { order: 2; }
}

.photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--graphite-2);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--4x5 { aspect-ratio: 4 / 5; }
.photo--3x4 { aspect-ratio: 3 / 4; }

/* ---------- 02 · Sobre ---------- */

#sobre .split {
  align-items: center;
}

#sobre .photo {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  aspect-ratio: 3.6 / 5;
  max-height: 520px;
}

@media (min-width: 900px) {
  #sobre .split {
    grid-template-columns: 1.08fr 1fr;
    gap: clamp(36px, 4.5vw, 80px);
  }
  #sobre .photo {
    max-width: 560px;
    height: clamp(580px, 52vw, 700px);
    aspect-ratio: 4 / 5;
    max-height: 700px;
  }
}

@media (min-width: 1140px) {
  #sobre .split {
    grid-template-columns: 560px 1fr;
    gap: clamp(48px, 5vw, 88px);
  }
  #sobre .photo {
    width: 560px;
    height: 700px;
  }
}

.about__title { margin-bottom: 22px; }
.about__intro { margin-bottom: 36px; }

.feature-list { list-style: none; margin: 0 0 40px; padding: 0; }
.feature-list li {
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 18px;
  align-items: baseline;
}
.feature-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.feature-list li::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--brass);
  transform: translateY(-4px);
}
.feature-list strong {
  display: block;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--linen);
  margin-bottom: 4px;
}
.feature-list span { color: rgba(242, 237, 229, 0.7); font-weight: 300; }

/* ---------- 03 · A Virada ---------- */

.turn { background: var(--linen); }
.turn__head { text-align: center; max-width: 760px; margin: 0 auto clamp(56px, 8vw, 110px); }

.turn__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.turn__row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.turn__row p {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
}
.turn__row .photo { width: 100%; }

.turn__sticky { display: none; }

@media (min-width: 960px) {
  .turn__grid {
    grid-template-columns: 1fr minmax(320px, 420px) 1fr;
    column-gap: clamp(40px, 5vw, 88px);
    row-gap: 0;
  }
  .turn__row {
    min-height: 78vh;
    justify-content: center;
  }
  .turn__row .photo { display: none; }
  .turn__row--left { grid-column: 1; }
  .turn__row--right { grid-column: 3; }
  .turn__row--1 { grid-row: 1; }
  .turn__row--2 { grid-row: 2; }
  .turn__row--3 { grid-row: 3; }
  .turn__row--right p { margin-left: auto; text-align: left; }

  .turn__sticky {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 3;
    position: sticky;
    top: 11vh;
    height: 78vh;
    align-self: start;
  }
  .turn__stack {
    position: relative;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: var(--graphite-2);
  }
  .turn__stack img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.9s var(--ease-out), transform 1.6s var(--ease-out);
  }
  .turn__stack img.is-active { opacity: 1; transform: scale(1); }
  .turn__counter {
    position: absolute;
    left: 20px;
    bottom: 18px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--linen);
    opacity: 0.85;
  }
}

/* ---------- 04 · Projetos ---------- */

.work { background: var(--linen-2); overflow: hidden; }

.work__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}
@media (min-width: 900px) {
  .work__head { grid-template-columns: minmax(0, 760px) auto; justify-content: space-between; }
}
.work__title { margin-bottom: 20px; }

.work__nav { display: none; gap: 10px; }
@media (min-width: 900px) { .work__nav { display: flex; } }
.arrow {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
.arrow svg { width: 18px; height: 18px; }
.arrow:hover { background: var(--ink); color: var(--linen); border-color: var(--ink); }

.reel {
  --reel-h: clamp(420px, 66vh, 700px);
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-bottom: 8px;
  scrollbar-width: none;
  cursor: grab;
}
.reel::-webkit-scrollbar { display: none; }
.reel.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

.reel__item {
  position: relative;
  flex: none;
  height: var(--reel-h);
  scroll-snap-align: start;
  border-radius: 4px;
  overflow: hidden;
  background: var(--graphite-2);
}
.reel__item img, .reel__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.reel__item--9x16 { aspect-ratio: 9 / 16; }
.reel__item--4x5  { aspect-ratio: 4 / 5; }
.reel__item--2x3  { aspect-ratio: 2 / 3; }
.reel__item--3x2  { aspect-ratio: 3 / 2; }

.reel__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 18px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--linen);
  background: linear-gradient(to top, rgba(30, 29, 27, 0.62), rgba(30, 29, 27, 0));
  pointer-events: none;
}

.reel__sound {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--linen);
  background: rgba(30, 29, 27, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s;
}
.reel__sound svg { width: 16px; height: 16px; }
.reel__sound .i-on { display: none; }
.reel__item.is-unmuted .reel__sound .i-on { display: block; }
.reel__item.is-unmuted .reel__sound .i-off { display: none; }
.reel__sound:hover { background: rgba(30, 29, 27, 0.8); }

/* Avaliações Google */

.reviews { margin-top: clamp(64px, 8vw, 110px); }

.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-bottom: 32px;
}
.reviews__score {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.reviews__score .g { width: 30px; height: 30px; }
.reviews__score b { font-size: 2rem; font-weight: 300; line-height: 1; }
.stars { display: inline-flex; gap: 3px; color: var(--brass); }
.stars svg { width: 15px; height: 15px; }
.reviews__link {
  font-size: 0.9rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.reviews__link:hover { color: var(--ink); border-color: var(--ink); }

.marquee {
  position: relative;
  overflow: hidden;
  margin-inline: calc(-1 * var(--gutter));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-inline: var(--gutter);
  animation: marquee 70s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:active .marquee__track {
  animation-play-state: paused;
}
@media (max-width: 768px) {
  .marquee__track {
    animation-duration: 45s;
  }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}

.review {
  width: min(360px, 82vw);
  flex: none;
  padding: 28px 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review__top { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--brass);
  color: var(--brass-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 500;
  flex: none;
}
.review__name { font-weight: 500; font-size: 0.95rem; line-height: 1.2; }
.review__when { font-size: 0.78rem; color: var(--ink-2); }
.review p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 05 · O que entra ---------- */

.scope__title {
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.6rem, 0.9rem + 2vw, 2.6rem);
}
.scope-list { list-style: none; margin: 0 0 44px; padding: 0; }
.scope-list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 300;
  color: var(--linen);
}
.scope-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.scope-list li::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--brass);
  transform: translateY(-5px);
}
.scope__photo { align-self: start; }
@media (min-width: 900px) {
  .scope__photo { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* ---------- 06 · CTA final + contato ---------- */

.cta {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-block: var(--section);
}
.cta__bg {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}
.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 29, 27, 0.58), rgba(30, 29, 27, 0.78));
}
.cta__content { position: relative; max-width: 820px; }
.cta__title { margin-bottom: 40px; }

.contact { background: var(--linen); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 760px) { .contact__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.contact__col h3 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 18px;
}
.contact__col p, .contact__col a { font-weight: 300; color: var(--ink); line-height: 1.8; }
.contact__col a { border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact__col a:hover { border-color: var(--brass); }
.contact__social { display: flex; gap: 14px; margin-top: 22px; }
.contact__social a {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.contact__social a:hover { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.contact__social svg { width: 18px; height: 18px; }

/* ---------- 07 · Rodapé ---------- */

.footer {
  background: var(--graphite);
  color: rgba(242, 237, 229, 0.6);
  padding: 56px 0 40px;
  font-size: 0.875rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
@media (min-width: 760px) {
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer__logo img { height: 44px; width: auto; }
.footer__text { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 760px) { .footer__text { text-align: right; } }

/* ---------- Botão flutuante ---------- */

.float-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--brass-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px -14px rgba(30, 29, 27, 0.6);
  transition: transform 0.35s var(--ease-out), background-color 0.35s;
}
.float-wa svg { width: 26px; height: 26px; }
.float-wa:hover { transform: translateY(-2px); background: var(--brass-dark); color: var(--ink); }

/* ---------- Estados iniciais de animação (só se JS ativo) ---------- */

.js .hero__reveal { opacity: 0; transform: translateY(22px); }
.js .hero__media { opacity: 0; clip-path: inset(0 0 100% 0); }

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js .hero__reveal, .js .hero__media { opacity: 1; transform: none; clip-path: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .marquee__track { animation: none; width: auto; }
  .turn__stack img { transition: none; }
}
