/* =========================================================
   Nikey Shopping das Plantas — folha de estilo principal
   Tokens, tipografia, cards em glass e motion extraídos de
   monolith-architecture.aura.build/design-system.html,
   trocando o accent de laranja (#ff4500) para vermelho/verde
   da identidade Nikey e mantendo o fundo escuro como base.
   ========================================================= */

:root {
  /* base escura (igual ao design-system: #0a0a0b / texto #e8e6e3) */
  --bg: #0a0a0b;
  --texto: #e8e6e3;
  --texto-suave: rgba(232, 230, 227, 0.55);
  --texto-fraco: rgba(232, 230, 227, 0.35);

  /* accent Nikey no lugar do laranja do original */
  --vermelho: #e63329;
  --vermelho-suave: rgba(230, 51, 41, 0.3);
  --vermelho-hover: #ff5245;
  --verde: #4c8c6b;

  --whatsapp: #25d366;

  /* bordas e superfícies em glass, valores do design-system (white/6%, white/3%) */
  --borda: rgba(255, 255, 255, 0.08);
  --borda-fraca: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-blur: blur(30px);

  --raio: 2px; /* o design-system usa cantos retos, quase sem raio */
  --raio-pill: 999px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* aproxima o easing do GSAP (power3/expo out) */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--texto);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.icon { width: 1em; height: 1em; flex-shrink: 0; }
.social-row .icon { width: 1.1rem; height: 1.1rem; }

::selection { background: var(--vermelho-suave); color: var(--texto); }
* { scrollbar-width: thin; scrollbar-color: var(--vermelho-suave) transparent; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--vermelho-suave); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.eyebrow {
  display: block;
  color: var(--vermelho);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.72rem;
  margin-bottom: 1rem;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  color: var(--texto);
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.03em;
}
.section-title strong, .section-title .accent { font-weight: 600; }
.section-title .accent { color: var(--vermelho); }
.section-title .accent-verde { color: var(--verde); }

.section-lead {
  color: var(--texto-suave);
  font-size: 0.92rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 420px;
}

/* Seções sem fundo próprio (transparent): o objeto 3D do hero agora fica
   fixo atrás da página inteira (ver .hero-canvas-wrap), então o "vazio" de
   cada seção deixa a cena aparecer por trás, igual ao design-system original
   — só os cards/painéis (glass ou foto) têm fundo próprio. */
section { padding: 6rem 0; background: transparent; }
section.tight { padding: 4rem 0; }
section + section { border-top: 1px solid var(--borda-fraca); }

/* ---------- Botões (retos, sem raio grande, como o CTA "Iniciar Projeto") ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--raio);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--vermelho); color: var(--bg); }
.btn-primary:hover { background: var(--vermelho-hover); box-shadow: 0 0 30px rgba(230, 51, 41, 0.25); }

.btn-whatsapp { background: var(--whatsapp); color: #04150a; }
.btn-whatsapp:hover { background: #34e077; box-shadow: 0 0 30px rgba(37, 211, 102, 0.3); }

.btn-outline { background: transparent; color: var(--texto); border-color: var(--borda); }
.btn-outline:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); }

.btn-ghost-light { background: rgba(255,255,255,0.06); color: var(--texto); border-color: rgba(255,255,255,0.18); backdrop-filter: var(--glass-blur); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }

.btn-sm { padding: 0.6rem 1.15rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--borda-fraca);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texto-suave);
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--texto); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--vermelho);
}

.header-cta { display: flex; align-items: center; gap: 0.9rem; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--texto);
}
.header-phone .icon { color: var(--verde); width: 1.1rem; height: 1.1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--texto); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: transparent;
}
/* Fixo na tela inteira (não só no hero): o objeto 3D "nunca sai" enquanto
   você rola a página, como o #three-canvas do design-system original.
   z-index negativo pra ficar atrás de todo o conteúdo normal, inclusive
   de seções que vêm bem depois do hero no documento. */
.hero-canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10,10,11,0.75) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 700px; padding: 4rem 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.375rem 1.1rem;
  border: 1px solid var(--vermelho-suave);
  border-radius: var(--raio-pill);
  margin-bottom: 1.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(232,230,227,0.75);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--vermelho);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.hero h1 strong { font-weight: 600; }
.hero h1 .accent { color: var(--vermelho); font-weight: 600; }
.hero p {
  margin-top: 1.5rem;
  max-width: 460px;
  color: var(--texto-suave);
  line-height: 1.75;
  font-size: 0.95rem;
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 2.75rem; }
.hero-tags span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-fraco); font-weight: 600; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--vermelho-suave), transparent);
  animation: scrollPulse 2s infinite;
}

