:root {
  --bg-deep: #050505;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
body {
  font-family: 'Manrope', 'Inter', 'Space Grotesk', sans-serif;
  background-color: var(--bg-deep);
  color: #e5e5e5;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #333; }
::-webkit-scrollbar-thumb:hover { background: #555; }
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  will-change: opacity, visibility;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .fade-in-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .img-zoom {
    transition: none;
  }
  .group:hover .img-zoom {
    transform: none;
  }
}
.img-container { overflow: hidden; }
.img-zoom {
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.group:hover .img-zoom { transform: scale(1.03); }
::selection { background: #ffffff; color: #000000; }

/* design_system_final-Cursor.html — superfície global */
.noise {
  position: fixed;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 35;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05), transparent 30%);
}
.bg-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(128, 128, 128, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.06) 1px, transparent 1px);
}
.glass-panel {
  background: rgba(23, 23, 23, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Formulário de contato — janela vidro (design-system-claude-01 / hero Atendimento) */
.contact-form-glass {
  background: rgba(23, 23, 23, 0.58);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.contact-form-glass .contact-form-field {
  background: rgba(5, 5, 5, 0.45);
  border-color: rgba(255, 255, 255, 0.1);
}
.contact-form-glass .contact-form-field:focus {
  border-color: rgba(255, 255, 255, 0.22);
  outline: none;
}
.contact-form-glass .contact-form-field:focus-visible {
  border-color: rgba(225, 60, 43, 0.45);
  box-shadow: 0 0 0 1px rgba(225, 60, 43, 0.2);
}

/* Hero — camadas (design_system_final-Cursor) */
.hero-parallax {
  perspective: 1200px;
}
/* perspective + filter no mesmo ancestral quebra clip no mobile WebKit */
@media (max-width: 767px) {
  #hero.hero-parallax {
    perspective: none;
  }
}

/* Tudo que o hero pinta fica dentro da caixa */
#hero.home-hero {
  background: #050505;
}

/* Hero — foto de fundo: enquadramento, contraste e leitura do conteúdo */
#hero .hero-bg-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050505;
}
/* Clip explícito da camada da foto */
.hero-bg-crop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050505;
}
/* <img> simples: evita bugs de pintura no mobile */
.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 32%;
  pointer-events: none;
  display: block;
}
@media (min-width: 768px) {
  .hero-bg-media {
    inset: -3%;
    width: 106%;
    height: 106%;
    object-position: center 34%;
  }
}
@media (min-width: 1280px) {
  .hero-bg-media {
    object-position: center 30%;
  }
}
.hero-bg-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Centro mais aberto para a foto respirar; bordas fecham suave */
  background: radial-gradient(
    ellipse 105% 92% at 50% 40%,
    transparent 0%,
    rgba(5, 5, 5, 0.18) 58%,
    rgba(5, 5, 5, 0.78) 100%
  );
}
@media (max-width: 767px) {
  .hero-bg-vignette {
    /* Elipse mais alta no retrato — mantém o miolo da foto mais legível com texto em baixo */
    background: radial-gradient(
      ellipse 98% 118% at 50% 36%,
      transparent 0%,
      rgba(5, 5, 5, 0.14) 52%,
      rgba(5, 5, 5, 0.72) 100%
    );
  }
}
.hero-bg-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Meio mais claro; base firme para legibilidade do bloco inferior */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.34) 0%,
    rgba(5, 5, 5, 0.1) 44%,
    rgba(5, 5, 5, 0.52) 65%,
    rgba(5, 5, 5, 0.92) 88%,
    #050505 100%
  );
}
.hero-bg-brand-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background: radial-gradient(ellipse 60% 55% at 10% 92%, rgba(225, 60, 43, 0.55), transparent 58%);
}
.hero-bg-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-media {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
}
.hero-layer {
  position: absolute;
  will-change: transform;
  transition: transform 0.25s var(--ease-out);
  pointer-events: none;
}
.hero-sweep {
  position: absolute;
  inset: -30% auto auto -40%;
  width: 45%;
  height: 180%;
  opacity: 0.11;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: home-sweep 8s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes home-sweep {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(160%) skewX(-18deg); opacity: 0; }
}
@keyframes home-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes home-orbit {
  0% { transform: rotate(0deg) translateX(14px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(14px) rotate(-360deg); }
}
@keyframes home-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.hero-home-float-a {
  animation: home-float 8s ease-in-out infinite;
}
.hero-home-float-b {
  animation: home-float 10s ease-in-out infinite;
}
.hero-frame {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-orbit-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -3.5px 0 0 -3.5px;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  animation: home-orbit 6s linear infinite;
}
.home-marquee-track {
  display: flex;
  width: max-content;
  animation: home-marquee 40s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-sweep,
  .hero-home-float-a,
  .hero-home-float-b,
  .hero-orbit-dot,
  .home-marquee-track {
    animation: none !important;
  }
}

/* Design System Nav — alinhado a design_system_final-Cursor (vidro + blur) */
#ds-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 5, 5, 0.75);
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0 1.5rem;
  height: 52px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (min-width: 768px) {
  #ds-nav {
    padding: 0 3rem;
  }
}
#ds-nav .ds-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
#ds-nav .ds-social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 0.28rem;
  border-radius: 4px;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
