/*
Theme Name: Nilo Ferreira Advocacia
Theme URI: https://niloadv.lovable.app/
Author: Nilo Ferreira Advocacia
Author URI: https://niloadv.lovable.app/
Description: Tema WordPress para o escritório de advocacia Nilo Ferreira em Goiânia-GO. Landing page profissional com design moderno e responsivo.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nilo-ferreira
Tags: one-page, responsive, law-firm, landing-page
*/

/* ========================================
   CSS VARIABLES & BASE STYLES
======================================== */
:root {
  --background: 210 20% 98%;
  --foreground: 220 40% 13%;
  --card: 0 0% 100%;
  --card-foreground: 220 40% 13%;
  --primary: 43 72% 47%;
  --primary-foreground: 220 40% 13%;
  --secondary: 220 40% 13%;
  --secondary-foreground: 45 100% 96%;
  --muted: 210 20% 94%;
  --muted-foreground: 220 20% 46%;
  --border: 220 20% 88%;
  --gold: 43 72% 47%;
  --gold-light: 45 80% 60%;
  --navy: 220 40% 13%;
  --radius: 0.75rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   UTILITIES
======================================== */
.text-primary { color: hsl(var(--primary)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }

.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-hero {
  background: linear-gradient(135deg, hsl(var(--gold)) 0%, hsl(var(--gold-light)) 100%);
  color: hsl(var(--foreground));
  box-shadow: 0 4px 20px -4px hsla(var(--gold), 0.4);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px -4px hsla(var(--gold), 0.5);
}

.btn-hero-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border: 2px solid hsl(var(--border));
}

.btn-hero-outline:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--muted)) 0%, hsl(var(--background)) 50%, hsl(var(--muted)) 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
}

.hero-bg-circle-1 {
  position: absolute;
  top: 5rem;
  left: 5rem;
  width: 16rem;
  height: 16rem;
  background: hsl(var(--gold));
  border-radius: 50%;
  filter: blur(60px);
}

.hero-bg-circle-2 {
  position: absolute;
  bottom: 5rem;
  right: 5rem;
  width: 24rem;
  height: 24rem;
  background: hsl(var(--navy));
  border-radius: 50%;
  filter: blur(60px);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  padding: 5rem 1rem;
}

.hero-logo {
  height: 6rem;
  width: auto;
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease-out forwards;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero-logo {
    height: 8rem;
  }
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: hsl(var(--secondary));
  animation: fadeIn 0.6s ease-out 0.1s forwards;
  opacity: 0;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto 2rem;
  animation: fadeIn 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
  animation: fadeIn 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ========================================
   FEATURE CARDS
======================================== */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
  animation: fadeIn 0.6s ease-out 0.4s forwards;
  opacity: 0;
}

@media (min-width: 768px) {
  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid hsla(var(--border), 0.5);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: hsla(var(--primary), 0.3);
}

.feature-card-icon {
  width: 4rem;
  height: 4rem;
  background: hsla(var(--primary), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: background 0.3s ease;
}

.feature-card:hover .feature-card-icon {
  background: hsla(var(--primary), 0.2);
}

.feature-card-icon svg {
  width: 2rem;
  height: 2rem;
  color: hsl(var(--primary));
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.feature-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ========================================
   SERVICES SECTION
======================================== */
.services {
  padding: 5rem 0;
  background: hsla(var(--muted), 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid hsla(var(--border), 0.5);
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: hsla(var(--primary), 0.3);
}

.service-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: hsla(var(--primary), 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}

.service-card:hover .service-card-icon {
  background: hsla(var(--primary), 0.2);
}

.service-card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: hsl(var(--primary));
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.service-card > p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.service-card li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  background: hsl(var(--primary));
  border-radius: 50%;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about {
  padding: 5rem 0;
  background: hsl(var(--background));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .about-content h2 {
    font-size: 2.25rem;
  }
}

.about-content p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.about-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem;
  color: hsl(var(--foreground));
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.benefits-list svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.cta-box {
  background: hsla(var(--secondary), 0.05);
  border: 1px solid hsla(var(--secondary), 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.cta-box h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.cta-box p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid hsla(var(--border), 0.5);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: hsla(var(--primary), 0.3);
}

.stat-card:hover .stat-value {
  transform: scale(1.1);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 3rem;
  }
}

.stat-label {
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

/* ========================================
   TESTIMONIALS SECTION
======================================== */
.testimonials {
  padding: 5rem 0;
  background: hsla(var(--muted), 0.5);
}

.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(var(--card));
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-rating svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  fill: hsl(var(--primary));
}

.google-rating span {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid hsla(var(--border), 0.5);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
  fill: hsl(var(--primary));
}

.testimonial-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonial-name {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.testimonial-source {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.testimonial-time {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ========================================
   FAQ SECTION
======================================== */
.faq {
  padding: 5rem 0;
  background: hsl(var(--background));
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  background: hsl(var(--card));
  border-radius: var(--radius);
  border: 1px solid hsla(var(--border), 0.5);
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: hsl(var(--foreground));
  font-size: 1rem;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: hsl(var(--primary));
}

.faq-question svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact {
  padding: 5rem 0;
  background: hsla(var(--muted), 0.5);
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid hsla(var(--border), 0.5);
}

.contact-card-icon {
  width: 3rem;
  height: 3rem;
  background: hsla(var(--primary), 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.contact-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.contact-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.contact-card a.text-link {
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.contact-card a.text-link:hover {
  text-decoration: underline;
}

.contact-card .phone-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

.contact-card .phone-link:hover {
  text-decoration: underline;
}

/* CTA Section */
.contact-cta {
  background: hsl(var(--secondary));
  border-radius: 1rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .contact-cta {
    padding: 3rem;
  }
}

.contact-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .contact-cta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: hsl(var(--secondary-foreground));
}

@media (min-width: 768px) {
  .contact-cta h3 {
    font-size: 1.875rem;
  }
}

.cta-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cta-feature svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.cta-feature-text strong {
  display: block;
  color: hsl(var(--secondary-foreground));
  font-weight: 600;
}

.cta-feature-text span {
  font-size: 0.875rem;
  color: hsla(var(--secondary-foreground), 0.7);
}

.contact-cta-action {
  text-align: center;
}

@media (min-width: 1024px) {
  .contact-cta-action {
    text-align: right;
  }
}

.contact-cta-action .btn {
  margin-bottom: 1rem;
}

.contact-cta-action p {
  font-size: 0.875rem;
  color: hsla(var(--secondary-foreground), 0.6);
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: hsl(var(--secondary));
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-logo {
  height: 3rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer p {
  font-size: 0.875rem;
  color: hsla(var(--secondary-foreground), 0.6);
  text-align: center;
}

/* ========================================
   WHATSAPP FLOATING BUTTON
======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  animation: bounceSubtle 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: scale(1.05);
}

.whatsapp-float svg {
  width: 1.25rem;
  height: 1.25rem;
}

.whatsapp-float .pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25D366;
  animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0.3;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseRing {
  0%, 100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.4;
  }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */
@media (max-width: 640px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-buttons {
    padding: 0 1rem;
  }
}
