/*
Theme Name: NDM Advocacia Moderno
Theme URI: https://advnielthondiogo.com.br/
Author: NDM Advocacia
Description: Tema institucional exclusivo para a NDM Advocacia.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ndm-modern
*/

:root {
  --ndm-navy-950: #061827;
  --ndm-navy-900: #082236;
  --ndm-navy-800: #0d3049;
  --ndm-blue-700: #174a69;
  --ndm-gold-500: #c9a85f;
  --ndm-gold-400: #ddc17e;
  --ndm-cream: #f7f4ed;
  --ndm-paper: #fffefa;
  --ndm-ink: #132432;
  --ndm-muted: #5d6973;
  --ndm-line: rgba(12, 48, 73, .13);
  --ndm-shadow: 0 24px 70px rgba(6, 24, 39, .12);
  --ndm-radius: 24px;
  --ndm-serif: Georgia, "Times New Roman", serif;
  --ndm-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ndm-ink);
  background: var(--ndm-paper);
  font-family: var(--ndm-sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
::selection { color: #fff; background: var(--ndm-blue-700); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  top: 10px; left: 10px; width: auto; height: auto; margin: 0; padding: 10px 14px;
  clip: auto; z-index: 99999; background: #fff; color: var(--ndm-navy-900);
}
.ndm-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.ndm-narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.ndm-section { padding: 112px 0; }
.ndm-section--soft { background: var(--ndm-cream); }
.ndm-section--dark { color: #fff; background: var(--ndm-navy-950); }
.ndm-kicker {
  display: inline-flex; gap: 10px; align-items: center; margin: 0 0 18px;
  color: var(--ndm-gold-500); font-size: .76rem; font-weight: 800;
  letter-spacing: .15em; line-height: 1.3; text-transform: uppercase;
}
.ndm-kicker::before { width: 34px; height: 1px; content: ""; background: currentColor; }
.ndm-heading {
  max-width: 850px; margin: 0; color: var(--ndm-navy-900);
  font-family: var(--ndm-serif); font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 400; letter-spacing: -.035em; line-height: 1.08;
}
.ndm-section--dark .ndm-heading { color: #fff; }
.ndm-heading em { color: var(--ndm-gold-500); font-style: normal; }
.ndm-lead { max-width: 680px; margin: 24px 0 0; color: var(--ndm-muted); font-size: 1.08rem; }
.ndm-section--dark .ndm-lead { color: rgba(255,255,255,.68); }
.ndm-button {
  display: inline-flex; min-height: 52px; padding: 13px 22px; gap: 10px;
  align-items: center; justify-content: center; border: 1px solid var(--ndm-gold-500);
  border-radius: 999px; color: var(--ndm-navy-950); background: var(--ndm-gold-500);
  font-size: .88rem; font-weight: 800; letter-spacing: .025em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.ndm-button:hover, .ndm-button:focus-visible { transform: translateY(-2px); background: var(--ndm-gold-400); }
.ndm-button--ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.28); }
.ndm-button--ghost:hover, .ndm-button--ghost:focus-visible { color: var(--ndm-navy-950); background: #fff; border-color: #fff; }

/* Header */
.site-header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(6,24,39,.76);
  backdrop-filter: blur(16px); transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(6,24,39,.96); box-shadow: 0 12px 36px rgba(0,0,0,.16); }
.site-header__inner { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { display: inline-flex; width: 212px; align-items: center; }
.site-brand img { display: block; width: 100%; max-height: 68px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; padding: 0; margin: 0; align-items: center; gap: 27px; list-style: none; }
.site-nav a { color: rgba(255,255,255,.86); font-size: .82rem; font-weight: 750; letter-spacing: .03em; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ndm-gold-400); }
.site-nav .menu-item:last-child a {
  display: inline-flex; min-height: 44px; padding: 10px 18px; align-items: center;
  border: 1px solid var(--ndm-gold-500); border-radius: 999px; color: var(--ndm-gold-400);
}
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%; color: #fff; background: transparent; cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  display: block; width: 18px; height: 1px; margin: 5px auto; content: ""; background: currentColor;
}

/* Hero */
.ndm-hero {
  position: relative; display: grid; min-height: 820px; padding: 184px 0 96px; overflow: hidden;
  align-items: center; color: #fff; background:
    radial-gradient(circle at 82% 28%, rgba(201,168,95,.16), transparent 26%),
    radial-gradient(circle at 8% 88%, rgba(33,96,132,.28), transparent 34%),
    linear-gradient(120deg, #061827 0%, #0a2940 58%, #071d2d 100%);
}
.ndm-hero::before {
  position: absolute; inset: 0; content: ""; opacity: .34;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 74px 74px; mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.ndm-hero::after {
  position: absolute; width: 560px; height: 560px; right: -180px; top: 160px;
  border: 1px solid rgba(201,168,95,.18); border-radius: 50%; content: "";
  box-shadow: 0 0 0 84px rgba(201,168,95,.035), 0 0 0 168px rgba(201,168,95,.025);
}
.ndm-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 72px; }
.ndm-hero h1 {
  max-width: 860px; margin: 0; font-family: var(--ndm-serif); font-size: clamp(3.15rem, 6vw, 5.8rem);
  font-weight: 400; letter-spacing: -.055em; line-height: .98;
}
.ndm-hero h1 em { color: var(--ndm-gold-400); font-style: normal; }
.ndm-hero__intro { max-width: 700px; margin: 32px 0 0; color: rgba(255,255,255,.72); font-size: 1.12rem; }
.ndm-hero__actions { display: flex; margin-top: 36px; flex-wrap: wrap; gap: 13px; }
.ndm-hero__panel { padding: 28px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--ndm-radius); background: rgba(255,255,255,.055); backdrop-filter: blur(10px); }
.ndm-hero__panel-label { margin: 0 0 18px; color: var(--ndm-gold-400); font-size: .73rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ndm-hero__panel ul { padding: 0; margin: 0; list-style: none; }
.ndm-hero__panel li { display: flex; padding: 13px 0; gap: 12px; border-top: 1px solid rgba(255,255,255,.11); color: rgba(255,255,255,.85); font-size: .92rem; }
.ndm-hero__panel li::before { color: var(--ndm-gold-500); content: "↗"; }
.ndm-hero__meta { position: absolute; z-index: 2; bottom: 28px; right: 0; left: 0; color: rgba(255,255,255,.52); font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }

/* Areas */
.ndm-areas { display: grid; margin-top: 54px; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ndm-area-card {
  position: relative; min-height: 318px; padding: 38px; overflow: hidden;
  border: 1px solid var(--ndm-line); border-radius: var(--ndm-radius); background: var(--ndm-paper);
  box-shadow: 0 12px 34px rgba(6,24,39,.05); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ndm-area-card:hover { transform: translateY(-5px); border-color: rgba(201,168,95,.58); box-shadow: var(--ndm-shadow); }
.ndm-area-card--featured { color: #fff; background: var(--ndm-navy-900); }
.ndm-area-card::after { position: absolute; right: -34px; bottom: -45px; width: 150px; height: 150px; border: 1px solid rgba(201,168,95,.22); border-radius: 50%; content: ""; }
.ndm-area-card__number { display: block; margin-bottom: 58px; color: var(--ndm-gold-500); font-family: var(--ndm-serif); font-size: 1rem; }
.ndm-area-card h3 { max-width: 420px; margin: 0 0 15px; color: var(--ndm-navy-900); font-family: var(--ndm-serif); font-size: clamp(1.6rem, 2.5vw, 2.15rem); font-weight: 400; line-height: 1.12; }
.ndm-area-card--featured h3 { color: #fff; }
.ndm-area-card p { max-width: 510px; margin: 0; color: var(--ndm-muted); font-size: .95rem; }
.ndm-area-card--featured p { color: rgba(255,255,255,.65); }
.ndm-area-card__link { display: inline-flex; margin-top: 25px; align-items: center; gap: 8px; color: var(--ndm-blue-700); font-size: .82rem; font-weight: 800; }
.ndm-area-card--featured .ndm-area-card__link { color: var(--ndm-gold-400); }

/* Context */
.ndm-context { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 90px; }
.ndm-context__intro { position: sticky; top: 140px; }
.ndm-situations { display: grid; gap: 12px; }
.ndm-situation { display: grid; padding: 27px 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; grid-template-columns: 44px 1fr; gap: 15px; background: rgba(255,255,255,.035); }
.ndm-situation__icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(201,168,95,.38); border-radius: 50%; color: var(--ndm-gold-400); }
.ndm-situation h3 { margin: 0 0 5px; font-size: 1rem; }
.ndm-situation p { margin: 0; color: rgba(255,255,255,.62); font-size: .89rem; }

/* About and method */
.ndm-about { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 86px; }
.ndm-about__mark {
  position: relative; display: grid; min-height: 0; padding: 0; place-items: center;
  overflow: visible; border: 0; border-radius: 0; background: transparent;
}
.ndm-about__mark::before { display: none; }
.ndm-about__logo {
  position: relative; z-index: 1; display: block; width: min(100%, 260px); height: auto;
  aspect-ratio: 1 / 1; object-fit: contain; border-radius: 10px;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.26));
}
.ndm-about__text p { color: var(--ndm-muted); }
.ndm-about__facts { display: grid; padding: 0; margin: 34px 0 0; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
.ndm-about__facts li { padding-top: 15px; border-top: 1px solid var(--ndm-line); color: var(--ndm-navy-900); font-size: .82rem; font-weight: 750; }
.ndm-method { display: grid; margin-top: 54px; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ndm-step { padding: 32px; border-top: 2px solid var(--ndm-gold-500); background: rgba(255,255,255,.045); }
.ndm-step__number { color: var(--ndm-gold-400); font-family: var(--ndm-serif); font-size: 2rem; }
.ndm-step h3 { margin: 50px 0 10px; font-family: var(--ndm-serif); font-size: 1.45rem; font-weight: 400; }
.ndm-step p { margin: 0; color: rgba(255,255,255,.62); font-size: .9rem; }

/* Articles */
.ndm-articles-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.ndm-articles { display: grid; margin-top: 52px; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ndm-article { display: flex; min-height: 360px; padding: 30px; flex-direction: column; border: 1px solid var(--ndm-line); border-radius: 20px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.ndm-article:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(6,24,39,.09); }
.ndm-article__meta { color: var(--ndm-gold-500); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ndm-article h3 { margin: 24px 0 13px; color: var(--ndm-navy-900); font-family: var(--ndm-serif); font-size: 1.55rem; font-weight: 400; line-height: 1.2; }
.ndm-article p { margin: 0; color: var(--ndm-muted); font-size: .9rem; }
.ndm-article__more { margin-top: auto; padding-top: 28px; color: var(--ndm-blue-700); font-size: .8rem; font-weight: 800; }

/* Contact and footer */
.ndm-contact { position: relative; overflow: hidden; }
.ndm-contact::after { position: absolute; width: 460px; height: 460px; right: -180px; bottom: -250px; border: 1px solid rgba(201,168,95,.22); border-radius: 50%; content: ""; box-shadow: 0 0 0 72px rgba(201,168,95,.035); }
.ndm-contact__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; }
.ndm-contact__details { display: grid; gap: 12px; }
.ndm-contact__item { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.ndm-contact__item small { display: block; color: var(--ndm-gold-400); font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ndm-contact__item strong { display: block; margin-top: 5px; font-size: 1rem; font-weight: 600; }
.site-footer { padding: 34px 0; color: rgba(255,255,255,.55); background: #04131f; font-size: .78rem; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-footer a:hover { color: var(--ndm-gold-400); }

/* Content pages and blog */
.ndm-page-hero { padding: 190px 0 92px; color: #fff; background: linear-gradient(125deg, var(--ndm-navy-950), var(--ndm-navy-800)); }
.ndm-page-hero h1 { max-width: 900px; margin: 0; font-family: var(--ndm-serif); font-size: clamp(2.8rem, 5vw, 4.7rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; }
.ndm-content { padding: 78px 0 110px; }
.ndm-content h2, .ndm-content h3 { color: var(--ndm-navy-900); font-family: var(--ndm-serif); font-weight: 400; line-height: 1.18; }
.ndm-content h2 { margin-top: 2.2em; font-size: 2rem; }
.ndm-content h3 { margin-top: 1.8em; font-size: 1.45rem; }
.ndm-content p, .ndm-content li { color: #44535e; }
.ndm-content a { color: var(--ndm-blue-700); text-decoration: underline; text-underline-offset: 3px; }
.ndm-content blockquote { padding: 18px 24px; margin: 34px 0; border-left: 3px solid var(--ndm-gold-500); background: var(--ndm-cream); }
.ndm-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ndm-pagination { margin-top: 48px; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; right: 20px; left: 20px; display: none; padding: 22px;
    border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: var(--ndm-navy-950); box-shadow: var(--ndm-shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 12px 4px; }
  .site-nav .menu-item:last-child a { justify-content: center; margin-top: 8px; }
  .ndm-hero__grid, .ndm-context, .ndm-about, .ndm-contact__grid { grid-template-columns: 1fr; }
  .ndm-hero { min-height: 900px; }
  .ndm-hero__grid { gap: 48px; }
  .ndm-hero__panel { max-width: 640px; }
  .ndm-context { gap: 52px; }
  .ndm-context__intro { position: static; }
  .ndm-about { gap: 48px; }
  .ndm-about__mark { min-height: 0; padding: 0; }
  .ndm-articles, .ndm-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .ndm-wrap, .ndm-narrow { width: min(100% - 28px, 1180px); }
  .ndm-section { padding: 82px 0; }
  .site-header__inner { min-height: 76px; }
  .site-brand { width: 172px; }
  .ndm-hero { min-height: auto; padding: 142px 0 112px; }
  .ndm-hero h1 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .ndm-hero__meta { bottom: 18px; }
  .ndm-areas, .ndm-method, .ndm-articles, .ndm-blog-grid { grid-template-columns: 1fr; }
  .ndm-area-card { min-height: 300px; padding: 30px; }
  .ndm-about__facts { grid-template-columns: 1fr; }
  .ndm-about__mark { min-height: 0; padding: 0; }
  .ndm-articles-head, .site-footer__inner { align-items: flex-start; flex-direction: column; }
  .ndm-page-hero { padding: 150px 0 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
