:root {
  --ink: #f5f0e8;
  --muted: #b5ada2;
  --soft: #81786d;
  --line: rgba(245, 240, 232, 0.12);
  --line-soft: rgba(245, 240, 232, 0.08);
  --gold: #a8864c;
  --gold2: #c2a56e;
  --panel: rgba(16, 18, 22, 0.84);
}

@font-face {
  font-family: "Sansation";
  src: url("assets/fonts/Sansation_Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sansation";
  src: url("assets/fonts/Sansation_Regular.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sansation";
  src: url("assets/fonts/Sansation_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

body {
  margin: 0;
  background: #040506;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 18%, rgba(168, 134, 76, 0.18), transparent 30rem),
    radial-gradient(circle at 80% 76%, rgba(255, 255, 255, 0.055), transparent 22rem),
    linear-gradient(145deg, #030405, #0b0d10 52%, #030405);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

.head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  padding: 14px clamp(20px, 4vw, 54px);
  background: rgba(4, 5, 6, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 740;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: clamp(12px, 1.7vw, 20px);
  color: var(--muted);
  font-size: 0.9rem;
}

.nav a,
.foot a {
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active,
.foot a:hover {
  color: var(--gold2);
}

.cta {
  padding: 13px 17px;
  border: 1px solid rgba(168, 134, 76, 0.44);
  border-radius: 999px;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(38px, 7vw, 88px);
  align-items: center;
  padding: 148px 0 84px;
}

.subhero {
  padding: 148px 0 72px;
  border-bottom: 1px solid var(--line-soft);
}

.subhero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(34px, 6vw, 76px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold2);
  font-size: 0.73rem;
  font-weight: 540;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  font: 500 clamp(3.05rem, 6.7vw, 6.55rem) / 0.93 "Sansation", Georgia, serif;
  margin-bottom: 24px;
}

.subhero h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

h2 {
  font: 500 clamp(2.1rem, 4.2vw, 4rem) / 1 "Sansation", Georgia, serif;
  margin-bottom: 0;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
  margin-bottom: 31px;
}

main p:not(.eyebrow):not(.error-code):not(.leader-name),
main li {
  text-align: justify;
  text-align-last: left;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 720;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #c4a76f, #9d7b44);
  color: #11100d;
  border-color: #a8864c;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 134, 76, 0.5);
  background: rgba(168, 134, 76, 0.08);
}

.immersive {
  position: relative;
  min-height: 590px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(168, 134, 76, 0.16), transparent 15rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: 0 36px 96px rgba(0, 0, 0, 0.45);
}

.immersive::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 220deg at 50% 52%, transparent, rgba(168, 134, 76, 0.12), transparent 34%, rgba(255, 255, 255, 0.06), transparent 62%);
  animation: turn 34s linear infinite;
}

.immersive::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
}

.field {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, #000, transparent 76%);
}

.halo {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.h1 {
  width: 360px;
  height: 360px;
  border: 1px solid rgba(168, 134, 76, 0.3);
}

.h2 {
  width: 510px;
  height: 510px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%) scaleY(0.62) rotate(-18deg);
}

.beam {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 134, 76, 0.46), rgba(255, 255, 255, 0.12), transparent);
}

.b1 {
  left: 8%;
  top: 34%;
  width: 84%;
  transform: rotate(-24deg);
}

.b2 {
  left: 12%;
  top: 63%;
  width: 76%;
  transform: rotate(-24deg);
}

.surface {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(168, 134, 76, 0.03));
  backdrop-filter: blur(10px);
  transform: perspective(900px) rotateX(60deg) rotateZ(-24deg);
}

.sf1 {
  left: 18%;
  top: 20%;
  width: 40%;
  height: 28%;
}

.sf2 {
  right: 12%;
  top: 40%;
  width: 42%;
  height: 30%;
  border-color: rgba(168, 134, 76, 0.2);
}

.sf3 {
  left: 30%;
  bottom: 15%;
  width: 42%;
  height: 22%;
  opacity: 0.64;
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 150px;
  height: 122px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 134, 76, 0.34);
  border-radius: 10px;
  background: rgba(6, 8, 10, 0.64);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42), inset 0 0 50px rgba(168, 134, 76, 0.07);
  transform: translate(-50%, -50%);
  animation: float 10s ease-in-out infinite;
}

