:root {
  --black: #090908;
  --ink: #161614;
  --muted: #6f6b61;
  --line: #e9e4d8;
  --paper: #f8f5ee;
  --white: #ffffff;
  --gold: #c7a34a;
  --gold-soft: #eadfb8;
  --gold-deep: #8c6a1d;
  --shadow: 0 24px 70px rgba(20, 16, 8, 0.16);
  --radius: 8px;
  --container: min(1420px, calc(100% - 72px));
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 152px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: "";
  display: block;
  height: 0;
}

body.menu-open {
  overflow-y: auto;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.page-section {
  display: none;
}

body[data-view]:not([data-view="home"]) .home-only {
  display: none;
}

body[data-view="servicios"] #servicios,
body[data-view="metodo"] #metodo,
body[data-view="nosotros"] [data-page="nosotros"],
body[data-view="blog"] #blog,
body[data-view="enlaces"] #enlaces,
body[data-view="contacto"] [data-page="contacto"] {
  display: block;
}

body[data-view]:not([data-view="home"]) main {
  padding-top: 168px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  padding: 10px 16px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: var(--gold);
  color: var(--black);
}

.topbar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.contact-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.contact-icon.pin::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 8px;
  border: 3px solid var(--black);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.contact-icon.pin::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--black);
}

.contact-icon.phone::before {
  content: "";
  position: absolute;
  inset: 1px 4px;
  border: 2px solid var(--black);
  border-radius: 3px;
}

.contact-icon.phone::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--black);
}

.contact-icon.mail::before {
  content: "";
  position: absolute;
  inset: 2px 1px;
  border: 2px solid var(--black);
  border-radius: 2px;
}

.contact-icon.mail::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 10px;
  height: 8px;
  border-left: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  transform: rotate(-45deg);
}

.site-header {
  position: fixed;
  inset: 58px 0 auto;
  z-index: 50;
  transition: inset 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  inset: 44px 0 auto;
}

.nav {
  width: var(--container);
  margin-inline: auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(9, 9, 8, 0.84);
  color: var(--white);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.site-header.is-scrolled .nav {
  border-radius: 0 0 18px 18px;
  border-top: 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img,
.footer-brand img {
  width: 58px;
  height: 50px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--gold-soft);
  font-size: 0.74rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 11px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-links .nav-cta {
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
  padding-inline: 16px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - 40px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 146px 0 42px;
  background:
    radial-gradient(circle at 50% 0%, rgba(199, 163, 74, 0.12), transparent 32%),
    var(--paper);
  color: var(--white);
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 8, 0.08), rgba(9, 9, 8, 0));
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: min(760px, calc(100vh - 188px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 0 58px 0;
  padding: clamp(46px, 5.2vw, 88px);
  background:
    linear-gradient(90deg, rgba(9, 9, 8, 0.94) 0%, rgba(9, 9, 8, 0.78) 46%, rgba(9, 9, 8, 0.22) 100%),
    url("assets/legal-office.jpg") center right / cover no-repeat;
  box-shadow: 0 28px 90px rgba(20, 16, 8, 0.22);
}

.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.5;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 5vw, 5.45rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 4vw, 4.4rem);
}

h3 {
  line-height: 1.12;
}

.hero-lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.hero-actions,
.social-links,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 14px 30px rgba(199, 163, 74, 0.22);
}

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

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 44px 0 0;
}

.trust-row div {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 16px;
}

.trust-row dt {
  color: var(--gold);
  font-weight: 900;
}

.trust-row dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

.hero-visual {
  position: absolute;
  right: clamp(22px, 4vw, 54px);
  bottom: clamp(22px, 4vw, 48px);
  z-index: 3;
  width: min(390px, 36%);
  min-height: auto;
}

.image-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.06);
}

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

.hero-photo {
  display: none;
}

