* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: 'Manrope', sans-serif;
  color: #16241B;
  background: #E2D8BD;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  max-width: 100%;
}
img { display: block; max-width: 100%; }
input, textarea, button { font-family: inherit; }
::selection { background: rgba(194, 162, 78, 0.28); }

@keyframes vnspin { to { transform: rotate(360deg); } }
@keyframes vnup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Inputs pick up the brand accent on focus (driven by the --accent CSS var) */
input:focus, textarea:focus { border-color: var(--accent, #C2A24E) !important; }

/* ---- Responsive layout helpers (inline styles stay verbatim for fidelity) ---- */
.vn-about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.vn-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(234, 231, 218, 0.16);
}
.vn-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 135px;
  gap: 14px;
}
.vn-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.vn-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Two inputs (e-mail / telefone) side by side in the contact form */
.vn-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px) {
  .vn-about-grid { grid-template-columns: 1fr; gap: 44px; }
  .vn-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .vn-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  /* On a single column the sticky text column would overlap the form as you
     scroll — pin it back into normal flow. */
  .vn-contact-grid > div:first-child { position: static !important; top: auto !important; }
}

@media (max-width: 760px) {
  .vn-nav-links { display: none !important; }
  .vn-services-grid { grid-template-columns: 1fr; }
  .vn-gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Tighter padding so sections don't feel oversized on phones */
  nav > div { padding-left: 20px !important; padding-right: 20px !important; }
  #sobre, #servicos, #galeria, #faq, #contato {
    padding-left: 22px !important;
    padding-right: 22px !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
  footer { padding-left: 22px !important; padding-right: 22px !important; }
}

@media (max-width: 520px) {
  .vn-form-row { grid-template-columns: 1fr; }
  /* The card has 40px padding — too much on small screens */
  .vn-contact-grid > div:last-child { padding: 26px !important; }
  #inicio { min-height: 600px !important; }
}

/* Hover states (replace the React <Hover> wrapper) */
.vn-hover { transition: all .3s; }
.vn-gallery-item { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.vn-gallery-item:hover { transform: scale(1.025); }
.vn-modal-arrow:hover, .vn-modal-close:hover { background: rgba(244,241,232,0.3) !important; }
.vn-footer-link:hover { color: #F4F1E8 !important; }
.vn-faq-clear:hover { background: rgba(20,48,31,0.08) !important; }
.vn-submit:hover { background: #0C1C13 !important; }
