/* ============================================
   ARCAVE — Shared Styles
   Used across all pages
   ============================================ */

:root {
  --bg: #f0f0f2;
  --bg-alt: #ffffff;
  --bg-dark: #1c1c1e;
  --ink: #0a0a0a;
  --ink-inverse: #ffffff;
  --muted: #5a5a5a;
  --muted-light: #b0b0b0;
  --accent: #2b4b9b;
  --accent-light: #4a6cc4;
  --line: rgba(0,0,0,0.1);
  --line-dark: rgba(255,255,255,0.1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============ HEADER ============ */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(240, 240, 242, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  padding: 0.85rem 1.5rem;
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
  gap: 2.2rem;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  opacity: 1;
  color: var(--accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: var(--ink-inverse);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--ink); color: var(--ink-inverse); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-right: 0.5rem;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 6rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu a.active { color: var(--accent); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* ============ TYPOGRAPHY HELPERS ============ */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  max-width: 850px;
}

.section-title em { font-style: normal; color: var(--accent); font-weight: 400; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.3s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-dark { background: var(--ink); color: var(--ink-inverse); }
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(43,75,155,0.25); }

.btn-accent { background: var(--accent); color: var(--ink-inverse); }
.btn-accent:hover { background: var(--ink); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ink-inverse); }

.btn-ghost-light { background: transparent; color: var(--ink-inverse); border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { border-color: var(--ink-inverse); background: rgba(255,255,255,0.08); }

/* ============ PAGE INTRO BANNER (used on inner pages) ============ */
.page-intro {
  padding: 9rem 1.5rem 5rem;
  text-align: center;
}

.page-intro h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.page-intro h1 em { font-style: normal; color: var(--accent); font-weight: 700; }

.page-intro p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ============ FOOTER ============ */
footer.site-footer {
  background: #1c1c1e;
  color: var(--ink-inverse);
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand p {
  color: var(--muted-light);
  font-size: 0.9rem;
  max-width: 320px;
  margin-top: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.3rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--muted-light);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--accent-light); border-color: var(--accent-light); }
.footer-social svg { width: 17px; height: 17px; }

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  color: var(--muted-light);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted-light);
}

/* ============ FINAL CTA (reused) ============ */
.cta-final {
  position: relative;
  min-height: 60vh;
  padding: 6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.cta-bg { position: absolute; inset: 0; z-index: 1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.55), rgba(10,10,10,0.85));
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--ink-inverse);
}

.cta-content h2 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.cta-content h2 em { font-style: normal; color: var(--accent-light); font-weight: 400; }

.cta-content p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.reveal-stagger.visible > *:nth-child(n+9) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ FLOATING WHATSAPP ============ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37,211,102,0.4);
  transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
