:root {
  --navy: #08163f;
  --ink: #162033;
  --muted: #667085;
  --gold: #b9955b;
  --green: #26735f;
  --paper: #f7f4ef;
  --soft: #eef2f1;
  --white: #ffffff;
  --line: rgba(8, 22, 63, 0.12);
  --shadow: 0 24px 70px rgba(8, 22, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(8, 22, 63, 0.08);
}

.brand img {
  width: 184px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
}

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

.nav-pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.nav-pill {
  background: var(--navy);
  color: var(--white) !important;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.brand-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 76px);
  color: var(--white);
  text-align: center;
  background-image:
    linear-gradient(rgba(8, 22, 63, 0.55), rgba(8, 22, 63, 0.65)),
    url('../img/advogada.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow: hidden;
}

.brand-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(8, 22, 63, 0.1) 0%, rgba(8, 22, 63, 0.55) 100%);
  pointer-events: none;
}

.brand-hero-content {
  position: relative;
  max-width: 920px;
}

.brand-hero-eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.brand-hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  letter-spacing: 0.01em;
}

.brand-hero-subtitle {
  margin: 22px auto 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}

.brand-hero .button.ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 76px);
  background: linear-gradient(115deg, var(--paper) 0%, #ffffff 52%, var(--soft) 100%);
}

.hero-headline {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.15;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 5vw, 5.3rem);
}

.hero p {
  max-width: 620px;
  color: #3f4a5f;
  font-size: 1.08rem;
}

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

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 520px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: 200px;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(8, 22, 63, 0.14);
  font-size: 0.8rem;
}

.hero-badge strong,
.hero-badge span {
  display: block;
}

.hero-badge strong {
  font-size: 0.92rem;
}

.hero-badge span {
  color: var(--muted);
  font-size: 0.78rem;
}

.band {
  margin: 0;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 76px);
  background: var(--navy);
  color: var(--white);
}

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

.metrics div {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 22px;
}

.metrics strong {
  display: block;
  color: var(--gold);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.35rem;
}

.metrics span {
  color: rgba(255, 255, 255, 0.78);
}

.section,
.split-section,
.contact-section,
.page-hero,
.article-hero,
.admin-layout,
.login-wrap {
  padding: clamp(62px, 8vw, 112px) clamp(20px, 5vw, 76px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.content-panel h2,
.contact-section h2,
.page-hero h1,
.article-hero h1,
.admin-side h1,
.auth-card h1 {
  font-size: clamp(2rem, 3.6vw, 3.6rem);
}

.service-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  padding: 30px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 18px 48px rgba(8, 22, 63, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--gold);
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  box-shadow: 0 30px 70px rgba(8, 22, 63, 0.18);
}

.solution-card:hover .solution-link {
  color: var(--gold);
  letter-spacing: 0.04em;
}

.solution-card h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.solution-card p {
  margin: 0;
  color: var(--muted);
}

.solution-link {
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
}

.service-card,
.post-card,
.auth-card,
.admin-form,
.admin-posts,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(8, 22, 63, 0.08);
}

.service-card,
.post-card {
  min-height: 250px;
  padding: 26px;
}

.service-card span {
  color: var(--gold);
  font-weight: 800;
}

.service-card h3,
.post-card h3 {
  margin: 18px 0 12px;
  font-size: 1.35rem;
}

.service-card p,
.post-card span,
.page-hero p,
.article-meta {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--paper);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.74);
}

.testimonial {
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: center;
  gap: 34px;
}

.testimonial blockquote {
  margin: 0 0 18px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.35;
}

.testimonial img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

.prevention-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(62px, 8vw, 112px) clamp(20px, 5vw, 76px);
  background: linear-gradient(135deg, var(--paper) 0%, #ffffff 100%);
  color: var(--ink);
}

