/*
Theme Name: Salim Menezes Advocacia
Theme URI: https://salimmenezes.com.br/
Author: Salim Menezes Advocacia
Description: Tema WordPress responsivo para advocacia em saúde, com páginas editáveis e conteúdo inicial importado automaticamente.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: salim-menezes-advocacia
*/


:root {
  --navy: #062b43;
  --navy-2: #021b2c;
  --teal: #0f6072;
  --teal-light: #dff1f4;
  --green: #19a85b;
  --gold: #c79631;
  --gold-light: #fff4dc;
  --ink: #102a3d;
  --muted: #617282;
  --line: #dce6eb;
  --bg: #f7fbfd;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(6, 43, 67, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1rem; }

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--white);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 9999;
}
.skip-link:focus { left: 8px; }

.site-header {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

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

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
  min-width: 190px;
}

.logo strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  letter-spacing: .2px;
  font-weight: 500;
}

.logo span {
  margin-top: 7px;
  font-size: .74rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.9px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: .96rem;
}

.nav a {
  position: relative;
  color: rgba(255,255,255,.92);
  padding: 30px 0 27px;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 3px;
  background: var(--gold);
  border-radius: 999px;
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 48px;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, #08364f, #07506a);
  box-shadow: 0 10px 20px rgba(6,43,67,.16);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid #0b3a55;
}

.btn-whatsapp {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(25,168,91,.22);
}

.btn-outline-light {
  color: var(--white);
  border: 1.5px solid var(--gold);
  background: transparent;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 78% 18%, rgba(17, 115, 135, .12), transparent 32%), linear-gradient(180deg, #ffffff 0%, #f5fbfd 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
  min-height: 520px;
  padding: 58px 0 46px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f5f7;
  color: #0b5263;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 800;
  margin-bottom: 20px;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy-2);
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(2.7rem, 5vw, 4.65rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3vw, 3rem); text-align: center; }
h3 { font-size: 1.45rem; }

.hero p.lead {
  font-size: 1.12rem;
  color: #214156;
  max-width: 660px;
  margin: 22px 0 26px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
  max-width: 700px;
}

.trust-item { display: flex; align-items: center; gap: 11px; font-size: .92rem; font-weight: 700; }
.trust-icon { width: 42px; height: 42px; flex: 0 0 auto; border: 2px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: var(--white); }

