/* ============================================================
   THE JA LEGAL — minimal / modern theme (Swim · EY inspired)
   ============================================================ */

:root {
  --bg:       #ffffff;
  --bg-2:     #F6F7F9;
  --bg-3:     #EEF1F5;
  --navy:     #0A1A33;
  --navy-2:   #0E2244;
  --ink:      #0B1420;
  --muted:    #59616E;
  --muted-2:  #8A929E;
  --accent:   #1F52E0;
  --accent-2: #1740B8;
  --line:     #E5E8EE;
  --line-2:   #D8DCE4;
  --white:    #ffffff;

  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1200px;
  --pad: clamp(1.2rem, 4vw, 3rem);
  --radius: 10px;
  --radius-sm: 7px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.025em;
}

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

.section-eyebrow, .eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.section-eyebrow::before, .eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block;
}

.section-title { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.section-lead { color: var(--muted); font-size: 1.12rem; margin-top: 1.1rem; max-width: 48ch; }
.section-head { max-width: 62ch; margin-bottom: clamp(2.8rem, 5vw, 4.5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 74px; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--ink); color: var(--white);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.03em; border-radius: 9px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; color: var(--ink); }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }

.main-nav { display: flex; align-items: center; gap: 2.1rem; margin-left: auto; }
.main-nav a { font-size: 0.92rem; font-weight: 450; color: var(--muted); transition: color .2s; }
.main-nav a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta { color: var(--ink); font-weight: 500; border: 1px solid var(--line-2); padding: 0.5rem 1.15rem; border-radius: var(--radius-sm); transition: all .2s; }
.nav-cta:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.lang-toggle { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; color: var(--muted-2); }
.lang-toggle button { background: none; border: none; cursor: pointer; font: inherit; color: var(--muted-2); padding: 0.15rem; transition: color .2s; }
.lang-toggle button.is-active { color: var(--ink); font-weight: 600; }
.lang-toggle button:hover { color: var(--accent); }

.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-btn span { width: 22px; height: 2px; background: var(--ink); transition: all .3s; }

/* ============ HERO ============ */
.hero {
  position: relative; background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; top: -20%; left: -12%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,82,224,0.08), transparent 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero-copy { max-width: 34rem; }
.hero-title { font-size: clamp(2.1rem, 3.8vw, 3.4rem); font-weight: 600; margin-bottom: 1.4rem; letter-spacing: -0.03em; }
.hero-sub { font-size: clamp(1.02rem, 1.35vw, 1.15rem); color: var(--muted); max-width: 42ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-media {
  position: relative;
  aspect-ratio: 1 / 1.02;
  border-radius: 16px;
  background: linear-gradient(158deg, var(--navy) 0%, var(--navy-2) 58%, #14315f 100%);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 34px 74px -36px rgba(10,26,51,0.5);
  overflow: hidden;
}
.hero-illustration { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ============ STATS ============ */
.stats { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: clamp(2.8rem, 5vw, 3.8rem); }
.stat { padding: 0.3rem 1.4rem; border-left: 1px solid var(--line-2); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num { display: block; font-family: var(--display); font-size: clamp(2.3rem, 4.5vw, 3.2rem); font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.stat-num .plus { color: var(--accent); }
.stat-label { display: block; margin-top: 0.7rem; font-size: 0.86rem; color: var(--muted); }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-media { position: relative; }
.about-photo {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 55%, #16335f 100%);
  position: relative; overflow: hidden;
  box-shadow: 0 24px 60px -34px rgba(10,26,51,0.5);
}
.about-photo::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 18px 18px; opacity: 0.5;
}
.about-badge {
  position: absolute; bottom: -1.4rem; right: -1rem;
  background: var(--white); border: 1px solid var(--line);
  padding: 1rem 1.25rem; border-radius: var(--radius-sm); box-shadow: 0 20px 44px -26px rgba(10,26,51,0.35);
  max-width: 230px;
}
.about-badge span { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 0.15rem; }
.about-badge strong { font-family: var(--display); font-size: 1.02rem; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.about-copy p { color: var(--muted); margin-top: 1.2rem; font-size: 1.04rem; }
.about-copy .section-title { margin-bottom: 0.5rem; }

.tick-list { list-style: none; margin-top: 1.9rem; display: grid; gap: 0.75rem; }
.tick-list li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ============ PRACTICES ============ */
.practices { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  position: relative; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -30px rgba(10,26,51,0.28); border-color: var(--line-2); }
.card-num { font-family: var(--display); font-size: 0.85rem; color: var(--accent); letter-spacing: 0.06em; font-weight: 600; }
.card h3 { font-size: 1.42rem; margin: 0.7rem 0 0.6rem; letter-spacing: -0.02em; }
.card > p { color: var(--muted); font-size: 0.97rem; }
.card-list { list-style: none; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; }
.card-list li { position: relative; padding-left: 1.15rem; font-size: 0.9rem; color: var(--ink); line-height: 1.5; }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--accent);
}

/* ============ APPROACH ============ */
.approach { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { padding-top: 1.3rem; border-top: 2px solid var(--ink); }
.step-num {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  background: var(--white); border: 1px solid var(--line-2); border-radius: 9px; color: var(--accent);
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ============ OFFICES ============ */
.offices { background: var(--navy); color: var(--bg); }
.offices .section-eyebrow { color: #8FB0FF; }
.offices .section-eyebrow::before { background: #8FB0FF; }
.offices .section-title { color: var(--white); }
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.office-card {
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  padding: 2.4rem; background: rgba(255,255,255,0.03); transition: background .3s, border-color .3s;
}
.office-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.24); }
.office-country { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8FB0FF; font-weight: 600; margin-bottom: 0.6rem; }
.office-card h3 { color: var(--white); font-size: 1.9rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
.office-card address { font-style: normal; color: rgba(255,255,255,0.68); line-height: 1.8; margin-bottom: 1rem; }
.office-link { color: #A9C2FF; font-size: 0.95rem; border-bottom: 1px solid transparent; transition: border-color .2s; }
.office-link:hover { border-color: #A9C2FF; }

/* ============ CONTACT ============ */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-intro p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.contact-list { list-style: none; margin-top: 2.2rem; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.contact-list a { font-size: 1.12rem; color: var(--ink); width: fit-content; border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.contact-list a:hover { border-color: var(--accent); }

.contact-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.8rem; color: var(--ink); margin-bottom: 0.45rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,82,224,0.12); }
.field textarea { resize: vertical; }
.contact-form .btn { width: 100%; margin-top: 0.3rem; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; text-align: center; }
.form-note.is-success { color: #1B8A4B; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand .brand-mark { background: var(--white); color: var(--ink); }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color .2s; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-block: 1.8rem; font-size: 0.82rem; }
.footer-legal a { color: rgba(255,255,255,0.5); transition: color .2s; }
.footer-legal a:hover { color: var(--white); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { max-width: none; }
  .hero-media { aspect-ratio: 16 / 10; max-width: 520px; width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .menu-btn { display: flex; }
  .main-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.2rem;
    clip-path: inset(0 0 100% 0); transition: clip-path .3s ease;
    box-shadow: 0 14px 30px -20px rgba(10,26,51,0.3);
  }
  .main-nav.open { clip-path: inset(0 0 0 0); }
  .main-nav a { width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { border: none; padding: 0.9rem 0; }
  .cards, .steps, .stats-grid, .office-grid { grid-template-columns: 1fr; }
  .stat { border-left: none; padding-left: 0; }
  .brand-sub { display: none; }
  .about-badge { position: static; margin-top: 1rem; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
