/*
Theme Name: Rego & Quintino Advocacia
Theme URI: https://regoequintino.com.br
Author: Rego & Quintino
Description: Tema personalizado para o escritório Rego & Quintino Advocacia e Consultoria.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: rego-quintino
*/

/* ===== RESET & VARIABLES ===== */
:root {
  --navy: hsl(173, 40%, 18%);
  --navy-dark: hsl(173, 45%, 9%);
  --gold: hsl(37, 46%, 62%);
  --gold-light: hsl(40, 50%, 88%);
  --bg-light: hsl(170, 20%, 97%);
  --text-dark: hsl(173, 40%, 13%);
  --text-muted: hsl(173, 10%, 45%);
  --border-color: hsl(173, 15%, 88%);
  --radius: 2px;
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

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

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.5s;
  padding: 1.25rem 0;
}
.site-header.scrolled {
  background: hsla(173, 45%, 9%, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px hsla(173, 45%, 9%, 0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.site-logo img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.5rem 1rem; color: hsla(40, 50%, 88%, 0.6);
  transition: color 0.3s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }

.header-cta {
  background: var(--gold); color: var(--navy-dark);
  font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.625rem 1.25rem;
  transition: background 0.3s;
}
.header-cta:hover { background: var(--gold-light); }

/* Mobile menu */
.menu-toggle { display: none; background: none; border: none; color: var(--gold-light); cursor: pointer; padding: 0.5rem; }
.mobile-nav {
  display: none;
}
@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: 288px;
    background: var(--navy-dark); z-index: 50; padding: 1.5rem;
    transform: translateX(100%); transition: transform 0.3s;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav a {
    display: block; padding: 0.75rem 1rem; font-size: 0.875rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: hsla(40, 50%, 88%, 0.6); transition: color 0.3s;
  }
  .mobile-nav a:hover { color: var(--gold-light); }
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, hsla(173, 45%, 9%, 0.8), hsla(173, 45%, 9%, 0.7), hsla(173, 45%, 9%, 0.9));
}
.hero-content { position: relative; z-index: 10; text-align: center; padding: 0 1.5rem; max-width: 768px; }
.hero-badge {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid hsla(37, 46%, 62%, 0.3); padding: 0.5rem 1.25rem; margin-bottom: 2rem;
}
.hero h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); color: var(--gold-light); margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.hero p { font-size: 1.125rem; color: hsla(40, 50%, 88%, 0.65); max-width: 512px; margin: 0 auto 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--navy-dark); font-weight: 600;
  font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1rem 2rem; transition: all 0.3s;
}
.hero-btn-primary:hover { background: var(--gold-light); box-shadow: 0 8px 24px hsla(37, 46%, 62%, 0.2); }
.hero-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid hsla(37, 46%, 62%, 0.3); color: var(--gold);
  font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1rem 2rem; transition: all 0.3s;
}
.hero-btn-secondary:hover { background: hsla(37, 46%, 62%, 0.1); border-color: hsla(37, 46%, 62%, 0.5); }

/* ===== SOBRE O ESCRITÓRIO ===== */
.sobre { padding: 5rem 0; background: var(--navy); }
.section-label {
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.75rem; display: block;
}
.section-title-light { font-size: clamp(1.875rem, 3vw, 3rem); color: var(--gold-light); }
.section-divider { width: 48px; height: 1px; background: var(--gold); margin: 1.25rem auto 0; }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 4rem; }
.sobre-image { border-radius: var(--radius); overflow: hidden; position: relative; }
.sobre-image img { width: 100%; height: auto; object-fit: cover; }
.sobre-text h3 { font-size: 1.5rem; color: var(--gold-light); margin-bottom: 1.25rem; }
.sobre-text p { font-size: 0.875rem; color: hsla(40, 50%, 88%, 0.6); line-height: 1.8; margin-bottom: 1rem; }
.sobre-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; text-align: center; }
.sobre-stats .stat-number { font-family: 'Cormorant Garamond', serif; font-size: 1.875rem; font-weight: 700; color: var(--gold); }
.sobre-stats .stat-label {
  font-size: 0.625rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: hsla(40, 50%, 88%, 0.5); margin-top: 0.25rem;
}
.sobre-team-photo { margin-top: 4rem; position: relative; border-radius: var(--radius); overflow: hidden; }
.sobre-team-photo img { width: 100%; height: 500px; object-fit: cover; object-position: center 20%; }
.sobre-team-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, hsla(173, 45%, 9%, 0.6), transparent);
}
.sobre-team-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem; }
.sobre-team-caption h4 { font-size: 1.5rem; color: var(--gold-light); font-weight: 600; }
.sobre-team-caption p { font-size: 0.875rem; color: hsla(40, 50%, 88%, 0.6); margin-top: 0.25rem; }

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

