/* ============================================
   Olivia Mellão Reformas — Glassmorphism Theme
   ============================================ */

html { scroll-behavior: smooth; }
body  { background: #f4ece1; }

/* -------- Animated background scene -------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 10% 10%, #f7eedf 0%, transparent 60%),
    radial-gradient(900px 700px  at 90% 20%, #efd9bf 0%, transparent 60%),
    radial-gradient(1100px 900px at 50% 100%, #e6d3b6 0%, transparent 60%),
    linear-gradient(180deg, #f8f1e5 0%, #ead9bf 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  will-change: transform;
}
.blob-1 {
  width: 480px; height: 480px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, #d4bb9a, transparent 70%);
  animation: blobMove 18s ease-in-out infinite alternate;
}
.blob-2 {
  width: 520px; height: 520px;
  top: 30%; right: -150px;
  background: radial-gradient(circle, #c9a07a, transparent 70%);
  animation: blobMove 22s ease-in-out infinite alternate-reverse;
}
.blob-3 {
  width: 560px; height: 560px;
  bottom: -180px; left: 30%;
  background: radial-gradient(circle, #e3c9a8, transparent 70%);
  animation: blobMove 26s ease-in-out infinite alternate;
}

@keyframes blobMove {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(60px, -40px) scale(1.1); }
  100% { transform: translate(-40px, 30px) scale(0.95); }
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
}

/* -------- Glass primitives -------- */
.glass {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 8px 32px rgba(95, 65, 35, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.glass-soft {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 18px rgba(95, 65, 35, 0.06);
}

.glass-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 20px 50px rgba(95, 65, 35, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* -------- Nav links -------- */
.nav-link {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%;
  height: 2px;
  background: #946d50;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover { color: #5a4231; }
.nav-link:hover::after { transform: scaleX(1); }

/* When the page is scrolled — navbar gets stronger background */
#navbar.scrolled nav { background: rgba(255, 255, 255, 0.7); }

/* -------- Buttons -------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 25px rgba(18, 140, 126, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 15px 35px rgba(18, 140, 126, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.05);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(180, 145, 110, 0.4);
  backdrop-filter: blur(12px);
  color: #5a4231;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(18, 140, 126, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.45);
}

/* -------- Service cards -------- */
.service-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.4rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 28px rgba(95, 65, 35, 0.08);
  transition: all 0.35s cubic-bezier(.2,.7,.3,1);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(95, 65, 35, 0.15);
  border-color: rgba(255, 255, 255, 0.85);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b08968, #75553f);
  color: white;
  box-shadow: 0 6px 18px rgba(117, 85, 63, 0.35);
  transition: transform 0.4s ease;
}
.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.05);
}

/* -------- Diff cards -------- */
.diff-card {
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(95, 65, 35, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.diff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(95, 65, 35, 0.15);
}
.diff-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, #b08968, #5a4231);
  box-shadow: 0 8px 22px rgba(90, 66, 49, 0.35);
}

/* -------- Floating WhatsApp -------- */
.float-wpp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  box-shadow:
    0 12px 30px rgba(18, 140, 126, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease;
}
.float-wpp:hover { transform: scale(1.08); }
.float-wpp-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.6);
  z-index: -1;
  animation: wppPulse 2.2s ease-out infinite;
}
@keyframes wppPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  80%  { transform: scale(1.7); opacity: 0;   }
  100% { transform: scale(1.7); opacity: 0;   }
}

/* -------- Reveal-on-scroll -------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s cubic-bezier(.2,.7,.3,1),
    transform 0.9s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* -------- Selection -------- */
::selection {
  background: #b08968;
  color: #fff;
}

/* -------- Scrollbar -------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f4ece1; }
::-webkit-scrollbar-thumb {
  background: #b08968;
  border-radius: 9999px;
  border: 2px solid #f4ece1;
}
::-webkit-scrollbar-thumb:hover { background: #75553f; }
