/*
Theme Name: Martins & Associados Advocacia
Theme URI: https://martinseassociados.com.br
Author: Martins & Associados
Author URI: https://martinseassociados.com.br
Description: Tema profissional para escritório de advocacia com design elegante em azul marinho e dourado.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: martins-advocacia
*/

/* ========================================
   CSS Variables / Design Tokens
======================================== */
:root {
  --primary: 222 47% 11%;
  --primary-foreground: 210 40% 98%;
  --secondary: 217 33% 17%;
  --accent: 43 74% 49%;
  --accent-foreground: 222 47% 11%;
  --background: 210 40% 98%;
  --foreground: 222 47% 11%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --border: 214 32% 91%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
}

/* ========================================
   Reset & Base Styles
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

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

a:hover {
  color: hsl(var(--accent));
}

/* ========================================
   Layout & Container
======================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 1.5rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 1rem;
  }
}

/* ========================================
   Buttons
======================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-weight: 600;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.btn-primary:hover {
  background-color: hsl(43 74% 42%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: hsl(var(--foreground));
  font-weight: 600;
  padding: 0.875rem 2rem;
  border: 2px solid hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.btn-secondary:hover {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
}

/* ========================================
   Header
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: hsla(var(--background), 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border));
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon span {
  color: hsl(var(--primary-foreground));
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-text h1 {
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: -0.025em;
}

.logo-text p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--accent));
  transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.current-menu-item::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 1024px) {
  .main-navigation,
  .header-cta {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-navigation.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: hsl(var(--background));
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
  }
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,...') center/cover;
  opacity: 0.05;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsla(var(--accent), 0.1);
  color: hsl(var(--accent));
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid hsl(var(--accent));
}

.hero-section h1 {
  color: hsl(var(--primary-foreground));
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-section p {
  color: hsl(var(--primary-foreground) / 0.8);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsla(var(--primary-foreground), 0.2);
}

.stat-item h3 {
  color: hsl(var(--accent));
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: hsl(var(--primary-foreground) / 0.7);
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }
}

/* ========================================
   Practice Areas Section
======================================== */
.practice-areas {
  background-color: hsl(var(--background));
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header span {
  color: hsl(var(--accent));
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.section-header h2 {
  margin: 1rem 0;
}

.section-header p {
  color: hsl(var(--muted-foreground));
}

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

@media (max-width: 1024px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
}

.area-card {
  background-color: hsl(var(--card));
  padding: 2rem;
  border: 1px solid hsl(var(--border));
  transition: all 0.3s ease;
}

.area-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  border-color: hsl(var(--accent));
}

.area-icon {
  width: 60px;
  height: 60px;
  background-color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.area-icon svg {
  width: 28px;
  height: 28px;
  color: hsl(var(--accent));
}

.area-card h3 {
  margin-bottom: 0.75rem;
}

.area-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.area-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--accent));
  font-weight: 600;
  font-size: 0.875rem;
}

/* ========================================
   About Section
======================================== */
.about-section {
  background-color: hsl(var(--muted));
}

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

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background-color: hsl(var(--accent));
  z-index: -1;
}

.about-content span {
  color: hsl(var(--accent));
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.about-content h2 {
  margin: 1rem 0 1.5rem;
}

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

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon {
  width: 24px;
  height: 24px;
  background-color: hsl(var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========================================
   Team Section
======================================== */
.team-section {
  background-color: hsl(var(--primary));
}

.team-section .section-header span,
.team-section .section-header h2 {
  color: hsl(var(--primary-foreground));
}

.team-section .section-header p {
  color: hsl(var(--primary-foreground) / 0.7);
}

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

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background-color: hsl(var(--secondary));
  overflow: hidden;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-photo {
  aspect-ratio: 4/5;
  background-color: hsl(var(--muted));
  position: relative;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-info h3 {
  color: hsl(var(--primary-foreground));
  margin-bottom: 0.25rem;
}

.team-info .title {
  color: hsl(var(--accent));
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.team-info .oab {
  color: hsl(var(--primary-foreground) / 0.6);
  font-size: 0.75rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.team-social a {
  width: 36px;
  height: 36px;
  border: 1px solid hsl(var(--primary-foreground) / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground) / 0.7);
  transition: all 0.3s ease;
}

.team-social a:hover {
  background-color: hsl(var(--accent));
  border-color: hsl(var(--accent));
  color: hsl(var(--primary));
}

/* ========================================
   Contact Section
======================================== */
.contact-section {
  background-color: hsl(var(--background));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info span {
  color: hsl(var(--accent));
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.contact-info h2 {
  margin: 1rem 0 1.5rem;
}

.contact-info p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: hsl(var(--accent));
}

.contact-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  margin: 0;
}

/* Contact Form */
.contact-form {
  background-color: hsl(var(--card));
  padding: 2.5rem;
  border: 1px solid hsl(var(--border));
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: hsl(var(--accent));
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  width: 100%;
}

/* ========================================
   Footer
======================================== */
.site-footer {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.footer-main {
  padding: 5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

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

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .site-logo {
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: hsl(var(--primary-foreground) / 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: hsl(var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: hsl(var(--accent));
}

.footer-column h4 {
  color: hsl(var(--primary-foreground));
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: hsl(var(--primary-foreground) / 0.7);
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: hsl(var(--accent));
}

.footer-newsletter p {
  color: hsl(var(--primary-foreground) / 0.7);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--secondary));
  color: hsl(var(--primary-foreground));
}

.newsletter-form input::placeholder {
  color: hsl(var(--primary-foreground) / 0.5);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid hsl(var(--secondary));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: hsl(var(--primary-foreground) / 0.6);
  font-size: 0.875rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: hsl(var(--primary-foreground) / 0.6);
  font-size: 0.875rem;
}

/* ========================================
   Animations
======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

/* ========================================
   WordPress Specific
======================================== */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

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

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

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