.illustration-card {
  background: linear-gradient(145deg, #ecf7fa, #ffffff);
  border: 1px solid #d4e6eb;
  border-radius: 32px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.section { padding: 70px 0; }
.section.compact { padding: 52px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-blue { background: linear-gradient(180deg, #eaf6f9, #f7fbfd); }

.section-title { margin-bottom: 34px; }
.section-title p { text-align: center; color: var(--muted); max-width: 760px; margin: 14px auto 0; }
.section-title::after { content: ""; display: block; width: 52px; height: 3px; background: var(--gold); border-radius: 999px; margin: 16px auto 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.service-card, .term-card, .contact-card, .testimonial, .faq-item, .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card { padding: 24px 18px; text-align: center; min-height: 160px; display: grid; place-items: center; gap: 10px; }
.service-card .icon { width: 52px; height: 52px; color: var(--navy); }
.service-card strong { display: block; line-height: 1.35; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: start;
}
.step-no { width: 38px; height: 38px; display: grid; place-items: center; background: var(--navy); color: var(--white); border-radius: 50%; font-weight: 900; margin-bottom: -12px; position: relative; z-index: 2; }
.step-icon { width: 70px; height: 70px; display: grid; place-items: center; background: var(--white); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--navy); }
.step h3 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.05rem; margin-bottom: 8px; color: var(--ink); }
.step p { color: var(--muted); font-size: .95rem; }
.note-line { margin-top: 30px; padding-top: 22px; border-top: 1px solid #c9dce3; display: flex; align-items: center; justify-content: center; gap: 10px; color: #546c78; font-style: italic; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.about-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 34px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; }
.check { width: 23px; height: 23px; border-radius: 50%; background: var(--gold); color: var(--white); display: inline-grid; place-items: center; flex: 0 0 auto; font-size: .8rem; }

.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.benefit { display: flex; align-items: flex-start; gap: 12px; }
.benefit svg { flex: 0 0 auto; width: 34px; height: 34px; color: var(--navy); }

.testimonials-faq { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: start; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial { padding: 22px; }
.quote-mark { font-size: 2.3rem; color: var(--gold); font-family: Georgia, serif; line-height: .7; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .92rem; }

.faq-list { display: grid; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-button { width: 100%; background: var(--white); border: 0; padding: 17px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--ink); text-align: left; cursor: pointer; }
.faq-answer { display: none; padding: 0 18px 18px; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }

.cta-band {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: var(--white);
  padding: 44px 0;
}
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band h2 { text-align: left; color: var(--white); }
.cta-band p { color: rgba(255,255,255,.86); margin: 10px 0 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.site-footer { background: var(--navy-2); color: rgba(255,255,255,.88); padding: 30px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 34px; align-items: center; }
.footer-brand strong { display:block; color: var(--white); font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.footer-brand span { color: var(--gold); text-transform: uppercase; font-size: .7rem; letter-spacing: 1.6px; font-weight: 800; }
.footer-contact { display: flex; justify-content: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 9px; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); text-align: center; color: rgba(255,255,255,.72); font-size: .9rem; }

.legal-hero { min-height: auto; padding: 54px 0; }
.legal-hero .hero-inner { min-height: 330px; padding: 0; }
.update-badge { display: inline-flex; gap: 9px; align-items: center; background: #e5f4f7; border: 1px solid #c4e1e8; color: #244656; padding: 12px 16px; border-radius: 12px; font-weight: 800; }
.legal-wrap { padding: 54px 0 70px; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.term-card { padding: 26px; display: grid; grid-template-columns: 58px 1fr; gap: 20px; }
.term-card.full { grid-column: 1 / -1; }
.term-card h2, .term-card h3 { text-align: left; font-family: Georgia, serif; font-size: 1.35rem; margin: 0 0 10px; }
.term-card p, .term-card li { color: #344d60; font-size: .96rem; }
.term-card ul { margin: 8px 0 0; padding-left: 20px; }
.term-icon { width: 58px; height: 58px; background: #edf6f8; border-radius: 50%; display: grid; place-items: center; color: var(--navy); }
.important-box { margin-top: 22px; background: var(--gold-light); border: 1px solid #eccb84; border-radius: 16px; padding: 20px 22px; display: flex; gap: 14px; color: #4a3a12; }

.privacy-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 54px);
}
.privacy-content h2 { text-align: left; font-size: 1.58rem; margin: 34px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.privacy-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.privacy-content h3 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.08rem; margin: 24px 0 8px; color: var(--ink); }
.privacy-content ul, .privacy-content ol { padding-left: 24px; color: #344d60; }
.privacy-content li { margin: 6px 0; }
.privacy-content .callout { background: #edf7f9; border-left: 4px solid var(--teal); padding: 18px; border-radius: 12px; margin: 22px 0; }
.privacy-content .warning { background: var(--gold-light); border-left: 4px solid var(--gold); }

.contact-hero { background: linear-gradient(180deg, #ffffff, #f2f9fb); }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.contact-card svg { width: 34px; height: 34px; color: var(--navy); flex: 0 0 auto; }
.contact-card h3 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1rem; margin-bottom: 6px; color: var(--ink); }
.form-card { padding: 30px; }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
input, select, textarea { width: 100%; border: 1.5px solid #cbdce3; border-radius: 12px; padding: 13px 14px; font: inherit; color: var(--ink); background: var(--white); }
textarea { min-height: 140px; resize: vertical; }
.form-help { color: var(--muted); font-size: .9rem; }
.form-warning { background: var(--gold-light); border: 1px solid #f0cf89; border-radius: 12px; padding: 14px; font-size: .93rem; color: #4f3a08; }

.icon-inline { width: 21px; height: 21px; }

@media (max-width: 980px) {
  .header-inner { height: auto; min-height: 76px; flex-wrap: wrap; padding: 14px 0; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav a.active::after, .nav a:hover::after { bottom: 8px; }
  .hero-inner, .legal-hero .hero-inner, .two-col, .testimonials-faq, .contact-layout, .cta-inner, .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .footer-contact { justify-content: flex-start; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1140px); }
  .header-actions .btn-whatsapp { display: none; }
  .trust-row, .cards-grid, .testimonial-grid, .benefits-grid, .about-grid, .form-row { grid-template-columns: 1fr; }
  .hero-inner { padding: 38px 0; }
  .section { padding: 48px 0; }
  .term-card { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; }
  .btn { width: 100%; }
  h1 { font-size: 2.55rem; }
}


/* Quem sou */
.profile-hero .hero-inner { min-height: 500px; }
.profile-hero h1 { font-size: clamp(2.35rem, 4.1vw, 4rem); }
.profile-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 38px; align-items: start; }
.section-title.left h2 { text-align: left; }
.section-title.left::after { margin-left: 0; margin-right: auto; }
.profile-card { padding: clamp(24px, 3vw, 34px); }
.profile-card h3 { margin-bottom: 14px; }
.profile-split { align-items: stretch; }
.profile-split .profile-card { height: 100%; }
.profile-services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-note { margin-top: 0; align-items: flex-start; }
.profile-illustration svg { display: block; }
@media (max-width: 980px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .profile-services { grid-template-columns: 1fr; }
}


/* WordPress theme refinements */
body.admin-bar .site-header { top: 32px; }
.wp-caption, .aligncenter, .alignleft, .alignright { max-width: 100%; }
.current-menu-item > a { color: inherit; }
.check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.page-template-default .entry-content { max-width: 900px; margin: 0 auto; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 480px) {
  .logo strong { font-size: 1.55rem; }
  .logo span { font-size: .62rem; letter-spacing: 1.4px; }
  .illustration-card { padding: 20px; border-radius: 24px; }
  .hero-cta { gap: 10px; }
  .legal-wrap { padding: 36px 0 52px; }
  .privacy-content { border-radius: 18px; }
  .footer-contact { gap: 14px; }
}

/* Fallback for plain WordPress page content */
.entry-content > h1, .entry-content > h2, .entry-content > h3 {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.entry-content > p, .entry-content > ul, .entry-content > ol {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.entry-content > h1 { margin-top: 0; }