/* ===== ÁREAS DE ATUAÇÃO ===== */
.areas { padding: 5rem 0; background: var(--bg-light); }
.section-title-dark { font-size: clamp(1.875rem, 3vw, 3rem); color: var(--text-dark); }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.area-card {
  padding: 2.5rem; border: 1px solid var(--border-color); background: white;
  border-radius: var(--radius); transition: all 0.5s;
}
.area-card:hover { border-color: hsla(37, 46%, 62%, 0.3); box-shadow: 0 20px 40px hsla(37, 46%, 62%, 0.05); transform: translateY(-4px); }
.area-icon {
  width: 56px; height: 56px; border: 1px solid hsla(37, 46%, 62%, 0.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
  transition: all 0.3s;
}
.area-card:hover .area-icon { border-color: hsla(37, 46%, 62%, 0.4); background: hsla(37, 46%, 62%, 0.05); }
.area-icon svg { width: 24px; height: 24px; color: var(--gold); }
.area-card h3 { font-size: 1.25rem; color: var(--text-dark); margin-bottom: 0.75rem; }
.area-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.area-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.area-tag {
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: hsla(37, 46%, 62%, 0.8); background: hsla(37, 46%, 62%, 0.08);
  border: 1px solid hsla(37, 46%, 62%, 0.15); padding: 0.25rem 0.75rem;
}
.area-link { font-size: 0.875rem; color: var(--gold); transition: color 0.3s; display: inline-flex; align-items: center; gap: 0.5rem; }
.area-link:hover { color: hsla(37, 46%, 62%, 0.8); }

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

/* ===== EQUIPE ===== */
.equipe { padding: 5rem 0; background: var(--navy-dark); }
.equipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.equipe-grid-bottom { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 66%; margin: 1.5rem auto 0; }
.team-card { position: relative; overflow: hidden; background: var(--navy); border-radius: var(--radius); }
.team-card .team-photo { aspect-ratio: 3/4; overflow: hidden; }
.team-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  filter: grayscale(100%); transition: all 0.7s;
}
.team-card:hover img { filter: grayscale(0%); transform: scale(1.05); }
.team-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--navy-dark), hsla(173, 45%, 9%, 0.3), transparent);
}
.team-card .card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem 1.5rem; }
.team-card .oab { font-size: 0.625rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.375rem; }
.team-card h3 { font-size: 1.25rem; color: var(--gold-light); }
.team-card .role { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: hsla(37, 46%, 62%, 0.7); margin-top: 0.25rem; }
.team-card .bio {
  font-size: 0.875rem; color: hsla(40, 50%, 88%, 0.5); line-height: 1.6;
  margin-top: 0.75rem; max-height: 0; overflow: hidden; transition: max-height 0.5s;
}
.team-card:hover .bio { max-height: 96px; }

@media (max-width: 1024px) { .equipe-grid { grid-template-columns: repeat(2, 1fr); } .equipe-grid-bottom { max-width: 100%; } }
@media (max-width: 640px) { .equipe-grid, .equipe-grid-bottom { grid-template-columns: 1fr; } }

/* ===== BLOG ===== */
.blog { padding: 5rem 0; background: hsla(170, 15%, 93%, 0.5); }
.blog-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3.5rem; }
.blog-link { font-size: 0.875rem; color: var(--gold); display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.3s; }
.blog-link:hover { color: hsla(37, 46%, 62%, 0.8); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card {
  background: white; padding: 1.75rem; border: 1px solid var(--border-color);
  border-radius: var(--radius); transition: all 0.4s; display: flex; flex-direction: column;
}
.blog-card:hover { border-color: hsla(37, 46%, 62%, 0.25); box-shadow: 0 12px 32px rgba(0,0,0,0.08); transform: translateY(-4px); }
.blog-category {
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); background: hsla(37, 46%, 62%, 0.08);
  border: 1px solid hsla(37, 46%, 62%, 0.15); padding: 0.25rem 0.75rem;
  display: inline-block; margin-bottom: 1rem;
}
.blog-card h3 { font-size: 1.125rem; color: var(--text-dark); margin-bottom: 0.75rem; line-height: 1.4; flex: 1; transition: color 0.3s; }
.blog-card:hover h3 { color: var(--gold); }
.blog-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; } .blog-header { flex-direction: column; align-items: flex-start; gap: 1rem; } }

/* ===== CONTATO ===== */
.contato { padding: 5rem 0; background: var(--navy-dark); position: relative; overflow: hidden; }
.contato-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at top right, hsla(37, 46%, 62%, 0.06), transparent 60%); }
.contato-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; align-items: start; position: relative; z-index: 10; }
.contato h2 { font-size: clamp(1.875rem, 3vw, 3rem); color: var(--gold-light); margin-bottom: 1.25rem; line-height: 1.2; }
.contato .contato-desc { font-size: 1rem; color: hsla(40, 50%, 88%, 0.55); line-height: 1.7; margin-bottom: 2rem; max-width: 512px; }
.contato-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--gold); color: var(--navy-dark); font-weight: 600;
  font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1rem 2rem; transition: all 0.3s;
}
.contato-cta:hover { background: var(--gold-light); box-shadow: 0 8px 24px hsla(37, 46%, 62%, 0.2); }

.contact-item {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem;
  border: 1px solid hsla(37, 46%, 62%, 0.1); border-radius: var(--radius);
  transition: border-color 0.3s; margin-bottom: 1.5rem;
}
.contact-item:hover { border-color: hsla(37, 46%, 62%, 0.25); }
.contact-icon {
  width: 40px; height: 40px; border: 1px solid hsla(37, 46%, 62%, 0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 16px; height: 16px; color: var(--gold); }
.contact-item .contact-label { font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.contact-item .contact-value { font-size: 0.875rem; color: hsla(40, 50%, 88%, 0.75); }
.contact-item a.contact-value { text-decoration: underline; text-underline-offset: 2px; transition: color 0.3s; }
.contact-item a.contact-value:hover { color: var(--gold); }

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

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); padding: 2.5rem 0; border-top: 1px solid hsla(37, 46%, 62%, 0.1); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo img { height: 32px; width: auto; }
.footer-nav { display: flex; align-items: center; gap: 1.5rem; }
.footer-nav a { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsla(40, 50%, 88%, 0.4); transition: color 0.3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid hsla(37, 46%, 62%, 0.05); text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: hsla(40, 50%, 88%, 0.3); letter-spacing: 0.1em; }
