/*
  YES Law Firm visual system
  Editorial legal instrument: quiet authority, clear hierarchy, deliberate motion.
  Loaded after the existing SEO styles so the content and URL system remain intact.
*/
:root {
  --ink: #0a1a2c;
  --blue: #0b223b;
  --blue-deep: #071522;
  --gold: #d1a052;
  --gold-bright: #e5b965;
  --red: #bd3041;
  --paper: #f8f6f0;
  --mist: #e9eef2;
  --line: rgba(10, 26, 44, .17);
  --line-light: rgba(255, 255, 255, .18);
  --muted: #5c6977;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(10, 26, 44, .026) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--paper);
}

body::selection {
  background: var(--gold);
  color: var(--blue-deep);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 82px;
  border-bottom-color: rgba(10, 26, 44, .14);
  background: rgba(248, 246, 240, .86);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.brand {
  letter-spacing: .14em;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  background: var(--red);
  box-shadow: 4px 4px 0 rgba(10, 26, 44, .12);
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .48);
}

nav {
  gap: 26px;
}

nav a {
  position: relative;
  border-bottom: 0;
  color: var(--ink);
  transition: color 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: '';
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--ease-out);
}

nav a.active::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  border: 1px solid var(--ink);
  transition: transform 160ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.nav-cta {
  padding: 11px 17px !important;
  background: var(--paper);
}

.button.gold {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 5px 5px 0 rgba(10, 26, 44, .12);
}

.button.gold span,
.text-link span,
.arrow-link span {
  display: inline-block;
  transition: transform 180ms var(--ease-out);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 82px));
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, .94fr);
  padding-right: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 13% 19%, rgba(219, 170, 84, .13), transparent 22rem),
    radial-gradient(circle at 78% 88%, rgba(64, 122, 159, .16), transparent 26rem),
    var(--blue);
}

.hero::before,
.process::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 84px 84px;
  content: '';
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .72), transparent 82%);
  pointer-events: none;
  opacity: .42;
}

.hero-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
  padding: clamp(72px, 9vw, 134px) 7vw clamp(66px, 8vw, 104px) 0;
}

.eyebrow {
  position: relative;
  color: var(--gold-bright);
  letter-spacing: .2em;
}

.eyebrow::before {
  display: inline-block;
  width: 26px;
  height: 1px;
  margin: 0 11px 3px 0;
  background: currentColor;
  content: '';
}

.hero h1,
.page-hero h1,
.contact-hero h1 {
  max-width: 820px;
  font-size: clamp(52px, 7vw, 104px);
  line-height: .92;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.hero h1 em,
.page-hero h1 em,
.contact-hero h1 em {
  color: var(--gold-bright);
}

.lead {
  max-width: 570px;
  margin: 34px 0;
  color: #d4dee7;
  font-size: 17px;
  line-height: 1.72;
}

.actions {
  gap: 28px;
}

.trust-row {
  gap: 22px;
  margin-top: 58px;
  color: #bac9d8;
}

.trust-row span {
  position: relative;
}

.trust-row span::before {
  content: '↗';
  color: var(--gold-bright);
}

.hero-image {
  position: relative;
  z-index: 2;
  align-self: stretch;
  min-height: 520px;
  border-left: 1px solid rgba(255, 255, 255, .24);
  background: #122d49;
  isolation: isolate;
}

.hero-image::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 64% 36%, transparent 0 9rem, rgba(7, 21, 34, .28) 33rem), linear-gradient(130deg, rgba(10, 34, 59, .74), transparent 58%);
  content: '';
  pointer-events: none;
}

.hero-image::after {
  z-index: 3;
  background: linear-gradient(0deg, rgba(7, 18, 31, .78), transparent 45%), linear-gradient(90deg, rgba(10, 34, 59, .74), transparent 52%);
  pointer-events: none;
}

.hero-image img {
  position: relative;
  z-index: 0;
  transform: scale(1.035);
  filter: grayscale(20%) contrast(1.06) saturate(.82);
  transition: transform 1.2s var(--ease-in-out), filter 1.2s var(--ease-in-out);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: .72;
  pointer-events: none;
}

