/* ══════════════════════════════════════
   INOVATA — Móveis Sob Medida
   style.css
══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0B0530;
  --gold: #FF9900;
  --gold-light: #FFB84D;
  --cream: #FAF7F2;
  --warm-gray: #E8E2D9;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --text-dark: #1a1628;
  --text-mid: #5a5368;
}

html { scroll-behavior: smooth; }
:target { scroll-margin-top: 80px; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text-dark); overflow-x: hidden; }

/* ── REVEAL ── */
[data-reveal] { opacity: 0; transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1); }
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].revealed { opacity: 1; transform: none !important; }
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 4rem; transition: background 0.4s, padding 0.4s, box-shadow 0.4s; }
nav.scrolled { background: rgba(11,5,48,0.97); backdrop-filter: blur(12px); padding: 0.9rem 4rem; box-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.25s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 0.3s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 1.5px; background: white; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ── */
#hero { height: 100vh; min-height: 640px; background: var(--navy); display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(255,153,0,0.08) 0%, transparent 70%), radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255,153,0,0.05) 0%, transparent 60%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,153,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,153,0,0.04) 1px, transparent 1px); background-size: 60px 60px; }
.hero-line { position: absolute; top: 0; left: 50%; width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(255,153,0,0.3), transparent); animation: pulse-line 4s ease-in-out infinite; }
@keyframes pulse-line { 0%,100%{opacity:.3} 50%{opacity:.8} }
.hero-content { position: relative; z-index: 2; padding: 0 4rem 7rem; max-width: 780px; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; opacity: 0; animation: fade-in 0.8s 0.3s cubic-bezier(0.22,1,0.36,1) forwards; }
.hero-tag::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(3.5rem, 7vw, 6.5rem); font-weight: 300; line-height: 0.95; color: white; margin-bottom: 2rem; opacity: 0; animation: slide-up 0.9s 0.5s cubic-bezier(0.22,1,0.36,1) forwards; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-subtitle { color: rgba(255,255,255,0.5); font-size: 1rem; line-height: 1.7; max-width: 460px; margin-bottom: 2.5rem; opacity: 0; animation: slide-up 0.9s 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: slide-up 0.9s 0.9s cubic-bezier(0.22,1,0.36,1) forwards; }
@keyframes fade-in { to { opacity: 1; } }
@keyframes slide-up { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }

/* Hero WhatsApp button */
.btn-whatsapp-hero {
  background: var(--whatsapp); color: white;
  padding: 0.9rem 2rem; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: background 0.25s, transform 0.2s;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
  animation: slide-up 0.9s 0.9s cubic-bezier(0.22,1,0.36,1) forwards, wa-pulse 2.5s 2s ease-in-out infinite;
}
.btn-whatsapp-hero svg { width: 18px; height: 18px; fill: white; flex-shrink: 0; }
.btn-whatsapp-hero:hover { background: #1ebe5d; transform: translateY(-2px); }
@keyframes wa-pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0.4); } 50%{ box-shadow: 0 0 0 10px rgba(37,211,102,0); } }

.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: white; padding: 0.9rem 2.2rem; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; display: inline-block; transition: border-color 0.25s, color 0.25s; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.hero-scroll { position: absolute; bottom: 2.5rem; right: 4rem; z-index: 2; writing-mode: vertical-rl; font-size: 0.68rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.3); text-transform: uppercase; display: flex; align-items: center; gap: 0.8rem; opacity: 0; animation: fade-in 1s 1.2s forwards; }
.hero-scroll::after { content: ''; display: block; width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(255,153,0,0.5), transparent); animation: scroll-fade 2s ease-in-out infinite; }
@keyframes scroll-fade { 0%,100%{opacity:.4;transform:scaleY(.7)} 50%{opacity:1;transform:scaleY(1)} }

/* ── STATS ── */
.stats-band { background: var(--navy); border-top: 1px solid rgba(255,153,0,0.15); display: flex; justify-content: center; }
.stats-inner { display: flex; align-items: stretch; max-width: 900px; width: 100%; }
.stat-item { flex: 1; padding: 2.5rem 2rem; text-align: center; border-right: 1px solid rgba(255,153,0,0.1); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.4); }

