/*
Theme Name: Moletta Bonfim Advogados
Theme URI: https://molettabonfim.com.br
Author: Moletta Bonfim Advogados Associados
Author URI: https://molettabonfim.com.br
Description: Tema personalizado para o escritório Moletta Bonfim Advogados Associados. Especializado em regularização de imóveis, direito trabalhista e usucapião.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moletta-bonfim
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-background: #ffffff;
  --color-foreground: #2a2e23;
  --color-primary: #c65a11;
  --color-primary-foreground: #ffffff;
  --color-muted: #6b7259;
  --color-border: #d6d9ce;
  --color-card: #ffffff;
  --color-secondary: #eaece5;
  --color-green: #4d7a3a;
  --color-green-light: #6d9a5a;
  --color-green-dark: #365c26;
  --color-gold: #c65a11;
  --color-gold-light: #d4874d;
  --color-gold-dark: #8c3f0b;
  --color-navy-light: #f5f6f3;
  --color-navy-medium: #eaece5;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

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

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

ul {
  list-style: none;
}

/* ========================================
   UTILITIES
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold), var(--color-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: linear-gradient(135deg, var(--color-green-light), var(--color-green), var(--color-green-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
}

.bg-gradient-navy {
  background: linear-gradient(180deg, var(--color-navy-light) 0%, var(--color-navy-medium) 100%);
}

.shadow-gold {
  box-shadow: 0 4px 30px -5px rgba(198, 90, 17, 0.25);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--color-primary-foreground);
  border: none;
  cursor: pointer;
  letter-spacing: 0.025em;
  transition: opacity 0.3s;
  box-shadow: 0 4px 30px -5px rgba(198, 90, 17, 0.25);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: 1px solid rgba(198, 90, 17, 0.3);
  font-family: 'DM Sans', sans-serif;
  color: var(--color-foreground);
  background: transparent;
  letter-spacing: 0.025em;
  transition: border-color 0.3s;
}

.btn-outline:hover {
  border-color: rgba(198, 90, 17, 0.6);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-label-line {
  height: 1px;
  width: 3rem;
  background-color: var(--color-primary);
}

.section-label-text {
  color: var(--color-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.site-logo img {
  height: 3rem;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: var(--color-muted);
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
}

.mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
  color: var(--color-muted);
}

.mobile-menu a:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.85), rgba(255,255,255,0.5));
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 8rem 0;
  max-width: 48rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* ========================================
   SERVICES
   ======================================== */
.services {
  padding: 6rem 0;
}

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

.services-header .section-label {
  justify-content: center;
}

.services-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

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

.service-card {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  transition: border-color 0.5s;
}

.service-card:hover {
  border-color: rgba(198, 90, 17, 0.4);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(198, 90, 17, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(198, 90, 17, 0.2);
}

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

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-muted);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 0.5rem;
}

.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, transparent, transparent);
  transition: background 0.5s;
}

.service-card:hover::after {
  background: linear-gradient(to right, transparent, var(--color-primary), transparent);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-header h2 {
    font-size: 2rem;
  }
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: 6rem 0;
  position: relative;
}

.about-bg {
  position: absolute;
  inset: 0;
  background: rgba(234, 236, 229, 0.5);
}

.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--color-muted);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-text p.lead {
  font-size: 1.125rem;
}

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

.stat-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  text-align: center;
}

.stat-card svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-primary);
  margin: 0 auto 0.75rem;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-family: 'DM Sans', sans-serif;
}

@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-text h2 {
    font-size: 2rem;
  }
}

/* ========================================
   CTA / CONTACT
   ======================================== */
.cta {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-decoration {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(198, 90, 17, 0.05);
  filter: blur(48px);
}

.cta-decoration.top-left {
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

.cta-decoration.bottom-right {
  bottom: 0;
  right: 0;
  transform: translate(50%, 50%);
}

.cta-inner {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.cta-inner .section-label {
  justify-content: center;
}

.cta-inner h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-inner > p {
  font-size: 1.125rem;
  color: var(--color-muted);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  margin-bottom: 3rem;
}

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

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-card);
}

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

.contact-card .label {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-family: 'DM Sans', sans-serif;
}

.contact-card .value {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--color-foreground);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .cta-inner h2 {
    font-size: 2rem;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-family: 'DM Sans', sans-serif;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   WORDPRESS DEFAULTS
   ======================================== */
.alignleft {
  float: left;
  margin: 0 1.5rem 1.5rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1.5rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 0 auto 1.5rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--color-muted);
  padding: 0.5rem 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Page / Post content */
.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
}

.entry-content h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5rem 1.5rem;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content a {
  color: var(--color-primary);
}

.entry-content a:hover {
  opacity: 0.8;
}

.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--color-secondary);
  font-style: italic;
}