.case-panel {
  position: static;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(248, 245, 238, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.panel-top,
.intro-grid,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.panel-top span,
.panel-grid small {
  color: var(--muted);
}

.panel-top strong {
  color: #0f7a48;
}

.case-progress {
  height: 9px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #ded7c7;
}

.case-progress span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

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

.panel-grid div {
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px;
}

.panel-grid strong,
.panel-grid small {
  display: block;
}

.intro-band {
  background: var(--white);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.intro-grid > p {
  max-width: 610px;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.intro-stats div {
  min-width: 116px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.intro-stats strong {
  display: block;
  color: var(--black);
  font-size: 1.8rem;
}

.intro-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 98px 0;
}

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

.section-heading.compact {
  max-width: 720px;
}

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

.service-card {
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(20, 16, 8, 0.09);
}

.service-card.featured {
  grid-column: span 2;
  background: var(--black);
  color: var(--white);
}

.service-card span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--gold-deep);
  font-weight: 900;
}

.service-card.featured span {
  background: rgba(199, 163, 74, 0.16);
  color: var(--gold);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.service-card p,
.method p,
.firm p,
.sector-grid p,
.faq-content p,
.contact-copy p,
.site-footer p {
  color: var(--muted);
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.68);
}

.method {
  background: var(--white);
}

.method-grid,
.firm-grid,
.faq-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.method-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
}

.method-copy-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 9, 8, 0.18), rgba(9, 9, 8, 0.86)),
    url("assets/court-columns.jpg") center / cover no-repeat;
  color: var(--white);
  box-shadow: var(--shadow);
}

.method-copy-card p {
  color: rgba(255, 255, 255, 0.74);
}

.method-copy-card .text-link {
  color: var(--gold-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--gold-deep);
  font-weight: 900;
}

.text-link::after {
  content: "";
  width: 36px;
  height: 1px;
  margin-left: 12px;
  background: currentColor;
}

.steps article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--paper);
}

.steps span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold-deep);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.firm {
  background: linear-gradient(180deg, var(--paper), #eee6d5);
}

.firm-card {
  overflow: hidden;
  border-radius: var(--radius);
  padding: 36px;
  background:
    radial-gradient(circle at center, rgba(199, 163, 74, 0.18), transparent 48%),
    var(--black);
  box-shadow: var(--shadow);
}

.firm-card img {
  width: min(360px, 100%);
  margin: 0 auto;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.values span,
.social-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 9px 13px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
}

.about-principles {
  background: var(--white);
  overflow: hidden;
}

.principles-grid {
  display: grid;
  grid-template-columns: 140px minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 30px;
  align-items: center;
}

.principles-title {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principles-title span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--black);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4.2rem, 8vw, 7.4rem);
  font-weight: 700;
  line-height: 0.8;
}

.principles-image {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: var(--shadow);
}

.principles-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(9, 9, 8, 0.08), rgba(9, 9, 8, 0.78)),
    linear-gradient(90deg, rgba(199, 163, 74, 0.12), rgba(9, 9, 8, 0.38));
}

.principles-image img {
  width: 100%;
  height: 100%;
  min-height: 660px;
  object-fit: cover;
}

.principles-content {
  display: grid;
  gap: 18px;
}

.principle-card {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 20px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
}

.principle-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
}

.principle-card p {
  color: var(--muted);
}

.principle-card p:last-child {
  margin-bottom: 0;
}

.principle-icon {
  display: inline-flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(199, 163, 74, 0.22);
}

.vision-card .principle-icon {
  background: var(--black);
  color: var(--gold);
}

.values-card .principle-icon {
  background: var(--gold-soft);
}

.principle-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.principle-values span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 9px 13px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
}

.sectors {
  background: var(--white);
  color: var(--ink);
  padding-top: 76px;
  padding-bottom: 84px;
}

.sectors-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.sectors-layout .section-heading {
  max-width: 880px;
  margin-bottom: 4px;
}

.sector-photo {
  height: 260px;
  margin: 0;
  border-color: var(--line);
}

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

.sector-grid article {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--paper);
}

.sector-grid h3 {
  font-size: 1.32rem;
}

.sector-grid p {
  color: var(--muted);
}

.faq {
  background: var(--white);
}

.blog-section,
.links-section {
  background: var(--white);
}

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

.blog-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 245, 238, 0.96)),
    var(--paper);
}

.blog-card span {
  display: inline-flex;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  padding: 7px 11px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: 1.32rem;
}

.blog-card p,
.links-layout p {
  color: var(--muted);
}

.links-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.interest-links {
  display: grid;
  gap: 12px;
}

