/* =========================================
   URIBE & ROJAS
   Consolidated stylesheet
========================================= */

:root {
  --brand-blue: #08374B;
  --brand-blue-dark: #062D3D;
  --brand-red: #B51E25;
  --brand-red-dark: #95181E;
  --blue-grey: #8B9FA6;
  --blue-grey-light: #D4E0E4;
  --white: #FFFFFF;
  --off-white: #F7F6F2;
  --text: #08374B;
  --text-muted: #66767A;
  --line: rgba(8, 55, 75, 0.14);
  --line-dark: rgba(255, 255, 255, 0.17);
  --hover-surface: #EDF0EE;

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;

  --page-padding: clamp(28px, 5vw, 78px);
  --section-padding: clamp(78px, 9vw, 140px);
}

/* =========================================
   RESET / GLOBAL
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  font-size: clamp(3rem, 4.7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.7rem, 4.8vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  line-height: 1.08;
}

p {
  margin-top: 0;
}

.eyebrow,
.section-label {
  margin: 0 0 22px;
  color: var(--brand-red);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow-on-dark {
  color: var(--blue-grey-light);
}

/* =========================================
   BUTTONS / LINKS
========================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.button span,
.text-link span {
  transition: transform 180ms ease;
}

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

.button:hover span {
  transform: translate(2px, -2px);
}

.button-primary {
  background: var(--brand-red);
  color: var(--white);
  border-color: var(--brand-red);
}

.button-primary span {
  color: var(--white);
}

.button-primary:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
}

.button-light {
  background: var(--white);
  color: var(--brand-blue);
  border-color: var(--white);
}

.button-light span {
  color: var(--brand-red);
}

.button-light:hover {
  background: var(--off-white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 5px;
  color: var(--brand-blue);
  border-bottom: 1px solid transparent;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: border-color 180ms ease;
}

.text-link span {
  color: var(--brand-red);
}

.text-link:hover {
  border-color: currentColor;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link.light {
  color: var(--white);
}

/* =========================================
   HEADER
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  min-height: 94px;
  padding: 0 var(--page-padding);

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;

  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {

  justify-self: start;

  display: inline-flex;

  align-items: center;

  gap: 16px;

}

.brand-logo {

  width: auto;

  height: 72px;

  object-fit: contain;

}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  color: var(--brand-blue);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.brand-tagline {
  color: var(--blue-grey);
  font-size: 0.54rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
}

.main-nav {
  display: flex;
  gap: 34px;
  color: var(--brand-blue);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.main-nav a {
  position: relative;
  color: var(--brand-blue);
  transition: color 180ms ease;
}

.main-nav a::after {
  content: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--brand-red);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.language-switcher {
  display: flex;
  gap: 8px;
  color: var(--blue-grey);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.language-switcher a {
  transition: color 180ms ease;
}

.language-switcher a:hover {
  color: var(--brand-blue);
}

.language-active {
  color: var(--brand-red);
}

.button-header {
  min-height: 46px;
}

/* =========================================
   HOME — HERO
========================================= */

.home-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  background: var(--off-white);
}

