/* =========================================================
   CAJU ESTÚDIO — STYLES v2
   Paleta: branco / preto / cream (areia)
   Tipografia: Instrument Serif (italic display) + Inter
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-soft: #2a2a2a;
  --color-muted: #6b6b6b;
  --color-line: #e2ddd4;
  --color-sand: #e8dfd0;
  --color-cream: #efe9df;          /* fundo creme para sessões */
  --color-cream-warm: #d9c9b1;     /* tom mais quente, fundo do contato */
  --color-accent: #b48b5d;
  --color-dark: #1a1a1a;

  --font-display: 'Instrument Serif', 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1400px;
  --gutter: clamp(1.5rem, 5vw, 5rem);

  --header-height: 130px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s ease, color 0.3s ease; }
a:hover { opacity: 0.68; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--color-sand); color: var(--color-text); }

/* utilitários */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* =========================================================
   HEADER (consistente em todas as páginas)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  height: var(--header-height);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-line);
}

.logo { display: inline-flex; align-items: center; position: relative; }
.logo-img {
  height: 150px;
  width: auto;
  display: block;
  transition: opacity 0.35s ease;
}
/* Há duas versões do logo no DOM: branca (default sobre fundo escuro) e preta (mostra sobre fundo claro).
   Quando o header é "is-scrolled" (rolagem na home) ou "is-solid" (páginas claras), troca para a preta. */
.logo-img--dark { display: none; }
.site-header.is-scrolled .logo-img--light,
.site-header.is-solid .logo-img--light { display: none; }
.site-header.is-scrolled .logo-img--dark,
.site-header.is-solid .logo-img--dark { display: block; }

.nav-desktop { display: flex; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.nav-desktop a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.4s ease;
}
.site-header.is-scrolled .nav-desktop a,
.site-header.is-solid .nav-desktop a { color: var(--color-text); }
.nav-desktop a.active::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: currentColor;
}
.nav-desktop a::after {
  content: ''; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 1px; background: currentColor; transition: width 0.3s ease, left 0.3s ease;
}
.nav-desktop a:hover { opacity: 1; }
.nav-desktop a:hover::after { width: 100%; left: 0; }

.menu-toggle {
  display: none;
  width: 32px; height: 24px;
  position: relative; z-index: 110;
}
.menu-toggle span {
  display: block; width: 100%; height: 1.5px;
  background: #ffffff; margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled .menu-toggle span,
.site-header.is-solid .menu-toggle span { background: var(--color-text); }
.menu-toggle.is-active span { background: var(--color-text); }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.nav-mobile.is-open { opacity: 1; visibility: visible; }
.nav-mobile a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-text);
}

/* =========================================================
   HERO (home)
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  /* Safari iOS workaround — svh evita problemas com a barra dinâmica do navegador */
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #0e0e0e;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Iframe Vimeo/YouTube no hero: cobre toda a área igual um vídeo de fundo.
   Truque: escalar o iframe acima de 100% e cortar overflow para esconder
   as bordas/controles que o Vimeo ainda renderiza mesmo em background mode. */
.hero-iframe-wrap {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;       /* não bloqueia cliques sobre o overlay */
  overflow: hidden;
  background: #0e0e0e;
}
.hero-iframe-wrap iframe {
  position: absolute;
  top: 50%; left: 50%;
  /* Base segura — vai ser sobrescrito no desktop */
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  /* fade-in quando carrega */
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}
.hero-iframe-wrap iframe.is-loaded { opacity: 1; }

/* Desktop: cover total — preenche a tela toda sem barras laterais.
   Mantido FORA do iframe base pra evitar bug do Safari iOS com max(calc()). */
@media (min-width: 901px) {
  .hero-iframe-wrap iframe {
    /* O vídeo do Vimeo tem proporção ~3:2 (1.5:1), não 16:9.
       Calcula tamanho pra cobrir o viewport mesmo em telas widescreen. */
    width: max(100vw, calc(100vh * 1.5));
    height: max(100vh, calc(100vw / 1.5));
    /* Scale extra de 30% pra forçar crop e eliminar qualquer borda residual em telas ultrawide */
    transform: translate(-50%, -50%) scale(1.3);
  }
}
.hero-overlay {
  position: absolute; inset: 0;
  /* Overlay mais suave agora que não há texto sobre o vídeo */
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.35) 100%);
}