.logo img {
  width: 100px;
  height: 82px;
  object-fit: contain;
  opacity: 0.94;
}

.dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(168, 134, 76, 0.86);
  box-shadow: 0 0 20px rgba(168, 134, 76, 0.28);
}

.d1 { left: 24%; top: 28%; }
.d2 { right: 25%; top: 36%; }
.d3 { left: 38%; bottom: 25%; }
.d4 { right: 32%; bottom: 22%; }

.institutional-strip {
  margin: -28px auto 24px;
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.strip-item {
  padding: 18px 22px;
  background: rgba(6, 8, 10, 0.54);
  color: var(--muted);
  font-size: 0.9rem;
}

.strip-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 3px;
}

section {
  padding: 96px 0;
}

.title {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.home-page .title h2,
.about-method-title h2 {
  position: relative;
  margin-left: auto;
  text-align: right;
}

.home-page .title h2::before,
.about-method-title h2::before {
  content: "";
  position: absolute;
  right: 0;
  top: -18px;
  width: min(180px, 42%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 165, 110, 0.58));
}

.home-page .title,
.about-method-title {
  grid-template-columns: 0.55fr 1fr;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card,
.step,
.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover,
.step:hover,
.panel:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 134, 76, 0.42);
  background: linear-gradient(145deg, rgba(168, 134, 76, 0.075), rgba(255, 255, 255, 0.014));
}

.card span,
.step span,
.panel span {
  color: var(--gold2);
  font-size: 0.74rem;
}

.card p,
.step p,
.panel p,
.list p {
  color: var(--muted);
}

.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  position: relative;
  min-height: 230px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 38px;
  width: 14px;
  height: 1px;
  background: rgba(168, 134, 76, 0.55);
}

.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}

.list {
  display: grid;
  gap: 16px;
}

.list-item {
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(circle at 88% 18%, rgba(168, 134, 76, 0.13), transparent 19rem), rgba(16, 18, 22, 0.88);
}

.contact-details {
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.contact-details a {
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: var(--gold2);
}

.contact .btn {
  width: max-content;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.social-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 0.86rem;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
  color: var(--gold2);
  border-color: rgba(168, 134, 76, 0.42);
  background: rgba(168, 134, 76, 0.055);
  transform: translateY(-2px);
}

.location-grid {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.office-list {
  display: grid;
  gap: 14px;
}

.office {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
}

.office span,
.map-panel span,
.form-note {
  color: var(--muted);
}

.office strong {
  display: block;
  margin-bottom: 6px;
}

.map-panel {
  display: block;
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 52% 47%, rgba(168, 134, 76, 0.2), transparent 10rem),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    rgba(16, 18, 22, 0.72);
  background-size: auto, 38px 38px, 38px 38px, auto;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.34);
  color: inherit;
}

.map-panel::before,
.map-panel::after {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(168, 134, 76, 0.16);
  transform: perspective(900px) rotateX(62deg) rotateZ(-19deg);
}

.map-panel::after {
  inset: 88px 76px;
  border-color: rgba(255, 255, 255, 0.08);
}

.map-pin {
  position: absolute;
  left: 52%;
  top: 48%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold2);
  box-shadow: 0 0 0 10px rgba(168, 134, 76, 0.12), 0 0 34px rgba(168, 134, 76, 0.38);
  transform: translate(-50%, -50%);
}

.map-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.map-action {
  color: var(--gold2);
}

.contact-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.full,
.consent,
.form-note {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--muted);
  font-size: 0.84rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6, 8, 10, 0.62);
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(168, 134, 76, 0.58);
  box-shadow: 0 0 0 3px rgba(168, 134, 76, 0.08);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
}

.consent input {
  margin-top: 4px;
  accent-color: var(--gold);
}

.consent a {
  color: var(--gold2);
}

.legal-content {
  max-width: 920px;
}

.legal-section {
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
}

