/*
Theme Name: Rafael Batista Advogados
Theme URI: https://rafaelbatistaadvogados.com.br
Author: Rafael Batista Advogados
Author URI: https://rafaelbatistaadvogados.com.br
Description: Tema personalizado para o escritório de advocacia Rafael Batista Advogados, baseado em 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: rafael-batista-advogados
Tags: custom, law, legal, business, responsive, modern
*/

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

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

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.top-bar {
  background-color: #1a1a1a;
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: 20px;
}

.top-bar-links a {
  color: #fff;
  transition: color 0.3s;
}

.top-bar-links a:hover {
  color: #d4af37;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: #fff;
  font-size: 18px;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.social-links a:hover {
  color: #d4af37;
  transform: scale(1.1);
}

/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1100;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  min-height: 80px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1101;
}

.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-list li {
  position: relative;
}

.nav-list a,
.dropdown-toggle {
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  background: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
}

.nav-list a:hover,
.dropdown-toggle:hover {
  color: #d4af37;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.3s;
}

.dropdown:hover .dropdown-toggle::after,
.dropdown.active .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 15px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 10px;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
  color: #d4af37;
}

.menu-toggle {
  display: none;
  background: none;
  font-size: 24px;
  color: #333;
  position: relative;
  z-index: 1102;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle::before {
  content: '☰';
}

.menu-toggle.active::before {
  content: '✕';
}

/* Main Content */
main {
  flex: 1;
  min-height: calc(100vh - 400px);
}

/* Hero Section */
.hero {
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(45, 45, 45, 0.75) 100%);
  z-index: 0;
}

.hero-overlay {
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  color: #fff;
  padding: 80px 20px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  color: #e0e0e0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25d366;
  color: #fff;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  text-decoration: none;
}

.cta-button:hover {
  background-color: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: #fff;
}

