:root {
  --primary: #122136;
  --primary-strong: #0d1a2c;
  --primary-soft: #1f3450;
  --accent: #d9b16f;
  --text: #1b2634;
  --text-soft: #5f6b79;
  --line: #e6e9ef;
  --white: #ffffff;
  --bg-soft: #f7f9fc;
  --shadow-sm: 0 10px 28px rgba(18, 33, 54, 0.08);
  --shadow-md: 0 18px 44px rgba(18, 33, 54, 0.12);
  --shadow-lg: 0 24px 64px rgba(18, 33, 54, 0.18);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p, li { font-size: 1rem; }
.justify { text-align: justify; text-justify: inter-word; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: .75rem 1rem;
  border-radius: 999px;
  z-index: 10000;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section { padding: 108px 0; }
.center { text-align: center; }

.section-kicker,
.eyebrow,
.light {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-heading h2,
.hero-copy h1,
.final-cta-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.14;
  color: var(--primary);
  font-weight: 800;
}

.section-heading .section-text,
.hero-copy .lead,
.final-cta-copy p {
  max-width: 760px;
  color: var(--text-soft);
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.site-header.header-hidden { transform: translateY(-100%); }
.site-header.header-scrolled {
  box-shadow: 0 12px 30px rgba(18, 33, 54, 0.08);
  border-color: rgba(18, 33, 54, 0.06);
}

.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  width: clamp(170px, 18vw, 240px);
  max-width: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.main-nav a {
  font-size: .94rem;
  color: var(--primary-soft);
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 46px;
  height: 46px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px auto;
  transition: .25s ease;
  border-radius: 999px;
}
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid rgba(18, 33, 54, 0.08);
  padding: 0 20px;
}
.mobile-menu.active {
  display: grid;
  gap: 12px;
  padding: 18px 20px 24px;
}
.mobile-menu a {
  font-weight: 600;
  color: var(--primary);
  padding: 6px 0;
}
.mobile-menu .btn-mobile {
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary,
.btn-header {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(18, 33, 54, 0.16);
}
.btn-primary:hover,
.btn-header:hover { background: var(--primary-strong); }
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border-color: rgba(18, 33, 54, 0.12);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: rgba(18, 33, 54, 0.24); }
.btn-light {
  background: var(--white);
  color: var(--primary);
}
.btn-ghost-light {
  color: var(--white);
  border-color: rgba(255,255,255,.28);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,.08);
}
.btn-mobile { width: 100%; }

.hero {
  overflow: clip;
  padding-top: 72px;
  padding-bottom: 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 52px;
  align-items: center;
}
.hero-copy .lead {
  margin-bottom: 1.7rem;
  font-size: 1.03rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 1.9rem;
}
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.highlight-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid rgba(18, 33, 54, 0.07);
  box-shadow: var(--shadow-sm);
}
.highlight-card strong {
  display: block;
  margin-bottom: .45rem;
  color: var(--primary);
  font-size: 1rem;
}
.highlight-card span {
  display: block;
  color: var(--text-soft);
  font-size: .94rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}
.portrait-frame {
  position: relative;
  width: min(420px, 100%);
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f8fb 0%, #e9eef6 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(18, 33, 54, 0.08);
}
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(217,177,111,.18), transparent 36%);
  pointer-events: none;
}
.portrait-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.badge-floating {
  position: absolute;
  right: 0;
  bottom: 28px;
  max-width: 250px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(18, 33, 54, 0.08);
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 14px;
  align-items: center;
}
.badge-floating img {
  width: 48px;
  flex: 0 0 48px;
}
.badge-floating span {
  font-size: .9rem;
  line-height: 1.5;
  color: var(--primary);
  font-weight: 700;
}

.selector {
  padding-top: 0;
}
.selector .container {
  padding: 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
  border: 1px solid rgba(18, 33, 54, 0.06);
  box-shadow: var(--shadow-sm);
}
.selector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 2rem;
}
.selector-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 16px;
  text-align: center;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(18, 33, 54, 0.08);
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.selector-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 33, 54, 0.18);
  box-shadow: var(--shadow-md);
}

.cards-grid,
.lawyers-grid,
.reviews-grid,
.family-grid {
  display: grid;
  gap: 26px;
}
.cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.family-grid,
.reviews-grid { grid-template-columns: 1.06fr .94fr; align-items: start; }
.lawyers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.2rem; }

.service-card,
.lawyer-card,
.map-card,
.review-quote,
.side-card,
.mini-card {
  background: var(--white);
  border: 1px solid rgba(18, 33, 54, 0.07);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.service-card {
  padding: 28px;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1rem;
}
.card-number {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(18, 33, 54, 0.07);
  color: var(--primary);
  font-weight: 800;
}
.service-card h3,
.side-card h3,
.lawyer-body h3 {
  margin: 0;
  color: var(--primary);
}
.text-link {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary-soft);
}