.image-caption {
  right: 40px;
  bottom: 42px;
  left: auto;
  z-index: 4;
  max-width: 250px;
  font-size: 12px;
  letter-spacing: .01em;
}

.image-caption::before {
  display: block;
  width: 36px;
  height: 1px;
  margin-bottom: 12px;
  background: var(--gold-bright);
  content: '';
}

.section,
.page-hero,
.contact-hero {
  position: relative;
}

.section {
  padding-top: clamp(82px, 10vw, 142px);
  padding-bottom: clamp(82px, 10vw, 142px);
}

.intro {
  background: var(--paper);
}

.two-col,
.section-heading,
.office,
.form-section {
  gap: clamp(48px, 9vw, 150px);
}

.two-col h2,
.section-heading h2,
.process h2,
.cta h2,
.service-detail h2,
.office h2,
.form-section h2 {
  max-width: 700px;
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 1.01;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.two-col > div > p,
.office p,
.form-section p,
.team .section-heading > p {
  font-size: 15px;
  line-height: 1.8;
}

.arrow-link,
.text-link,
.service-grid a {
  position: relative;
}

.services-band {
  position: relative;
  overflow: hidden;
  background: var(--mist);
}

.services-band::before {
  position: absolute;
  top: 0;
  right: 8vw;
  width: 1px;
  height: 35%;
  background: rgba(10, 26, 44, .16);
  content: '';
}

.section-heading {
  margin-bottom: 58px;
}

.service-grid {
  gap: 1px;
  border: 1px solid rgba(10, 26, 44, .15);
  background: rgba(10, 26, 44, .15);
}

.service-grid article,
.service-grid article + article {
  position: relative;
  min-height: 310px;
  padding: 30px 30px 28px;
  overflow: hidden;
  border: 0;
  background: rgba(248, 246, 240, .82);
  transition: transform 260ms var(--ease-out), background-color 260ms var(--ease-out), color 260ms var(--ease-out);
}

.service-grid article::after {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 28px;
  height: 1px;
  background: var(--gold);
  content: '';
  transform-origin: right center;
  transition: transform 260ms var(--ease-out);
}

.service-grid h3 {
  max-width: 230px;
  margin: 66px 0 15px;
  font-size: 22px;
  letter-spacing: -.025em;
}

.service-grid p {
  max-width: 285px;
  line-height: 1.7;
}

.service-grid a {
  font-size: 12px;
}

.industries,
.team {
  background: rgba(255, 255, 255, .6);
}

.industry-list,
.team-grid {
  border-top-color: rgba(10, 26, 44, .18);
}

.industry-list span,
.industry-list span + span {
  min-height: 152px;
  padding: 30px 20px 25px 0;
  font-size: 26px;
  transition: color 180ms var(--ease-out), transform 220ms var(--ease-out);
}

.team-grid article,
.team-grid article + article {
  padding-top: 28px;
}

.team-grid img {
  filter: grayscale(88%) contrast(1.03);
  transition: filter 500ms var(--ease-in-out), transform 500ms var(--ease-in-out);
}

.team-grid h3 {
  font-size: 30px;
  letter-spacing: -.045em;
}

.process {
  position: relative;
  overflow: hidden;
  background: var(--blue-deep);
}

.process::before {
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .85));
}

.process > .section {
  position: relative;
  z-index: 1;
}

.steps {
  gap: 1px;
  margin-top: 66px;
  background: var(--line-light);
}

