/* =============================================
   Advocat Penedès — Main Stylesheet
   ============================================= */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: #0e1322;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Mesh Gradient Background ─── */
.mesh-gradient {
  background:
    radial-gradient(at 0%   0%,   #161b2b 0%, transparent 50%),
    radial-gradient(at 100% 0%,   #001033 0%, transparent 50%),
    radial-gradient(at 100% 100%, #1b1000 0%, transparent 50%),
    radial-gradient(at 0%   100%, #0e1322 0%, transparent 50%);
}

/* ─── Ambient Blobs ─── */
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: floating 6s ease-in-out infinite;
}
.ambient-blob--gold {
  top: 25%;
  right: -5rem;
  width: 600px;
  height: 600px;
  background: rgba(241, 191, 96, 0.05);
}
.ambient-blob--blue {
  bottom: 25%;
  left: -5rem;
  width: 500px;
  height: 500px;
  background: rgba(182, 198, 243, 0.05);
}

@keyframes floating {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* ─── Navbar ─── */
#navbar {
  background: rgba(14, 19, 34, 0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
#navbar.scrolled {
  background: rgba(14, 19, 34, 0.75);
  backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ─── Material Icons ─── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ─── Glass Card ─── */
.glass-card {
  background: rgba(47, 52, 69, 0.4);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── Badge / Pill ─── */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #f1bf60;
  color: #412d00;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(241, 191, 96, 0.35);
  filter: brightness(1.08);
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(70, 70, 77, 0.8);
  color: #dde1f8;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ─── Service Cards ─── */
.service-card {
  transition: all 0.5s ease;
  cursor: default;
}
.service-card:hover {
  background: rgba(36, 41, 58, 0.85);
  transform: translateY(-4px);
}
.service-icon {
  font-size: 2.5rem;
  color: #f1bf60;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.12);
}

/* ─── Floating Stat ─── */
.stat-float {
  position: absolute;
  bottom: -2.5rem;
  left: -2.5rem;
}

/* ─── Social Icon ─── */
.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.25s ease;
  text-decoration: none;
}
.social-icon:hover {
  color: #f1bf60;
  border-color: #f1bf60;
}

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #080e1d; }
::-webkit-scrollbar-thumb { background: #2f3445; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #f1bf60; }

/* ─── Form ─── */
input, select, textarea {
  color: #dde1f8;
}
input::placeholder, textarea::placeholder {
  color: #6b7280;
}