/* Hero limpo: só vídeo + CTA "Ver trabalhos" (eyebrow e título escondidos) */
.hero-eyebrow,
.hero-title { display: none; }
.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 0 var(--gutter);
  color: #ffffff;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.35em; text-transform: uppercase;
  margin-bottom: 1.25rem; opacity: 0.9;
}
.hero-title {
  font-family: var(--font-sans);                /* Inter */
  font-style: normal;
  font-weight: 400;                              /* Regular */
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 24;            /* optical size 24pt */
  font-size: clamp(2.75rem, 7.5vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.hero-scroll {
  position: absolute; bottom: 3rem; left: var(--gutter);
  display: flex; align-items: center; gap: 1rem;
  color: #ffffff;
}
.hero-scroll-text {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero-scroll-line {
  display: inline-block; width: 60px; height: 1px;
  background: #ffffff; position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--color-accent);
  transform: translateX(-100%);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* =========================================================
   SEÇÕES GENÉRICAS
   ========================================================= */
.section {
  padding: clamp(4rem, 10vw, 9rem) var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.section--fluid { max-width: none; }

.section-head {
  max-width: 900px;
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}

.section-title {
  font-family: var(--font-sans);                /* Inter */
  font-style: normal;
  font-weight: 400;                              /* Regular */
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 24;            /* optical size 24pt */
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-text);
}
.section-title--light { color: #ffffff; }

.section-lead {
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 60ch;
  margin-left: auto; margin-right: auto;
}

/* =========================================================
   ÚLTIMOS TRABALHOS (mosaico) — home
   ========================================================= */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
.work-card { position: relative; }
.work-card-link { display: block; }
.work-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-cream);
}
.work-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: transform 1.2s ease, opacity 1.2s ease-in-out;
}
.work-card:hover .work-card-media img.is-active { transform: scale(1.04); }
/* Múltiplas capas: só a com .is-active aparece; resto fica invisível */
.work-card-media img.work-cover {
  opacity: 0;
}
.work-card-media img.work-cover.is-active {
  opacity: 1;
}
.work-card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-cream);
  pointer-events: none; z-index: 0;
}
.work-card-info { padding-top: 1.25rem; }
.work-card-category {
  display: block;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}
.work-card-title {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: 1.6rem; line-height: 1.15;
}

/* =========================================================
   GALERIA (home) — grid 3x2 uniforme
   ========================================================= */
.gallery--feed {
  background: var(--color-bg);
  max-width: none;
}
.gallery-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1vw, 1rem);
  max-width: var(--max-width);
  margin: 0 auto;
}
.photo-feed {
  position: relative;
  aspect-ratio: 4 / 5;     /* uniforme estilo feed */
  overflow: hidden;
  background: var(--color-cream);
  cursor: zoom-in;
}
.photo-feed img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative; z-index: 1;
  transition: transform 1s ease, opacity 0.4s ease;
}
.photo-feed:hover img { transform: scale(1.03); }
.photo-feed-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-cream); z-index: 0;
}

/* =========================================================
   SOBRE (home + página About)
   ========================================================= */
.sobre {
  background: var(--color-cream);
  max-width: none;
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
/* Quando a foto da seção Sobre não existe, o texto ocupa toda a largura */
.sobre-grid.sobre-grid--no-image {
  grid-template-columns: 1fr;
  max-width: 820px;
}
.sobre-grid.sobre-grid--no-image .sobre-paragraph { max-width: none; }
.sobre-text { display: flex; flex-direction: column; gap: 1.5rem; }
.sobre-title {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}
.sobre-paragraph {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.65;
  color: var(--color-text-soft);
  max-width: 50ch;
}
.sobre-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-sand);
}
.sobre-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative; z-index: 1;
}
.sobre-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-muted); z-index: 0;
}

/* About page só com texto (sem imagem) */
.about-page {
  background: var(--color-cream);
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
}
.about-page .sobre-grid {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}

/* =========================================================
   CONTATO (home + página Contact) — estilo print 3
   ========================================================= */
