/* =========================================================
   HERO Buttons — Variant #3 (Pill + underline glow)
   Для сайту advocat-petruk.com.ua
   ---------------------------------------------------------
   Як підключити:
   1) Збережи цей файл як: assets/css/hero-buttons.css
   2) Підключи ПІСЛЯ assets/css/style.css:
      <link rel="stylesheet" href="assets/css/hero-buttons.css" />
   ---------------------------------------------------------
   Принцип: НІЧОГО не ламаємо глобально.
   Перевизначаємо лише кнопки в HERO-блоці (.hero .hero-actions)
   ========================================================= */

/* Base for both buttons inside HERO */
.hero .hero-actions .btn{
  border-radius: 999px; /* pill */
  padding: .78rem 1.55rem;
  font-weight: 900;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease,
              background .16s ease, border-color .16s ease, color .16s ease,
              opacity .16s ease;
  will-change: transform;
  position: relative; /* for underline */
}

/* Hover/active feel */
.hero .hero-actions .btn:hover{
  transform: translateY(-1px);
  text-decoration: none;
}
.hero .hero-actions .btn:active{
  transform: translateY(0) scale(.99);
}

/* Accessible focus */
.hero .hero-actions .btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 .25rem rgba(201,162,77,.18);
}

/* -------- Primary (Звернутися) — based on existing .btn-gold -------- */
.hero .hero-actions .btn.btn-gold{
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 12px 26px rgba(201,162,77,.24);
}

/* Underline glow for primary */
.hero .hero-actions .btn.btn-gold::after{
  content:"";
  position:absolute;
  left:14%;
  right:14%;
  bottom:-8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(201,162,77,.85);
  opacity: .70;
  pointer-events: none;
}
.hero .hero-actions .btn.btn-gold:hover::after{
  opacity: .92;
}
.hero .hero-actions .btn.btn-gold:active::after{
  opacity: .82;
}

/* -------- Secondary (Послуги) — based on existing .btn-ghost -------- */
.hero .hero-actions .btn.btn-ghost{
  background: transparent;
  border: 1px solid rgba(255,255,255,.30);
  color: rgba(255,255,255,.92);
}

/* Underline for secondary (subtle) */
.hero .hero-actions .btn.btn-ghost::after{
  content:"";
  position:absolute;
  left:18%;
  right:18%;
  bottom:-8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  opacity: .35;
  pointer-events: none;
}
.hero .hero-actions .btn.btn-ghost:hover{
  background: rgba(255,255,255,.08);
}
.hero .hero-actions .btn.btn-ghost:hover::after{
  opacity: .55;
}

/* Optional: keep hero buttons consistent widths on desktop */
@media (min-width: 992px){
  .hero .hero-actions .btn{
    min-width: 170px;
  }
}

/* Mobile: full-width stacked buttons look cleaner */
@media (max-width: 576px){
  .hero .hero-actions{
    gap: 12px;
  }
  .hero .hero-actions .btn{
    width: 100%;
  }
}
/* ===== Navbar CTA button (Variant 3 style) ===== */
.navbar-main .btn.btn-gold{
  border-radius: 999px;
  padding: .65rem 1.4rem;
  position: relative;
  box-shadow: 0 12px 26px rgba(201,162,77,.24);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.navbar-main .btn.btn-gold:hover{
  transform: translateY(-1px);
  text-decoration:none;
}

/* underline glow */
.navbar-main .btn.btn-gold::after{
  content:"";
  position:absolute;
  left:16%;
  right:16%;
  bottom:-6px;
  height:3px;
  border-radius:999px;
  background: rgba(201,162,77,.85);
  opacity:.70;
  pointer-events:none;
}

.navbar-main .btn.btn-gold:hover::after{
  opacity:.92;
}
