/* ==========================================================================
   components.css
   - Botões, cards, navegação, badges
   - Menu mobile
   - Portfólio hover
   - Floating WhatsApp
   - Lightbox (Portfólio)
   ========================================================================== */

/* ==========================================================================
   Nav links
   ========================================================================== */

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  transition: color 160ms ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 5px;
  height: 2px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
  border-radius: 999px;
  opacity: 0.95;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.mobile-link {
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 160ms ease, border-color 160ms ease;
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Menu button (hamburger)
   ========================================================================== */

.menu-btn {
  display: none; /* desktop off */
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-btn-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1023px) {
  .menu-btn {
    display: inline-flex;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease,
    color 160ms ease, box-shadow 160ms ease;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand-gold);
  color: #121212;
  box-shadow: 0 10px 24px rgba(201, 162, 90, 0.22);
}

.btn-primary:hover {
  background: var(--brand-gold-2);
}

.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.30);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* Botões em fundo claro */
.services .btn-secondary,
.testimonials .btn-secondary,
.highlights .btn-secondary,
.about .btn-secondary,
.portfolio .btn-secondary {
  color: var(--brand-green);
  border-color: rgba(11, 31, 24, 0.22);
}

.services .btn-secondary:hover,
.testimonials .btn-secondary:hover,
.highlights .btn-secondary:hover,
.about .btn-secondary:hover,
.portfolio .btn-secondary:hover {
  border-color: rgba(11, 31, 24, 0.32);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 18px 18px;
}

.card-title {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
  font-size: 16px;
}

.card-text {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

.card-service .list {
  margin-top: 10px;
}

/* Cards em fundo escuro (steps/contact) */
.steps .card,
.contact .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.steps .card-title,
.contact .card-title {
  color: rgba(255, 255, 255, 0.92);
}

.steps .card-text,
.contact .card-text,
.steps .list,
.contact .list {
  color: rgba(255, 255, 255, 0.80);
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(11, 31, 24, 0.16);
  background: rgba(11, 31, 24, 0.04);
  color: var(--brand-green);
}

/* ==========================================================================
   Info bar (services)
   ========================================================================== */

.info-bar {
  background: rgba(11, 31, 24, 0.04);
  border: 1px solid rgba(11, 31, 24, 0.10);
  border-radius: calc(var(--radius) + 6px);
  padding: 14px;
}

@media (max-width: 1023px) {
  .info-bar {
    padding: 14px;
  }
}

.info-item + .info-item {
  border-left: 1px solid rgba(11, 31, 24, 0.10);
  padding-left: 12px;
}

@media (max-width: 1023px) {
  .info-item + .info-item {
    border-left: none;
    padding-left: 0;
  }
}

/* ==========================================================================
   Hero media tweaks
   ========================================================================== */

.hero-photo {
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

/* ==========================================================================
   Portfolio hover
   ========================================================================== */

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(11, 31, 24, 0.10);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.portfolio-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transform: scale(1);
  transition: transform 220ms ease;
}

.portfolio-item:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   Contact aside box
   ========================================================================== */

.aside-box {
  width: 100%;
  max-width: 420px;
  border-radius: calc(var(--radius) + 6px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.aside-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.aside-text {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 14px;
  line-height: 1.55;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-credit a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 90, 0.55);
  text-underline-offset: 3px;
}

.footer-credit a:hover {
  color: #fff;
  text-decoration-color: rgba(201, 162, 90, 0.85);
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */

.float-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--brand-gold);
  color: #111;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.10);
  transition: transform 140ms ease, background 160ms ease;
}

.float-whatsapp:hover {
  background: var(--brand-gold-2);
  transform: translateY(-1px);
}

@media (min-width: 1024px) {
  /* Em desktop pode ser mais discreto ou até ocultar */
  .float-whatsapp {
    bottom: 22px;
    right: 22px;
  }
}

/* ==========================================================================
   Lightbox (Portfólio)
   - Adicionado para funcionar com js/lightbox.js
   - Sem quebrar nada do arquivo
   ========================================================================== */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.lightbox-overlay.is-open {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.lightbox-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lightbox-img {
  max-width: min(980px, 92vw);
  max-height: 86vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  background: #111;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.is-lightbox-open {
  overflow: hidden;
}
