/* =========================================================
   Atelier Noir — Luxury Digital Experience
   Arquivo: style.css
   Função: estilos visuais, responsividade, animações e layout.
   ========================================================= */

:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --soft: rgba(255, 255, 255, 0.18);
  --line: rgba(255, 255, 255, 0.08);
  --gold: #aa8c45;
  --gold-soft: rgba(170, 140, 69, 0.22);
  --graphite: #1a1a1a;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --container: 1280px;
}

/* Reset global e box sizing. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Rolagem suave para links internos. */
html {
  scroll-behavior: smooth;
}

/* Base visual da página: fundo, tipografia e cursor customizado. */
body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(170, 140, 69, 0.09), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.05), transparent 20%),
    radial-gradient(circle at 15% 80%, rgba(120, 120, 120, 0.07), transparent 22%),
    linear-gradient(180deg, #040404 0%, #070707 55%, #030303 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: radial-gradient(rgba(255,255,255,0.8) 0.45px, transparent 0.45px);
  background-size: 8px 8px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.25));
  z-index: 1;
}

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

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

/* Cursor customizado usado em telas sem toque. */
.cursor,
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.cursor {
  width: 9px;
  height: 9px;
  background: rgba(255,255,255,0.95);
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
}

/* Container central para manter o conteúdo alinhado. */
.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Header fixo e navegação principal. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease, transform 0.5s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.36);
  border-color: rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 20px;
}

.brand,
.eyebrow,
.label,
.button,
.footer-meta,
.nav-links a {
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.brand {
  font-size: 11px;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 12px;
  color: rgba(255,255,255,0.58);
}

.nav-links a,
.button,
.showcase-item,
.service-card,
.social-link {
  transition: transform 0.5s cubic-bezier(.19,1,.22,1), color 0.4s ease, border-color 0.4s ease, background 0.4s ease, box-shadow 0.5s ease, opacity 0.4s ease;
}

.nav-links a:hover,
.social-link:hover {
  color: rgba(255,255,255,1);
}

/* Botões reutilizáveis do site. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: rgba(255,255,255,0.84);
  background: transparent;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
}

.button.primary {
  background: #ffffff;
  color: #080808;
  border-color: #ffffff;
  box-shadow: 0 12px 32px rgba(255,255,255,0.08);
}

.button.primary:hover {
  box-shadow: 0 18px 40px rgba(255,255,255,0.12);
}

.button.ghost:hover {
  border-color: rgba(170, 140, 69, 0.45);
  color: #ffffff;
}

/* Seção hero: primeira dobra do site. */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 10px;
  color: rgba(255,255,255,0.62);
  backdrop-filter: blur(16px);
  margin-bottom: 28px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(170,140,69,0.7);
}

h1,
h2,
.showcase-title,
.panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(4.2rem, 8vw, 8.5rem);
  line-height: 0.9;
  max-width: 900px;
}

.hero-copy {
  max-width: 640px;
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.95;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

/* Card lateral da hero com métricas e efeito premium. */
.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
  padding: 36px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170,140,69,0.9), transparent);
}

.panel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 72px;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.label {
  color: var(--gold);
  font-size: 10px;
  margin-bottom: 18px;
}

.panel-title {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.04;
  max-width: 500px;
}

.panel-copy {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.5);
  max-width: 430px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 52px;
}

.metric {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 18px;
}

.metric span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}

.metric strong {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

/* Estrutura geral das seções internas. */
.section {
  padding: 120px 0;
}

.section-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  margin-bottom: 44px;
  align-items: start;
}

.section-index {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  padding-top: 8px;
}

h2 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.98;
  max-width: 720px;
}

.section-copy {
  margin-top: 20px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.95;
  color: rgba(255,255,255,0.58);
}

/* Seção Sobre. */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.editorial-card,
.editorial-quote,
.service-card,
.showcase-item,
.footer-grid {
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(18px);
}

.editorial-card,
.editorial-quote {
  border-radius: var(--radius-xl);
  padding: 36px;
}