.home-hero-copy {
  padding:
    clamp(65px, 7vw, 100px)
    var(--page-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero-copy h1 {
  max-width: 760px;
  color: var(--brand-blue);
}

.home-hero-description {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.75;
}

.home-hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.home-hero-media {
  padding:
    clamp(30px, 3.5vw, 48px)
    clamp(30px, 3.5vw, 48px)
    clamp(30px, 3.5vw, 48px)
    0;
  display: flex;
}

.home-hero-image {
  position: relative;
  width: 100%;
  min-height: 470px;
  overflow: hidden;
  background: var(--blue-grey);
}

.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================
   HOME — PENSION FEATURE
========================================= */

.home-pension-feature {
  padding:
    clamp(70px, 7vw, 105px)
    var(--page-padding);
  background: var(--off-white);
}

.home-pension-feature-header,
.home-pension-cards {
  width: min(1100px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.home-pension-feature-header {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "eyebrow eyebrow"
    "title title"
    "copy cta";
  column-gap: 54px;
  align-items: center;
}

.home-pension-feature-header .eyebrow {
  grid-area: eyebrow;
  margin-bottom: 18px;
}

.home-pension-feature-header h2 {
  grid-area: title;
  max-width: 820px;
  margin: 0 0 24px;
  color: var(--brand-blue);
  font-size: clamp(3rem, 4.5vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.home-pension-feature-header h2 span {
  display: block;
}

.home-pension-feature-header > p:not(.eyebrow) {
  grid-area: copy;
  max-width: 690px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.pension-cta {
  grid-area: cta;
  margin: 0;
  white-space: nowrap;
}

.home-pension-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pension-card {
  position: relative;
  min-height: 245px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.pension-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.pension-card:hover {
  transform: translateY(-3px);
  background: var(--hover-surface);
  border-color: rgba(8, 55, 75, 0.28);
}

.pension-card:hover::before {
  transform: scaleX(1);
}

.pension-card-label {
  margin-bottom: 26px;
  color: var(--blue-grey);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pension-card h3 {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.pension-card-summary {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pension-card-detail {
  position: absolute;
  inset: auto 0 0 0;
  padding: 52px 28px 26px;
  min-height: 48%;
  display: flex;
  align-items: flex-end;
  color: var(--brand-blue);
  background:
    linear-gradient(
      to bottom,
      rgba(237, 240, 238, 0) 0%,
      rgba(237, 240, 238, 0.82) 35%,
      var(--hover-surface) 58%
    );
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.pension-card:hover .pension-card-detail {
  opacity: 1;
  transform: translateY(0);
}

.pension-card-arrow {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  color: var(--brand-red);
  font-size: 0.95rem;
  opacity: 0.75;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.pension-card:hover .pension-card-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

/* =========================================
   HOME — OTHER SERVICES
========================================= */

.home-services {
  padding:
    clamp(80px, 8vw, 120px)
    var(--page-padding)
    clamp(50px, 5vw, 75px);
  background: var(--white);
}

.home-section-heading {
  margin-bottom: 55px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(50px, 8vw, 120px);
  align-items: end;
}

.home-section-heading h2 {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(3rem, 4.8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.home-section-intro {
  max-width: 470px;
}

.home-section-intro p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.home-services-list {
  border-top: 1px solid var(--line);
}

.home-service-item {
  min-height: 96px;
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr) 40px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition:
    background-color 180ms ease,
    padding 180ms ease;
}

.home-service-item:hover {
  background: var(--hover-surface);
  padding-left: 10px;
  padding-right: 10px;
}

.home-service-number {
  color: var(--blue-grey);
  font-family: var(--serif);
}

.home-service-name {
  color: var(--brand-blue);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.25vw, 2.15rem);
}

.home-service-arrow {
  justify-self: end;
  color: var(--brand-red);
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.home-service-item:hover .home-service-arrow {
  transform: translate(3px, -3px);
}

.home-services-footer {
  margin-top: 35px;
}

/* =========================================
   HOME — TEAM
========================================= */

.team-secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(8, 55, 75, 0.35);
  color: var(--brand-blue);
  background: transparent;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.team-secondary-cta span {
  color: var(--brand-red);
  transition: transform 180ms ease, color 180ms ease;
}

.team-secondary-cta:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--white);
  transform: translateY(-1px);
}

.team-secondary-cta:hover span {
  color: var(--white);
  transform: translateX(4px);
}

.home-team {
  padding:
    clamp(55px, 6vw, 85px)
    var(--page-padding)
    clamp(90px, 9vw, 130px);
  background: var(--white);
}

.home-team-grid {
  width: min(880px, 100%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 52px);
}

.home-team-card {
  min-width: 0;
}

.home-team-photo {
  aspect-ratio: 0.82;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-grey);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.70rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


.home-team-photo-placeholder {
  background: var(--blue-grey-light);
  color: var(--brand-blue);
}

.home-team-photo-placeholder span {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 260ms ease;
}

.home-team-card:hover .home-team-photo img {
  transform: scale(1.015);
}

.home-team-details {
  padding-top: 20px;
}

.home-team-details h3 {
  color: var(--brand-blue);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.15;
}

.home-team-role {
  margin: 9px 0 0;
  color: var(--blue-grey);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-team-practice {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* =========================================
   HOME — CREDIBILITY
========================================= */

.home-credibility {
  padding:
    clamp(52px, 6vw, 78px)
    var(--page-padding);
  display: grid;
  grid-template-columns:
    0.9fr
    1.15fr
    1.25fr
    auto;
  align-items: stretch;
  background: #EEF2F3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credibility-item {
  position: relative;
  min-height: 125px;
  padding:
    4px
    clamp(28px, 3vw, 48px)
    4px
    0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.credibility-item + .credibility-item {
  padding-left: clamp(28px, 3vw, 48px);
  border-left: 1px solid rgba(8, 55, 75, 0.16);
}

.credibility-kicker {
  margin-bottom: 16px;
  color: var(--brand-red);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.credibility-value {
  color: var(--brand-blue);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.6vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.credibility-label {
  max-width: 250px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.credibility-link {
  padding-left: clamp(35px, 4vw, 60px);
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(8, 55, 75, 0.16);
}

/* =========================================
   HOME — CONTACT CTA
========================================= */

.home-contact {
  padding:
    clamp(75px, 8vw, 115px)
    var(--page-padding);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
  background: var(--brand-blue);
  color: var(--white);
}

.home-contact-copy {
  max-width: 800px;
}

.home-contact h2 {
  color: var(--white);
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  line-height: 1;
}

.home-contact-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--blue-grey-light);
  line-height: 1.7;
}

/* =========================================
   GENERIC INTERNAL PAGE HERO
========================================= */

.page-hero {
  padding:
    clamp(85px, 10vw, 150px)
    var(--page-padding)
    clamp(75px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.7fr);
  column-gap: clamp(60px, 8vw, 140px);
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
}

.page-hero-label {
  padding-top: 10px;
}

.page-hero-content {
  max-width: 980px;
}

.page-hero h1 {
  color: var(--brand-blue);
}

.page-hero-content > p {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* =========================================
   GENERIC SECTIONS
========================================= */

.section {
  padding:
    var(--section-padding)
    var(--page-padding);
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.7fr);
  column-gap: clamp(60px, 8vw, 140px);
  background: var(--off-white);
}

.section-content {
  max-width: 900px;
}

.section-content p {
  max-width: 750px;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* =========================================
   FIRMA — EDITORIAL HERO
========================================= */

.firma-editorial-hero {
  position: relative;
  min-height: 650px;
  padding:
    clamp(65px, 7vw, 100px)
    0
    clamp(75px, 8vw, 115px)
    var(--page-padding);
  display: grid;
  grid-template-columns:
    minmax(500px, 0.95fr)
    minmax(0, 1.05fr);
  gap: clamp(35px, 4vw, 65px);
  align-items: center;
  background: var(--off-white);
  overflow: hidden;
}

.firma-hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  padding-right: 10px;
}

.firma-hero-copy h1 {
  position: relative;
  max-width: 660px;
  margin: 0;
  padding-left: 20px;
  color: var(--brand-blue);
  font-size: clamp(3.2rem, 4.8vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.firma-hero-copy h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 2px;
  height: 82px;
  background: var(--brand-red);
}

.firma-hero-intro {
  max-width: 510px;
  margin: 30px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.firma-hero-visual {
  position: relative;
  height: clamp(500px, 55vw, 720px);
  margin-top: -55px;
  overflow: hidden;
}

.firma-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
}

.firma-hero-caption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  padding: 9px 12px;
  background: var(--off-white);
  color: var(--brand-blue);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================
   FIRMA — HISTORY + TEAM PHOTO
========================================= */

.firma-history-combined {
  position: relative;
  padding:
    clamp(90px, 9vw, 130px)
    var(--page-padding)
    clamp(45px, 5vw, 65px);
  display: grid;
  grid-template-columns:
    minmax(0, 1.12fr)
    minmax(340px, 0.88fr);
  gap: clamp(55px, 7vw, 100px);
  align-items: center;
  background: var(--white);
}

.firma-history-main {
  position: relative;
  min-width: 0;
  padding-top: 32px;
}

.firma-history-year {
  position: absolute;
  left: -12px;
  top: -18px;
  color: var(--blue-grey);
  font-family: var(--serif);
  font-size: clamp(6rem, 11vw, 10rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
  opacity: 0.2;
  pointer-events: none;
}

.firma-history-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-left: clamp(42px, 4vw, 72px);
}

.firma-history-content h2 {
  max-width: 650px;
  color: var(--brand-blue);
  font-size: clamp(2.8rem, 4.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.firma-history-copy {
  max-width: 680px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.firma-history-copy p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.78;
}

.firma-history-photo {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.firma-history-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  max-height: 660px;
  object-fit: cover;
  object-position: center;
}

.firm-image-caption {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--blue-grey);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================
   FIRMA — TEAM
========================================= */

.team-page-grid {
  background: var(--off-white);
}

.team-page-intro {
  padding:
    clamp(45px, 5vw, 70px)
    var(--page-padding)
    clamp(55px, 6vw, 80px);
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(320px, 0.68fr);
  gap: clamp(45px, 7vw, 95px);
  align-items: end;
  background: var(--off-white);
}

.team-page-intro h2 {
  max-width: 720px;
  color: var(--brand-blue);
  font-size: clamp(2.8rem, 4.4vw, 4.6rem);
  line-height: 1.02;
}

.team-page-intro > div:last-child {
  max-width: 520px;
}

.team-page-intro > div:last-child p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.team-profile {
  padding:
    clamp(65px, 7vw, 100px)
    var(--page-padding);
  display: grid;
  grid-template-columns:
    minmax(380px, 0.9fr)
    minmax(0, 1.1fr);
  gap: clamp(55px, 7vw, 105px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.team-profile-reverse {
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(380px, 0.9fr);
}

.team-profile-reverse .team-profile-photo {
  order: 2;
}

.team-profile-reverse .team-profile-info {
  order: 1;
}

.team-profile-photo {
  width: 100%;
  min-height: 0;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  display: block;
  background: var(--blue-grey);
}

.team-profile-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;

  transition: transform 700ms cubic-bezier(.2, .65, .25, 1);
}

.team-profile:hover .team-profile-photo img {
  transform: scale(1.025);
}

.team-profile-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-grey-light);
  color: var(--brand-blue);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-profile-info {
  max-width: 680px;
}

.team-profile-role {
  margin: 0 0 14px;
  color: var(--brand-red);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.team-profile-info h2 {
  max-width: 650px;
  color: var(--brand-blue);
  font-size: clamp(2.35rem, 3.4vw, 3.55rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.team-profile-area {
  margin: 18px 0 0;
  color: var(--blue-grey);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-profile-bio {
  max-width: 610px;
  margin: 25px 0 0;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.8;
}

.team-profile-bio + .team-profile-bio {
  margin-top: 14px;
}

/* =========================================
   FIRMA — REACH / OFFICE
========================================= */

.firm-history {
  padding:
    clamp(85px, 8vw, 120px)
    var(--page-padding);
  background: var(--white);
}

.firm-history .section-content {
  max-width: 850px;
}

.firm-history h2 {
  color: var(--brand-blue);
  font-size: clamp(2.7rem, 4.2vw, 4.4rem);
  line-height: 1.03;
}

.firm-history .section-content p {
  max-width: 620px;
  margin-top: 25px;
  color: var(--text-muted);
  line-height: 1.75;
}

.firm-office-image {
  padding:
    0
    var(--page-padding)
    clamp(80px, 8vw, 120px);
  background: var(--white);
}

.firm-office-image img {
  width: 100%;
  height: clamp(300px, 40vw, 540px);
  object-fit: cover;
  object-position: center;
}

/* =========================================
   SERVICES
========================================= */

.services-hero {
  background: var(--off-white);
}

/* Sticky in-page navigation */

.services-index {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0 var(--page-padding);
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.services-index::-webkit-scrollbar {
  display: none;
}

.services-index-inner {
  width: max-content;
  min-width: min(100%, 1180px);
  min-height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 20px);
}

.services-index a {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.services-index a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 1px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.services-index a:hover {
  color: var(--brand-red);
  background: var(--blue-grey-light);
  transform: none;
}

.services-index a:hover::after {
  transform: scaleX(1);
}

#derecho-pensional,
#derecho-administrativo,
#derecho-tributario,
#derecho-civil,
#derecho-familia,
#derecho-laboral {
  scroll-margin-top: 60px;
}


/* =========================================
   SERVICES — FEATURED PENSION PRACTICE
========================================= */

.service-featured {
  padding:
    clamp(82px, 8vw, 120px)
    var(--page-padding)
    clamp(88px, 8vw, 125px);
  background: var(--brand-blue);
  color: var(--white);
}

.service-featured-heading {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: block;
}

.service-featured-heading .eyebrow {
  margin: 0 0 20px;
}

.service-featured-heading h2 {
  max-width: 850px;
  color: var(--white);
  font-size: clamp(3.4rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.service-featured-intro {
  width: min(1120px, 100%);
  margin:
    clamp(36px, 4vw, 52px)
    auto
    0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 80px);
}

.service-featured-intro p {
  max-width: 500px;
  margin: 0;
  color: var(--blue-grey-light);
  font-size: 0.96rem;
  line-height: 1.75;
}

.pension-services-grid {
  width: min(1120px, 100%);
  margin:
    clamp(52px, 5.5vw, 72px)
    auto
    0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.pension-services-grid article {
  position: relative;
  min-height: 220px;
  padding: 29px 32px 31px;
  overflow: hidden;
  background: var(--brand-blue);
  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.pension-services-grid article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.pension-services-grid article:hover {
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.pension-services-grid article:hover::before {
  transform: scaleX(1);
}

.pension-service-label,
.pension-services-grid article > span {
  position: relative;
  display: inline-block;
  margin: 0 0 19px;
  padding-left: 17px;
  color: var(--blue-grey-light);
  font-family: var(--sans);
  font-size: 0.61rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pension-service-label::before,
.pension-services-grid article > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 1px;
  background: var(--brand-red);
  transform: translateY(-50%);
}

.pension-services-grid h3 {
  max-width: 485px;
  margin: 0 0 13px;
  color: var(--white);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.pension-services-grid p {
  max-width: 500px;
  margin: 0;
  color: var(--blue-grey-light);
  font-size: 0.86rem;
  line-height: 1.68;
}

.service-contact-row {
  width: min(1120px, 100%);
  margin:
    clamp(45px, 5vw, 62px)
    auto
    0;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line-dark);
}

.service-contact-row p {
  max-width: 540px;
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.8vw, 1.85rem);
  line-height: 1.15;
}

@media (max-width: 760px) {
  .service-featured-heading h2 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .service-featured-intro {
    margin-top: 28px;
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


/* =========================================
   SERVICES — OTHER PRACTICES TRANSITION
========================================= */

.services-transition {
  padding:
    clamp(72px, 7vw, 105px)
    var(--page-padding);

  display: grid;
  grid-template-columns:
    minmax(360px, 0.92fr)
    minmax(0, 1.08fr);

  gap: clamp(55px, 7vw, 105px);
  align-items: center;

  background: var(--white);
}

.services-transition-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--blue-grey-light);
}

.services-transition-media img {
  width: 100%;
  height: clamp(410px, 40vw, 560px);
  display: block;
  object-fit: cover;
  object-position: 90% center;

  transition:
    transform 650ms cubic-bezier(.2, .65, .25, 1);
}

.services-transition-media:hover img {
  transform: scale(1.015);
}

.services-transition-copy {
  max-width: 690px;
}

.services-transition-copy .eyebrow {
  margin-bottom: 20px;
}

.services-transition-copy h2 {
  max-width: 650px;
  color: var(--brand-blue);
  font-size: clamp(2.9rem, 4.2vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.services-transition-copy > p:not(.eyebrow) {
  max-width: 555px;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .services-transition {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .services-transition-media {
    width: min(680px, 100%);
  }

  .services-transition-media img {
    height: 450px;
  }

  .services-transition-copy {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .services-transition {
    padding-top: 55px;
    padding-bottom: 60px;
    gap: 34px;
  }

  .services-transition-media img {
    height: 350px;
    object-position: 58% center;
  }

  .services-transition-copy h2 {
    font-size: clamp(2.6rem, 10vw, 3.6rem);
  }

  .services-transition-copy > p:not(.eyebrow) {
    margin-top: 22px;
  }
}


/* =========================================
   SERVICES — SUPPORTING PRACTICE AREAS
========================================= */

.service-section {
  position: relative;
  padding:
    clamp(68px, 6.5vw, 92px)
    var(--page-padding);
  display: grid;
  grid-template-columns:
    46px
    minmax(255px, 0.72fr)
    minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.service-section-alt {
  background: var(--off-white);
}

.service-number {
  padding-top: 8px;
  color: var(--blue-grey);
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.service-section:hover .service-number {
  color: var(--brand-red);
  transform: translateY(-2px);
}

.service-title {
  max-width: 500px;
}

.service-title .eyebrow {
  margin-bottom: 14px;
}

.service-title h2 {
  max-width: 500px;
  color: var(--brand-blue);
  font-size: clamp(2.35rem, 3.35vw, 3.55rem);
  line-height: 1.01;
  letter-spacing: -0.04em;
}

.service-copy {
  width: 100%;
  max-width: 760px;
}

.service-copy > p {
  max-width: 650px;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.72;
}

.service-list {
  margin: 25px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(26px, 4vw, 58px);
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-list li {
  position: relative;
  min-height: 52px;
  padding: 14px 14px 14px 22px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--brand-blue);
  font-size: 0.82rem;
  line-height: 1.45;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    padding-left 180ms ease;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 1px;
  background: var(--brand-red);
  transform: translateY(-50%);
  transition: width 180ms ease;
}

.service-list li::after {
  content: none;
}

.service-list li:hover {
  padding-left: 28px;
  background: var(--hover-surface);
}

.service-section-alt .service-list li:hover {
  background: var(--white);
}

.service-list li:hover::before {
  width: 15px;
}


/* =========================================
   ACCESSIBILITY
========================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}



/* =========================================
   SERVICES — FINAL INTERACTION REFINEMENTS
========================================= */

/* Pension CTA: clear hover on the dark background */
.service-contact-row .button-light {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.service-contact-row .button-light:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
}

.service-contact-row .button-light:hover span {
  color: var(--white);
  transform: translate(2px, -2px);
}

/* Practice anchor navigation: taller, rounded, light-blue hover */
.services-index-inner {
  min-height: 72px;
}

.services-index a {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.services-index a::after {
  left: 16px;
  right: 16px;
  bottom: 7px;
}

.services-index a:hover {
  background: var(--blue-grey-light);
  color: var(--brand-red);
  transform: none;
}

/* Supporting practice lists are informational, not interactive */
.service-list {
  margin-top: 27px;
  border-top: 0;
  row-gap: 10px;
}

.service-list li {
  min-height: 0;
  padding: 8px 8px 8px 18px;
  border-bottom: 0;
  background: transparent;
  transition: none;
}

.service-list li::before {
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-red);
  transform: translateY(-50%);
}

.service-list li::after {
  content: none;
}

.service-list li:hover,
.service-section-alt .service-list li:hover {
  padding-left: 18px;
  background: transparent;
  color: var(--brand-blue);
}

.service-list li:hover::before {
  width: 5px;
}

/* Fixed back-to-top control */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(8, 55, 75, 0.2);
  border-radius: 50%;

  background: var(--blue-grey-light);
  color: var(--brand-blue);

  box-shadow: 0 8px 24px rgba(8, 55, 75, 0.12);

  font-size: 1rem;
  line-height: 1;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.back-to-top:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .services-index-inner {
    min-height: 64px;
  }

  .services-index a {
    min-height: 38px;
    padding: 0 13px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }
}


/* =========================================
   CONTACT PAGE
========================================= */

/* Shorter contact hero */

.contact-hero {
  min-height: 390px;
  padding:
    clamp(62px, 6vw, 84px)
    var(--page-padding)
    clamp(62px, 6vw, 84px);

  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(55px, 8vw, 135px);
  align-items: center;

  background: var(--off-white);
  border-bottom: 1px solid var(--line);
}

.contact-hero-label {
  align-self: start;
  padding-top: 8px;
}

.contact-hero-content {
  max-width: 920px;
}

.contact-hero h1 {
  max-width: 900px;
  color: var(--brand-blue);
  font-size: clamp(3.2rem, 5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.contact-hero-content > p {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.72;
}


/* Contact details + enquiry form */

.contact-page {
  padding:
    clamp(82px, 8vw, 118px)
    var(--page-padding);

  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(70px, 9vw, 140px);
  align-items: start;

  background: var(--white);
}

.contact-information {
  max-width: 600px;
}

.contact-information h2,
.contact-form-wrapper h2 {
  color: var(--brand-blue);
  font-size: clamp(2.7rem, 4vw, 4rem);
  line-height: 1;
}

.contact-intro {
  max-width: 520px;
  margin: 24px 0 38px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.contact-detail-list {
  border-top: 1px solid var(--line);
}

.contact-detail {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.contact-detail-label {
  padding-top: 2px;
  color: var(--brand-red);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-detail p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.contact-detail a {
  color: var(--brand-blue);
  transition: color 180ms ease;
}

.contact-detail a:hover {
  color: var(--brand-red);
}


/* Form */

.contact-form-wrapper {
  padding: clamp(38px, 4.5vw, 62px);
  background: var(--off-white);
}

.contact-form-wrapper .eyebrow {
  margin-bottom: 18px;
}

.contact-form {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-field label {
  color: var(--brand-blue);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(8, 55, 75, 0.3);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 0.95rem;
  transition: border-color 180ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--brand-red);
}

.form-field textarea {
  min-height: 145px;
  resize: vertical;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-submit-row {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
}

.form-privacy-note {
  max-width: 430px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.55;
}


/* Coverage / location closing section */

.contact-location {
  padding:
    clamp(72px, 7vw, 105px)
    var(--page-padding);

  display: block;
  background: var(--blue-grey-light);
}

.contact-location-copy {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0;
}

.contact-location-copy h2 {
  max-width: 720px;
  color: var(--brand-blue);
  font-size: clamp(2.8rem, 4.4vw, 4.5rem);
  line-height: 1;
}

.contact-location-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.72;
}


/* Contact responsive */

@media (max-width: 1000px) {
  .contact-hero {
    grid-template-columns: 125px 1fr;
    gap: 45px;
  }

  .contact-page {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .contact-information {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  .contact-hero {
    min-height: 0;
    display: block;
    padding-top: 58px;
    padding-bottom: 62px;
  }

  .contact-hero-label {
    padding-top: 0;
  }

  .contact-hero h1 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .contact-hero-content {
    margin-top: 28px;
  }

  .contact-page {
    display: block;
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .contact-form-wrapper {
    margin-top: 55px;
    padding: 30px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-detail {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .contact-location {
    padding-top: 60px;
    padding-bottom: 65px;
  }
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
  padding:
    60px
    var(--page-padding)
    22px;
  background: var(--brand-blue-dark);
  color: var(--blue-grey);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.9fr 1fr;
  gap: 50px;
}

.footer-logo {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 85px;
  background: var(--white);
  padding: 10px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.78rem;
  line-height: 1.65;
}

.footer-column p {
  margin: 0;
}

.footer-heading {
  margin-bottom: 12px;
  color: var(--blue-grey);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line-dark);
  color: var(--blue-grey);
  font-size: 0.65rem;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1050px) {
  .home-pension-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-column:last-child {
    grid-column: 2;
  }
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .home-hero {
    grid-template-columns: 1fr 0.8fr;
  }

  .page-hero {
    grid-template-columns: 130px 1fr;
    column-gap: 40px;
  }

  .firma-editorial-hero {
    padding-right: var(--page-padding);
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .firma-hero-visual {
    height: 520px;
    margin-top: 0;
  }

  .firma-history-combined {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .firma-history-photo img {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .team-page-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .team-page-intro > div:last-child {
    max-width: 620px;
  }

  .team-profile,
  .team-profile-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-profile-reverse .team-profile-photo,
  .team-profile-reverse .team-profile-info {
    order: initial;
  }

  .team-profile-photo {
    width: min(620px, 100%);
  }

  .contact-page {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .service-featured-heading {
    grid-template-columns: 130px 1fr;
    gap: 40px;
  }

  .service-section {
    grid-template-columns:
      56px
      minmax(230px, 0.85fr)
      minmax(300px, 1.15fr);
    gap: 30px;
  }
}

@media (max-width: 820px) {
  .services-index-inner {
    justify-content: flex-start;
    min-width: max-content;
  }
}

@media (max-width: 760px) {
  :root {
    --page-padding: 22px;
  }

  .site-header {
    min-height: 78px;
  }

  .brand-logo {
    height: 56px;
  }

  .button-header {
    display: none;
  }

  .home-hero {
    display: block;
  }

  .home-hero-copy {
    padding:
      70px
      var(--page-padding)
      60px;
  }

  .home-hero-copy h1 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .home-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero-media {
    padding:
      0
      var(--page-padding)
      30px;
  }

  .home-hero-image {
    min-height: 400px;
  }

  .home-pension-feature-header {
    display: block;
  }

  .home-pension-feature-header h2 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .home-pension-feature-header > p:not(.eyebrow) {
    margin-top: 22px;
  }

  .pension-cta {
    margin-top: 26px;
  }

  .home-pension-cards {
    grid-template-columns: 1fr;
  }

  .pension-card {
    min-height: 0;
  }

  .pension-card-detail {
    position: static;
    min-height: 0;
    margin-top: 18px;
    padding: 0;
    background: transparent;
    opacity: 1;
    transform: none;
  }

  .pension-card-arrow {
    position: static;
    display: block;
    margin-top: 20px;
  }

  .home-section-heading {
    margin-bottom: 48px;
    display: block;
  }

  .home-section-intro {
    max-width: 460px;
    margin-top: 26px;
    padding-top: 0;
  }

  .home-team .team-secondary-cta {
    margin-top: 26px;
  }

  .home-service-item {
    min-height: 105px;
    grid-template-columns: 45px 1fr 25px;
  }

  .home-service-name {
    font-size: 1.45rem;
  }

  .home-team-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .home-credibility {
    grid-template-columns: 1fr;
  }

  .credibility-item,
  .credibility-link {
    padding: 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .credibility-link {
    justify-content: flex-start;
  }

  .home-contact {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 35px;
  }

  .page-hero {
    display: block;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .firma-editorial-hero {
    min-height: 0;
    padding-top: 65px;
    padding-bottom: 75px;
  }

  .firma-hero-copy h1 {
    font-size: clamp(3rem, 12vw, 4.2rem);
  }

  .firma-hero-visual {
    height: 420px;
  }

  .firma-history-combined {
    padding-top: 85px;
    padding-bottom: 85px;
  }

  .firma-history-year {
    left: -4px;
    top: -10px;
    font-size: 6.5rem;
  }

  .firma-history-content {
    padding-left: 28px;
  }

  .team-page-intro {
    display: block;
    padding-top: 60px;
  }

  .team-page-intro > div:last-child {
    margin-top: 26px;
  }

  .team-profile {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .team-profile-photo {
    width: 100%;
    aspect-ratio: 5 / 6;
  }

  .firm-history {
    display: block;
  }

  .firm-history .section-label {
    margin-bottom: 28px;
  }

  .firm-office-image img {
    height: 340px;
  }

  .services-index {
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
  }

  .services-index-inner {
    min-height: 54px;
    gap: 24px;
  }

  .services-index a {
    padding: 19px 0 16px;
    font-size: 0.61rem;
  }

  .service-featured {
    padding-top: 75px;
    padding-bottom: 80px;
  }

  .service-featured-heading {
    display: block;
  }

  .service-featured-heading h2 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .service-featured-intro {
    margin-top: 30px;
  }

  .pension-services-grid {
    grid-template-columns: 1fr;
    margin-top: 55px;
  }

  .pension-services-grid article,
  .pension-services-grid article:nth-child(even) {
    min-height: 0;
    padding: 28px 0;
    border-left: 0;
  }

  .service-contact-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-section {
    display: block;
    padding-top: 70px;
    padding-bottom: 75px;
  }

  .service-title {
    margin-top: 22px;
  }

  .service-copy {
    margin-top: 34px;
  }

  .contact-page {
    display: block;
  }

  .form-row,
  .contact-location {
    grid-template-columns: 1fr;
  }

  .contact-detail {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-location-image {
    min-height: 370px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 45px;
  }
}

/* =========================================
   ACCESSIBILITY
========================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


/* Final Services navigation interaction */
.services-index a::after {
  content: none;
}

.services-index a {
  font-size: 0.70rem;
  border-radius: 10px;
}

.services-index a:hover {
  color: var(--brand-red);
  background: var(--blue-grey-light);
}


/* =========================================
   EDITORIAL MOTION
   Restrained reveal language inspired by leading legal/editorial sites.
========================================= */

@keyframes ur-reveal-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ur-image-reveal {
  from {
    opacity: 0.25;
    clip-path: inset(0 0 12% 0);
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

@supports (animation-timeline: view()) {
  .home-pension-feature-header,
  .home-section-heading,
  .team-page-intro,
  .firma-history-content,
  .firm-history .section-content,
  .services-transition-copy,
  .service-title,
  .service-copy,
  .contact-information,
  .contact-form-wrapper,
  .contact-location-copy {
    animation-name: ur-reveal-up;
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 4% cover 28%;
  }

  .firma-history-photo,
  .firm-office-image,
  .services-transition-media {
    animation-name: ur-image-reveal;
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 0% cover 32%;
  }
}

/* Slightly more deliberate hover movement on genuine links only */
.home-service-item,
.team-secondary-cta,
.text-link,
.button,
.main-nav a,
.footer-column a {
  transition-timing-function: cubic-bezier(.2, .65, .25, 1);
}

.home-team-card {
  transition: transform 260ms cubic-bezier(.2, .65, .25, 1);
}

.home-team-card:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .home-team-card {
    transform: none !important;
  }
}



/* =========================================
   FINAL NAVIGATION / LAYOUT REFINEMENTS
========================================= */

/* Main site header stays visible throughout every page. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Main navigation: no underline; red is the interaction cue. */
.main-nav a::after {
  content: none !important;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--brand-red);
}

/* Services in-page navigation remains sticky below the main header. */
.services-index {
  top: 94px;
  z-index: 90;
}

.services-index-inner {
  min-height: 72px;
}

.services-index a {
  min-height: 44px;
  padding: 0 17px;
  border-radius: 10px;

  font-size: 0.76rem;
  letter-spacing: 0.075em;

  transition:
    background-color 190ms ease,
    color 190ms ease,
    transform 190ms ease;
}

.services-index a::after {
  content: none !important;
}

.services-index a:hover {
  color: var(--brand-red);
  background: var(--blue-grey-light);
  transform: translateY(-1px);
}

/* Homepage team: 2 x 2, but intentionally narrower than the page. */
.home-team-grid {
  width: min(880px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* Firma profiles: more portrait-like, giving faces more vertical room. */
.team-profile-photo {
  aspect-ratio: 4 / 5;
}

.team-profile-photo img {
  object-position: center top;
}


/* =========================================
   EDITORIAL REVEAL MOTION
   IntersectionObserver adds .is-visible in page HTML.
========================================= */

.reveal {
  opacity: 0;
  transform: translateY(34px);

  transition:
    opacity 720ms cubic-bezier(.2, .65, .25, 1),
    transform 720ms cubic-bezier(.2, .65, .25, 1);

  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.reveal-image {
  opacity: 0;
  transform: translateY(18px) scale(1.035);
  clip-path: inset(0 0 14% 0);

  transition:
    opacity 850ms cubic-bezier(.2, .65, .25, 1),
    transform 950ms cubic-bezier(.2, .65, .25, 1),
    clip-path 950ms cubic-bezier(.2, .65, .25, 1);

  transition-delay: var(--reveal-delay, 0ms);
}

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

.reveal.reveal-image.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  clip-path: inset(0 0 0 0);
}

/* Make genuine interactive rows feel more deliberate. */
.home-service-item {
  transition:
    background-color 260ms cubic-bezier(.2, .65, .25, 1),
    padding 260ms cubic-bezier(.2, .65, .25, 1);
}

.home-service-item:hover {
  padding-left: 16px;
  padding-right: 16px;
}

.home-service-item:hover .home-service-name {
  color: var(--brand-red);
}

.home-team-card {
  transition:
    transform 320ms cubic-bezier(.2, .65, .25, 1);
}

.home-team-card:hover {
  transform: translateY(-6px);
}

.home-team-card:hover .home-team-photo img {
  transform: scale(1.03);
}

.services-transition-media img,
.firma-history-photo img,
.firm-office-image img,
.home-hero-image img {
  transition: transform 850ms cubic-bezier(.2, .65, .25, 1);
}

.services-transition-media:hover img,
.firma-history-photo:hover img,
.firm-office-image:hover img,
.home-hero-image:hover img {
  transform: scale(1.025);
}

@media (max-width: 1000px) {
  .services-index {
    top: 94px;
  }
}

@media (max-width: 760px) {
  .services-index {
    top: 78px;
  }

  .services-index a {
    min-height: 40px;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.reveal-image {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}


/* =========================================
   MOBILE NAVIGATION
========================================= */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  width: 22px;
  height: 1.5px;
  display: block;
  background: currentColor;
  transition:
    transform 220ms cubic-bezier(.2, .65, .25, 1),
    opacity 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before {
  top: -7px;
}

.menu-toggle-lines::after {
  top: 7px;
}

.site-header.menu-open .menu-toggle-lines {
  background: transparent;
}

.site-header.menu-open .menu-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.menu-open .menu-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav-cta {
  display: none;
}

/* Keep arrow glyphs as text, not emoji, on mobile browsers. */
.button span,
.text-link span,
.team-secondary-cta span,
.home-service-arrow,
.pension-card-arrow,
.back-to-top {
  font-family: Arial, Helvetica, sans-serif;
  font-variant-emoji: text;
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-actions {
    gap: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 14px var(--page-padding) 24px;

    background: rgba(255, 255, 255, 0.985);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(8, 55, 75, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;

    transition:
      opacity 220ms ease,
      transform 260ms cubic-bezier(.2, .65, .25, 1),
      visibility 220ms ease;
  }

  .site-header.menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    min-height: 58px;
    display: flex;
    align-items: center;

    border-bottom: 1px solid var(--line);

    color: var(--brand-blue);
    font-family: var(--serif);
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    color: var(--brand-red);
  }

  .main-nav .mobile-nav-cta {
    display: inline-flex;
    width: fit-content;
    min-height: 46px;
    margin-top: 22px;
    padding: 0 20px;

    align-items: center;
    gap: 12px;

    border: 1px solid var(--brand-red);
    background: var(--brand-red);
    color: var(--white);

    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .main-nav .mobile-nav-cta:hover {
    color: var(--white);
    background: var(--brand-red-dark);
    border-color: var(--brand-red-dark);
  }

  .main-nav .mobile-nav-cta span {
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-variant-emoji: text;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    height: 54px;
  }

  .brand-name {
    font-size: 0.82rem;
  }

  .brand-tagline {
    font-size: 0.44rem;
  }

  .language-switcher {
    font-size: 0.62rem;
    gap: 6px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    padding-left: 22px;
    padding-right: 22px;
    padding-bottom: 28px;
  }

  .main-nav a {
    min-height: 62px;
    font-size: 1.85rem;
  }
}


/* ==========================================================
   MOBILE-FIRST REFINEMENT PASS
   The site is expected to receive the majority of visits
   from phones. These rules deliberately override older
   responsive rules without changing the desktop composition.
========================================================== */

/* Tablet / compact desktop */
@media (max-width: 1000px) {
  .site-header {
    min-height: 82px;
  }

  .services-index {
    top: 82px;
  }

  /* On compact layouts, lawyer profiles read naturally
     image first, copy second instead of alternating. */
  .team-profile,
  .team-profile-reverse {
    grid-template-columns: 1fr;
  }

  .team-profile-reverse .team-profile-photo,
  .team-profile-reverse .team-profile-info {
    order: initial;
  }
}

/* Primary mobile breakpoint */
@media (max-width: 760px) {
  :root {
    --page-padding: 20px;
    --section-padding: 62px;
  }

  html {
    scroll-padding-top: 72px;
  }

  body {
    overflow-x: hidden;
  }

  /* ---------- HEADER / MENU ---------- */

  .site-header {
    min-height: 72px;
    padding-left: 16px;
    padding-right: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .brand {
    gap: 9px;
    min-width: 0;
  }

  .brand-logo {
    height: 48px;
    flex: 0 0 auto;
  }

  .brand-wordmark {
    gap: 3px;
    min-width: 0;
  }

  .brand-name {
    font-size: 0.76rem;
    letter-spacing: 0.055em;
    white-space: nowrap;
  }

  .brand-tagline {
    font-size: 0.41rem;
    letter-spacing: 0.18em;
    white-space: nowrap;
  }

  .header-actions {
    gap: 7px;
  }

  .language-switcher {
    gap: 5px;
    font-size: 0.58rem;
    letter-spacing: 0.09em;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }

  .menu-toggle-lines,
  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    width: 21px;
  }

  .main-nav {
    top: 100%;
    height: calc(100dvh - 72px);
    padding: 24px 20px 30px;
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(247, 246, 242, 0.99);
    box-shadow: 0 18px 36px rgba(8, 55, 75, 0.10);
  }

  .main-nav a {
    min-height: 70px;
    padding: 0 2px;
    font-size: clamp(1.9rem, 8vw, 2.35rem);
    line-height: 1;
  }

  .main-nav .mobile-nav-cta {
    width: 100%;
    min-height: 52px;
    margin-top: 28px;
    justify-content: space-between;
    padding: 0 18px;
    font-size: 0.74rem;
  }

  /* ---------- SHARED MOBILE TYPOGRAPHY ---------- */

  h1 {
    font-size: clamp(2.65rem, 11.5vw, 3.55rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(2.2rem, 9.5vw, 3rem);
    line-height: 1;
  }

  h3 {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }

  .eyebrow,
  .section-label {
    margin-bottom: 15px;
    font-size: 0.62rem;
    letter-spacing: 0.17em;
  }

  .button {
    min-height: 50px;
    padding: 0 18px;
  }

  /* ---------- HOMEPAGE HERO ---------- */

  .home-hero {
    display: block;
  }

  .home-hero-copy {
    padding: 52px var(--page-padding) 38px;
  }

  .home-hero-copy h1 {
    max-width: 10.5ch;
    font-size: clamp(2.75rem, 11.8vw, 3.65rem);
    line-height: 0.97;
  }

  .home-hero-description {
    max-width: 36ch;
    margin-top: 22px;
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .home-hero-actions {
    margin-top: 28px;
    gap: 18px;
    align-items: stretch;
  }

  .home-hero-actions .button-primary {
    width: 100%;
    justify-content: space-between;
  }

  .home-hero-media {
    padding: 0 var(--page-padding) 24px;
  }

  .home-hero-image {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 4.7;
  }

  /* ---------- HOMEPAGE PENSION ---------- */

  .home-pension-feature {
    padding: 58px var(--page-padding) 62px;
  }

  .home-pension-feature-header {
    margin-bottom: 30px;
  }

  .home-pension-feature-header h2 {
    max-width: 9.5ch;
    margin-bottom: 0;
    font-size: clamp(2.5rem, 10.5vw, 3.25rem);
  }

  .home-pension-feature-header > p:not(.eyebrow) {
    margin-top: 20px;
    font-size: 0.94rem;
    line-height: 1.66;
  }

  .pension-cta {
    width: 100%;
    margin-top: 24px;
    justify-content: space-between;
  }

  .home-pension-cards {
    gap: 12px;
  }

  .pension-card {
    min-height: 0;
    padding: 22px 20px;
  }

  .pension-card-label {
    margin-bottom: 16px;
    font-size: 0.59rem;
  }

  .pension-card h3 {
    font-size: 1.55rem;
  }

  .pension-card-summary {
    margin-top: 10px;
    font-size: 0.87rem;
  }

  .pension-card-detail {
    margin-top: 14px;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .pension-card-arrow {
    margin-top: 14px;
  }

  /* ---------- HOMEPAGE SERVICES ---------- */

  .home-services {
    padding: 60px var(--page-padding) 52px;
  }

  .home-section-heading {
    margin-bottom: 32px;
  }

  .home-section-heading h2 {
    font-size: clamp(2.45rem, 10vw, 3.15rem);
  }

  .home-section-intro {
    margin-top: 18px;
  }

  .home-section-intro p {
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .home-service-item {
    min-height: 82px;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
  }

  .home-service-number {
    font-size: 0.82rem;
  }

  .home-service-name {
    padding-right: 8px;
    font-size: 1.24rem;
    line-height: 1.15;
  }

  .home-service-arrow {
    font-size: 0.95rem;
  }

  .home-services-footer {
    margin-top: 28px;
  }

  /* ---------- HOMEPAGE TEAM ---------- */

  .home-team {
    padding: 56px var(--page-padding) 64px;
  }

  .home-team .home-section-heading {
    margin-bottom: 30px;
  }

  .home-team .team-secondary-cta {
    width: 100%;
    margin-top: 22px;
    justify-content: space-between;
  }

  .home-team-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }

  .home-team-card {
    min-width: 0;
  }

  .home-team-photo {
    aspect-ratio: 0.84;
  }

  .home-team-details {
    padding-top: 13px;
  }

  .home-team-details h3 {
    font-size: 1.14rem;
    line-height: 1.1;
  }

  .home-team-role {
    margin-top: 7px;
    font-size: 0.61rem;
    line-height: 1.35;
  }

  .home-team-practice {
    margin-top: 7px;
    font-size: 0.72rem;
    line-height: 1.42;
  }

  /* ---------- CREDIBILITY ---------- */

  .home-credibility {
    padding: 38px var(--page-padding);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .credibility-item,
  .credibility-link {
    min-height: 0;
    padding: 22px 14px 22px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(8, 55, 75, 0.16);
  }

  .credibility-item:nth-child(even),
  .credibility-link:nth-child(even) {
    padding-left: 14px;
    padding-right: 0;
    border-left: 1px solid rgba(8, 55, 75, 0.16);
  }

  .credibility-kicker {
    margin-bottom: 10px;
    font-size: 0.55rem;
  }

  .credibility-value {
    font-size: 1.65rem;
  }

  .credibility-label {
    margin-top: 7px;
    font-size: 0.67rem;
    line-height: 1.42;
  }

  /* ---------- SHARED CONTACT CTA ---------- */

  .home-contact {
    padding: 58px var(--page-padding) 62px;
    gap: 28px;
  }

  .home-contact h2 {
    font-size: clamp(2.4rem, 10vw, 3.15rem);
  }

  .home-contact-copy > p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .home-contact-action,
  .home-contact-action .button {
    width: 100%;
  }

  .home-contact-action .button {
    justify-content: space-between;
  }

  /* ---------- GENERIC INTERNAL HERO ---------- */

  .page-hero {
    padding: 52px var(--page-padding) 58px;
  }

  .page-hero-label {
    padding-top: 0;
  }

  .page-hero-content {
    margin-top: 22px;
  }

  .page-hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.45rem);
  }

  .page-hero-content > p {
    margin-top: 20px;
    font-size: 0.94rem;
    line-height: 1.64;
  }

  /* ---------- FIRMA ---------- */

  .firma-editorial-hero {
    padding:
      50px
      var(--page-padding)
      58px;
    gap: 34px;
  }

  .firma-hero-copy h1 {
    max-width: 10ch;
    padding-left: 14px;
    font-size: clamp(2.6rem, 11vw, 3.45rem);
  }

  .firma-hero-copy h1::before {
    top: 4px;
    height: 62px;
  }

  .firma-hero-intro {
    margin-top: 22px;
    font-size: 0.94rem;
    line-height: 1.64;
  }

  .firma-hero-visual {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .firma-hero-caption {
    left: 12px;
    bottom: 12px;
    padding: 7px 9px;
    font-size: 0.52rem;
  }

  .firma-history-combined {
    padding: 62px var(--page-padding) 58px;
    gap: 36px;
  }

  .firma-history-main {
    padding-top: 20px;
  }

  .firma-history-year {
    left: -2px;
    top: -6px;
    font-size: 5.1rem;
    opacity: 0.15;
  }

  .firma-history-content {
    padding-left: 20px;
  }

  .firma-history-content h2 {
    font-size: clamp(2.25rem, 9.5vw, 2.95rem);
  }

  .firma-history-copy {
    margin-top: 26px;
    padding-top: 18px;
  }

  .firma-history-copy p {
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.68;
  }

  .firma-history-photo img {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .firm-image-caption {
    margin-top: 9px;
    font-size: 0.51rem;
    letter-spacing: 0.11em;
  }

  .team-page-intro {
    padding:
      54px
      var(--page-padding)
      40px;
  }

  .team-page-intro h2 {
    font-size: clamp(2.25rem, 9.5vw, 2.95rem);
  }

  .team-page-intro > div:last-child {
    margin-top: 18px;
  }

  .team-page-intro > div:last-child p {
    font-size: 0.91rem;
    line-height: 1.65;
  }

  .team-profile,
  .team-profile-reverse {
    padding:
      38px
      var(--page-padding)
      48px;
    gap: 26px;
  }

  .team-profile-photo,
  .team-profile-reverse .team-profile-photo {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 5;
    order: initial;
  }

  .team-profile-info,
  .team-profile-reverse .team-profile-info {
    order: initial;
  }

  .team-profile-role {
    margin-bottom: 10px;
    font-size: 0.59rem;
  }

  .team-profile-info h2 {
    font-size: clamp(2rem, 8.6vw, 2.55rem);
  }

  .team-profile-area {
    margin-top: 13px;
    font-size: 0.61rem;
    line-height: 1.5;
  }

  .team-profile-bio {
    margin-top: 18px;
    font-size: 0.9rem;
    line-height: 1.67;
  }

  .firm-history {
    padding: 56px var(--page-padding);
  }

  .firm-history h2 {
    font-size: clamp(2.2rem, 9.4vw, 2.9rem);
  }

  .firm-history .section-content p {
    margin-top: 18px;
    font-size: 0.91rem;
    line-height: 1.65;
  }

  .firm-office-image {
    padding: 0 var(--page-padding) 60px;
  }

  .firm-office-image img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  /* ---------- SERVICES ---------- */

  .services-index {
    top: 72px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .services-index-inner {
    min-height: 56px;
    gap: 8px;
  }

  .services-index a {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.63rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  #derecho-pensional,
  #derecho-administrativo,
  #derecho-tributario,
  #derecho-civil,
  #derecho-familia,
  #derecho-laboral {
    scroll-margin-top: 128px;
  }

  .service-featured {
    padding: 58px var(--page-padding) 64px;
  }

  .service-featured-heading h2 {
    max-width: 10ch;
    font-size: clamp(2.55rem, 10.8vw, 3.35rem);
  }

  .service-featured-intro {
    margin-top: 24px;
    gap: 14px;
  }

  .service-featured-intro p {
    font-size: 0.91rem;
    line-height: 1.64;
  }

  .pension-services-grid {
    margin-top: 38px;
    gap: 10px;
    background: transparent;
    border: 0;
  }

  .pension-services-grid article,
  .pension-services-grid article:nth-child(even) {
    min-height: 0;
    padding: 22px 20px;
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, 0.025);
  }

  .pension-service-label,
  .pension-services-grid article > span {
    margin-bottom: 13px;
    font-size: 0.56rem;
  }

  .pension-services-grid h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
  }

  .pension-services-grid p {
    font-size: 0.83rem;
    line-height: 1.57;
  }

  .service-contact-row {
    margin-top: 36px;
    padding-top: 24px;
    gap: 20px;
  }

  .service-contact-row p {
    font-size: 1.45rem;
  }

  .service-contact-row .button {
    width: 100%;
    justify-content: space-between;
  }

  .services-transition {
    padding: 54px var(--page-padding) 58px;
    gap: 30px;
  }

  .services-transition-media {
    width: 100%;
  }

  .services-transition-media img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: 72% center;
  }

  .services-transition-copy h2 {
    font-size: clamp(2.25rem, 9.5vw, 2.95rem);
  }

  .services-transition-copy > p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 0.91rem;
    line-height: 1.64;
  }

  .service-section {
    padding: 54px var(--page-padding) 58px;
  }

  .service-number {
    padding-top: 0;
    font-size: 0.78rem;
  }

  .service-title {
    margin-top: 15px;
  }

  .service-title h2 {
    font-size: clamp(2.05rem, 8.8vw, 2.7rem);
  }

  .service-copy {
    margin-top: 24px;
  }

  .service-copy > p {
    font-size: 0.9rem;
    line-height: 1.64;
  }

  .service-list {
    margin-top: 20px;
    grid-template-columns: 1fr;
    row-gap: 5px;
  }

  .service-list li {
    padding: 7px 4px 7px 16px;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  /* ---------- CONTACT ---------- */

  .contact-hero {
    padding: 50px var(--page-padding) 54px;
  }

  .contact-hero h1 {
    font-size: clamp(2.55rem, 10.8vw, 3.35rem);
  }

  .contact-hero-content {
    margin-top: 21px;
  }

  .contact-hero-content > p {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .contact-page {
    padding: 56px var(--page-padding) 62px;
  }

  .contact-information h2,
  .contact-form-wrapper h2 {
    font-size: clamp(2.25rem, 9.4vw, 2.9rem);
  }

  .contact-intro {
    margin-top: 18px;
    font-size: 0.91rem;
    line-height: 1.64;
  }

  .contact-detail-list {
    margin-top: 30px;
  }

  .contact-detail {
    padding: 17px 0;
  }

  .contact-form-wrapper {
    margin-top: 44px;
    padding: 28px 20px 30px;
  }

  .contact-form {
    margin-top: 28px;
    gap: 22px;
  }

  .form-row {
    gap: 22px;
  }

  .form-field input {
    min-height: 46px;
  }

  .form-field textarea {
    min-height: 145px;
  }

  .form-submit-row {
    gap: 18px;
  }

  .form-submit-row .button {
    width: 100%;
    justify-content: space-between;
  }

  .contact-location {
    padding: 54px var(--page-padding) 58px;
  }

  .contact-location-copy h2 {
    font-size: clamp(2.25rem, 9.4vw, 2.9rem);
  }

  .contact-location-copy > p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 0.91rem;
    line-height: 1.64;
  }

  /* ---------- FOOTER ---------- */

  .site-footer {
    padding: 48px var(--page-padding) 22px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-logo {
    max-width: 145px;
    max-height: 72px;
  }

  .footer-column {
    font-size: 0.74rem;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    margin-top: 38px;
    padding-top: 18px;
    gap: 9px;
    font-size: 0.6rem;
    line-height: 1.5;
  }

  /* ---------- MOBILE MOTION ---------- */

  .reveal {
    transform: translateY(18px);
    transition:
      opacity 560ms cubic-bezier(.2, .65, .25, 1),
      transform 560ms cubic-bezier(.2, .65, .25, 1);
  }

  .reveal.reveal-image {
    transform: translateY(10px) scale(1.018);
    clip-path: inset(0 0 7% 0);
    transition:
      opacity 650ms cubic-bezier(.2, .65, .25, 1),
      transform 700ms cubic-bezier(.2, .65, .25, 1),
      clip-path 700ms cubic-bezier(.2, .65, .25, 1);
  }

  /* Remove desktop hover motion on touch devices. */
  @media (hover: none) {
    .button:hover,
    .home-team-card:hover,
    .pension-card:hover,
    .pension-services-grid article:hover,
    .services-transition-media:hover img,
    .firma-history-photo:hover img,
    .firm-office-image:hover img,
    .home-hero-image:hover img,
    .home-team-card:hover .home-team-photo img {
      transform: none;
    }

    .home-service-item:hover {
      padding-left: 0;
      padding-right: 0;
    }
  }
}

/* Small phones */
@media (max-width: 430px) {
  :root {
    --page-padding: 18px;
  }

  .site-header {
    padding-left: 12px;
    padding-right: 8px;
  }

  .brand-logo {
    height: 45px;
  }

  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 0.7rem;
  }

  .brand-tagline {
    font-size: 0.38rem;
  }

  .language-switcher {
    font-size: 0.54rem;
  }

  .home-team-grid {
    gap: 25px 12px;
  }

  .home-team-details h3 {
    font-size: 1.05rem;
  }

  .home-team-practice {
    font-size: 0.68rem;
  }

  .home-credibility {
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
  }

  .credibility-value {
    font-size: 1.5rem;
  }

  .services-index {
    padding-left: 8px;
    padding-right: 8px;
  }
}


/* ==========================================================
   MOBILE HEADING WIDTH REFINEMENT
   Major headings should use the available phone width rather
   than being forced into narrow editorial columns.
========================================================== */

@media (max-width: 760px) {

  /* Shared heading behaviour */
  .home-hero-copy h1,
  .home-pension-feature-header h2,
  .home-section-heading h2,
  .home-contact h2,
  .page-hero h1,
  .firma-hero-copy h1,
  .firma-history-content h2,
  .team-page-intro h2,
  .team-profile-info h2,
  .firm-history h2,
  .service-featured-heading h2,
  .services-transition-copy h2,
  .service-title h2,
  .contact-hero h1,
  .contact-information h2,
  .contact-form-wrapper h2,
  .contact-location-copy h2 {
    width: 100%;
    max-width: none;
  }

  /* Homepage hero */
  .home-hero-copy h1 {
    font-size: clamp(2.6rem, 10.5vw, 3.35rem);
    line-height: 0.98;
  }

  /* Homepage pension title */
  .home-pension-feature-header h2 {
    font-size: clamp(2.35rem, 9.7vw, 3rem);
    line-height: 0.99;
  }

  .home-pension-feature-header h2 span {
    display: inline;
  }

  /* Homepage generic section titles */
  .home-section-heading h2,
  .home-contact h2 {
    font-size: clamp(2.3rem, 9.4vw, 2.95rem);
    line-height: 1;
  }

  /* Internal page heroes */
  .page-hero h1,
  .contact-hero h1 {
    font-size: clamp(2.45rem, 10vw, 3.15rem);
    line-height: 0.99;
  }

  /* Firma */
  .firma-hero-copy h1 {
    max-width: none;
    font-size: clamp(2.4rem, 9.8vw, 3.1rem);
    line-height: 0.99;
  }

  .firma-history-content h2,
  .team-page-intro h2,
  .firm-history h2 {
    font-size: clamp(2.15rem, 8.9vw, 2.75rem);
    line-height: 1;
  }

  .team-profile-info h2 {
    font-size: clamp(1.9rem, 7.9vw, 2.4rem);
    line-height: 1.02;
  }

  /* Servicios */
  .service-featured-heading h2 {
    font-size: clamp(2.35rem, 9.7vw, 3rem);
    line-height: 0.99;
  }

  .services-transition-copy h2 {
    font-size: clamp(2.15rem, 8.9vw, 2.75rem);
    line-height: 1;
  }

  .service-title h2 {
    font-size: clamp(1.95rem, 8.1vw, 2.5rem);
    line-height: 1.02;
  }

  /* Contact */
  .contact-information h2,
  .contact-form-wrapper h2,
  .contact-location-copy h2 {
    font-size: clamp(2.1rem, 8.7vw, 2.7rem);
    line-height: 1;
  }
}

@media (max-width: 430px) {
  .home-hero-copy h1,
  .page-hero h1,
  .contact-hero h1,
  .firma-hero-copy h1,
  .service-featured-heading h2 {
    font-size: clamp(2.3rem, 10vw, 2.85rem);
  }

  .home-pension-feature-header h2,
  .home-section-heading h2,
  .home-contact h2,
  .firma-history-content h2,
  .team-page-intro h2,
  .firm-history h2,
  .services-transition-copy h2,
  .contact-information h2,
  .contact-form-wrapper h2,
  .contact-location-copy h2 {
    font-size: clamp(2rem, 8.8vw, 2.55rem);
  }

  .service-title h2,
  .team-profile-info h2 {
    font-size: clamp(1.8rem, 7.7vw, 2.25rem);
  }
}