.family-focus {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}
.family-list {
  margin: 1.25rem 0 1.6rem;
  padding-left: 1.1rem;
}
.family-list li {
  margin-bottom: .7rem;
}
.side-card {
  padding: 28px;
}
.side-card.subtle {
  background: linear-gradient(180deg, #122136 0%, #1f3450 100%);
  color: var(--white);
}
.side-card.subtle strong {
  display: block;
  margin-bottom: .5rem;
}
.side-logo {
  width: 72px;
  margin-bottom: 1rem;
}

.lawyer-card {
  overflow: hidden;
}
.lawyer-photo-wrap {
  background: linear-gradient(180deg, #eef3fb 0%, #dde7f3 100%);
  padding: 20px 20px 0;
}
.lawyer-photo {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
}
.lawyer-body {
  padding: 26px;
}
.lawyer-subtitle {
  display: inline-block;
  margin: .35rem 0 1rem;
  color: var(--accent);
  font-weight: 700;
}

.mini-cards {
  display: grid;
  gap: 16px;
  margin-top: 1.6rem;
}
.mini-card {
  padding: 22px;
}
.mini-card strong {
  display: block;
  margin-bottom: .4rem;
  color: var(--primary);
}
.mini-card span {
  color: var(--text-soft);
}
.map-card {
  overflow: hidden;
  padding: 10px;
}
.map-card iframe {
  width: 100%;
  height: 390px;
  border: 0;
  border-radius: 18px;
}
.review-quote {
  margin-top: 18px;
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.review-quote img {
  width: 54px;
  flex: 0 0 54px;
}
.review-quote p {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
}

.final-cta {
  background: linear-gradient(180deg, #122136 0%, #0d1a2c 100%);
}
.final-cta-box {
  border-radius: 34px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.05fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
}
.final-cta-copy h2,
.final-cta-copy p {
  color: var(--white);
}
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 34px 0;
}
.footer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand strong,
.footer-right a {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}
.footer-brand span,
.footer-right small {
  color: rgba(255,255,255,.78);
}
.footer-logo {
  width: 86px;
}
.footer-right {
  text-align: right;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: #1fb85b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
  font-weight: 800;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31,184,91,.35), 0 18px 44px rgba(0,0,0,.18); }
  70% { box-shadow: 0 0 0 18px rgba(31,184,91,0), 0 18px 44px rgba(0,0,0,.18); }
  100% { box-shadow: 0 0 0 0 rgba(31,184,91,0), 0 18px 44px rgba(0,0,0,.18); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .btn-header { display: none; }
  .hero-grid,
  .family-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: auto;
  }
  .badge-floating {
    position: static;
    margin: 16px auto 0;
  }
  .portrait-frame {
    margin: 0 auto;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .selector-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .final-cta-box {
    grid-template-columns: 1fr;
  }
  .final-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .section { padding: 84px 0; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-inner {
    grid-template-columns: auto 1fr auto;
    min-height: 74px;
    gap: 12px;
  }
  .brand-logo {
    width: clamp(150px, 42vw, 210px);
  }
  .hero {
    padding-top: 42px;
    padding-bottom: 62px;
  }
  .hero-grid {
    gap: 30px;
  }
  .hero-copy h1 {
    font-size: clamp(1.85rem, 8vw, 2.9rem);
  }
  .hero-highlights,
  .lawyers-grid,
  .cards-grid,
  .selector-grid {
    grid-template-columns: 1fr;
  }
  .selector .container,
  .final-cta-box {
    padding: 26px;
  }
  .family-grid,
  .reviews-grid {
    gap: 20px;
  }
  .lawyer-photo {
    max-width: 240px;
  }
  .map-card iframe {
    height: 300px;
  }
  .footer-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-right {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }
  .header-inner {
    min-height: 70px;
  }
  .brand-logo {
    width: clamp(145px, 46vw, 190px);
  }
  .hero-copy .lead,
  .section-heading .section-text,
  .service-card p,
  .lawyer-body p,
  .mini-card span,
  .side-card p,
  .review-quote p {
    font-size: .96rem;
  }
  .hero-actions,
  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn,
  .selector-pill {
    width: 100%;
  }
  .portrait-frame {
    width: min(300px, 100%);
    border-radius: 26px;
  }
  .portrait-main {
    aspect-ratio: 4 / 5;
  }
  .badge-floating {
    max-width: 100%;
    padding: 14px;
  }
  .badge-floating img {
    width: 42px;
    flex-basis: 42px;
  }
  .side-logo {
    width: 58px;
  }
  .lawyer-photo-wrap {
    padding: 16px 16px 0;
  }
  .lawyer-photo {
    max-width: 210px;
  }
  .review-quote {
    flex-direction: column;
    align-items: flex-start;
  }
  .review-quote img {
    width: 46px;
    flex-basis: 46px;
  }
  .footer-logo {
    width: 72px;
  }
  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    min-height: 52px;
    padding: 0 16px;
    font-size: .92rem;
  }
}