/* ── ABOUT ── */
#sobre { padding: 8rem 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.section-tag { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.7rem; }
.section-tag::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 300; line-height: 1.1; color: var(--navy); margin-bottom: 1.5rem; }
.section-title em { font-style: italic; color: var(--gold); }
.section-body { color: var(--text-mid); line-height: 1.85; font-size: 0.97rem; }
.section-body p + p { margin-top: 1rem; }
.cards-stack { display: flex; flex-direction: column; gap: 1.2rem; }
.about-card { background: var(--navy); padding: 3rem; position: relative; }
.about-card::before { content: ''; position: absolute; top: -12px; left: -12px; right: 12px; bottom: 12px; border: 1px solid var(--gold); opacity: 0.25; pointer-events: none; }
.about-card-icon { width: 48px; height: 48px; background: rgba(255,153,0,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.about-card-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.about-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: white; margin-bottom: 0.7rem; }
.about-card p { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.7; }

/* ── VALUES ── */
#valores { background: var(--navy); padding: 8rem 4rem; }
.values-inner { max-width: 1200px; margin: 0 auto; }
.values-header { text-align: center; margin-bottom: 5rem; }
.values-header .section-tag { justify-content: center; }
.values-header .section-tag::before { display: none; }
.values-header .section-title { color: white; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5px; background: rgba(255,153,0,0.1); }
.value-card { background: var(--navy); padding: 3rem 2.5rem; transition: background 0.3s; }
.value-card:hover { background: rgba(255,153,0,0.05); }
.value-num { font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 300; color: rgba(255,153,0,0.15); line-height: 1; margin-bottom: 1.5rem; }
.value-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; color: white; margin-bottom: 0.8rem; }
.value-card p { color: rgba(255,255,255,0.45); font-size: 0.88rem; line-height: 1.75; }

/* ── GALLERY ── */
#galeria { padding: 8rem 4rem; background: var(--cream); }
.gallery-inner { max-width: 1200px; margin: 0 auto; }
.gallery-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; }
.gallery-header a { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; transition: gap 0.2s; }
.gallery-header a:hover { gap: 0.9rem; }
.gallery-header a::after { content: '→'; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 260px 260px; gap: 10px; }
.gallery-item { overflow: hidden; position: relative; cursor: pointer; background: var(--warm-gray); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,5,48,0.75), transparent 55%); opacity: 0; transition: opacity 0.35s; display: flex; align-items: flex-end; padding: 1.2rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.9); }

/* ── LIGHTBOX ── */
.lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.93); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-img-wrap { position: relative; max-width: 90vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-img-wrap img { max-width: 90vw; max-height: 80vh; object-fit: contain; display: block; border: 1px solid rgba(255,153,0,0.15); }
.lightbox-caption { margin-top: 1rem; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.lightbox-close { position: fixed; top: 1.5rem; right: 2rem; background: none; border: none; color: white; font-size: 2.5rem; cursor: pointer; line-height: 1; opacity: 0.6; transition: opacity 0.2s, color 0.2s; z-index: 1000; }
.lightbox-close:hover { opacity: 1; color: var(--gold); }
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,153,0,0.15); border: 1px solid rgba(255,153,0,0.3); color: var(--gold); font-size: 1.5rem; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; z-index: 1000; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,153,0,0.3); }

/* ── CONTACT ── */
#contato { padding: 8rem 4rem; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contact-intro { color: var(--text-mid); font-size: 0.97rem; line-height: 1.75; margin-bottom: 2rem; margin-top: 0.5rem; }
.contact-info-list { display: flex; flex-direction: column; }
.contact-item { display: flex; align-items: center; gap: 1.2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--warm-gray); text-decoration: none; color: inherit; transition: color 0.2s; }
.contact-item:hover .contact-label { color: var(--gold); }
.contact-icon { width: 40px; height: 40px; flex-shrink: 0; background: var(--navy); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.contact-item:hover .contact-icon { background: var(--gold); }
.contact-item:hover .contact-icon svg { stroke: var(--navy); }
.contact-icon svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.8; transition: stroke 0.2s; }
.contact-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mid); margin-bottom: 0.1rem; }
.contact-value { font-size: 0.97rem; color: var(--text-dark); }

