/* Base */
:root {
  --bg: #0c0d0f;
  --bg-elev: #121317;
  --text: #e6e7ea;
  --muted: #b5b8bf;
  --accent: #d0d2d6;
  --border: #22242a;
  --primary: #2f74ff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0a0b0d 0%, #0c0d0f 50%, #0f1013 100%);
}

html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 13, 15, 0.85);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { height: 72px; width: auto; filter: brightness(0.95) contrast(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-weight: 700; letter-spacing: 0.2px; }
.brand-text span { color: var(--muted); font-size: 0.9rem; }

.nav { display: flex; gap: 18px; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { background: var(--bg-elev); }

.menu-toggle { display: none; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); border-radius: 8px; padding: 8px 12px; }
.menu-toggle:hover { background: #16171b; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 10% -40%, rgba(47,116,255,0.12), transparent 60%),
              radial-gradient(800px 400px at 90% 10%, rgba(255,255,255,0.06), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { position: relative; z-index: 2; padding: 96px 0; }
.hero-copy h1 { font-size: clamp(1.8rem, 3.6vw, 3rem); margin: 0 0 8px; }
.hero-copy p { color: var(--muted); font-size: 1.05rem; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.primary { background: var(--primary); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--bg-elev); }

/* Sections */
.section { padding: 42px 0; scroll-margin-top: 96px; }
.section h2 { font-size: 1.6rem; margin: 0 0 18px; }
.section h3 { font-size: 1.2rem; margin: 28px 0 12px; color: var(--accent); }

/* Perfil */
.perfil-text {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  color: var(--text);
  line-height: 1.6;
}

/* Gallery */
.grid.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0a0b0d;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.gallery img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

/* Contato */
.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}
.contact-info {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.contact-info a { color: #fff; }
.map-wrap iframe { border-radius: 12px; border: 1px solid var(--border); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 840px) {
  .brand-text { display: none; }
  .logo { height: 60px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--bg-elev); border-bottom: 1px solid var(--border); padding: 12px; flex-direction: column; gap: 8px; z-index: 1200; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .contact-card { grid-template-columns: 1fr; }
}
@media (min-width: 841px) {
  .menu-toggle { display: none !important; }
  .nav { display: flex !important; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: grid; place-items: center; z-index: 3000; }
.lightbox[hidden] { display: none; }
.lb-image { max-width: 92vw; max-height: 82vh; border-radius: 8px; border: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox button { position: absolute; border: 1px solid var(--border); background: rgba(18,19,23,0.8); color: var(--text); backdrop-filter: blur(4px); cursor: pointer; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); padding: 10px 12px; border-radius: 10px; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-close { top: 18px; right: 18px; padding: 8px 10px; border-radius: 10px; }
.lightbox button:hover { background: rgba(28,29,33,0.9); }
/* Hero slider */
.hero { position: relative; }
.hero.hero-slider { height: min(70vh, 680px); min-height: 420px; overflow: hidden; }
.hero.hero-slider .slider { position: absolute; inset: 0; }
.hero.hero-slider .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms ease; }
.hero.hero-slider .slide.active { opacity: 1; }
.hero.hero-slider .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.7)), radial-gradient(1200px 500px at 10% -40%, rgba(47,116,255,0.12), transparent 60%); }
.back-to-top { position: fixed; right: 24px; bottom: 24px; display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(24,25,29,0.95), rgba(14,15,18,0.95)); color: #fff; z-index: 2500; box-shadow: 0 8px 26px rgba(0,0,0,0.45); cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; display: grid; place-items: center; }
.back-to-top.show { display: grid; }
.back-to-top:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,0.5); }
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top:focus { outline: none; box-shadow: 0 0 0 3px rgba(47,116,255,0.35), 0 10px 32px rgba(0,0,0,0.5); }