.legal-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  margin-bottom: 14px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.leadership {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: clamp(24px, 5vw, 62px);
  align-items: stretch;
}

.leader-visual {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 42%, rgba(168, 134, 76, 0.13), transparent 13rem),
    rgba(16, 18, 22, 0.76);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.38);
}

.leader-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 5, 6, 0.04), rgba(4, 5, 6, 0.42)),
    radial-gradient(circle at 28% 18%, rgba(194, 165, 110, 0.16), transparent 16rem);
  mix-blend-mode: multiply;
}

.leader-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 3;
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 9px;
  pointer-events: none;
}

.leader-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: 48% 42%;
  filter: saturate(0.82) contrast(1.04) brightness(0.82);
  transform: scale(1.02);
}

.leader-profile {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014));
}

.leader-profile h2 {
  margin-bottom: 18px;
}

.leader-name {
  margin-bottom: 18px;
  color: var(--gold2);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.leader-profile p {
  color: var(--muted);
}

.actuality-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.actuality-note {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(circle at 88% 18%, rgba(168, 134, 76, 0.11), transparent 16rem), rgba(16, 18, 22, 0.78);
}

.actuality-note p,
.actuality-item p {
  color: var(--muted);
}

.actuality-item {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.error-page {
  min-height: 100vh;
  background: #040506;
}

.error-page::before {
  background:
    linear-gradient(90deg, rgba(4, 5, 6, 0.66), rgba(4, 5, 6, 0.22) 44%, rgba(4, 5, 6, 0.46)),
    linear-gradient(180deg, rgba(4, 5, 6, 0.26), rgba(4, 5, 6, 0.54)),
    url("assets/404-background.webp") center / cover no-repeat;
  filter: saturate(0.92) contrast(1.02) brightness(1);
}

.error-page::after {
  background:
    radial-gradient(circle at 26% 22%, rgba(168, 134, 76, 0.16), transparent 26rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, 70px 70px, 70px 70px;
}

.error-hero {
  min-height: calc(100vh - 180px);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 154px 0 92px;
}

.error-panel {
  width: min(760px, 100%);
  max-width: 760px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(245, 240, 232, 0.14);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(6, 8, 10, 0.68), rgba(6, 8, 10, 0.38));
  box-shadow: 0 36px 98px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
}

.error-code {
  margin-bottom: 18px;
  color: var(--gold2);
  font-size: 0.76rem;
  font-weight: 540;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error-panel h1 {
  max-width: 680px;
}

.legal-ambient-page::before,
.legal-ambient-page::after {
  position: fixed;
}

.legal-ambient-hero {
  border-bottom: 0;
  padding-bottom: 42px;
}

.legal-ambient-panel {
  margin-bottom: 96px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(245, 240, 232, 0.14);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(6, 8, 10, 0.72), rgba(6, 8, 10, 0.46));
  box-shadow: 0 36px 98px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.legal-ambient-panel .legal-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-ambient-panel .legal-section:last-child {
  padding-bottom: 0;
}

.foot {
  display: grid;
  grid-template-columns: 1.1fr auto auto;
  gap: 34px;
  align-items: start;
  padding: 34px clamp(20px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: #030405;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

/* Long-form layout scoped to the corporate law page. */
.societario-page .subhero-grid,
.societario-page .societario-split {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.societario-page .societario-intro,
.societario-page .societario-copy,
.societario-page .societario-topic {
  min-width: 0;
  color: var(--muted);
  line-height: 1.65;
}

.societario-page .societario-intro p:last-child,
.societario-page .societario-copy > :last-child,
.societario-page .societario-topic p:last-child {
  margin-bottom: 0;
}

.societario-page .societario-section {
  border-bottom: 1px solid var(--line-soft);
}

.societario-page .societario-split {
  display: grid;
  gap: 64px;
  align-items: start;
}

.societario-page .societario-heading {
  max-width: 900px;
  margin-bottom: 44px;
}

.societario-page .societario-columns,
.societario-page .societario-method {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.societario-page .societario-method {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.societario-page .societario-topic {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.societario-page .societario-topic h3 {
  color: var(--ink);
  margin-bottom: 18px;
}

.societario-page .societario-situations {
  margin: 26px 0 0;
  padding-left: 20px;
}

.societario-page .societario-situations li {
  padding: 14px 0 14px 8px;
  border-top: 1px solid var(--line-soft);
}

.societario-page .societario-situations li::marker {
  color: var(--gold);
}

.societario-page .contact {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 48px;
}

.societario-page .societario-contact-copy h2 {
  margin-bottom: 24px;
}

.societario-page .contact-details {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.societario-page .contact-details span {
  color: var(--muted);
}

@media (max-width: 920px) {
  .societario-page .subhero-grid,
  .societario-page .societario-split,
  .societario-page .societario-columns,
  .societario-page .societario-method,
  .societario-page .contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .societario-page .societario-heading {
    margin-bottom: 32px;
  }

  .societario-page .contact-details {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
}

@media (max-width: 620px) {
  .societario-page .societario-section {
    padding: 64px 0;
  }
}

.foot nav,
.legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@keyframes turn {
  to { transform: rotate(360deg); }
}

@keyframes float {
  50% { transform: translate(-50%, -50%) translateY(-7px); }
}

@media (max-width: 920px) {
  .cta {
    display: none;
  }

  .hero,
  .subhero-grid,
  .title,
  .contact,
  .location-grid,
  .leadership,
  .foot,
  .two-col {
    grid-template-columns: 1fr;
  }

  .immersive {
    min-height: 500px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .method {
    grid-template-columns: 1fr 1fr;
  }

  .step::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 30px, 1180px);
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 3.75rem);
  }

  .home-page .title h2,
  .about-method-title h2 {
    margin-left: 0;
    text-align: left;
  }

  .home-page .title h2::before,
  .about-method-title h2::before {
    left: 0;
    right: auto;
    background: linear-gradient(90deg, rgba(194, 165, 110, 0.58), transparent);
  }

  .buttons,
  .btn {
    width: 100%;
  }

  .immersive {
    min-height: 420px;
  }

  .h1 { width: 230px; height: 230px; }
  .h2 { width: 330px; height: 330px; }
  .logo { width: 126px; height: 104px; }
  .logo img { width: 84px; height: 70px; }

  .strip-inner,
  .cards,
  .actuality-board,
  .method {
    grid-template-columns: 1fr;
  }

  .actuality-note {
    grid-column: auto;
  }

  .contact {
    padding: 30px;
  }

  .contact .btn {
    width: 100%;
  }

  .contact-actions,
  .contact-actions .btn,
  .form-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .form-field.full,
  .consent,
  .form-note {
    grid-column: auto;
  }

  .map-caption {
    flex-direction: column;
  }

  .foot {
    gap: 20px;
  }
}

/* Long-form tax content stays isolated from the other area pages. */
.tributario-page .subhero h1 {
  max-width: 1100px;
  margin-bottom: 44px;
}

.tributario-page .tributario-intro,
.tributario-page .tributario-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.tributario-page .tributario-intro .lead {
  margin-bottom: 0;
}

.tributario-page .tributario-section {
  border-bottom: 1px solid var(--line-soft);
}

.tributario-page .tributario-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.tributario-page .tributario-copy,
.tributario-page .tributario-topic,
.tributario-page .tributario-contact-copy {
  min-width: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tributario-page .tributario-copy p:last-child,
.tributario-page .tributario-topic p:last-child {
  margin-bottom: 0;
}

.tributario-page .tributario-topics {
  margin-top: 48px;
}

.tributario-page .tributario-topic {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.tributario-page .tributario-topic h3 {
  color: var(--ink);
  margin-bottom: 18px;
}

.tributario-page .contact {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 48px;
}

.tributario-page .tributario-contact-copy h2 {
  color: var(--ink);
  margin-bottom: 24px;
}

.tributario-page .tributario-contact-copy .btn {
  margin-top: 12px;
}

.tributario-page .contact-details {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.tributario-page .contact-details span {
  color: var(--muted);
}

@media (max-width: 920px) {
  .tributario-page .tributario-intro,
  .tributario-page .tributario-split,
  .tributario-page .tributario-topics,
  .tributario-page .contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .tributario-page .contact-details {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
}

@media (max-width: 620px) {
  .tributario-page .tributario-section {
    padding: 64px 0;
  }

  .tributario-page .tributario-topics {
    margin-top: 32px;
  }
}

/* Long-form civil and labour content uses the established area-page rhythm. */
.civil-page .subhero h1 {
  max-width: 1100px;
  margin-bottom: 44px;
}

.civil-page .civil-intro,
.civil-page .civil-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.civil-page .civil-intro .lead {
  margin-bottom: 0;
}

.civil-page .civil-section {
  border-bottom: 1px solid var(--line-soft);
}

.civil-page .civil-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.civil-page .civil-heading {
  max-width: 900px;
  margin-bottom: 44px;
}

.civil-page .civil-copy,
.civil-page .civil-topic,
.civil-page .civil-contact-copy {
  min-width: 0;
  color: var(--muted);
  line-height: 1.65;
}

.civil-page .civil-copy p:last-child {
  margin-bottom: 0;
}

.civil-page .civil-split + .civil-topics {
  margin-top: 48px;
}

.civil-page .civil-topic {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.civil-page .civil-topic h3 {
  color: var(--ink);
  margin-bottom: 18px;
}

.civil-page .civil-topics--rows {
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.civil-page .civil-topics--rows .civil-topic {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
}

.civil-page .contact {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 48px;
}

.civil-page .civil-contact-copy h2 {
  color: var(--ink);
  margin-bottom: 24px;
}

.civil-page .civil-contact-copy .btn {
  margin-top: 12px;
}

.civil-page .contact-details {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.civil-page .contact-details span {
  color: var(--muted);
}

@media (max-width: 920px) {
  .civil-page .civil-intro,
  .civil-page .civil-split,
  .civil-page .civil-topics,
  .civil-page .civil-topics--rows .civil-topic,
  .civil-page .contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .civil-page .civil-heading {
    margin-bottom: 32px;
  }

  .civil-page .civil-topics--rows .civil-topic {
    gap: 0;
  }

  .civil-page .contact-details {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
}

@media (max-width: 620px) {
  .civil-page .civil-section {
    padding: 64px 0;
  }

  .civil-page .civil-split + .civil-topics {
    margin-top: 32px;
  }
}

@media (max-width: 380px) {
  .civil-page .subhero h1 {
    font-size: 2.25rem;
  }
}


/* Criminal law follows the established long-form area-page layout. */
.criminal-page .subhero h1 {
  max-width: 1100px;
  margin-bottom: 44px;
}

.criminal-page .criminal-intro,
.criminal-page .criminal-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.criminal-page .criminal-intro .lead {
  margin-bottom: 0;
}

.criminal-page .criminal-section {
  border-bottom: 1px solid var(--line-soft);
}

.criminal-page .criminal-heading {
  max-width: 900px;
  margin-bottom: 44px;
}

.criminal-page .criminal-copy,
.criminal-page .criminal-topic,
.criminal-page .criminal-contact-copy {
  min-width: 0;
  color: var(--muted);
  line-height: 1.65;
}

.criminal-page .criminal-copy p:last-child {
  margin-bottom: 0;
}

.criminal-page .criminal-topic {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.criminal-page .criminal-topic h3 {
  color: var(--ink);
  margin-bottom: 18px;
}

.criminal-page .criminal-topics--rows {
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.criminal-page .criminal-topics--rows .criminal-topic {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
}

.criminal-page .contact {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 48px;
}

.criminal-page .criminal-contact-copy h2 {
  color: var(--ink);
  margin-bottom: 24px;
}

.criminal-page .criminal-contact-copy .btn {
  margin-top: 12px;
}

.criminal-page .contact-details {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.criminal-page .contact-details span {
  color: var(--muted);
}

@media (max-width: 920px) {
  .criminal-page .criminal-intro,
  .criminal-page .criminal-topics,
  .criminal-page .criminal-topics--rows .criminal-topic,
  .criminal-page .contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .criminal-page .criminal-heading {
    margin-bottom: 32px;
  }

  .criminal-page .criminal-topics--rows .criminal-topic {
    gap: 0;
  }

  .criminal-page .contact-details {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
}

@media (max-width: 620px) {
  .criminal-page .criminal-section {
    padding: 64px 0;
  }
}

@media (max-width: 380px) {
  .criminal-page .subhero h1 {
    font-size: 2.25rem;
  }
}


/* Notarial content follows the established long-form area-page layout. */
.notarial-page .subhero h1 {
  max-width: 1100px;
  margin-bottom: 44px;
}

.notarial-page .notarial-intro,
.notarial-page .notarial-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.notarial-page .notarial-intro .lead {
  margin-bottom: 0;
}

.notarial-page .notarial-section {
  border-bottom: 1px solid var(--line-soft);
}

.notarial-page .notarial-heading {
  max-width: 900px;
  margin-bottom: 44px;
}

.notarial-page .notarial-copy,
.notarial-page .notarial-topic,
.notarial-page .notarial-contact-copy {
  min-width: 0;
  color: var(--muted);
  line-height: 1.65;
}

.notarial-page .notarial-copy p:last-child {
  margin-bottom: 0;
}

.notarial-page .notarial-topic {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.notarial-page .notarial-topic h3 {
  color: var(--ink);
  margin-bottom: 18px;
}

.notarial-page .notarial-topics--rows {
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.notarial-page .notarial-topics--rows .notarial-topic {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
}

.notarial-page .contact {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 48px;
}

.notarial-page .notarial-contact-copy h2 {
  color: var(--ink);
  margin-bottom: 24px;
}

.notarial-page .notarial-contact-copy .btn {
  margin-top: 12px;
}

.notarial-page .contact-details {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.notarial-page .contact-details span {
  color: var(--muted);
}

@media (max-width: 920px) {
  .notarial-page .notarial-intro,
  .notarial-page .notarial-topics,
  .notarial-page .notarial-topics--rows .notarial-topic,
  .notarial-page .contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .notarial-page .notarial-heading {
    margin-bottom: 32px;
  }

  .notarial-page .notarial-topics--rows .notarial-topic {
    gap: 0;
  }

  .notarial-page .contact-details {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
}

@media (max-width: 620px) {
  .notarial-page .notarial-section {
    padding: 64px 0;
  }
}

@media (max-width: 380px) {
  .notarial-page .subhero h1 {
    font-size: 2.25rem;
  }
}

/* Family and succession content: scoped long-form layout. */
.familia-page .subhero h1 {
  max-width: 1100px;
  margin-bottom: 44px;
}

.familia-page .familia-intro,
.familia-page .familia-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.familia-page .familia-intro .lead,
.familia-page .familia-copy p:last-child {
  margin-bottom: 0;
}

.familia-page .familia-section {
  border-bottom: 1px solid var(--line-soft);
}

.familia-page .familia-heading {
  max-width: 900px;
  margin-bottom: 44px;
}

.familia-page .familia-copy,
.familia-page .familia-contact-copy {
  min-width: 0;
  color: var(--muted);
  line-height: 1.65;
}

.familia-page .familia-topics {
  display: grid;
  gap: 40px;
}

.familia-page .familia-topics--after-copy {
  margin-top: 48px;
}

.familia-page .familia-topic {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.familia-page .familia-topic h3 {
  color: var(--ink);
  margin-bottom: 18px;
}

.familia-page .contact {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 48px;
}

.familia-page .familia-contact-copy h2 {
  color: var(--ink);
  margin-bottom: 24px;
}

.familia-page .familia-contact-copy .btn {
  margin-top: 12px;
}

.familia-page .contact-details {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.familia-page .contact-details span {
  color: var(--muted);
}

@media (max-width: 920px) {
  .familia-page .familia-intro,
  .familia-page .familia-columns,
  .familia-page .familia-topic,
  .familia-page .contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .familia-page .familia-heading {
    margin-bottom: 32px;
  }

  .familia-page .familia-topic {
    gap: 0;
  }

  .familia-page .contact-details {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
}

@media (max-width: 620px) {
  .familia-page .familia-section {
    padding: 64px 0;
  }

  .familia-page .subhero h1 {
    font-size: 2.25rem;
    line-height: 1.05;
  }

  .familia-page .familia-topics--after-copy {
    margin-top: 32px;
  }
}

/* Shared navigation: visible links remain available if JavaScript is disabled. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 40;
  padding: 12px 16px;
  background: #040506;
  color: var(--ink);
  border: 1px solid var(--gold2);
  transform: translateY(calc(-100% - 20px));
}

.skip-link:focus {
  transform: translateY(0);
}

main {
  scroll-margin-top: 100px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle[hidden],
.nav[hidden] {
  display: none;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  width: 18px;
  height: 1px;
  background: currentColor;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 0.2s ease;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-open .menu-icon {
  background: transparent;
}

.menu-open .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 4px;
}

.menu-toggle:hover {
  border-color: var(--gold2);
}

.btn.primary:hover,
.btn.primary:focus,
.btn.primary:focus-visible {
  background: linear-gradient(135deg, #c4a76f, #9d7b44);
  color: #11100d;
  border-color: #a8864c;
}

main p a,
.consent a,
.card h3 a:hover,
.card h3 a:focus-visible,
.card .area-card-title a:hover,
.card .area-card-title a:focus-visible,
.map-action {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Preserve the former h3 appearance while correcting the area-card hierarchy. */
.card .area-card-title {
  font-family: inherit;
  font-size: 1.17em;
  font-weight: 700;
  line-height: inherit;
  margin: 0 0 1em;
}

@media (max-width: 920px) {
  .head {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .head .nav {
    order: 3;
    flex-basis: 100%;
    min-width: 0;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .head .nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .menu-ready .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .home-page .title,
  .about-method-title {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.home-page .institutional-note {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--gold2);
}

/* Contact form states reuse the existing palette and grid. */
.contact-form [hidden] { display: none !important; }
.contact-form .optional-label { font-weight: 400; color: var(--muted); }
.contact-form .field-error { color: #ebc4b8; font-size: 0.875rem; font-weight: 400; }
.contact-form [aria-invalid="true"] { border-color: #cb9b8d; }
.contact-form .form-status { min-width: 0; overflow-wrap: anywhere; }
.contact-form .form-status[data-state="error"] { color: #ebc4b8; }
.contact-form .form-status[data-state="success"] { color: var(--ink); }
.contact-form button:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.contact-form[aria-busy="true"] button { cursor: progress; }
.contact-form .form-note { text-align: left; text-align-last: left; }

/* Keep the long family-law heading inside the smallest mobile viewport. */
@media (max-width: 360px) {
  .familia-page #familia-title {
    font-size: 2rem;
    overflow-wrap: anywhere;
  }
}


/* Bilingual navigation and discreet social links; approved PT layout retained. */
.head { column-gap: 16px; }
.language-switch { display: flex; align-items: center; flex: 0 0 auto; gap: 2px; font-size: .78rem; letter-spacing: .08em; color: var(--muted); }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; border-radius: 4px; }
.language-switch a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold2); text-underline-offset: 6px; }
.language-switch a:hover { color: var(--gold2); }
.language-switch span { opacity: .45; }
.footer-social { display: flex; align-items: center; gap: 4px; margin-top: 12px; }
.foot .footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.foot .footer-social a:hover { color: var(--ink); border-color: currentColor; }
.footer-social svg { display: block; flex-shrink: 0; }
.last-updated { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
html[lang="en-GB"] h1 { overflow-wrap: anywhere; }
html[lang="en-GB"] .leadership > * { min-width: 0; }
html[lang="en-GB"] .leader-profile { overflow-wrap: anywhere; }
@media (min-width: 921px) and (max-width: 1100px) {
  html[lang="en-GB"] .head .cta { font-size: .82rem; padding-inline: 12px; }
  html[lang="en-GB"] .head .nav { gap: 12px; }
}
@media (max-width: 920px) {
  .head .brand { order: 0; }
  .head .language-switch { order: 1; margin-left: auto; }
  .head .menu-toggle { order: 2; margin-left: 0; }
  .head .nav { order: 3; }
}