/* ── WHATSAPP CTA BLOCK ── */
.whatsapp-cta-block {
  background: var(--navy);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--whatsapp);
}
.whatsapp-cta-block::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(37,211,102,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.whatsapp-cta-icon {
  width: 64px; height: 64px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 8px rgba(37,211,102,0.12);
  animation: icon-pulse 2.5s ease-in-out infinite;
}
@keyframes icon-pulse { 0%,100%{ box-shadow: 0 0 0 8px rgba(37,211,102,0.12); } 50%{ box-shadow: 0 0 0 16px rgba(37,211,102,0.04); } }
.whatsapp-cta-icon svg { width: 32px; height: 32px; fill: white; }

.whatsapp-cta-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 300; color: white;
  line-height: 1.15; margin-bottom: 1rem;
}
.whatsapp-cta-block p {
  color: rgba(255,255,255,0.5);
  font-size: 0.92rem; line-height: 1.75;
  margin-bottom: 1.8rem;
}
.whatsapp-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 300; color: var(--whatsapp);
  margin-bottom: 2rem; letter-spacing: 0.02em;
}
.whatsapp-number span {
  font-size: 1rem; color: rgba(255,255,255,0.35);
  margin-right: 0.3rem; font-family: 'DM Sans', sans-serif;
}
.btn-whatsapp-main {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  background: var(--whatsapp); color: white;
  padding: 1.1rem 2rem; font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  width: 100%; border-radius: 2px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(37,211,102,0.3);
}
.btn-whatsapp-main svg { width: 20px; height: 20px; fill: white; flex-shrink: 0; }
.btn-whatsapp-main:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,0.45); }
.whatsapp-hint {
  display: block; text-align: center;
  margin-top: 0.8rem;
  font-size: 0.72rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25); text-transform: uppercase;
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 200; width: 56px; height: 56px; background: var(--whatsapp); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: transform 0.25s, box-shadow 0.25s; animation: float-in 0.6s 1.5s cubic-bezier(0.22,1,0.36,1) both; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }
@keyframes float-in { from { opacity:0; transform:scale(0.5); } to { opacity:1; transform:scale(1); } }
.whatsapp-tooltip { position: absolute; right: 68px; background: var(--navy); color: white; font-size: 0.78rem; white-space: nowrap; padding: 0.4rem 0.8rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.whatsapp-tooltip::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right: none; border-left-color: var(--navy); }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ── FOOTER ── */
footer { background: var(--navy); border-top: 1px solid rgba(255,153,0,0.12); padding: 2.5rem 4rem; display: flex; align-items: center; justify-content: space-between; }
.footer-logo img { height: 36px; width: auto; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-back { width: 36px; height: 36px; border: 1px solid rgba(255,153,0,0.3); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.footer-back:hover { background: var(--gold); border-color: var(--gold); }
.footer-back:hover svg { stroke: var(--navy); }
.footer-back svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(11,5,48,0.98); padding: 1.5rem 2rem; gap: 1.5rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-content { padding: 0 1.5rem 5rem; }
  .hero-scroll { right: 1.5rem; }
  .stats-inner { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,153,0,0.1); padding: 1.5rem; }
  #sobre { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 1.5rem; }
  #valores { padding: 5rem 1.5rem; }
  .values-grid { grid-template-columns: 1fr; }
  #galeria { padding: 5rem 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: 200px 180px 180px; }
  .gallery-item:first-child { grid-column: span 2; height: 220px; }
  .gallery-item:nth-child(4) { grid-column: span 1; }
  .gallery-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  #contato { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 1.5rem; }
  footer { padding: 2rem 1.5rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .whatsapp-float { bottom: 1.5rem; right: 1.5rem; }
}