/*
Theme Name:  ST Advogados
Theme URI:   https://stadvogados.com.br
Description: Tema personalizado para ST Advogados - Slobodticov & Teixeira Sociedade de Advogados
Author:      ST Advogados
Author URI:  https://stadvogados.com.br
Template:    astra
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: st-advogados
Tags:        advocacia, juridico, minimalista
*/

/* ─────────────────────────────────────────
   VARIÁVEIS GLOBAIS
───────────────────────────────────────── */
:root {
  --st-black:        #0a0a0a;
  --st-dark:         #111111;
  --st-dark2:        #1a1a1a;
  --st-gray-dark:    #2a2a2a;
  --st-gray-mid:     #4a4a4a;
  --st-gray-light:   #8a8a8a;
  --st-white:        #f5f3ef;
  --st-green:        #3d6b4f;
  --st-green-light:  #4e8a64;
  --st-green-muted:  #2a4a36;
  --st-font-display: 'Cormorant Garamond', serif;
  --st-font-body:    'DM Sans', sans-serif;
  --st-transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
body {
  background: var(--st-dark);
  color: var(--st-white);
  font-family: var(--st-font-body);
  font-weight: 300;
  line-height: 1.7;
}

a { color: var(--st-green-light); transition: color var(--st-transition); }
a:hover { color: var(--st-white); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--st-dark); }
::-webkit-scrollbar-thumb { background: var(--st-green); border-radius: 2px; }

/* ─────────────────────────────────────────
   TIPOGRAFIA
───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--st-font-display);
  font-weight: 300;
  line-height: 1.2;
  color: var(--st-white);
}

.entry-title,
.page-title {
  font-family: var(--st-font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--st-white);
}

/* ─────────────────────────────────────────
   HEADER / NAVBAR (override Astra)
───────────────────────────────────────── */
.site-header,
#masthead {
  background: rgba(10, 10, 10, 0.92) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.ast-site-identity .site-title a,
.ast-site-identity .site-title {
  font-family: var(--st-font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--st-white) !important;
  letter-spacing: 0.04em;
}

/* Logo */
.custom-logo { height: 52px; width: auto; filter: invert(1); opacity: 0.92; clip-path: inset(0 0 32% 0); }

/* Nav links */
.main-navigation a,
.ast-header-navigation a {
  color: var(--st-gray-light) !important;
  font-family: var(--st-font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color var(--st-transition);
}
.main-navigation a:hover,
.ast-header-navigation a:hover { color: var(--st-white) !important; }

/* CTA nav button */
.menu-item-cta a {
  background: var(--st-green) !important;
  color: var(--st-white) !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 2px !important;
}
.menu-item-cta a:hover { background: var(--st-green-light) !important; }

/* ─────────────────────────────────────────
   CONTEÚDO PRINCIPAL
───────────────────────────────────────── */
.site-content,
#content,
.ast-container {
  background: var(--st-dark);
  padding-top: 80px; /* compensar header fixo */
}

/* ─────────────────────────────────────────
   BOTÕES
───────────────────────────────────────── */
.wp-block-button__link,
.ast-button,
.button,
input[type="submit"] {
  background: var(--st-green) !important;
  color: var(--st-white) !important;
  border: none !important;
  border-radius: 2px !important;
  font-family: var(--st-font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 0.85rem 2rem !important;
  transition: background var(--st-transition) !important;
}
.wp-block-button__link:hover,
.ast-button:hover,
.button:hover,
input[type="submit"]:hover {
  background: var(--st-green-light) !important;
}

/* Botão outline */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: var(--st-white) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--st-green-light) !important;
  color: var(--st-green-light) !important;
}

/* ─────────────────────────────────────────
   FORMULÁRIOS
───────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  background: var(--st-dark2) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: var(--st-white) !important;
  font-family: var(--st-font-body) !important;
  font-weight: 300 !important;
  border-radius: 2px !important;
  padding: 0.85rem 1rem !important;
  transition: border-color var(--st-transition) !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--st-green) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Contact Form 7 */
.wpcf7-form input[type="submit"] {
  width: 100%;
  cursor: pointer;
}

/* ─────────────────────────────────────────
   BLOG / POSTS
───────────────────────────────────────── */
.ast-article-post,
.post-card,
article.post {
  background: var(--st-dark);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color var(--st-transition);
}
.ast-article-post:hover,
article.post:hover { border-color: var(--st-green); }

.entry-meta,
.ast-post-meta { color: var(--st-gray-mid); font-size: 0.75rem; }

.category-label {
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-green-light);
}

/* ─────────────────────────────────────────
   SINGLE POST / PAGE
───────────────────────────────────────── */
.entry-content {
  color: var(--st-gray-light);
  font-size: 0.95rem;
  line-height: 1.85;
}
.entry-content h2,
.entry-content h3 {
  font-family: var(--st-font-display);
  color: var(--st-white);
  margin-top: 2rem;
}
.entry-content a { color: var(--st-green-light); }
.entry-content blockquote {
  border-left: 3px solid var(--st-green);
  background: var(--st-dark2);
  padding: 1.5rem 2rem;
  font-family: var(--st-font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--st-white);
}

/* ─────────────────────────────────────────
   RODAPÉ (override Astra)
───────────────────────────────────────── */
.site-footer,
#colophon {
  background: var(--st-black) !important;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--st-gray-mid);
  font-size: 0.83rem;
}
.site-footer a { color: var(--st-gray-mid) !important; }
.site-footer a:hover { color: var(--st-white) !important; }

/* ─────────────────────────────────────────
   ELEMENTOR OVERRIDES
───────────────────────────────────────── */
.elementor-section { background: transparent; }
.elementor-widget-heading .elementor-heading-title { font-family: var(--st-font-display); font-weight: 300; }
.elementor-widget-text-editor { color: var(--st-gray-light); font-family: var(--st-font-body); font-weight: 300; line-height: 1.8; }

/* Section tag (etiqueta verde acima dos títulos) */
.st-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--st-green-light);
  margin-bottom: 1rem;
}
.st-section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--st-green-light);
}

/* Card de área de atuação */
.st-area-card {
  background: var(--st-dark);
  padding: 2.2rem;
  border-bottom: 2px solid transparent;
  transition: background var(--st-transition), border-color var(--st-transition);
}
.st-area-card:hover {
  background: var(--st-dark2);
  border-color: var(--st-green);
}

/* Card de equipe */
.st-team-card {
  background: var(--st-dark2);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: border-color var(--st-transition);
}
.st-team-card:hover { border-color: var(--st-green); }
.st-team-card img { filter: grayscale(20%); transition: filter var(--st-transition); }
.st-team-card:hover img { filter: grayscale(0%); }

/* WhatsApp flutuante */
.st-whatsapp-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  background: #25D366;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 18px rgba(37,211,102,0.28);
  transition: transform var(--st-transition);
}
.st-whatsapp-float:hover { transform: scale(1.1); }

/* ─────────────────────────────────────────
   RESPONSIVO
───────────────────────────────────────── */
@media (max-width: 768px) {
  .entry-title, .page-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .site-content, #content { padding-top: 70px; }
}