.contato {
  background: var(--color-cream-warm);
  max-width: none;
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
}
.contato-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.contato-title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  color: var(--color-text);
  max-width: 18ch;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.01em;
}
.contato-divider {
  width: 100%;
  max-width: 720px;
  height: 1px;
  background: var(--color-text);
  margin-bottom: 2.5rem;
}
.contato-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.contato-block .eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--color-text);
}
.contato-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--color-text);
}
.contato-link-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-cream-warm);
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contato-link-icon svg { display: block; }
.contato-link-text { text-decoration: none; }

.contato-actions {
  margin-top: 3rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.contato-cta {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1rem 2rem;
  background: var(--color-text);
  color: #ffffff;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  transition: background 0.3s ease, transform 0.3s ease;
}
.contato-cta:hover { background: var(--color-accent); transform: translateY(-2px); opacity: 1; }

/* Contact page específica */
.contact-page {
  min-height: 100vh;
  padding-top: var(--header-height);
}

/* Formulário (contact page) */
.contact-form-wrap {
  max-width: 720px;
  margin: 3rem 0 0;
}
.contact-form {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--color-text);
}
.form-row input, .form-row textarea {
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 400;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26,26,26,0.3);
  padding: 0.6rem 0; resize: none;
  transition: border-color 0.3s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-bottom-color: var(--color-text);
}
.form-submit {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.85rem;
  padding: 1rem 2rem;
  background: var(--color-text); color: #fff;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  transition: background 0.3s ease, transform 0.3s ease;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--color-accent); transform: translateY(-2px); opacity: 1; }
.form-status {
  font-size: 0.85rem; color: var(--color-text-soft); min-height: 1.2em;
}
.form-status.success { color: #2d7a3f; }
.form-status.error { color: #b84141; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-dark);
  color: #f6f1ea;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2.5rem;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; flex-direction: column;
  /* gap menor entre símbolo, links e copyright para "encostar" mais */
  align-items: center; gap: 0.9rem; text-align: center;
}
.footer-logo img { height: 64px; width: auto; }
.footer-symbol { display: inline-flex; }
.footer-symbol img {
  /* ========= TAMANHO DO SÍMBOLO NO FOOTER =========
     Para AUMENTAR/DIMINUIR o símbolo do caju no rodapé,
     altere o valor de "height" abaixo (em pixels).
     Ex.: 64px (pequeno), 100px, 130px (atual), 160px etc. */
  height: 130px; width: auto; opacity: 0.95;
  /* margin-bottom negativo "puxa" o símbolo para mais perto dos links */
  margin-bottom: -0.4rem;
  /* Símbolo é preto sobre fundo claro; aqui o footer é escuro, então invertemos para branco */
  filter: invert(1);
}
.footer-links {
  display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center;
}
.footer-links a {
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 500;
}
.footer-copy {
  font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(246, 241, 234, 0.6);
  margin-top: 0.6rem;
}

/* =========================================================
   WORK INDEX PAGE — print 5
   ========================================================= */
.work-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #1a1a1a;
  overflow: hidden;
  padding-top: var(--header-height);
}
.work-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.work-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.work-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,0.15) 100%);
}
.work-hero-content {
  position: relative; z-index: 2;
  padding: clamp(3rem, 8vw, 7rem) var(--gutter);
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}
.work-eyebrow {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}
.work-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 0.4rem;
}
.work-list a {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.work-list a:hover {
  color: var(--color-cream-warm);
  transform: translateX(8px);
  opacity: 1;
}

/* =========================================================
   PROJECT PAGE — print 6 / shugafilms.com/gessibabalshams
   ========================================================= */
.project-page {
  background: #0d0d0d;
  color: #f0ece3;
  min-height: 100vh;
}
.project-hero {
  padding-top: var(--header-height);
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}
.project-video-wrap {
  position: relative;
  max-width: 1500px;
  margin: 2rem auto 0;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.project-video-wrap video,
.project-video-wrap iframe {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative; z-index: 1;
  border: 0;
  display: block;
}
.project-video-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); z-index: 0;
}

.project-details {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.project-details h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #f0ece3;
  margin-bottom: 1.5rem;
}
.project-details p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: #cfcabe;
}

.project-title-block {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 3vw, 2rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
}
.project-client-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  color: #f0ece3;
}

