:root {
  --bg0: #050507;
  --bg1: #121214;
  --bg-sidebar: #050507;
  --accent: #38bdf8;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(10, 10, 12, 0.6);
  --glass-solid: rgba(15, 15, 20, 0.8);
  --radius: 20px;
  --max: 1200px;
  --pad: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --section-gap: 160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg0);
  background-image: radial-gradient(circle at 50% 0%, var(--bg1) 0%, var(--bg0) 70%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 2 * var(--pad))); margin-inline: auto; }

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-left, .nav-right { display: flex; align-items: center; flex: 1; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; gap: 24px; }
.nav-center { flex: 1; display: flex; justify-content: center; }

.brand-logo { height: 32px; width: auto; }

.burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.burger span {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s var(--ease);
}

.btn-nav {
  background: var(--text);
  color: var(--bg0);
  border: 1px solid var(--text);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.btn-nav:hover {
  background: transparent;
  color: var(--text);
}

.social-links { display: flex; gap: 16px; align-items: center; }
.social-icon svg { width: 20px; height: 20px; fill: var(--text); transition: fill 0.3s ease; }
.social-icon:hover svg { fill: var(--muted); }

/* SIDEBAR MENU */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
  z-index: 1999; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }

.sidebar {
  position: fixed; top: 0; left: -100%; width: 100%; max-width: 450px; height: 100dvh;
  background: var(--bg-sidebar); border-right: 1px solid var(--border);
  z-index: 2000; transition: left 0.5s var(--ease); display: flex; flex-direction: column;
  padding: 40px 40px 10vh 40px; box-sizing: border-box; overflow-y: auto;
}
.sidebar.active { left: 0; }

.sidebar-header { display: flex; justify-content: flex-end; }
.btn-close { background: none; border: none; cursor: pointer; color: var(--text); padding: 10px; }
.btn-close svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 1.5; }

.sidebar-title {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  display: flex; flex-direction: column; gap: 24px; flex: 1; margin-top: 40px;
}
.sidebar-nav a {
  font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text); font-weight: 500; transition: color 0.3s ease;
}
.sidebar-nav a:hover { color: var(--muted); }

.sidebar-footer {
  margin-top: auto; padding-bottom: 24px; display: flex; gap: 24px; align-items: flex-start; flex-shrink: 0;
}
.sidebar-footer-logo svg { width: 48px; height: 48px; fill: none; stroke: var(--text); stroke-width: 1.5; }

.sidebar-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--text); }
.sidebar-contact-item { display: flex; align-items: center; gap: 12px; }
.sidebar-contact-item svg { width: 16px; height: 16px; fill: none; stroke: var(--text); stroke-width: 2; flex-shrink: 0; }

/* FOOTER */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg0);
  margin-top: auto;
}
.footer__inner {
  display: grid;
  gap: 60px;
}
.footer-col-title {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--text);
}
.footer-contact-list {
  display: flex; flex-direction: column; gap: 16px;
}
.footer-contact-item {
  display: flex; flex-direction: column; gap: 4px;
}
.footer-contact-label {
  font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
}
.footer-contact-label svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.footer-contact-value { font-size: 15px; color: var(--text); }

.footer__links { display: flex; flex-direction: column; gap: 16px; }
.footer__link { color: var(--text); font-size: 15px; transition: color 0.3s var(--ease); }
.footer__link:hover { color: var(--muted); }

.footer-social-grid {
  display: flex; flex-direction: column; gap: 16px;
}
.footer-social-link {
  display: flex; align-items: center; gap: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #1a1a1a;
  justify-content: center;
  transition: background 0.3s ease;
}
.footer-social-link:hover { background: #333; }
.footer-social-link svg { width: 18px; height: 18px; fill: var(--text); }
.brand-logo {
  height: 64px;
  width: auto;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  transition: color 0.3s var(--ease);
}

.footer-bottom-links a:hover {
  color: var(--text);
}

.fab-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  left: auto;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}

.fab-wa:hover {
  transform: translateY(-4px) scale(1.05);
  background-color: #20b858;
}

.fab-wa svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; height: 70px; }
  .btn-nav { display: none; }
  .nav-right { gap: 16px; }
  .sidebar { padding: 30px 20px; }
}