/* Instagram — gradiente oficial (aprox.) */
#ds-nav .ds-social-instagram {
  background: linear-gradient(
    135deg,
    #833ab4 0%,
    #fd1d1d 45%,
    #fcb045 100%
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
#ds-nav .ds-social-instagram:hover {
  filter: brightness(1.12);
}
/* Pinterest — vermelho da marca */
#ds-nav .ds-social-pinterest {
  background-color: #e60023;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
}
#ds-nav .ds-social-pinterest:hover {
  filter: brightness(1.1);
  background-color: #e60023;
}
#ds-nav .ds-social:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}
#ds-nav .ds-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.3s;
  line-height: 0;
  position: relative;
  z-index: 2;
}
#ds-nav .ds-logo:hover {
  opacity: 0.85;
}
#ds-nav .ds-logo-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(160px, 42vw);
  object-fit: contain;
  object-position: left center;
}
@media (min-width: 768px) {
  #ds-nav .ds-logo-img {
    height: 32px;
    max-width: 180px;
  }
}
#ds-nav .ds-links {
  gap: 2rem;
  overflow-x: auto;
  align-items: center;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
@media (min-width: 768px) {
  #ds-nav .ds-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: min(68vw, calc(100% - 20rem));
    z-index: 1;
  }
}
#ds-nav .ds-links::-webkit-scrollbar {
  display: none;
}
#ds-nav a.nav-desktop-link {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
#ds-nav a.nav-desktop-link:hover {
  color: #e5e5e5;
}
#ds-nav a.nav-desktop-link.is-active {
  color: #ffffff;
  border-bottom-color: #E13C2B;
}
#ds-nav #mobile-menu-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #e5e5e5;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  margin: -0.25rem;
  border-radius: 2px;
}
/* Só mobile: o CSS acima sobrescrevia o Tailwind md:hidden e deixava “Menu” no PC */
@media (max-width: 767px) {
  #ds-nav #mobile-menu-btn {
    display: flex;
  }
}

/* Âncoras — compensam altura fixa da #ds-nav (52px) */
section[id],
footer[id] {
  scroll-margin-top: 52px;
}

/* Marca Arquiseven — acento do site original */
.accent-border { border-color: #E13C2B; }
.accent-text { color: #E13C2B; }
.accent-bg { background-color: #E13C2B; }
.divider-accent {
  width: 60px;
  height: 3px;
  background-color: #E13C2B;
}

.ds-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #525252;
  border-top: 1px solid #1a1a1a;
  padding-top: 1rem;
  margin-bottom: 2rem;
}

/* Cards com reflexo suave (flashlight) — serviços / destaques */
.flashlight-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
}
.flashlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.07),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 0;
}
.flashlight-card:hover::before {
  opacity: 1;
}
.flashlight-card > * {
  position: relative;
  z-index: 1;
}

/* Foco visível — teclado e acessibilidade */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible {
  outline-color: rgba(255, 255, 255, 0.9);
}

/* Hero — legibilidade */
.hero-readability {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}
.hero-gradient {
  background: linear-gradient(
    to top,
    #050505 0%,
    rgba(5, 5, 5, 0.88) 35%,
    rgba(5, 5, 5, 0.45) 65%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

/* Menu mobile — animação suave */
#mobile-menu:not(.hidden) #mobile-menu-panel {
  animation: panel-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes panel-in {
  from { transform: translateX(100%); opacity: 0.9; }
  to { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #mobile-menu:not(.hidden) #mobile-menu-panel {
    animation: none;
  }
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Botão flutuante WhatsApp */
.whatsapp-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 45;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab {
    transition: none;
  }
  .whatsapp-fab:hover {
    transform: none;
  }
}

/* Cards de projeto — ritmo e foco */
.project-card {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .project-card {
    transition: none;
  }
}
.project-card:hover {
  transform: translateY(-4px);
}
.project-card .project-card-media {
  transition: box-shadow 0.45s ease, border-color 0.45s ease;
}
.project-card:hover .project-card-media,
.project-card:focus-visible .project-card-media {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  border-color: rgba(225, 60, 43, 0.35);
}
.project-card:focus-visible {
  outline: none;
}
.project-card .project-card-title {
  transition: color 0.3s ease;
}
.project-card:hover .project-card-title,
.project-card:focus-visible .project-card-title {
  color: #f5f5f5;
}
.project-card-meta {
  transition: border-color 0.45s ease;
}
.project-card:hover .project-card-meta,
.project-card:focus-visible .project-card-meta {
  border-color: rgba(115, 115, 115, 0.85);
}
.project-card:focus-visible .project-card-meta {
  border-bottom-color: rgba(225, 60, 43, 0.55);
}
.fade-in-section.is-visible.project-card-wrap:nth-child(1),
.fade-in-section.is-visible.project-card-wrap:nth-child(2) {
  transition-delay: 0ms;
}
.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;
}
