/* 
 * Blog de Advocacia - CSS
 * Design: Minimalismo Corporativo Contemporâneo
 * Paleta: Azul profundo (#1e3a5f) + Ouro (#d4af37)
 * Tipografia: Playfair Display (títulos) + Inter (corpo)
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1a1f2e;
  background-color: #fafbfc;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #1e3a5f;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: white;
  border-bottom: 1px solid #e2e8f0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

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

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #1e3a5f;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1e3a5f;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: #1a1f2e;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

nav a:hover {
  color: #1e3a5f;
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, white, white, transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 50%;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

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

.btn-primary {
  background-color: #1e3a5f;
  color: #f8fafc;
}

.btn-primary:hover {
  background-color: #152847;
}

.btn-outline {
  border: 2px solid #1e3a5f;
  color: #1e3a5f;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: rgba(30, 58, 95, 0.05);
}

/* Articles Section */
.articles-section {
  padding: 5rem 0;
  background-color: white;
}

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

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

.section-divider {
  width: 4rem;
  height: 0.25rem;
  background-color: #d4af37;
  border-radius: 9999px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.article-card {
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}

.article-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
  background-color: #e8eef7;
}

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

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #1e3a5f;
  color: #f8fafc;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.25rem;
}

.article-content {
  padding: 1.5rem;
}

.article-date {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.article-card:hover .article-content h3 {
  color: #d4af37;
}

.article-excerpt {
  color: rgba(26, 31, 46, 0.8);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-link {
  display: flex;
  align-items: center;
  color: #1e3a5f;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.article-link:hover {
  color: #d4af37;
}

.article-link svg {
  width: 1rem;
  height: 1rem;
  margin-left: 0.25rem;
}

.articles-center {
  text-align: center;
  margin-top: 3rem;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background-color: rgba(232, 238, 247, 0.3);
}

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

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.125rem;
  color: rgba(26, 31, 46, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  display: flex;
  gap: 1rem;
}

.feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #d4af37;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.feature-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #1e3a5f;
}

.feature-text p {
  font-size: 0.95rem;
  color: rgba(100, 116, 139, 1);
  margin: 0;
}

.about-image {
  position: relative;
  height: 24rem;
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

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

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.2), transparent);
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    height: 15rem;
  }
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: white;
}

.contact-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.contact-header h2 {
  margin-bottom: 1rem;
}

.contact-header p {
  font-size: 1.125rem;
  color: rgba(26, 31, 46, 0.8);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  color: #d4af37;
  margin: 0 auto 1rem;
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: rgba(26, 31, 46, 0.7);
}

.contact-form {
  max-width: 40rem;
  margin: 0 auto;
  background-color: rgba(232, 238, 247, 0.3);
  padding: 2rem;
  border-radius: 0.25rem;
  border: 1px solid #e2e8f0;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-group button {
  width: 100%;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Footer */
footer {
  background-color: #1e3a5f;
  color: #f8fafc;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #f8fafc;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section p {
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.8);
  line-height: 1.6;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(248, 250, 252, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #d4af37;
}

.footer-divider {
  border-top: 1px solid rgba(248, 250, 252, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.95rem;
}

.footer-logo {
  color: #d4af37;
}

@media (max-width: 768px) {
  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.opacity-80 {
  opacity: 0.8;
}
