:root {
  /* Lawyer palette */
  --color-gold-700: #a6873f;
  --color-gold-600: #b8964a;
  --color-gold-500: #cdb17c;   /* smooth gold */
  --color-gold-400: #ddc89e;
  --color-gold-100: #f8f1e3;   /* very soft gold tint */
  --color-blue: #5d71a2;
  --color-terracotta-700: #733d2e;
  --color-terracotta-600: #9d644a;
  --color-terracotta-500: #cc845c;
  --color-olive: #757143;
  --color-violet: #8283ff;

  /* Light theme surfaces */
  --bg-body: #ffffff;
  --bg-hero: linear-gradient(135deg, #ffffff 0%, #fbf7ef 50%, #f5f0e4 100%);
  --bg-section: #faf8f3;
  --bg-card: #ffffff;
  --bg-footer: #f5f0e4;

  /* Text */
  --text-heading: #1f1f1f;
  --text-body: #2a2a2a;
  --text-muted: #4a4a4a;
  --text-on-gold: #1f1f1f;

  /* Borders */
  --border: rgba(166, 135, 63, 0.15);
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, .font-serif {
  font-family: 'Playfair Display', serif;
}

/* Theme utility classes */
.bg-body { background-color: var(--bg-body); }
.bg-hero { background: var(--bg-hero); }
.bg-section { background-color: var(--bg-section); }
.bg-card { background-color: var(--bg-card); }
.bg-footer { background-color: var(--bg-footer); }
.bg-gold-500 { background-color: var(--color-gold-500); }
.bg-gold-600 { background-color: var(--color-gold-600); }
.bg-gold-100 { background-color: var(--color-gold-100); }

.text-body { color: var(--text-body); }
.text-heading { color: var(--text-heading); }
.text-muted { color: var(--text-muted); }
.text-on-gold { color: var(--text-on-gold); }
.text-gold-600 { color: var(--color-gold-600); }

.border-theme { border-color: var(--border); }
.border-gold { border-color: var(--color-gold-500); }

.hover\:bg-gold-600:hover { background-color: var(--color-gold-600); }
.hover\:bg-gold-100:hover { background-color: var(--color-gold-100); }
.hover\:text-gold-600:hover { color: var(--color-gold-600); }

/* Card hover lift */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Navbar default soft white blur */
#navbar {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

/* Navbar scroll state */
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Reveal animations */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible,
.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero animations */
.hero-content {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.9s ease-out forwards;
}

.hero-image {
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.9s ease-out 0.2s forwards;
}

.hero-image img {
  animation: float 6s ease-in-out infinite;
}

.hero-tag {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease-out 0.1s forwards;
}

.hero-title {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out 0.25s forwards;
}

.hero-desc {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out 0.4s forwards;
}

.hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out 0.55s forwards;
}

/* About section */
.about-image .reveal {
  transition-delay: 0.1s;
}

.about-content .reveal {
  transition-delay: 0.25s;
}

/* Animated gradient background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #fbf7ef 25%,
    #f5f0e4 50%,
    #fbf7ef 75%,
    #ffffff 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: 0;
}

/* Decorative floating shapes */
#hero .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--color-gold-500);
  top: 10%;
  left: -5%;
  animation: floatShape 8s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--color-blue);
  bottom: 15%;
  right: 5%;
  animation: floatShape 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 120px;
  height: 120px;
  background: var(--color-terracotta-500);
  top: 40%;
  right: 25%;
  animation: floatShape 12s ease-in-out infinite;
}

/* CTA pulse */
.btn-pulse {
  position: relative;
}

.btn-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--color-gold-500);
  opacity: 0;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Video oficina decorative bubbles */
#video-oficina .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

#video-oficina .shape-1 {
  width: 320px;
  height: 320px;
  background: var(--color-gold-500);
  top: -5%;
  left: -14%;
  animation: floatShape 9s ease-in-out infinite;
}

#video-oficina .shape-2 {
  width: 220px;
  height: 220px;
  background: var(--color-blue);
  bottom: -10%;
  right: -8%;
  animation: floatShape 11s ease-in-out infinite reverse;
}

#video-oficina .shape-3 {
  width: 140px;
  height: 140px;
  background: var(--color-terracotta-500);
  top: 30%;
  right: 30%;
  animation: floatShape 13s ease-in-out infinite;
}

#video-oficina .shape-4 {
  width: 200px;
  height: 200px;
  background: var(--color-olive);
  bottom: 15%;
  left: -6%;
  animation: floatShape 12s ease-in-out infinite reverse;
}

#video-oficina .shape-5 {
  width: 110px;
  height: 110px;
  background: var(--color-violet);
  top: 55%;
  left: 12%;
  animation: floatShape 10s ease-in-out infinite;
}

/* Video modal */
#video-modal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#video-modal.open {
  display: block;
  opacity: 1;
}

#video-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Testimonials Flowbite-style carousel */
.testimonial-flowbite {
  width: 100%;
}

.testimonial-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
}

.testimonial-item.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.testimonial-item .card-content {
  max-width: 100%;
  text-align: center;
}

.testimonial-item img {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-gold-100);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimonial-item blockquote {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  word-wrap: break-word;
}

.testimonial-item .name {
  color: var(--text-heading);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
}

#testimonial-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  padding: 0;
}

#testimonial-indicators button.active {
  background-color: var(--color-gold-500);
  transform: scale(1.25);
}

@media (max-width: 640px) {
  .testimonial-item {
    padding: 1.5rem 2.5rem;
  }

  .testimonial-item img {
    width: 5rem;
    height: 5rem;
  }

  .testimonial-item blockquote {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .testimonial-item .name {
    font-size: 1rem;
  }

  #testimonial-carousel {
    max-width: 100%;
  }
}
