/* ============================================================
   DESIGN SYSTEM — RUAN MULLER CONSULTORIA JURÍDICA
   Palette: Black · Metallic Gold · White
   Área: Direito de Família (Divórcio e Pensão)
   Architecture: Luxury Brutalist (Vanilla CSS)
 ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --black: #0A0A0A;
  --black-soft: #121212;
  --black-border: rgba(255, 255, 255, 0.08);

  --gold-500: #E5C374;
  --gold-600: #C9A74E;
  --gold-400: #F1D592;
  --gold-metallic: linear-gradient(135deg, #B8860B 0%, #FFD700 50%, #B8860B 100%);
  --gold-glow: rgba(229, 195, 116, 0.15);

  --white: #FFFFFF;
  --silver: #A1A1AA;

  --whatsapp-green: #1da851;
  --whatsapp-dark: #0f703e;
  --whatsapp-gradient: linear-gradient(135deg, #1da851 0%, #0f703e 100%);

  /* Fonts */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  --font-title: 'Poppins', sans-serif;

  /* Transitions */
  --transition-base: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Base Setup */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .section-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .hero-title {
    text-align: center;
  }

  .section-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .section-tag {
    text-align: center;
  }
}

.text-gold-gradient {
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title .text-gold-gradient,
.hero-title .text-gold-gradient {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35em;
}

.text-glow-gold {
  text-shadow: 0 0 30px var(--gold-glow);
}

.section-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-500);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 300;
  color: var(--silver);
  max-width: 800px;
}

/* Buttons */
.btn-premium-outer {
  display: inline-block;
  border: 1px solid var(--whatsapp-green);
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition-base);
}

.btn-premium-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--whatsapp-dark) 0%, var(--whatsapp-green) 100%);
  color: var(--white);
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  border-radius: 50px;
  transition: var(--transition-base);
}

.btn-premium-outer:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px var(--gold-glow);
  border-color: var(--gold-500);
}

.btn-premium-outer:hover .btn-premium-inner {
  background: var(--gold-metallic);
  color: var(--black);
}

@media (max-width: 768px) {
  .btn-premium-outer {
    width: 100%;
    display: block;
  }
}

/* Service Cards */
.service-card-v2 {
  background: #1e1e1e;
  border: 1px solid rgba(229, 195, 116, 0.15);
  border-bottom: 3px solid var(--gold-500);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: var(--transition-base);
  position: relative;
}

.service-card-v2:hover {
  border-color: var(--gold-500);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.sc2-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #0a0a0a;
}

.sc2-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.sc2-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc2-list li {
  font-size: 13px;
  color: var(--silver);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.sc2-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-weight: 700;
}

/* Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-base);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Ticker */
.ticker-wrap {
  overflow: hidden;
  background: #0f0f0f;
  border-top: 1px solid var(--black-border);
  border-bottom: 1px solid var(--black-border);
  padding: 24px 0;
}

.ticker {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* FAQ */
.faq-icon-wrapper {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 167, 78, 0.05);
  border-radius: 50%;
  transition: var(--transition-base);
}

.faq-icon {
  width: 14px;
  height: 14px;
  color: var(--gold-600);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

details[open] .faq-icon {
  transform: rotate(180deg);
}

details[open] .faq-icon-wrapper {
  background: var(--gold-500);
}

details[open] .faq-icon {
  color: var(--black);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .btn-premium-inner {
    padding: 14px 12px;
    font-size: 0.75rem;
    gap: 6px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.3;
  }

  .btn-premium-inner svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.whatsapp-balloon {
  background: var(--white);
  color: var(--black);
  padding: 12px 16px;
  border-radius: 12px 12px 0 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  max-width: 200px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom right;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-balloon.show {
  opacity: 1;
  transform: scale(1);
}

.whatsapp-balloon img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-500);
}

.whatsapp-icon {
  width: 60px;
  height: 60px;
  background: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(29, 168, 81, 0.4);
  color: white;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
}

/* Nav */
.nav-links a:hover {
  color: var(--gold-500);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

@media(max-width:768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 1001;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.5rem !important;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

#home {
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-bg {
  background-color: var(--black-soft);
  background-image: url('../imagem/Backgr01.webp');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  #home {
    padding-top: 200px;
    padding-bottom: 80px;
  }

  .hero-bg {
    background-image: url('../imagem/Backgr01mobile.webp');
    margin-top: 70px;
  }
}

.sobre-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 992px) {
  .sobre-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}