.editorial-card p,
.editorial-quote p {
  font-size: 16px;
  line-height: 1.95;
  color: rgba(255,255,255,0.72);
}

.editorial-quote {
  display: flex;
  align-items: center;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(170,140,69,0.16), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.editorial-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.03em;
}

/* Grid de serviços/destaques. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 30px;
  min-height: 320px;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170,140,69,0.75), transparent);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.13);
  background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
}

.service-card:hover::before {
  opacity: 1;
}

.service-number {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.service-card h3 {
  margin-top: 56px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.service-card p {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.55);
  max-width: 320px;
}

/* Showcase em grid editorial. */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.showcase-item {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 320px;
  padding: 28px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.showcase-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.55));
  z-index: -1;
}

.showcase-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(170,140,69,0.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  opacity: 0.9;
  z-index: -2;
  transition: transform 1s cubic-bezier(.19,1,.22,1), opacity 0.5s ease;
}

.showcase-item:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.14);
}

.showcase-item:hover::after {
  transform: scale(1.06);
  opacity: 1;
}

.showcase-item:nth-child(1),
.showcase-item:nth-child(4) {
  grid-column: span 7;
}

.showcase-item:nth-child(2),
.showcase-item:nth-child(3),
.showcase-item:nth-child(5),
.showcase-item:nth-child(6) {
  grid-column: span 5;
}

.showcase-meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 14px;
}

.showcase-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  margin-bottom: 10px;
}

.showcase-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  max-width: 360px;
}

/* Rodapé e chamada final. */
.footer {
  padding: 0 0 48px;
}

.footer-grid {
  border-radius: 36px;
  padding: 42px 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.footer h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 580px;
}

.footer p {
  margin-top: 18px;
  max-width: 560px;
  color: rgba(255,255,255,0.58);
  line-height: 1.9;
  font-size: 15px;
}

.footer-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: end;
  text-align: right;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}

.footer-meta {
  margin-top: 22px;
  font-size: 10px;
  color: rgba(255,255,255,0.34);
}

/* Estado inicial/final das animações de entrada. */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(14px);
  transition: opacity 1.2s cubic-bezier(.19,1,.22,1), transform 1.2s cubic-bezier(.19,1,.22,1), filter 1.2s cubic-bezier(.19,1,.22,1);
  will-change: transform, opacity, filter;
}