.prevention-quote blockquote {
  margin: 18px 0 14px;
  padding: 0 0 0 18px;
  border-left: 4px solid var(--gold);
  color: var(--navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.35;
}

.prevention-source {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.prevention-chart {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(8, 22, 63, 0.1);
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.chart-label strong {
  display: block;
  color: var(--navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
}

.chart-label span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.chart-bar-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chart-bar {
  position: relative;
  flex: 1;
  height: 28px;
  border-radius: 6px;
  background: rgba(8, 22, 63, 0.06);
  overflow: hidden;
}

.chart-fill {
  width: var(--w);
  height: 100%;
  border-radius: 6px;
  animation: chartGrow 0.9s ease forwards;
  transform-origin: left;
}

.chart-fill-high {
  background: linear-gradient(90deg, #c2410c 0%, #b91c1c 100%);
}

.chart-fill-low {
  background: linear-gradient(90deg, var(--green) 0%, #34936f 100%);
}

.chart-value {
  flex-shrink: 0;
  min-width: 64px;
  text-align: right;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

.chart-value-high {
  color: #b91c1c;
}

.chart-value-low {
  color: var(--green);
}

.chart-caption {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

@keyframes chartGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.testimonials {
  display: grid;
  gap: 32px;
}

.testimonials-heading {
  text-align: center;
}

.testimonials-heading .eyebrow {
  color: var(--gold);
}

.testimonials-heading h2 {
  display: inline-block;
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  white-space: nowrap;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--white);
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.45;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-footer img,
.testimonial-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-mark {
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.testimonial-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 4px;
}

.testimonial-media.two {
  grid-template-columns: repeat(2, 1fr);
}

.testimonial-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.testimonial-logo {
  width: 56px;
  height: 56px;
  margin-left: auto;
  border-radius: 8px;
  object-fit: contain;
  background: var(--white);
  padding: 6px;
}

.testimonial-footer cite {
  display: block;
  color: var(--white);
  font-style: normal;
  font-weight: 700;
}

.testimonial-footer span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(8, 22, 63, 0.16);
}

.post-card p {
  margin: 0;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.post-card h3 {
  color: var(--gold);
}

.post-card a {
  margin-top: auto;
  color: var(--navy);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 72px);
  background: var(--soft);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  color: var(--navy);
  font-weight: 800;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-links svg {
  flex-shrink: 0;
  color: var(--gold);
}

.about-section {
  display: grid;
  gap: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.about-copy p {
  margin: 0 0 16px;
  color: #3f4a5f;
  font-size: 1.05rem;
}

.pillar-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pillar-list li {
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: var(--paper);
}

.pillar-list strong {
  display: block;
  color: var(--navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.2rem;
}

.pillar-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.about-cta {
  padding: 32px;
  border-radius: 10px;
  background: var(--paper);
  border-left: 4px solid var(--gold);
}

.about-cta p {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.4rem;
}

.practice-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  scroll-margin-top: 100px;
}

.practice-area.alt {
  background: linear-gradient(135deg, #f1e3c6 0%, #efe0bf 100%);
}

.practice-heading h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

.practice-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.practice-list li {
  position: relative;
  padding: 16px 18px 16px 46px;
  border: 1px solid rgba(185, 149, 91, 0.32);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: linear-gradient(120deg, var(--paper) 0%, #fdf7eb 100%);
  color: var(--navy);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.practice-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(185, 149, 91, 0.18);
}

.practice-list li:hover {
  transform: translateX(2px);
  box-shadow: 0 12px 28px rgba(185, 149, 91, 0.22);
}

.practice-area.alt .practice-list li {
  background: var(--white);
}

.contact-form,
.admin-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
}

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

textarea {
  resize: vertical;
}

.editor-shell {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.editor-toolbar button,
.editor-toolbar select,
.color-tool {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.editor-toolbar button {
  padding: 0 11px;
  cursor: pointer;
}

.editor-toolbar select {
  width: auto;
  padding: 0 34px 0 10px;
}

.color-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
}

.color-tool input {
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
}

.rich-editor {
  min-height: 360px;
  padding: 20px;
  outline: none;
  background: var(--white);
}

.rich-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(185, 149, 91, 0.32);
}

.rich-editor h1,
.rich-editor h2,
.rich-editor h3,
.rich-editor h4 {
  margin: 18px 0 10px;
}

.rich-editor p,
.rich-editor ul,
.rich-editor ol,
.rich-editor blockquote {
  margin: 0 0 14px;
}

.rich-editor blockquote {
  padding: 16px;
  border-left: 4px solid var(--gold);
  background: var(--paper);
}

.editor-source {
  display: none;
}

.contact-form,
.admin-form {
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.page-hero,
.article-hero {
  background: var(--paper);
}

.page-hero p,
.article-hero {
  max-width: 780px;
}

.page-hero-navy {
  position: relative;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy) 0%, #112055 65%, #1a2f7a 100%);
  overflow: hidden;
}

.page-hero-navy::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 149, 91, 0.32) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-navy .eyebrow {
  color: var(--gold);
}

.page-hero-navy h1 {
  color: var(--white);
}

.page-hero-navy p {
  color: rgba(255, 255, 255, 0.86);
}

.page-hero-copy {
  position: relative;
  max-width: 820px;
}

.about-cta-navy {
  background: linear-gradient(120deg, var(--navy) 0%, #112055 100%);
  border-left: 4px solid var(--gold);
  color: var(--white);
}

.about-cta-navy p {
  color: var(--white);
}

.about-cta-navy .button.ghost {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--white);
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  background: linear-gradient(120deg, var(--paper) 0%, #ffffff 100%);
}

.blog-hero-copy {
  max-width: 580px;
}

.blog-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
}

.article-body {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 76px) 20px;
  font-size: 1.08rem;
}

.article-body h2,
.article-body h3 {
  margin-top: 36px;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 22px;
  border-left: 4px solid var(--gold);
  background: var(--paper);
  color: var(--navy);
  font-family: "Libre Baskerville", Georgia, serif;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--green);
  font-weight: 800;
}

.login-wrap {
  display: grid;
  place-items: center;
  min-height: 70vh;
  background: var(--paper);
}

.auth-card {
  width: min(100%, 460px);
}

.admin-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  background: var(--paper);
}

.admin-side {
  position: sticky;
  top: 110px;
  align-self: start;
}

.admin-side .button {
  width: 100%;
  margin-top: 12px;
}

.admin-form h2 {
  font-size: 1.45rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-success,
.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 700;
}

.form-success {
  color: #12543b;
  background: #e7f6ee;
}

.form-error {
  color: #7f1d1d;
  background: #fee2e2;
}

.admin-posts {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 24px;
}

.admin-posts h2 {
  font-size: 1.35rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.posts-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.posts-table th,
.posts-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.posts-table th {
  color: var(--navy);
  background: var(--paper);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.posts-table td:nth-child(1) {
  width: 26%;
}

.posts-table td:nth-child(4) {
  color: var(--muted);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions form {
  margin: 0;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.mini-button.danger {
  border-color: rgba(127, 29, 29, 0.22);
  background: #fee2e2;
  color: #7f1d1d;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 36px;
  padding: 48px clamp(20px, 5vw, 76px) 96px;
  color: rgba(255, 255, 255, 0.8);
  background: #050b23;
}

.footer-brand strong {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.25rem;
}

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

.footer-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 16px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-social::before {
  content: "Siga";
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.footer-contact {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-map {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 200px;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
  display: block;
}

.footer-credit {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  text-align: center;
}

.footer-credit a {
  display: inline;
  color: var(--gold);
  font-weight: 700;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #052a16;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.whatsapp-float svg {
  color: #052a16;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero,
  .split-section,
  .contact-section,
  .admin-layout,
  .prevention-section,
  .about-grid,
  .practice-area,
  .blog-hero {
    grid-template-columns: 1fr;
  }

  .chart-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-media {
    min-height: 420px;
  }

  .service-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .brand-hero {
    background-attachment: scroll;
    min-height: auto;
  }

  .admin-side {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    justify-items: start;
    text-align: left;
  }

  .footer-map {
    min-height: 220px;
  }
}

@media (max-width: 680px) {
  .brand img {
    width: 150px;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 340px;
  }

  .hero-badge {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }

  .metrics,
  .service-grid,
  .blog-grid,
  .testimonial,
  .form-row,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .testimonial {
    display: grid;
  }

  .testimonial img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
