/* === Brevya Components === */

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(var(--border));
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1400px; margin: 0 auto; padding: 0 1rem;
}
@media (min-width: 1024px) { .nav-inner { padding: 0 2rem; } }
.nav-logo img { height: 62px; width: auto; }
:root:not(.dark) .nav-logo img { filter: invert(1); }
.nav-links { display: none; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: .875rem; color: hsl(var(--muted-foreground));
  transition: color .2s;
}
.nav-links a:hover { color: hsl(var(--foreground)); }
.nav-cta, .nav-links a.nav-cta {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  padding: .5rem 1.25rem; border-radius: 6px; font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover, .nav-links a.nav-cta:hover { background: hsl(var(--gold-light)); color: hsl(var(--primary-foreground)); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-icon-btn {
  width: 36px; height: 36px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground)); transition: color .2s, background .2s;
}
.nav-icon-btn:hover { color: hsl(var(--foreground)); background: hsl(var(--secondary)); }
.nav-toggle { display: flex; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
.mobile-menu {
  display: none;
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  padding: 0 1rem 1rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 0; font-size: .875rem;
  color: hsl(var(--muted-foreground));
}
.mobile-menu a:hover { color: hsl(var(--foreground)); }
.mobile-menu a.nav-cta {
  display: block; text-align: center; margin-top: .5rem;
  color: hsl(var(--primary-foreground));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 2rem; border-radius: 9999px;
  font-size: .875rem; font-weight: 600;
  transition: all .3s ease; cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
}
.btn-primary:hover {
  background: hsl(var(--gold-light));
  box-shadow: 0 0 30px hsl(56 18% 51% / 0.4);
}
.btn-outline {
  border: 1px solid hsl(56 18% 51% / 0.2);
  color: hsl(var(--foreground)); position: relative; overflow: hidden;
}
.btn-outline:hover { background: hsl(var(--secondary)); }
.btn-outline-moving {
  border: 1px solid hsl(56 18% 51% / 0.3);
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  position: relative;
}
.btn-outline-moving::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 70%, hsl(var(--primary)) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rotate-border 3s linear infinite;
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rotate-border { to { --angle: 360deg; } }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center;
  border-radius: 9999px; border: 1px solid hsl(56 18% 51% / 0.2);
  background: hsl(var(--card) / 0.5); backdrop-filter: blur(8px);
  padding: 6px 16px;
  font-size: .75rem; font-weight: 500;
  color: hsl(var(--primary));
  letter-spacing: .1em; text-transform: uppercase;
}

/* Section eyebrow (gold accent line + uppercase label) */
.eyebrow {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
}
.eyebrow::before {
  content: ''; height: 1px; max-width: 60px; flex: 1;
  background: hsl(var(--primary));
}
.eyebrow span {
  color: hsl(var(--primary)); font-weight: 600; font-size: .875rem;
  letter-spacing: .15em; text-transform: uppercase;
}

/* ---------- Card ---------- */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.card:hover { border-color: hsl(56 18% 51% / 0.3); }

/* Spotlight card — gradient follows cursor */
.spotlight-card {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 1.5rem;
  overflow: hidden;
  transition: border-color .3s;
}
.spotlight-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), hsl(56 18% 51% / 0.15), transparent 60%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.spotlight-card:hover { border-color: hsl(56 18% 51% / 0.3); }
.spotlight-card:hover::before { opacity: 1; }
.spotlight-card > * { position: relative; z-index: 1; }

/* ---------- Inputs ---------- */
.input, .textarea {
  width: 100%; padding: .75rem 1rem;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--input));
  border-radius: 8px;
  font-size: .875rem;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus {
  outline: none; border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(56 18% 51% / 0.15);
}
.textarea { resize: vertical; min-height: 120px; }
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-size: .75rem; font-weight: 600;
  margin-bottom: .375rem; color: hsl(var(--muted-foreground));
  text-transform: uppercase; letter-spacing: .05em;
}
.field-error { color: #ef4444; font-size: .75rem; margin-top: .25rem; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-tight { padding: 3rem 0; }
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
}
.section-sub {
  margin-top: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: clamp(.875rem, 1.5vw, 1rem);
  max-width: 42rem;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid hsl(var(--border)); padding: 2.5rem 0; }
.footer-grid {
  display: grid; gap: 1.5rem; align-items: start;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer h4 { font-size: .875rem; font-weight: 600; margin-bottom: .75rem; }
.footer-nav a { display: block; font-size: .875rem; color: hsl(var(--muted-foreground)); padding: .25rem 0; }
.footer-nav a:hover { color: hsl(var(--primary)); }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border));
  display: flex; flex-direction: column; gap: .5rem;
  font-size: .75rem; color: hsl(var(--muted-foreground));
  text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-logo img { height: 48px; width: auto; }
:root:not(.dark) .footer-logo img { filter: invert(1); }

/* ---------- Scroll to top ---------- */
.whatsapp-fab {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50;
  width: 48px; height: 48px; border-radius: 9999px;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-overlay {
  position: absolute; inset: 0;
  background: hsl(0 0% 0% / .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox-img-wrap {
  position: relative; z-index: 1;
  max-width: min(90vw, 1200px); max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 100%; max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 24px 80px hsl(0 0% 0% / .6);
  transform: scale(.92);
  transition: transform .3s cubic-bezier(0.4,0,.2,1);
  object-fit: contain;
}
.lightbox.is-open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: hsl(0 0% 100% / .1); border: 1px solid hsl(0 0% 100% / .2);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: hsl(0 0% 100% / .2); }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: hsl(0 0% 100% / .1); border: 1px solid hsl(0 0% 100% / .2);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.lightbox-arrow:hover { background: hsl(0 0% 100% / .22); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }
.lightbox-counter {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: .8rem; color: hsl(0 0% 100% / .6);
  background: hsl(0 0% 0% / .4); border-radius: 99px;
  padding: .25rem .75rem;
}
/* hint: imagens do carrossel são clicáveis (duplo clique) */
.case-slide img { cursor: zoom-in; }

.scroll-top {
  position: fixed; right: 1.5rem; bottom: 5rem; z-index: 50;
  width: 32px; height: 32px; border-radius: 9999px;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: scale(.8);
  transition: opacity .3s, transform .3s, background .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: scale(1); }
.scroll-top:hover { background: hsl(var(--gold-light)); }

/* Scrollbar hide */
.scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
