:root {
  --navy-950: #071521;
  --navy-900: #0b1e2f;
  --navy-800: #12314b;
  --navy-700: #194563;
  --gold-500: #bd9854;
  --gold-400: #d0b06e;
  --cream-100: #f7f4ed;
  --cream-50: #fcfbf8;
  --ink: #13202a;
  --muted: #5a6670;
  --line: #d9d5cb;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 21, 33, 0.13);
  --radius: 0.45rem;
  --content: 74rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy-950);
  border-radius: var(--radius);
}

.skip-link:focus { top: 1rem; }

.container {
  width: min(calc(100% - 2.5rem), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 248, 0.96);
  border-bottom: 1px solid rgba(11, 30, 47, 0.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  overflow: hidden;
  color: transparent;
  background-color: var(--navy-950);
  background-image: url("/assets/logo-vinicius-faria.jpg");
  background-position: 50% 18%;
  background-size: 190%;
  background-repeat: no-repeat;
  border: 1px solid rgba(208, 176, 110, 0.48);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-name {
  display: block;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.brand-detail {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav > a:not(.button) {
  color: var(--navy-800);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav > a:not(.button):hover,
.site-nav > a:not(.button):focus-visible { color: #8c6b2e; }

.nav-toggle {
  display: none;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0;
  color: var(--navy-950);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

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

.button-primary:hover { background: #dfc383; }

.button-secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

.button-secondary:hover { border-color: var(--gold-400); }

.button-outline {
  color: var(--navy-900);
  background: transparent;
  border-color: var(--navy-800);
}

.button-outline:hover { background: rgba(11, 30, 47, 0.05); }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 21, 33, 0.98) 0%, rgba(7, 21, 33, 0.94) 43%, rgba(7, 21, 33, 0.60) 70%, rgba(7, 21, 33, 0.28) 100%),
    url("/assets/hero-escritorio-editorial.png") center / cover no-repeat,
    var(--navy-950);
}

.hero::after {
  content: "";
  position: absolute;
  width: 30rem;
  height: 30rem;
  right: -12rem;
  bottom: -18rem;
  border: 1px solid rgba(208, 176, 110, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(208, 176, 110, 0.035), 0 0 0 8rem rgba(208, 176, 110, 0.025);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 40rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  align-items: center;
  gap: 5rem;
  padding-block: 6.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-400);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: clamp(2.75rem, 6vw, 5.4rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-note {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--gold-400);
  border-radius: var(--radius);
}

.hero-note strong {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.hero-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.hero-brand-card {
  justify-self: end;
  width: min(100%, 21rem);
  padding: 1.2rem;
  background: rgba(4, 10, 15, 0.8);
  border: 1px solid rgba(208, 176, 110, 0.42);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.hero-brand-card img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 0.15rem);
}

.section { padding-block: 6.5rem; }

.section-soft { background: var(--cream-100); }

.section-dark {
  color: rgba(255, 255, 255, 0.76);
  background: var(--navy-950);
}

.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading p { margin: 0; color: var(--muted); }

.section-dark .section-heading p { color: rgba(255, 255, 255, 0.68); }

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

.practice-card {
  position: relative;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(7, 21, 33, 0.04);
}

.practice-card::before {
  content: attr(data-number);
  margin-bottom: 3.5rem;
  color: var(--gold-500);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.practice-card p { margin: 0 0 1.5rem; color: var(--muted); }

.practice-card a {
  margin-top: auto;
  color: var(--navy-800);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.practice-card a:hover { color: #8c6b2e; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 5rem;
  align-items: start;
}

.about-visual {
  position: relative;
  min-height: 28rem;
  margin: 0;
  overflow: hidden;
  background: var(--navy-900);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(217, 181, 106, 0.22);
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.45rem rgba(8, 27, 43, 0.08);
}

.about-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-copy p { color: var(--muted); }

.about-copy .lead {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.55;
}

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

.principle {
  padding: 1.4rem 1.25rem;
  border-top: 1px solid rgba(208, 176, 110, 0.55);
}

.principle strong { display: block; margin-bottom: 0.35rem; color: var(--white); }
.principle p { margin: 0; font-size: 0.92rem; }

.contact-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-panel h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-panel p { margin-bottom: 0; color: var(--muted); }

.contact-list {
  display: grid;
  gap: 0.75rem;
}

.contact-list a {
  display: flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.contact-list a:hover { border-color: var(--gold-500); }

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.page-hero .container { padding-block: 5rem; }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.6rem, 5vw, 4.7rem); }
.page-hero p:not(.eyebrow) { max-width: 48rem; margin: 0; color: rgba(255,255,255,0.74); font-size: 1.12rem; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  gap: 5rem;
  align-items: start;
}

.prose { max-width: 47rem; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 3rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.55rem; }

.side-card {
  position: sticky;
  top: 7rem;
  padding: 1.6rem;
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
}

.side-card h2 { font-size: 1.5rem; }
.side-card p { color: var(--muted); font-size: 0.94rem; }
.side-card .button { width: 100%; }

.notice {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  color: var(--muted);
  background: var(--cream-100);
  border-left: 3px solid var(--gold-500);
  font-size: 0.92rem;
}

.site-footer {
  color: rgba(255, 255, 255, 0.67);
  background: #06111b;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 4rem;
  padding-block: 4rem;
}

.footer-title {
  margin-bottom: 0.8rem;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.footer-main p { max-width: 29rem; margin: 0; font-size: 0.88rem; }

.footer-links { display: grid; align-content: start; gap: 0.55rem; }
.footer-links strong { margin-bottom: 0.35rem; color: var(--white); font-size: 0.9rem; }
.footer-links a { font-size: 0.86rem; text-decoration: none; }
.footer-links a:hover { color: var(--gold-400); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
}

.cookie-settings-button {
  margin-top: 1rem;
}

.consent-banner {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(7, 21, 33, 0.98);
  border: 1px solid rgba(208, 176, 110, 0.45);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.consent-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.consent-banner strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.consent-banner p {
  max-width: 47rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.consent-banner a { color: var(--gold-400); }

.consent-banner__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
}

.consent-banner .button-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }

  .site-nav {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: calc(100% + 0.5rem);
    display: none;
    align-items: stretch;
    padding: 1rem;
    background: var(--cream-50);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] { display: grid; }
  .site-nav > a { min-height: 2.75rem; display: flex; align-items: center; }

  .hero-inner,
  .section-heading,
  .about-grid,
  .contact-panel,
  .content-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .hero-inner { min-height: 0; padding-block: 5rem; }
  .hero-note { max-width: 35rem; }
  .hero-brand-card { justify-self: start; width: min(100%, 18rem); }
  .practice-grid, .principles { grid-template-columns: 1fr; }
  .practice-card { min-height: 16rem; }
  .practice-card::before { margin-bottom: 2rem; }
  .about-visual { min-height: 21rem; }
  .side-card { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-main > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 1.5rem), var(--content)); }
  .header-inner { min-height: 4.5rem; }
  .brand-detail { display: none; }
  .section { padding-block: 4.5rem; }
  .hero-inner { padding-block: 4rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .contact-panel { padding: 1.5rem; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-main > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .consent-banner { right: 0.75rem; bottom: 0.75rem; left: 0.75rem; }
  .consent-banner__content { display: grid; gap: 1rem; }
  .consent-banner__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-banner__actions .button { min-height: 2.75rem; padding-inline: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
