﻿/*
Theme Name: NÃºcleo JurÃ­dico Especializado
Theme URI: https://seudominio.com.br/
Author: NÃºcleo JurÃ­dico Especializado
Description: Tema WordPress para escritÃ³rio jurÃ­dico multiespecialista com pÃ¡gina inicial, captaÃ§Ã£o via WhatsApp e blog nativo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: nucleo-juridico
*/

:root {
  color-scheme: light;
  --ink: #1b1b1b;
  --muted: #67615b;
  --paper: #f6f1ea;
  --cream: #fffaf2;
  --white: #ffffff;
  --line: #e5d8c7;
  --wine: #6f2027;
  --wine-dark: #461217;
  --gold: #c89445;
  --green: #173d35;
  --shadow: 0 26px 70px rgba(48, 25, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(20px, 5vw, 74px);
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid rgba(111, 32, 39, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--wine-dark);
  white-space: nowrap;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--wine);
  color: var(--cream);
  font-size: 0.8rem;
}

.brand-text {
  max-width: 170px;
  line-height: 1.05;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--wine);
}

.header-button {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  align-items: end;
  gap: clamp(30px, 5vw, 76px);
  min-height: 92vh;
  padding: 156px clamp(20px, 5vw, 74px) 70px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(49, 12, 18, 0.9), rgba(49, 12, 18, 0.62)),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1900&q=82")
      center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(70, 18, 23, 0.42));
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(2.7rem, 5.8vw, 6.1rem);
}

.hero-copy p:not(.eyebrow) {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 13px 21px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.button:hover,
.header-button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--gold);
  color: #23150a;
  box-shadow: 0 16px 34px rgba(200, 148, 69, 0.28);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.hero-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(70, 18, 23, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.7rem;
}

.hero-card span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.hero-card-line {
  height: 1px;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.24);
}

.section {
  padding: clamp(58px, 8vw, 110px) clamp(20px, 5vw, 74px);
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  background: var(--cream);
}

.about-image {
  min-height: 540px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(70, 18, 23, 0.05), rgba(70, 18, 23, 0.18)),
    url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1200&q=82")
      center / cover;
  box-shadow: var(--shadow);
}

h2 {
  max-width: 850px;
  color: var(--wine-dark);
  font-size: clamp(2rem, 3.8vw, 3.7rem);
}

h3,
p {
  margin-top: 0;
}

.about-copy > p:not(.eyebrow),
.section-heading + p,
.testimonial-copy p:not(.eyebrow),
.team > div:first-child p,
.contact-copy p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.07rem;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.benefits article,
.service-grid article,
.article-grid article,
.team-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.benefits article {
  min-height: 170px;
  padding: 22px;
}

.benefits h3,
.service-grid h3,
.article-grid h3,
.team-grid h3 {
  margin-bottom: 10px;
  color: var(--wine-dark);
}

.benefits p,
.service-grid p,
.article-grid p,
.team-grid p {
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--wine-dark);
  color: var(--white);
}