/* ---------- Categorias (bento com fotos, como o .gallery-item do design-system) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 280px;
  gap: 1.25rem;
  margin-top: 3rem;
}
.cat-card {
  position: relative;
  grid-column: span 2;
  border-radius: var(--raio);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  border: 1px solid var(--borda-fraca);
  transition: border-color 0.5s var(--ease-out);
}
.cat-card:hover { border-color: var(--vermelho-suave); }
.cat-card:nth-child(1), .cat-card:nth-child(4) { grid-column: span 4; }
.cat-card:nth-child(2), .cat-card:nth-child(3), .cat-card:nth-child(5) { grid-column: span 2; }
.cat-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.cat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0) 35%, rgba(10,10,11,0.92) 100%);
  z-index: 1;
  transition: background 0.5s ease;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card:hover::before { background: linear-gradient(180deg, rgba(230,51,41,0.12) 0%, rgba(10,10,11,0.92) 100%); }
.cat-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem;
  z-index: 2;
}
.cat-card-body h3 { font-family: 'Space Grotesk', sans-serif; color: #fff; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.cat-card-body p { margin: 0.4rem 0 0; font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.5; font-weight: 300; }

.section-cta { text-align: center; margin-top: 2.75rem; }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-media { position: relative; border-radius: var(--raio); overflow: hidden; border: 1px solid var(--borda-fraca); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.about-stats .stat { border-top: 2px solid var(--verde); padding-top: 0.9rem; }
.about-stats .stat strong { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 1.5rem; color: var(--texto); letter-spacing: -0.02em; }
.about-stats .stat span { font-size: 0.75rem; color: var(--texto-fraco); }
.about-text p { color: var(--texto-suave); line-height: 1.8; margin-top: 1.4rem; font-size: 0.92rem; font-weight: 300; }

/* ---------- Localização ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: stretch;
}
.location-media { border-radius: var(--raio); overflow: hidden; border: 1px solid var(--borda-fraca); }
.location-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.location-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--borda-fraca);
  border-radius: var(--raio);
}
.info-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-row .icon { color: var(--verde); width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; flex-shrink: 0; }
.info-row h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--texto-fraco); font-weight: 600; margin-bottom: 0.35rem; font-family: 'Inter', sans-serif; }
.info-row p { margin: 0; color: var(--texto-suave); font-size: 0.92rem; line-height: 1.6; font-weight: 300; }
.map-embed { margin-top: 3rem; border-radius: var(--raio); overflow: hidden; border: 1px solid var(--borda-fraca); filter: grayscale(0.4) invert(0.92) contrast(0.9); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; margin-top: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.field label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--texto-fraco); margin-bottom: 0.5rem; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--borda);
  background: rgba(255,255,255,0.03);
  border-radius: var(--raio);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--texto);
  outline: none;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--texto-fraco); }
.field input:focus, .field textarea:focus { border-color: var(--vermelho-suave); background: rgba(255,255,255,0.05); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-note { font-size: 0.75rem; color: var(--texto-fraco); }

.contact-side {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--borda-fraca);
  border-radius: var(--raio);
}
.contact-side h3 { color: var(--texto); font-size: 1.4rem; font-weight: 500; }
.contact-side > div > p { color: var(--texto-suave); line-height: 1.7; margin-top: 0.75rem; font-size: 0.9rem; font-weight: 300; }
.social-row { display: flex; gap: 0.75rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--borda);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.social-row a:hover { background: var(--vermelho); border-color: var(--vermelho); }

/* ---------- Footer ---------- */
.site-footer {
  background: transparent;
  color: var(--texto-fraco);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--borda-fraca);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--borda-fraca);
}
.footer-brand img { height: 38px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; font-weight: 300; }
.footer-col h4 { color: var(--texto); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 1rem; font-family: 'Inter', sans-serif; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.85rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--texto); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.75rem;
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #04150a;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Reveal on scroll (equivalente ao gsap.from opacity/y/stagger) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Página de galeria ---------- */
.gallery-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: var(--bg);
  text-align: center;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--raio);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--borda-fraca);
  position: relative;
  transition: border-color 0.4s var(--ease-out);
}
.gallery-grid figure:hover { border-color: var(--vermelho-suave); }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.gallery-grid figure:hover img { transform: scale(1.08); }

.gallery-loadmore { text-align: center; margin-top: 3rem; }
.gallery-status { text-align: center; color: var(--texto-fraco); font-size: 0.85rem; margin-top: 1rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6,6,7,0.96);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: var(--raio); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--borda);
  color: var(--texto);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.12); border-color: var(--vermelho-suave); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: var(--texto-suave);
  font-size: 0.8rem;
  max-width: 80vw;
  text-align: center;
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .nav-links, .header-phone span { display: none; }
  .nav-toggle { display: flex; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .cat-card, .cat-card:nth-child(1), .cat-card:nth-child(4) { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  section { padding: 4rem 0; }
  .contact-side, .location-card { padding: 1.75rem; }
  .whatsapp-float { right: 1rem; bottom: 1rem; width: 54px; height: 54px; font-size: 1.5rem; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.05rem; }
}

/* ---------- Menu mobile ---------- */
.mobile-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: rgba(10,10,11,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--borda-fraca);
  padding: 1.25rem 1.5rem 1.75rem;
  display: none;
  flex-direction: column;
  gap: 1.1rem;
  z-index: 99;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { font-size: 0.95rem; font-weight: 500; color: var(--texto); }
.mobile-nav .btn { align-self: flex-start; margin-top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-badge .dot, .hero-scroll-indicator { animation: none; }
}
