:root {
  --navy: #042745;
  --navy-700: #07385e;
  --navy-100: #eaf2f7;
  --ink: #152231;
  --muted: #5e6b78;
  --line: #dbe3ea;
  --paper: #ffffff;
  --soft: #f6f8fa;
  --gold: #caa650;
  --focus: #91cdf2;
  --shadow: 0 18px 45px rgba(5, 33, 56, 0.11);
  --radius: 8px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--navy);
  padding: .7rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 32px, 820px);
}

.site-header {
  position: relative;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 clamp(236px, 28vw, 350px);
  min-width: 180px;
  text-decoration: none;
  color: var(--gold);
}

.brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.menu-details {
  margin-left: auto;
}

.site-nav {
  display: none;
  position: absolute;
  inset-inline: 16px;
  top: 78px;
  padding: 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.menu-details[open] .site-nav {
  display: grid;
  gap: .4rem;
}

.site-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: .55rem .75rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: .96rem;
  color: inherit;
}

.site-nav a:hover {
  background: var(--navy-100);
}

.nav-contact {
  border: 1px solid var(--navy);
  font-weight: 700;
  justify-content: center;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  background: transparent;
  color: white;
  cursor: pointer;
  list-style: none;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-details summary::marker {
  content: "";
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  background: linear-gradient(180deg, #f9fbfc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  min-height: auto;
  display: grid;
  align-items: center;
  gap: clamp(1.6rem, 5vw, 4rem);
  padding: clamp(1.55rem, 4.5vw, 3.7rem) 0 clamp(1.8rem, 4.5vw, 3.8rem);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--navy-700);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: inherit;
  line-height: 1.1;
  letter-spacing: 0;
}

h1,
h2 {
  font-weight: 850;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

h3 {
  margin: 0 0 .65rem;
  font-size: 1.08rem;
  font-weight: 800;
}

p {
  margin: 0 0 1rem;
}

.hero-focus {
  margin: 1.15rem 0 .75rem;
  padding-left: .85rem;
  border-left: 3px solid var(--gold);
  color: var(--navy);
  font-size: clamp(1.45rem, 3.2vw, 2.24rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(1.55rem, 4.2vw, 2.95rem);
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 720px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.5rem;
}

.hero-actions.compact {
  margin-top: 1.25rem;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: .78rem 1rem;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

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

.btn.primary {
  background: var(--navy);
  color: white;
}

.btn.secondary {
  background: white;
  color: var(--navy);
  border-color: var(--line);
}

.btn.full {
  width: 100%;
}

.hero-summary {
  display: grid;
  gap: 1rem;
  align-self: center;
  width: min(100%, 430px);
  justify-self: start;
  padding: 1.2rem 0 1.2rem 1.15rem;
  border-left: 1px solid rgba(4, 39, 69, .22);
}

.hero-summary div {
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
}

.hero-summary div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-summary span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-summary p {
  margin: .18rem 0 0;
  color: var(--ink);
  font-weight: 700;
}

.hero-summary-main strong {
  display: block;
  margin-top: .28rem;
  color: var(--navy);
  font-family: inherit;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  font-weight: 850;
  line-height: 1.08;
}

.quick-info {
  background: var(--navy);
  color: white;
}

.quick-grid {
  display: grid;
  gap: 1rem;
  padding: 1rem 0;
}

.quick-grid div {
  padding: .25rem 0;
}

.quick-grid span,
.quick-grid p,
.quick-grid a {
  display: block;
}

.quick-grid span {
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.quick-grid p,
.quick-grid a {
  margin: .15rem 0 0;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.section {
  padding: clamp(2.8rem, 7vw, 5rem) 0;
}

.section.muted {
  background: var(--soft);
}

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

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.06rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.practice-card,
.step,
.note-box,
.contact-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.practice-card {
  min-height: 178px;
  padding: 1.2rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.practice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 43, 73, .28);
  box-shadow: 0 14px 34px rgba(5, 33, 56, .09);
}

.practice-card p,
.note-box p,
.contact-panel p,
.legal-text p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: .35rem;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "";
  width: .42rem;
  height: .42rem;
  margin-left: .45rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.steps-grid {
  display: grid;
  gap: 1.1rem;
}

.step {
  min-height: 190px;
  padding: 1.25rem;
}

.step span {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 900;
}

.profile-grid,
.content-grid,
.split-list,
.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.lawyer-photo {
  margin: 0;
  width: min(100%, 360px);
  justify-self: center;
  align-self: start;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: 0 16px 38px rgba(5, 33, 56, .13);
}

.lawyer-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.lawyer-photo-tall {
  width: min(100%, 390px);
}

.profile-role {
  margin-top: -.35rem;
  color: var(--muted);
  font-weight: 800;
}

.profile-highlight {
  display: inline-flex;
  margin: .25rem 0 1rem;
  padding: .34rem .6rem;
  border-left: 3px solid var(--gold);
  background: rgba(234, 242, 247, .72);
  color: var(--navy);
  font-weight: 900;
}

.profile-photo.tall {
  min-height: 420px;
}

.note-box {
  padding: 1.2rem;
  align-self: start;
  border-top: 4px solid var(--gold);
}

.note-box h2 {
  font-size: 1.35rem;
}

.note-box ul,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-box li,
.check-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: .65rem;
  color: var(--muted);
}

.note-box li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--gold);
}

.faq-list {
  display: grid;
  gap: .75rem;
}

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

.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 1rem 2.5rem 1rem 1rem;
  color: var(--navy);
  font-weight: 850;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: .5rem;
  height: .5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
}

.faq-item[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.related-links {
  display: grid;
  gap: .7rem;
}

.related-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
}

.related-links a::after {
  content: "";
  width: .42rem;
  height: .42rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.previd-admin-strip {
  margin-top: 1rem;
}

.previd-admin-strip article {
  display: grid;
  gap: .8rem;
  align-items: center;
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(4, 39, 69, .16);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(4, 39, 69, .055), rgba(255, 255, 255, .92));
}

.previd-admin-strip h3 {
  margin: 0;
}

.previd-admin-strip p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: clamp(2.4rem, 7vw, 4.5rem) 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.breadcrumbs {
  width: min(100% - 32px, var(--container));
  margin: 1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--muted);
  font-size: .92rem;
}