.metrics div {
  min-height: 170px;
  padding: 34px clamp(18px, 4vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.metrics strong {
  display: block;
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.services {
  background: var(--paper);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.service-grid article {
  min-height: 300px;
  padding: 30px;
}

.service-grid span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 48px;
  border-radius: 50%;
  background: rgba(200, 148, 69, 0.16);
  color: var(--wine);
  font-weight: 900;
}

.articles {
  background: var(--cream);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-grid article,
.article-grid .post-card {
  display: grid;
  align-content: space-between;
  min-height: 250px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98)),
    linear-gradient(135deg, var(--wine), var(--gold));
}

.article-grid article > p,
.article-grid .post-card > p {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-grid a {
  color: var(--wine);
  font-weight: 900;
}

.article-grid .post-card h3 {
  font-size: 1.17rem;
  line-height: 1.22;
}

.article-grid .post-card span {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.testimonials {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 72px);
  background: var(--green);
}

.testimonials h2,
.testimonials .testimonial-copy p:not(.eyebrow) {
  color: var(--white);
}

.testimonial-list {
  display: grid;
  gap: 16px;
}

blockquote {
  margin: 0;
  padding: 28px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

cite {
  display: block;
  margin-top: 18px;
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.team {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  background: var(--paper);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-grid article {
  overflow: hidden;
  background: var(--cream);
}

.team-grid h3,
.team-grid p {
  padding-inline: 22px;
}

.team-grid h3 {
  margin-top: 22px;
}

.team-grid p {
  padding-bottom: 24px;
}

.avatar {
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

.avatar-one {
  background-image: url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=800&q=82");
}

.avatar-two {
  background-image: url("https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&w=800&q=82");
}

.avatar-three {
  background-image: url("https://images.unsplash.com/photo-1556157382-97eda2d62296?auto=format&fit=crop&w=800&q=82");
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 520px);
  gap: clamp(34px, 7vw, 86px);
  background: var(--cream);
}

.contact-copy ul {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.contact-copy li {
  position: relative;
  padding-left: 30px;
  color: var(--wine-dark);
  font-weight: 800;
}

.contact-copy li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold);
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--wine-dark);
  font-size: 0.92rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffcf7;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 4px rgba(111, 32, 39, 0.12);
}

textarea {
  resize: vertical;
}

.submit-button {
  width: 100%;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note.success {
  color: var(--green);
  font-weight: 900;
}

.form-note.error {
  color: var(--wine);
  font-weight: 900;
}

.footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 26px;
  padding: 38px clamp(20px, 5vw, 74px);
  background: #16100f;
  color: rgba(255, 255, 255, 0.78);
}

.footer strong {
  color: var(--white);
}

.footer p {
  margin: 8px 0 0;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 999px;
  background: #1fa855;
  color: var(--white);
  box-shadow: 0 18px 42px rgba(31, 168, 85, 0.34);
  font-weight: 900;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

.instagram-float {
  position: fixed;
  right: 138px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(111, 32, 39, 0.28);
  font-weight: 900;
}

.instagram-float:hover {
  transform: translateY(-2px);
}

.blog-hero {
  padding: 150px clamp(20px, 5vw, 74px) 76px;
  background:
    linear-gradient(90deg, rgba(70, 18, 23, 0.92), rgba(70, 18, 23, 0.7)),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1800&q=82")
      center / cover;
  color: var(--white);
}

.blog-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.blog-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: var(--cream);
}

.post-card {
  display: grid;
  align-content: space-between;
  min-height: 360px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(48, 25, 18, 0.08);
}

.post-card-image {
  display: block;
  overflow: hidden;
  margin: -30px -30px 24px;
  aspect-ratio: 16 / 9;
  border-radius: 8px 8px 0 0;
  background: var(--paper);
}

.post-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card p {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.post-card span {
  margin-top: 22px;
  color: var(--muted);
  font-weight: 700;
}

.post-card a,
.back-link {
  margin-top: 28px;
  color: var(--wine);
  font-weight: 900;
}

.article-page {
  padding: 130px clamp(20px, 5vw, 74px) 80px;
  background: var(--cream);
}

.article-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-shell h1 {
  max-width: 780px;
  margin: 0;
  color: var(--wine-dark);
  font-size: clamp(2.1rem, 4.8vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.article-meta {
  margin: 18px 0 34px;
  color: var(--muted);
  font-weight: 800;
}

.article-featured-image {
  overflow: hidden;
  margin: 0 0 34px;
  border-radius: 8px;
  background: var(--paper);
}

.article-featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-shell > p:not(.eyebrow):not(.article-meta),
.article-shell h2 + p,
.article-content p,
.article-content li {
  color: #3d3935;
  font-size: 1.12rem;
}

.article-shell h2,
.article-content h2 {
  margin-top: 36px;
  font-size: clamp(1.42rem, 2.5vw, 2rem);
  line-height: 1.18;
}

.article-content a {
  color: var(--wine);
  font-weight: 900;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-cta {
  margin-top: 42px;
  padding: 28px;
  border-radius: 8px;
  background: var(--wine-dark);
  color: var(--white);
}

.article-cta strong {
  display: block;
  font-size: 1.35rem;
}

.article-cta p {
  margin: 10px 0 22px;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1000px) {
  .site-header {
    position: sticky;
  }

  .main-nav,
  .header-button {
    display: none;
  }

  .hero,
  .about,
  .testimonials,
  .team,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
  }

  .hero-card {
    max-width: 520px;
  }

  .benefits,
  .service-grid,
  .article-grid,
  .team-grid,
  .metrics,
  .blog-list,
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .about-image {
    min-height: 360px;
  }

  .benefits,
  .service-grid,
  .article-grid,
  .team-grid,
  .metrics,
  .blog-list,
  .footer {
    grid-template-columns: 1fr;
  }

  .metrics div {
    min-height: 140px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .whatsapp-float,
  .instagram-float {
    right: 16px;
  }

  .instagram-float {
    bottom: 82px;
  }
}