.hero-info {
  margin-top: 20px;
  font-size: 16px;
  color: #ccc;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  display: block;
  color: #d4af37;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 42px;
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 20px;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.btn-secondary {
  display: inline-block;
  background-color: #1a1a1a;
  color: #fff;
  padding: 14px 35px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 10px;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  color: #fff;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-photo {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background-color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background-color: #f9f9f9;
  padding: 40px 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #d4af37;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #d4af37 0%, #f4d365 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 32px;
  color: #fff;
}

.service-card h3 {
  font-size: 22px;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

.services-cta {
  text-align: center;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.testimonials-section .section-title {
  text-align: center;
  margin-bottom: 10px;
  color: #fff;
}

.testimonials-section .section-subtitle {
  text-align: center;
  color: #ccc;
  font-size: 18px;
  margin-bottom: 50px;
  text-transform: none;
  letter-spacing: normal;
}

.testimonials-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonials-carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  width: 380px;
  flex-shrink: 0;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 10px;
}

.testimonial-header h4 {
  font-size: 18px;
  color: #1a1a1a;
  font-weight: 600;
}

.testimonial-date {
  font-size: 14px;
  color: #999;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
  min-height: 120px;
}

.trustindex-badge {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

.carousel-button {
  background-color: rgba(212, 175, 55, 0.9);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 10;
}

.carousel-button:hover {
  background-color: #d4af37;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

/* Footer */
.footer {
  background-color: #fff;
  color: #333;
  padding: 60px 0 0;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 280px;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #1a1a1a;
  font-weight: 600;
}

.footer-section p {
  line-height: 1.8;
  color: #666;
}

.contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.contact-info svg,
.contact-info i {
  color: #d4af37;
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
}

.contact-info a {
  color: #666;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #d4af37;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: #666;
  transition: color 0.3s, padding-left 0.3s;
  display: inline-block;
}

.footer-nav a:hover {
  color: #d4af37;
  padding-left: 5px;
}

.footer-submenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
  margin-top: 5px;
}

.footer-submenu a {
  font-size: 14px;
  color: #999;
}

.footer-logo-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
}

.footer-logo {
  max-width: 250px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-bottom {
  background-color: #1a1a1a;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #333;
}

.footer-bottom p {
  color: #ccc;
  font-size: 14px;
}

/* WhatsApp Button */
.wpp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.wpp-btn:hover {
  transform: scale(1.1);
}

.wpp-btn img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 100px 0 60px;
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 18px;
  color: #e0e0e0;
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 968px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    padding-top: 80px;
    z-index: 1100;
  }

  .nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .nav-list a,
  .dropdown-toggle {
    padding: 15px 0;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: #f9f9f9;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
  }

  .dropdown-menu.open {
    max-height: 500px;
  }

  .dropdown-menu a {
    padding: 12px 20px;
    font-size: 14px;
  }

  .hero-title {
    font-size: 42px;
  }

  .section-title {
    font-size: 32px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .testimonial-card {
    width: 320px;
  }

  .testimonials-carousel-wrapper {
    gap: 10px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .top-bar {
    font-size: 12px;
  }

  .top-bar-content {
    gap: 10px;
    text-align: center;
    flex-direction: column;
  }

  .logo-image {
    height: 45px;
  }

  .nav {
    width: 100%;
  }

  .hero {
    min-height: 500px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .cta-button {
    padding: 14px 30px;
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .about-section,
  .services-section,
  .testimonials-section {
    padding: 50px 0;
  }

  .about-photo {
    max-width: 100%;
  }

  .carousel-button {
    display: none;
  }

  .testimonials-carousel {
    padding: 10px 0;
  }

  .testimonial-card {
    width: 280px;
  }

  .testimonial-text {
    min-height: 100px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer {
    padding: 40px 0 0;
    margin-top: 60px;
  }

  .footer-section h3 {
    font-size: 18px;
  }

  .footer-logo {
    max-width: 150px;
  }

  .footer-logo-section {
    order: -1;
  }

  .page-hero {
    padding: 80px 0 40px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .wpp-btn {
    bottom: 20px;
    right: 20px;
  }

  .wpp-btn img {
    width: 50px;
    height: 50px;
  }
}

/* Page Content Styles */
.page-content {
  padding: 60px 0;
  background-color: #fff;
}

.page-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-content-wrapper h2 {
  font-size: 32px;
  color: #1a1a1a;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-content-wrapper h3 {
  font-size: 24px;
  color: #1a1a1a;
  margin-bottom: 15px;
  margin-top: 30px;
}

.page-content-wrapper p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.page-content-wrapper ul,
.page-content-wrapper ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.page-content-wrapper li {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 10px;
}

.page-content-wrapper a {
  color: #d4af37;
  text-decoration: underline;
}

.page-content-wrapper a:hover {
  color: #b8941f;
}

/* Post Styles */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  padding: 60px 0;
}

.post-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
  overflow: hidden;
  height: 250px;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-content {
  padding: 30px;
}

.post-title {
  font-size: 24px;
  margin-bottom: 15px;
}

.post-title a {
  color: #1a1a1a;
  transition: color 0.3s;
}

.post-title a:hover {
  color: #d4af37;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #999;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-excerpt {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
}

/* Single Post Styles */
.single-post {
  background-color: #fff;
}

.post-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.post-featured-image {
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.post-body h2 {
  font-size: 32px;
  color: #1a1a1a;
  margin: 40px 0 20px;
}

.post-body h3 {
  font-size: 24px;
  color: #1a1a1a;
  margin: 30px 0 15px;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.post-body li {
  margin-bottom: 10px;
}

.post-body a {
  color: #d4af37;
  text-decoration: underline;
}

.post-body a:hover {
  color: #b8941f;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
}

/* Body Menu Open */
body.menu-open {
  overflow: hidden;
}

/* Custom Logo Styles */
.custom-logo-link {
  display: inline-block;
}

.custom-logo-link img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Form Error States */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc3545;
}

/* Loading States */
.cta-button:disabled,
.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* No Content */
.no-content {
  text-align: center;
  padding: 80px 20px;
}

.no-content h2 {
  font-size: 32px;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.no-content p {
  font-size: 16px;
  color: #666;
}

/* Mission Card */
.mission-vision {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 60px 0;
  margin-top: 60px;
}

.mission-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.mission-card h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #d4af37;
}

.mission-card p {
  font-size: 18px;
  line-height: 1.8;
  color: #e0e0e0;
}