/* Slider de fotos do projeto */
.project-gallery-wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 3vw, 2rem) clamp(4rem, 8vw, 7rem);
}
.project-slider {
  position: relative;
}
.project-slider-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1rem;
}
.project-slider-track::-webkit-scrollbar { display: none; }
/* Slider preserva orientação original: altura fixa, largura segue a proporção da foto.
   Fotos horizontais ficam largas, verticais ficam estreitas — tudo na mesma altura.
   Altura grande (~78vh) pra ocupar bem a tela e dar imponência às imagens. */
.project-slide {
  flex: 0 0 auto;
  height: clamp(480px, 78vh, 900px);
  width: auto;
  background: #1a1a1a;
  scroll-snap-align: center;
  overflow: hidden;
  position: relative;
}
.project-slide img {
  height: 100%;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
}
.project-slide-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); z-index: 0;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.slider-btn {
  width: 48px; height: 48px;
  border: 1px solid rgba(240,236,227,0.4);
  border-radius: 50%;
  color: #f0ece3;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.slider-btn:hover {
  background: #f0ece3; color: #0d0d0d; border-color: #f0ece3;
}

.project-back {
  display: inline-flex;
  align-items: center; gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f0ece3;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

/* Footer dentro de páginas escuras */
.project-page .site-footer { background: #0d0d0d; border-top: 1px solid rgba(240,236,227,0.1); }
.work-hero + .site-footer { display: none; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 15, 15, 0.94);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200; padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 88vh; object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  width: 44px; height: 44px;
  color: #fff; font-size: 2rem; line-height: 1;
}

/* =========================================================
   REVEAL on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVO
   =========================================================
   Breakpoints:
   - 1024px: tablet horizontal (header menor, grids reduzem)
   - 768px:  tablet vertical (esconde nav desktop, mostra hambúrguer)
   - 560px:  smartphone padrão
   - 430px:  iPhone (Pro Max), foco em telas estreitas
   - 380px:  iPhone SE / aparelhos pequenos
   ========================================================= */

/* --------- Tablet horizontal --------- */
@media (max-width: 1024px) {
  :root { --header-height: 110px; }
  .logo-img { height: 110px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------- Tablet vertical --------- */
@media (max-width: 768px) {
  :root { --header-height: 84px; }
  .logo-img { height: 78px; }
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }

  /* Esconde o vídeo do hero em mobile (economiza dados/CPU) e mantém imagem de fundo se houver */
  .hero { min-height: 540px; }
  .hero-title { max-width: 16ch; }
  .hero-content { padding-bottom: 5rem; }

  .gallery-feed-grid { grid-template-columns: repeat(2, 1fr); }

  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-image { order: -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .sobre-title { font-size: clamp(2.75rem, 12vw, 4.5rem); }

  .contato { padding: clamp(3.5rem, 12vw, 6rem) var(--gutter); }
  .contato-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .contato-title { font-size: clamp(1.75rem, 7vw, 2.8rem); }

  .project-details { grid-template-columns: 1fr; gap: 2rem; }

  /* Footer mais compacto em mobile */
  .footer-symbol img { height: 96px; }
}

/* --------- Smartphone padrão --------- */
@media (max-width: 560px) {
  :root {
    --header-height: 72px;
    --gutter: 1.25rem;
  }
  .logo-img { height: 60px; }

  /* Hero — título e CTA confortáveis no celular */
  .hero { min-height: 88vh; }
  .hero-content { padding-bottom: 6rem; }
  .hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.3em; margin-bottom: 0.9rem; }
  .hero-title { font-size: clamp(2.25rem, 11vw, 3.8rem); max-width: 14ch; }
  .hero-scroll { bottom: 2rem; }
  .hero-scroll-line { width: 40px; }
  .hero-scroll-text { font-size: 0.65rem; letter-spacing: 0.25em; }

  /* Cabeçalhos de seção menores */
  .section { padding: clamp(3rem, 9vw, 5rem) var(--gutter); }
  .section-head { margin-bottom: 2rem; }
  .section-title { font-size: clamp(2rem, 8vw, 3rem); }
  .eyebrow { font-size: 0.65rem; letter-spacing: 0.28em; }

  /* Grades empilham em coluna única para evitar imagens minúsculas */
  .works-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .work-card-title { font-size: 1.35rem; }
  .gallery-feed-grid { grid-template-columns: 1fr; gap: 0.5rem; }

  /* Sobre — margem lateral igual à seção de contato pra alinhar visualmente */
  .sobre-grid { padding: 0 var(--gutter); gap: 2rem; }
  .sobre-text { padding: 0; }
  .sobre-paragraph { max-width: none; }
  .sobre-title { font-size: clamp(2.5rem, 14vw, 3.75rem); margin-bottom: 0.5rem; }
  .sobre-paragraph { font-size: 1rem; }

  /* About page dedicada */
  .about-page { padding-top: calc(var(--header-height) + 1rem); }
  .about-page .sobre-grid { padding: 2rem var(--gutter) 3rem; }

  /* Contato */
  .contato-title { font-size: clamp(1.6rem, 8vw, 2.4rem); margin-bottom: 2rem; }
  .contato-divider { margin-bottom: 1.75rem; }
  .contato-link { font-size: 0.98rem; }
  .contato-link-icon { width: 34px; height: 34px; }
  .contato-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; margin-top: 2rem; }
  .contato-cta { justify-content: center; width: 100%; }

  /* Work page (lista hotéis) */
  .work-list a { font-size: 1.15rem; }

  /* Project pages */
  .project-hero { padding-left: 0; padding-right: 0; }
  .project-video-wrap { margin-top: 1rem; }
  .project-details { padding: 2.5rem var(--gutter); gap: 1.5rem; }
  .project-client-name { font-size: clamp(2rem, 9vw, 3rem); }
  .project-slide { width: 88vw; }
  .slider-btn { width: 40px; height: 40px; }
  .project-back { padding: 2rem var(--gutter); font-size: 0.68rem; letter-spacing: 0.22em; }

  /* Formulário de contato */
  .form-submit { width: 100%; justify-content: center; }

  /* Footer — símbolo menor para combinar com tela pequena */
  .footer-symbol img { height: 80px; margin-bottom: -0.2rem; }
  .footer-inner { gap: 0.8rem; padding: 0; }
  .footer-links { gap: 1.4rem; }
  .footer-links a { font-size: 0.68rem; letter-spacing: 0.22em; }
  .footer-copy { font-size: 0.65rem; line-height: 1.5; }
  .site-footer { padding: 3rem var(--gutter) 2.25rem; }

  /* Menu mobile com fontes menores */
  .nav-mobile a { font-size: 2rem; }

  /* Lightbox sem padding gigante */
  .lightbox { padding: 1rem; }
  .lightbox-close { top: 1rem; right: 1rem; }
}

/* --------- iPhone (Pro/Pro Max) --------- */
@media (max-width: 430px) {
  .logo-img { height: 52px; }
  :root { --header-height: 64px; }
  .hero-title { font-size: clamp(2rem, 11vw, 3rem); }
  .work-card-title { font-size: 1.2rem; }
  .contato-title { font-size: clamp(1.5rem, 8.5vw, 2.1rem); }
  .footer-symbol img { height: 72px; }
}

/* --------- iPhone SE / aparelhos muito pequenos --------- */
@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  .logo-img { height: 46px; }
  .hero-title { font-size: 1.85rem; }
  .work-card-title { font-size: 1.1rem; }
  .section-title { font-size: 1.75rem; }
}

/* ========= AJUSTE TEMPORÁRIO =========
   Esconde a coluna "Project Details" das páginas de projeto e centraliza o Client.
   Pra reativar Project Details no futuro: remova este bloco. */
.project-details {
  grid-template-columns: 1fr;
  max-width: 760px;
  text-align: left;
}
.project-details > div:nth-child(2) { display: none; }

/* Texto Client em inglês — discreto, abaixo do texto em português */
.client-en {
  margin-top: 1rem;
  color: #b0aba0;
  font-size: 0.95rem;
  line-height: 1.55;
}


/* ========= FIX SAFARI iOS / MOBILE =========
   Em telas pequenas, esconde o iframe Vimeo (que causa tela em branco em Safari iOS)
   e usa work-bg.jpg como imagem de fundo da hero. Performance e compatibilidade. */
@media (max-width: 900px) {
  .hero-iframe-wrap iframe {
    display: none;
  }
  .hero,
  .hero-iframe-wrap {
    background: #0e0e0e url('media/work-bg.jpg') center/cover no-repeat;
  }
}