.breadcrumbs a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

.cta-band {
  background: var(--navy);
  color: white;
  padding: clamp(2.4rem, 6vw, 4rem) 0;
}

.cta-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.cta-band h2,
.cta-band p,
.cta-band .eyebrow {
  color: white;
}

.cta-band p {
  color: rgba(255, 255, 255, .78);
  max-width: 720px;
}

.cta-band .btn.secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, .34);
}

.contact-panel,
.contact-form {
  padding: 1.2rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-list div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-list dd {
  margin: .18rem 0 0;
  font-weight: 700;
}

.contact-list a {
  color: var(--navy);
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: .4rem;
}

.field label,
.consent {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: .78rem .9rem;
}

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

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .65rem;
  align-items: start;
  color: var(--muted);
  font-size: .94rem;
}

.consent input {
  margin-top: .28rem;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

.legal-text h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.site-footer {
  background: #041f35;
  color: white;
  padding: 1.15rem 0 .75rem;
}

.footer-grid {
  display: grid;
  gap: 1.1rem;
}

.footer-brand img {
  width: min(258px, 76vw);
  height: auto;
  margin-bottom: .45rem;
}

.site-footer h2 {
  color: white;
  margin-bottom: .45rem;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, .78);
}

.site-footer p {
  margin-bottom: .25rem;
}

.site-footer a {
  text-decoration: none;
}

.footer-bottom {
  margin-top: .75rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
  line-height: 1.45;
}

.whatsapp-float {
  position: fixed;
  right: .9rem;
  bottom: .9rem;
  z-index: 40;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .54rem .78rem;
  border-radius: 999px;
  background: #1f7a54;
  color: white;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(7, 54, 38, .18);
}

@media (min-width: 640px) {
  .quick-grid,
  .steps-grid,
  .card-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  }

  .lawyer-photo {
    justify-self: start;
  }

  .profile-grid,
  .content-grid,
  .contact-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
  }

  .split-list {
    grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
    align-items: start;
  }

  .cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cta-actions {
    justify-content: end;
  }

  .previd-admin-strip article {
    grid-template-columns: 280px minmax(0, 1fr) auto;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.15fr .9fr 1fr;
    align-items: start;
  }

  .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
    gap: .75rem 1rem;
    align-items: start;
  }

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

@media (min-width: 1020px) {
  body {
    font-size: 17px;
  }

  .menu-details {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav,
  .menu-details[open] .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: .15rem;
    padding: 0;
    background: transparent;
    color: white;
    border: 0;
    box-shadow: none;
    min-width: max-content;
  }

  .site-nav a {
    color: rgba(255, 255, 255, .86);
    padding: .48rem .6rem;
    font-size: .92rem;
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, .1);
    color: white;
  }

  .site-nav .nav-contact {
    margin-left: .4rem;
    border-color: rgba(255, 255, 255, .35);
    color: white;
    padding-inline: .85rem;
  }

  .brand {
    flex-basis: clamp(270px, 24vw, 350px);
  }

  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 420px) {
  .container,
  .narrow,
  .breadcrumbs {
    width: min(100% - 24px, var(--container));
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .brand {
    flex-basis: min(66vw, 244px);
    min-width: 0;
  }

  .whatsapp-float {
    right: .65rem;
    bottom: .65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