.steps > div {
  min-height: 250px;
  padding: 24px 30px;
  border: 0;
  background: rgba(11, 34, 59, .72);
  transition: background-color 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.steps h3 {
  margin-top: 64px;
  font-size: 22px;
}

.cta {
  border-top: 1px solid var(--line);
}

.cta h2 {
  max-width: 660px;
  font-size: clamp(42px, 5vw, 70px);
}

.page-hero,
.contact-hero {
  background:
    radial-gradient(circle at 80% 15%, rgba(209, 160, 82, .14), transparent 28rem),
    var(--blue);
}

.page-hero {
  padding-top: clamp(82px, 11vw, 150px);
  padding-bottom: clamp(82px, 11vw, 150px);
}

.page-hero > p:last-child,
.contact-hero > div > p:not(.eyebrow) {
  max-width: 680px;
  line-height: 1.75;
}

.breadcrumbs {
  background: var(--paper);
}

.content-page {
  padding-top: 88px;
}

.content-page > header {
  max-width: 900px;
}

.content-page h2 {
  letter-spacing: -.05em;
}

.content-page .content-grid,
.content-page .faq-list,
.industry-cards,
.faq-grid {
  border-color: rgba(10, 26, 44, .16);
  background: rgba(10, 26, 44, .16);
}

.content-page .content-grid article,
.content-page .faq-list details,
.industry-cards article,
.faq-grid details {
  transition: background-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.content-page .cta-panel {
  position: relative;
  overflow: hidden;
  background: var(--blue);
}

.content-page .cta-panel::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgba(229, 185, 105, .28);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(229, 185, 105, .05), 0 0 0 64px rgba(229, 185, 105, .035);
  content: '';
  pointer-events: none;
}

footer {
  position: relative;
  background: #061321;
}

.whatsapp {
  right: 26px;
  bottom: 24px;
  transition: transform 160ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  nav a:not(.nav-cta):hover::after {
    transform: scaleX(1);
  }

  nav a:hover {
    color: var(--blue);
  }

  .nav-cta:hover {
    background: var(--blue);
    color: #fff;
  }

  .nav-cta:hover,
  .button:hover,
  .whatsapp:hover {
    transform: translateY(-2px);
  }

  .button:active,
  .nav-cta:active,
  .whatsapp:active {
    transform: scale(.97);
  }

  .button:hover span,
  .text-link:hover span,
  .arrow-link:hover span {
    transform: translateX(5px);
  }

  .hero:hover .hero-image img {
    transform: scale(1.07);
    filter: grayscale(8%) contrast(1.08) saturate(.98);
  }

  .service-grid article:hover {
    z-index: 1;
    background: #fff;
    transform: translateY(-7px);
  }

  .service-grid article:hover::after {
    transform: scaleX(1.6);
  }

  .industry-list span:hover {
    color: var(--gold);
    transform: translateX(6px);
  }

  .team-grid article:hover img {
    filter: grayscale(0%) contrast(1.04);
    transform: scale(1.025);
  }

  .steps > div:hover {
    background: rgba(31, 66, 95, .8);
    transform: translateY(-4px);
  }

  .content-page .content-grid article:hover,
  .content-page .faq-list details:hover,
  .industry-cards article:hover,
  .faq-grid details:hover {
    background: #fff;
    transform: translateY(-3px);
  }
}

@media (max-width: 760px) {
  html {
    scroll-behavior: auto;
  }

  .site-header {
    height: 72px;
  }

  nav {
    top: 71px;
    background: rgba(248, 246, 240, .97);
    backdrop-filter: blur(18px);
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-right: 28px;
  }

  .hero-copy {
    padding-top: 78px;
  }

  .hero h1 {
    font-size: clamp(49px, 14vw, 76px);
  }

  .hero-image {
    min-height: 360px;
    border-top: 1px solid rgba(255, 255, 255, .24);
    border-left: 0;
  }

  .image-caption {
    right: 28px;
    bottom: 28px;
  }

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

  .service-grid article,
  .service-grid article + article {
    min-height: 0;
    padding: 28px 24px 32px;
  }

  .service-grid h3 {
    margin-top: 38px;
  }

  .industry-list span,
  .industry-list span + span {
    min-height: 0;
    padding: 22px 0;
  }

  .steps {
    gap: 1px;
  }

  .steps > div {
    min-height: 0;
    padding: 24px;
  }

  .steps h3 {
    margin-top: 40px;
  }

  .content-page {
    padding-top: 58px;
  }
}

/* Final correction: show lawyer portraits in their original full color. */
.team-grid .lawyer-tile::before,
.team-grid .lawyer-tile::after,
.lawyer-card .lawyer-photo::before,
.lawyer-card .lawyer-photo::after {
  display: none !important;
  background: none !important;
  mix-blend-mode: normal !important;
}

.team-grid .lawyer-tile img,
.team-grid .lawyer-tile:hover img,
.lawyer-card .lawyer-photo img {
  filter: none !important;
}

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

  .hero-canvas {
    display: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Requested rollback: restore the previous Hero caption placement and keep lawyer portraits still and natural. */
.image-caption {
  right: auto;
  bottom: 48px;
  left: 42px;
  z-index: 1;
  max-width: none;
  font-size: 13px;
  letter-spacing: normal;
}

.image-caption::before {
  display: none;
}

.team-grid img {
  filter: none;
  transform: none;
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  .team-grid article:hover img {
    filter: none;
    transform: none;
  }
}

@media (max-width: 760px) {
  .image-caption {
    right: auto;
    bottom: 28px;
    left: 28px;
  }
}

/* Requested layout: give the copy 38% of the Hero and the image 62%. */
@media (min-width: 761px) {
  .hero {
    grid-template-columns: .38fr .62fr;
  }
}

/* Requested portrait treatment: charcoal-to-tech-blue color field with a soft radial glow. */
.team-grid .lawyer-tile,
.lawyer-card .lawyer-photo {
  position: relative;
  isolation: isolate;
}

.team-grid .lawyer-tile::before,
.team-grid .lawyer-tile::after,
.lawyer-card .lawyer-photo::before,
.lawyer-card .lawyer-photo::after {
  position: absolute;
  pointer-events: none;
  content: '';
}

.team-grid .lawyer-tile::before {
  top: 28px;
  right: 0;
  left: 0;
  z-index: 1;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #0A1A2F99 0%, #1E5BFF61 100%);
  mix-blend-mode: soft-light;
}

.team-grid .lawyer-tile::after {
  top: 28px;
  right: 0;
  left: 0;
  z-index: 2;
  aspect-ratio: 4 / 5;
  background: radial-gradient(circle at 50% 34%, #1E5BFF9E 0, #1E5BFF2E 27%, transparent 62%);
  mix-blend-mode: screen;
}

.team-grid .lawyer-tile img {
  position: relative;
  z-index: 0;
  filter: contrast(1.04) saturate(.9);
}

.team-grid .lawyer-tile:hover img {
  filter: contrast(1.04) saturate(.9);
}

.lawyer-card .lawyer-photo::before {
  top: 0;
  left: 0;
  z-index: 1;
  width: 140px;
  height: 187px;
  background: linear-gradient(135deg, #0A1A2F99 0%, #1E5BFF61 100%);
  mix-blend-mode: soft-light;
}

.lawyer-card .lawyer-photo::after {
  top: 0;
  left: 0;
  z-index: 2;
  width: 140px;
  height: 187px;
  background: radial-gradient(circle at 50% 34%, #1E5BFF9E 0, #1E5BFF2E 27%, transparent 62%);
  mix-blend-mode: screen;
}

.lawyer-card .lawyer-photo img {
  position: relative;
  z-index: 0;
  filter: contrast(1.04) saturate(.9);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.experience-card {
  min-height: 300px;
  padding: 0 0 28px;
  background: rgba(255, 255, 255, .88);
}

.experience-card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.experience-card .card-copy {
  padding: 0 28px;
}

.experience-card h3 {
  margin: 16px 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.experience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.case-figure {
  margin: 36px 0 48px;
}

.case-figure img {
  display: block;
  width: min(100%, 760px);
  height: auto;
  max-height: 680px;
  object-fit: cover;
}

.case-figure figcaption {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
  font: 11px/1.5 'DM Mono', monospace;
}

.content-page .content-grid article > img {
  display: block;
  width: calc(100% + 60px);
  height: 220px;
  margin: -30px -30px 0;
  object-fit: cover;
}

@media (max-width: 760px) {
  .lawyer-card .lawyer-photo::before,
  .lawyer-card .lawyer-photo::after {
    width: 96px;
    height: 128px;
  }

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

  .content-page .content-grid article > img {
    width: calc(100% + 60px);
  }
}