/* Delays utilitários substituem estilos inline sem mudar o efeito. */
.delay-06 { transition-delay: 0.06s; }
.delay-08 { transition-delay: 0.08s; }
.delay-12 { transition-delay: 0.12s; }
.delay-14 { transition-delay: 0.14s; }
.delay-16 { transition-delay: 0.16s; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.parallax {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Responsividade para tablets e telas médias. */
@media (max-width: 1080px) {
  .hero-grid,
  .about-layout,
  .footer-grid,
  .section-top,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .showcase-item,
  .showcase-item:nth-child(1),
  .showcase-item:nth-child(2),
  .showcase-item:nth-child(3),
  .showcase-item:nth-child(4),
  .showcase-item:nth-child(5),
  .showcase-item:nth-child(6) {
    grid-column: span 12;
  }

  .footer-links {
    justify-items: start;
    text-align: left;
  }

  .panel-meta {
    margin-bottom: 40px;
  }
}

/* Responsividade para mobile. */
@media (max-width: 720px) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav {
    min-height: 72px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-panel,
  .editorial-card,
  .editorial-quote,
  .service-card,
  .showcase-item,
  .footer-grid {
    padding: 24px;
    border-radius: 24px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 84px 0;
  }

  .showcase-item {
    min-height: 260px;
  }
}

/* =========================================================
   VERSÃO FINAL — Responsividade editorial / ultrawide
   Mantém mobile e iPad; controla desktop e telas grandes.
   ========================================================= */

.designer-signature {
  display: block;
  margin-top: 28px;
  padding-bottom: 8px;
  text-align: center;

  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;

  color: rgba(255,255,255,0.22);

  opacity: 0;
  transform: translate3d(0, 8px, 0);

  animation: signatureFade 1s ease forwards;
  animation-delay: 0.4s;

  transition: color 0.4s ease;
}

.designer-signature:hover {
  color: rgba(255,255,255,0.55);
}

@keyframes signatureFade {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Desktop: fica fiel ao iPad, sem espalhar o conteúdo. */
@media (min-width: 1081px) {
  :root {
    --container: 1040px;
  }

  .container {
    width: min(calc(100% - 96px), var(--container));
  }

  .nav-links {
    display: none;
  }

  .nav {
    min-height: 86px;
  }

  .hero {
    min-height: auto;
    padding: 142px 0 104px;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    align-items: start;
    gap: 44px;
  }

  h1 {
    max-width: 900px;
    font-size: clamp(4.8rem, 7vw, 7.8rem);
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-panel {
    width: 100%;
    max-width: 100%;
  }

  .section-top {
    grid-template-columns: 1fr !important;
    gap: 18px;
    max-width: 800px;
    margin-bottom: 44px;
  }

  .section-index {
    padding-top: 0;
  }

  h2,
  .section-copy {
    max-width: 800px;
  }

  .about-layout {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .editorial-card,
  .editorial-quote {
    min-height: 260px;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .service-card {
    min-height: 280px;
    height: auto;
  }

  .showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .showcase-item,
  .showcase-item:nth-child(1),
  .showcase-item:nth-child(2),
  .showcase-item:nth-child(3),
  .showcase-item:nth-child(4),
  .showcase-item:nth-child(5),
  .showcase-item:nth-child(6) {
    grid-column: auto !important;
    min-height: 320px;
    height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 34px;
  }

  .footer-links {
    justify-items: start !important;
    text-align: left !important;
  }

  .parallax {
    transform: none !important;
  }
}

/* Desktop grande: trava largura e escala. */
@media (min-width: 1440px) {
  :root {
    --container: 980px;
  }

  .container {
    width: min(calc(100% - 128px), var(--container));
  }

  .hero {
    padding: 150px 0 112px;
  }

  h1 {
    max-width: 860px;
    font-size: clamp(5rem, 5.6vw, 7.2rem);
  }

  h2 {
    max-width: 760px;
    font-size: clamp(3.2rem, 3.6vw, 4.6rem);
  }

  .hero-copy,
  .section-copy {
    max-width: 720px;
  }

  .section-top {
    max-width: 760px;
  }

  .section {
    padding: 118px 0;
  }

  .hero-panel,
  .footer-grid {
    max-width: 980px;
  }
}

/* Ultrawide: composição editorial fixa e centralizada. */
@media (min-width: 1680px) {
  :root {
    --container: 940px;
  }

  .container {
    width: min(calc(100% - 160px), var(--container));
  }

  h1 {
    max-width: 820px;
    font-size: clamp(5rem, 4.8vw, 6.8rem);
  }

  h2 {
    max-width: 720px;
    font-size: clamp(3rem, 3.2vw, 4.2rem);
  }

  .hero-copy,
  .section-copy {
    max-width: 700px;
  }

  .section-top {
    max-width: 720px;
  }

  .hero-panel,
  .footer-grid,
  .showcase-item,
  .service-card,
  .editorial-card,
  .editorial-quote {
    max-width: 940px;
  }
}

/* Telas extremamente grandes: segura ainda mais a escala visual. */
@media (min-width: 1920px) {
  :root {
    --container: 900px;
  }

  .container {
    width: min(calc(100% - 200px), var(--container));
  }

  .hero {
    padding: 158px 0 118px;
  }

  h1 {
    font-size: clamp(5rem, 4vw, 6.4rem);
  }

  h2 {
    font-size: clamp(3rem, 2.8vw, 4rem);
  }

  .showcase-item,
  .showcase-item:nth-child(1),
  .showcase-item:nth-child(2),
  .showcase-item:nth-child(3),
  .showcase-item:nth-child(4),
  .showcase-item:nth-child(5),
  .showcase-item:nth-child(6) {
    height: 300px;
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .designer-signature {
    letter-spacing: 0.22em;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .parallax {
    transform: none !important;
  }
}
