/* ============================================================
   Pedro Tormena Movelaria - Apple-inspired Premium Design
   ============================================================ */
:root {
  --bg-color: #000000;
  --surface: #1d1d1f;
  --surface-elevated: #2c2c2e;
  --text-main: #f5f5f7;
  --text-muted: #86868b;
  --accent: #d4af37; /* Ouro sutil para luxo */
  --border-color: rgba(255, 255, 255, 0.1);
  
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --gutter: clamp(24px, 6vw, 80px);
  --section-pad: clamp(96px, 12vw, 180px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: transparent; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }

:focus-visible { outline: 2px solid var(--text-main); outline-offset: 4px; border-radius: 8px; }

.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* Estados da animação GSAP inicial (BlurReveal Fallback) */
.anim .blur-reveal { opacity: 0; filter: blur(12px); transform: translateY(15px); }

/* ---------- Navegação (Estilo Apple / Glassmorphism) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  padding-block: 10px;
  border-bottom-color: var(--border-color);
  background: rgba(0, 0, 0, 0.75);
}
.brand img {
  width: 160px;
  height: 70px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: width 0.4s var(--ease), height 0.4s var(--ease);
}
.nav.scrolled .brand img { width: 145px; height: 64px; }

.nav-menu { display: flex; align-items: center; gap: 40px; font-size: 0.9rem; font-weight: 500; }
.nav-menu a { color: var(--text-muted); transition: color 0.3s ease; }
.nav-menu a:hover, .nav-menu a[aria-current="true"] { color: var(--text-main); }

.nav-menu .nav-cta {
  background: var(--text-main);
  color: var(--bg-color);
  padding: 10px 20px;
  border-radius: 980px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.nav-menu .nav-cta:hover { transform: scale(1.05); background: #ffffff; color: #000; }

.nav-toggle { display: none; color: var(--text-main); font-size: 1.2rem; font-weight: 500; }

/* ---------- Botões Universais ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; border-radius: 980px;
  font-size: 1rem; font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--text-main); color: var(--bg-color); }
.btn-primary:hover { background: #ffffff; box-shadow: 0 0 20px rgba(255,255,255,0.2); }
.btn-secondary { background: var(--surface-elevated); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: #3a3a3c; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 120px var(--gutter) 60px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(44, 44, 46, 0.4) 0%, var(--bg-color) 70%);
}
.hero-gradient {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 16% 28%, rgba(255, 255, 255, 0.12), transparent 42%),
    radial-gradient(ellipse at 82% 22%, rgba(210, 210, 210, 0.1), transparent 40%),
    radial-gradient(ellipse at 55% 82%, rgba(245, 245, 245, 0.08), transparent 46%),
    #000;
}
.hero-gradient canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-gradient.webgl-ready canvas { opacity: 1; }
.hero-glass {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(9px) saturate(65%);
  -webkit-backdrop-filter: blur(9px) saturate(65%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-signature {
  color: #f5f5f7;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

/* Configurações EXATAS solicitadas: font-medium (500) e tracking-[-.03em] */
.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 48px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; }
.text-gradient {
  background: linear-gradient(90deg, #d4af37, #f3e5ab);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-bottom { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.hero-sub {
  max-width: 500px;
  font-size: 1.25rem;
  color: rgba(245, 245, 247, 0.94);
  font-weight: 500;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9);
}
.hero .btn-primary {
  position: relative;
  overflow: hidden;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.hero .btn-primary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 14px 42px rgba(0, 0, 0, 0.34);
}

/* ---------- Essência ---------- */
.about { padding: var(--section-pad) var(--gutter); background: var(--bg-color); }
.about-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 8vw, 120px); align-items: center;
}
.about-text h2 { font-size: clamp(2.5rem, 4vw, 4rem); margin-bottom: 32px; color: var(--text-main); }
.about-text > p { font-size: 1.25rem; color: var(--text-muted); max-width: 90%; }

