:root {
  --navy: #071b35;
  --blue: #1769bd;
  --bright: #4a9be8;
  --ink: #102033;
  --muted: #627084;
  --line: #d9e5f2;
  --soft: #edf6ff;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(7, 27, 53, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(247, 251, 255, 0.64), rgba(247, 251, 255, 0.72)),
    url("assets/legal-office-background.png") center / cover fixed no-repeat;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  grid-column: 2;
  justify-self: center;
}

.brand img { width: 250px; }

.site-nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  color: #24364c;
  font-size: 0.95rem;
  font-weight: 700;
}

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

.header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-ai,
.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.92rem;
}

.header-ai {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  box-shadow: 0 14px 34px rgba(23, 105, 189, 0.22);
}

.header-call {
  gap: 8px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid rgba(23, 105, 189, 0.22);
}

.whatsapp-mark {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: #25d366;
  border-radius: 50%;
}

.whatsapp-mark svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.menu-toggle { display: none; }

.button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font: 700 0.95rem Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #0f4f9e);
  box-shadow: 0 14px 34px rgba(23, 105, 189, 0.28);
}

.button.secondary {
  color: var(--navy);
  background: #ffffff;
  border: 1px solid var(--line);
}

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

.full { width: 100%; }

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  align-items: start;
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(22px, 3vw, 38px) clamp(18px, 6vw, 88px) clamp(26px, 3vw, 38px);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.72) 0%, rgba(240, 247, 255, 0.58) 48%, rgba(220, 239, 255, 0.5) 100%),
    url("assets/legal-office-background.png") center / cover no-repeat;
}

.hero-copy {
  max-width: 920px;
  padding-top: 0;
}

.hero-copy .eyebrow {
  font-size: 1.28rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.35rem, 4.4vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3.3vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.23rem;
}

.hero-text {
  max-width: 620px;
  margin: 64px 0 0;
  color: #34475e;
  font-size: 1.34rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-practices {
  align-self: start;
  padding: 0 0 0 28px;
  border-left: 3px solid rgba(23, 105, 189, 0.35);
}

.hero-practices .eyebrow {
  font-size: 1.28rem;
  padding-left: 24px;
}

.hero-practices ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-practices li {
  position: relative;
  padding-left: 24px;
  color: var(--navy);
  font-size: 1.24rem;
  font-weight: 800;
}

.hero-practices li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  background: var(--blue);
  border-radius: 50%;
  transform: translateY(-50%);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  background: #ffffff;
  color: #233a55;
  text-align: center;
  font-weight: 800;
}

.section,
.assistant-section,
.contact-section,
.blue-band {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 88px);
}

.section,
.assistant-section,
.contact-section {
  background-color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(3px);
}

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

.practice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 16px;
}

.practice-card {
  min-height: 270px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(7, 27, 53, 0.06);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.practice-card p,
.locations p,
.assistant-copy p,
.contact-copy p {
  color: var(--muted);
}

.blue-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 27, 53, 0.94), rgba(23, 105, 189, 0.92)),
    linear-gradient(90deg, #071b35, #1769bd);
}

.blue-band .eyebrow,
.blue-band h2 { color: #ffffff; }

.process-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.process-list span { color: rgba(255, 255, 255, 0.82); }

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

.locations article {
  min-height: 190px;
  padding: 26px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.assistant-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1fr);
  align-items: start;
  gap: clamp(26px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
}

.assistant-copy { max-width: 640px; }

.legal-note {
  padding: 14px 16px;
  border-left: 4px solid var(--bright);
  background: var(--soft);
}

.assistant-shell {
  padding: 18px;
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.chat-window {
  height: 390px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 8px;
  white-space: pre-wrap;
}

.message.bot {
  justify-self: start;
  color: #20344d;
  background: #eaf4ff;
}

.message.user {
  justify-self: end;
  color: #ffffff;
  background: var(--blue);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid #c9d8e8;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
  font: 1rem Arial, Helvetica, sans-serif;
}

textarea:focus,
input:focus,
select:focus {
  outline: 3px solid rgba(74, 155, 232, 0.24);
  border-color: var(--blue);
}

#buildContact { margin-top: 12px; }

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.92), rgba(255, 255, 255, 0.9));
}

.contact-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-highlights span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue);
  font-weight: 800;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #223956;
  font-weight: 800;
}

.wide { grid-column: 1 / -1; }

.check {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 400;
  color: var(--muted);
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 18px;
  color: #dce9f8;
  text-align: center;
  background: var(--navy);
}

.site-footer img {
  width: 220px;
  filter: brightness(1.15);
}

.site-footer p { margin: 0; }

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

@media (max-width: 1080px) {
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero,
  .blue-band,
  .assistant-section,
  .contact-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-practices {
    align-self: start;
    max-width: 520px;
  }
}

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

  .brand {
    grid-column: 2;
  }

  .brand img { width: 190px; }

  .menu-toggle {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #ffffff;
    color: var(--navy);
    font-weight: 800;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .site-nav.open {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }

  .site-nav.open a {
    padding: 13px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open a:last-child { border-bottom: 0; }

  h1 { font-size: clamp(2.05rem, 10vw, 3.05rem); }

  .hero {
    gap: 22px;
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .hero-text {
    margin-top: 32px;
    font-size: 1.16rem;
  }

  .trust-strip,
  .locations,
  .practice-grid,
  .contact-form { grid-template-columns: 1fr; }

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

  .process-list li { grid-template-columns: 1fr; }

  .message { max-width: 100%; }

  .hero-practices {
    padding-left: 18px;
  }

  .trust-strip span {
    min-height: 44px;
  }
}