.interest-links a {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interest-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(20, 16, 8, 0.08);
}

.interest-links strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.interest-links span {
  color: var(--muted);
}

.accordion {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  padding: 22px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.faq-item button span {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
}

.faq-item button span::before,
.faq-item button span::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 13px;
  width: 12px;
  height: 2px;
  border-radius: 99px;
  background: var(--black);
}

.faq-item button span::after {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.faq-item.is-open button span::after {
  transform: rotate(0);
}

.faq-content {
  display: none;
  padding: 0 22px 22px;
}

.faq-item.is-open .faq-content {
  display: block;
}

.faq-content p {
  margin-bottom: 0;
}

.contact-section {
  padding: 98px 0;
  background:
    linear-gradient(rgba(9, 9, 8, 0.84), rgba(9, 9, 8, 0.92)),
    radial-gradient(circle at top right, rgba(199, 163, 74, 0.24), transparent 42%),
    var(--black);
  color: var(--white);
}

.contact-copy {
  position: sticky;
  top: 120px;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.68);
}

.contact-list {
  margin-top: 22px;
  flex-direction: column;
  align-items: flex-start;
}

.contact-list a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

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

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 13px 14px;
  outline: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 163, 74, 0.18);
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.site-footer {
  padding: 44px 0 24px;
  background: #050505;
  color: var(--white);
}

.footer-grid {
  align-items: flex-start;
}

.site-footer strong {
  display: block;
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-brand img {
  width: 52px;
  height: 42px;
}

.footer-brand span {
  font-weight: 900;
}

.copyright {
  width: var(--container);
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.86rem;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: #25d366;
  color: #062d17;
  padding: 12px 18px;
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.28);
  font-weight: 900;
}

.floating-contact:hover {
  background: #1ebe5d;
}

@media (max-width: 980px) {
  section[id] {
    scroll-margin-top: 178px;
  }

  body::before {
    height: 0;
  }

  .topbar-inner {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 8px 0;
    font-size: 0.84rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 148px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(9, 9, 8, 0.96);
    padding: 12px;
  }

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

  .nav-links a {
    padding: 14px;
  }

  .hero-grid,
  .firm-grid,
  .faq-grid,
  .contact-grid,
  .links-layout {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-visual {
    position: static;
    width: min(460px, 100%);
    min-height: auto;
    margin-top: 32px;
  }

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

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .sector-grid,
  .sectors-layout,
  .principles-grid,
  .intro-stats {
    grid-template-columns: 1fr;
  }

  .principles-title {
    justify-content: flex-start;
  }

  .principles-title span {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: clamp(3.5rem, 12vw, 5rem);
  }

  .principles-image {
    min-height: 320px;
  }

  .principles-image img {
    min-height: 320px;
  }

  .sectors-layout .section-heading,
  .sector-photo {
    grid-column: auto;
    grid-row: auto;
  }

  .sector-photo {
    min-height: 320px;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1160px);
  }

  .site-header {
    inset: 84px 0 auto;
  }

  .site-header.is-scrolled {
    inset: 72px 0 auto;
  }

  .nav {
    min-height: 64px;
    padding: 9px;
  }

  .brand img {
    width: 50px;
    height: 40px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 116px 0 56px;
  }

  .hero-grid {
    min-height: auto;
    border-radius: 0 0 32px 0;
    padding: 34px 18px 22px;
    background:
      linear-gradient(180deg, rgba(9, 9, 8, 0.9) 0%, rgba(9, 9, 8, 0.78) 58%, rgba(9, 9, 8, 0.45) 100%),
      url("assets/legal-office.jpg") center bottom / cover no-repeat;
  }

  .method-copy-card {
    min-height: 390px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-row {
    display: none;
  }

  .hero-visual {
    display: none;
  }

  .hero-photo {
    display: none;
  }

  .case-panel {
    width: 100%;
  }

  .section,
  .contact-section {
    padding: 72px 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .principle-card {
    grid-template-columns: 1fr;
  }

  .principle-icon {
    width: 62px;
    height: 62px;
  }

  .service-card.featured {
    grid-column: auto;
  }

  .intro-stats {
    width: 100%;
  }

  .contact-form {
    padding: 20px;
  }
}
