/* =========================================================
   Portfólio de Fotografia — Estilo Suíço / Helvetica
   Mobile-first. Sem dependências externas.
   ========================================================= */

/* Arimo — clone metricamente idêntico à Helvetica (auto-hospedado). */
@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/arimo-400.woff2") format("woff2");
}
@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/arimo-700.woff2") format("woff2");
}

:root {
  --bg:        #0a0a0a;
  --bg-soft:   #121212;
  --fg:        #f4f4f2;
  --muted:     #8c8c88;
  --line:      rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --accent:    #ff3b30;          /* vermelho suíço, usado com parcimônia */

  --maxw: 1440px;
  --gutter: clamp(20px, 5vw, 72px);
  /* Helvetica nativa onde existe (Apple); Arimo cobre o resto de forma idêntica. */
  --font: "Helvetica Neue", Helvetica, Arial, "Arimo", "Liberation Sans", sans-serif;

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

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

::selection { background: var(--accent); color: #fff; }

.accent { color: var(--accent); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--fg); color: var(--bg); padding: 10px 16px; font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(10, 10, 10, 0);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  font-weight: 700; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap;
}
.brand-sub {
  display: none;                 /* escondido no mobile p/ não apertar o header */
  font-size: 11px; letter-spacing: 0.24em; color: var(--muted);
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 14px; }
.nav a {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); transition: color .2s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav-cta {
  color: var(--fg) !important; border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 100px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.nav-cta:hover { background: var(--fg); color: var(--bg) !important; border-color: var(--fg); }

/* =========================================================
   HERO
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.tick { width: 8px; height: 8px; background: var(--accent); display: inline-block; }

/* Hero em tela cheia — foto primeiro, texto sobreposto (estilo suíço, canto inferior). */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  isolation: isolate;
  margin-top: -64px;            /* sobe atrás do header transparente */
}
.hero-picture {
  position: absolute; inset: 0; z-index: -2;
  display: block;
}
.hero-picture img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {                  /* gradiente para legibilidade do texto */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.25) 42%, rgba(8,8,8,0.45) 100%);
}
.hero-overlay {
  align-self: flex-end;
  width: 100%;
  padding-bottom: clamp(40px, 8vh, 88px);
  padding-top: 96px;
}
.hero-title {
  margin-top: 20px;
  font-weight: 700;
  font-size: clamp(3rem, 13vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero-genres {
  margin-top: 22px;
  font-size: clamp(0.95rem, 2.4vw, 1.3rem);
  letter-spacing: 0.02em;
  color: #d8d8d4;
}

.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(30px, 6vw, 52px);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); transition: color .2s var(--ease);
}
.scroll-cue:hover { color: var(--fg); }
.scroll-cue svg { animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* =========================================================
   TRABALHOS
   ========================================================= */
.work { padding-block: clamp(40px, 8vw, 96px); }

.section-head {
  display: flex; flex-direction: column; gap: 22px;
  padding-bottom: 28px; margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.filter {
  font-family: inherit; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 16px; font-size: 13px; letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.filter:hover { color: var(--fg); border-color: var(--fg); }
.filter.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Galeria — masonry por colunas (rápido, sem JS de layout) */
.gallery {
  column-count: 1;
  column-gap: clamp(12px, 2vw, 22px);
}
.shot {
  position: relative;
  break-inside: avoid;
  margin-bottom: clamp(12px, 2vw, 22px);
  background: var(--bg-soft);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
}
.shot a { display: block; cursor: zoom-in; }
.shot.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.shot img {
  width: 100%;
  transition: transform .7s var(--ease), filter .4s var(--ease);
  filter: grayscale(18%) contrast(1.02);
}
.shot:hover img { transform: scale(1.035); filter: grayscale(0%); }

.shot figcaption {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.shot:hover figcaption, .shot:focus-within figcaption { opacity: 1; transform: none; }
.cap-num { color: var(--accent); font-variant-numeric: tabular-nums; }

.shot.hide { display: none; }

.gallery-empty { color: var(--muted); padding: 40px 0; font-size: 15px; }

/* =========================================================
   CONTATO
   ========================================================= */
.contact {
  padding-block: clamp(64px, 12vw, 150px);
  border-top: 1px solid var(--line);
}
.contact-title {
  font-weight: 700; font-size: clamp(2.2rem, 9vw, 6rem);
  line-height: 0.96; letter-spacing: -0.03em;
  margin-top: 22px; margin-bottom: 24px;
}
.contact-bio {
  max-width: 46ch;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.55; color: #d8d8d4;
  margin-bottom: clamp(40px, 7vw, 72px);
}
.contact-grid {
  display: grid; gap: clamp(34px, 6vw, 64px);
}
.contact-cta {
  display: inline-flex; align-items: center; gap: 14px;
  justify-self: start;
  background: var(--fg); color: var(--bg);
  padding: 18px 30px; border-radius: 100px;
  font-size: 15px; letter-spacing: 0.04em; font-weight: 500;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.contact-cta:hover { transform: translateY(-2px); background: #fff; }
.contact-cta svg { transition: transform .25s var(--ease); }
.contact-cta:hover svg { transform: translateX(4px); }

.contact-list {
  display: grid; gap: 0;
  border-top: 1px solid var(--line-soft);
}
.contact-list > div {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft);
}
.contact-list dt {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.contact-list dd { font-size: clamp(1.05rem, 3vw, 1.4rem); }
.contact-list a { border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.contact-list a:hover { border-bottom-color: var(--accent); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: 30px; }
.footer-inner {
  display: flex; flex-direction: column; gap: 14px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.footer-inner .brand-mark { color: var(--fg); }
.to-top { transition: color .2s var(--ease); }
.to-top:hover { color: var(--fg); }

/* =========================================================
   WHATSAPP FLOAT (mobile)
   ========================================================= */
.wa-float {
  position: fixed; z-index: 90;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #0a0a0a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); }
.wa-float:active { transform: scale(0.96); }
/* aparece só no mobile, conforme pedido */
@media (min-width: 768px) { .wa-float { display: none; } }

/* =========================================================
   PHOTOSWIPE — ajustes do visualizador
   ========================================================= */
.pswp { --pswp-bg: #060606; }
.pswp__alt-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #d8d8d4;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.pswp__button { will-change: opacity; }

/* =========================================================
   BREAKPOINTS
   ========================================================= */
@media (min-width: 600px) {
  .gallery { column-count: 2; }
  .brand-sub { display: inline; }
  .brand-mark { font-size: 15px; letter-spacing: 0.14em; }
  .nav-cta { padding: 9px 16px; }
  .nav { gap: clamp(20px, 4vw, 36px); }
}
@media (min-width: 768px) {
  .section-head {
    flex-direction: row; align-items: flex-end; justify-content: space-between;
  }
  .contact-grid { grid-template-columns: auto 1fr; align-items: start; gap: 80px; }
  .contact-list { min-width: 360px; }
  .contact-list > div { grid-template-columns: 160px 1fr; align-items: baseline; gap: 24px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1100px) {
  .gallery { column-count: 3; }
}

/* =========================================================
   ACESSIBILIDADE — movimento reduzido
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .shot { opacity: 1; transform: none; }
}