.facts { margin-top: 48px; border-top: 1px solid var(--border-color); }
.facts > div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--border-color);
}
.facts dt { font-size: 2.5rem; font-weight: 600; color: var(--text-main); }
.facts dd { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.about-media { position: relative; aspect-ratio: 1 / 1; }
.media { position: absolute; overflow: hidden; border-radius: 32px; background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-a { left: 0; top: 0; width: 75%; height: 75%; }
.media-b { right: 0; bottom: 0; width: 55%; height: 55%; border: 10px solid var(--bg-color); }

/* ---------- Obras (Grid estilo Apple Cards) ---------- */
.works { padding: var(--section-pad) var(--gutter); background: #0a0a0a; border-radius: 40px; margin: 0 20px; }
.works-head { max-width: 1280px; margin: 0 auto 64px; text-align: center; }
.works-head h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 16px; }
.works-head p { color: var(--text-muted); font-size: 1.1rem; }

.works-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
}
.work {
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: zoom-in;
}
.work-media {
  width: 100%; border-radius: 24px; overflow: hidden; background: var(--surface);
  aspect-ratio: 4/3; position: relative;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work:hover .work-media img { transform: scale(1.05); }
.work-zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.work:hover .work-zoom,
.work:focus-visible .work-zoom {
  opacity: 1;
  transform: translateY(0);
}
.work.work-reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    filter 0.7s ease,
    transform 0.7s var(--ease);
  transition-delay: var(--work-delay, 0ms);
}
.work.work-reveal.work-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.work-cap { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.work-cap strong { font-size: 1.5rem; font-weight: 600; color: var(--text-main); }
.work-cap em { font-style: normal; color: var(--text-muted); font-size: 1rem; }

/* ---------- Método ---------- */
.method { padding: var(--section-pad) var(--gutter); background: var(--bg-color); }
.method h2 { text-align: center; font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 80px; }

.steps {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px 32px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.step:hover { background: var(--surface-elevated); transform: translateY(-8px); }
.step-num { display: block; font-size: 1.25rem; font-weight: 600; color: var(--accent); margin-bottom: 24px; }
.step h3 { font-size: 1.75rem; margin-bottom: 16px; }
.step p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

/* ---------- Avaliação ---------- */
.testimonial { padding: 0 var(--gutter) var(--section-pad); background: var(--bg-color); }
.testimonial-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  text-align: center;
}
.section-eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.testimonial-rating { margin-bottom: 24px; color: var(--accent); font-size: 1.5rem; letter-spacing: 0.12em; }
.testimonial blockquote {
  max-width: 780px;
  margin: 0 auto 24px;
  color: var(--text-main);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.testimonial cite { color: var(--text-muted); font-size: 1rem; font-style: normal; }

/* ---------- Contato ---------- */
.contact { padding: var(--section-pad) var(--gutter); background: var(--bg-color); text-align: center; }
.contact-inner { max-width: 800px; margin: 0 auto; }
.contact h2 { font-size: clamp(3rem, 6vw, 5.5rem); margin-bottom: 24px; }
.contact p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 48px; }
.contact-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Localização ---------- */
.location {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding: var(--section-pad) var(--gutter);
  background: #0a0a0a;
}
.location-head { max-width: 480px; }
.location-head h2 { margin-bottom: 24px; font-size: clamp(2.5rem, 5vw, 4rem); }
.location-head > p:not(.section-eyebrow) { margin-bottom: 32px; color: var(--text-muted); font-size: 1.1rem; }
.location-map {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 28px;
  background: var(--surface);
}
.location-map iframe { display: block; width: 100%; min-height: 420px; border: 0; filter: grayscale(1) invert(0.9) contrast(0.9); }

/* ---------- Footer ---------- */
.footer {
  padding: 40px var(--gutter); border-top: 1px solid var(--border-color);
  text-align: center; color: var(--text-muted); font-size: 0.9rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; background: transparent; color: var(--text-main);
  max-width: 90vw; max-height: 90vh; margin: auto;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 16px; margin: 0 auto; }
.lightbox p { text-align: center; margin-top: 16px; font-size: 1.25rem; font-weight: 500; }
.lb-close {
  position: absolute; right: -16px; top: -40px; background: var(--surface-elevated);
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { background: var(--text-main); color: var(--bg-color); }

/* ---------- Responsivo ---------- */
@media (max-width: 992px) {
  .nav-toggle { display: block; background: transparent; border: none; }
  .nav-menu {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
    font-size: 2rem;
  }
  .nav-menu.open { opacity: 1; pointer-events: all; }
  
  .about-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .location { grid-template-columns: 1fr; }
  .location-head { max-width: 640px; }
}

@media (max-width: 600px) {
  .brand img { width: 128px; height: 58px; }
  .nav.scrolled .brand img { width: 120px; height: 54px; }
  .hero-signature img { width: min(180px, 58vw); }
  .hero { padding: 140px 20px 60px; }
  .hero-title { font-size: 3rem; }
  .hero-sub { font-size: 1.1rem; }
  .steps { grid-template-columns: 1fr; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; }
  .works { margin: 0; border-radius: 0; }
  .location-map, .location-map iframe { min-height: 340px; }
}

@media (hover: none) {
  .work-zoom {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work.work-reveal,
  .work.work-reveal.work-visible {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}