/* Cartório Angra /site — rhythm inspired by apple.com (system sans, space, blue links). */

.ca-site--apple {
  --ap-black: #000;
  --ap-ink: #1d1d1f;
  --ap-muted: #86868b;
  --ap-bg: #fff;
  --ap-gray: #f5f5f7;
  --ap-dark: #161617;
  --ap-blue: #2997ff;
  --ap-blue-hover: #0077ed;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI',
    'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ap-ink);
  font-family: var(--font);
  background: var(--ap-bg);
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ca-site--apple a {
  color: inherit;
  text-decoration: none;
}

.site-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: #fff;
  color: #000;
  font-weight: 600;
}

.site-skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* ——— Nav (Apple-like frosted bar) ——— */
.site-navwrap {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 48px;
  background: rgba(22, 22, 23, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.25s ease;
}

.site-navwrap.is-solid {
  background: rgba(22, 22, 23, 0.92);
}

.site-navbar {
  max-width: 980px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #f5f5f7;
  font-size: 12px;
}

.site-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}

.site-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex: 1 1 auto;
  opacity: 0.88;
}

.site-nav a:hover,
.site-nav-cta:hover,
.site-logo:hover {
  opacity: 1;
  color: #fff;
}

.site-nav-cta {
  flex: 0 0 auto;
  font-weight: 500;
  opacity: 0.92;
}

.site-burger {
  appearance: none;
  border: 0;
  background: transparent;
  width: 28px;
  height: 28px;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.site-burger span {
  display: block;
  width: 15px;
  height: 1px;
  background: #f5f5f7;
}

.site-drawer {
  position: fixed;
  inset: 48px 0 0;
  z-index: 45;
  background: #000;
  color: #f5f5f7;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 1.25rem 1.5rem 2rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-drawer a {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-drawer[hidden] {
  display: none !important;
}

.site-drawer.is-open {
  display: grid;
  animation: ap-fade 0.35s ease both;
}

/* ——— Hero ——— */
.ap-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #f5f5f7;
  overflow: hidden;
  padding: 6rem 1.25rem 4rem;
}

.ap-hero__media {
  position: absolute;
  inset: 0;
}

.ap-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: ap-drift 36s ease-in-out infinite alternate;
}

.ap-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.58) 100%);
}

.ap-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
  animation: ap-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ap-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 17px;
  font-weight: 600;
  color: rgba(245, 245, 247, 0.72);
  letter-spacing: -0.01em;
}

.ap-display {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.ap-sub {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: rgba(245, 245, 247, 0.88);
}

.ap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem 1.75rem;
  justify-content: center;
  margin-top: 1.35rem;
}

.ap-links--center {
  justify-content: center;
}

.ap-link {
  font-size: 19px;
  font-weight: 400;
  color: var(--ap-blue);
  letter-spacing: -0.01em;
}

.ap-link:hover {
  color: var(--ap-blue-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ap-link--dark {
  color: var(--ap-blue);
}

.ap-link span {
  margin-inline-start: 0.15rem;
}

/* ——— Bands ——— */
.ap-band {
  padding: clamp(4.5rem, 10vh, 7rem) 1.25rem;
  text-align: center;
}

.ap-band--light {
  background: #fff;
}

.ap-band--gray {
  background: var(--ap-gray);
}

.ap-band--dark {
  background: var(--ap-dark);
  color: #f5f5f7;
}

.ap-band--black {
  background: #000;
  color: #f5f5f7;
}

.ap-kicker {
  margin: 0 0 0.55rem;
  font-size: 19px;
  font-weight: 600;
  color: var(--ap-muted);
  letter-spacing: -0.01em;
}

.ap-kicker--on-dark {
  color: #a1a1a6;
}

.ap-headline {
  margin: 0 auto;
  max-width: 780px;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ap-ink);
}

.ap-headline--on-dark {
  color: #f5f5f7;
}

.ap-body {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 19px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: var(--ap-muted);
}

.ap-body--lead {
  color: var(--ap-ink);
  font-size: 21px;
}

.ap-body--on-dark {
  color: #a1a1a6;
}

.ap-feature-row {
  list-style: none;
  margin: 3rem auto 0;
  padding: 0;
  max-width: 980px;
  display: grid;
  gap: 2rem;
  text-align: left;
}

.ap-feature-row h3 {
  margin: 0 0 0.4rem;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f5f5f7;
}

.ap-feature-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #a1a1a6;
}

.ap-svc-grid {
  margin: 2.75rem auto 0;
  max-width: 980px;
  display: grid;
  gap: 2rem 1.5rem;
  text-align: left;
}

.ap-svc-block {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
}

.ap-svc-block h3 {
  margin: 0 0 1rem;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ap-svc-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.ap-svc-block a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 15px;
  font-weight: 400;
  color: var(--ap-ink);
}

.ap-svc-block li:first-child a {
  border-top: 0;
  padding-top: 0;
}

.ap-svc-block a span {
  color: var(--ap-blue);
  font-size: 18px;
}

.ap-svc-block a:hover {
  color: var(--ap-blue);
}

.ap-immerse {
  margin: 0;
  height: min(62vh, 520px);
  overflow: hidden;
}

.ap-immerse img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.ap-person {
  margin: 2.75rem auto 0;
  max-width: 900px;
  display: grid;
  gap: 2rem;
  text-align: left;
  align-items: center;
}

.ap-person__photo {
  margin: 0 auto;
  max-width: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ap-gray);
}

.ap-person__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ap-person__name {
  margin: 1.35rem 0 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ap-person__role {
  margin: 0.2rem 0 0;
  font-size: 15px;
  color: var(--ap-muted);
}

.ap-person__meta {
  margin: 0.75rem 0 0;
  font-size: 13px;
  color: var(--ap-muted);
}

.ap-person__bio {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.ap-person__bio li {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ap-muted);
}

.ap-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: opacity 0.2s ease, background 0.2s ease;
}

/* Beat `.ca-site--apple a { color: inherit }` (higher specificity). */
.ca-site--apple a.ap-btn--white,
.ap-btn--white {
  background: #f5f5f7;
  color: #000;
}

.ca-site--apple a.ap-btn--white:hover,
.ap-btn--white:hover {
  opacity: 0.9;
}

.ca-site--apple a.ap-btn--ghost,
.ap-btn--ghost {
  background: transparent;
  border-color: rgba(245, 245, 247, 0.35);
  color: #f5f5f7;
}

.ca-site--apple a.ap-btn--ghost:hover,
.ap-btn--ghost:hover {
  border-color: #f5f5f7;
}

.ca-site--apple a.ap-link,
.ca-site--apple a.ap-inline {
  color: var(--ap-blue);
}

.ap-foot-links {
  list-style: none;
  margin: 2rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  font-size: 14px;
  color: #a1a1a6;
}

.ap-foot-links a:hover {
  color: #f5f5f7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ap-inline {
  color: var(--ap-blue);
  font-weight: 500;
}

.ap-inline:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ap-band--proto {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ap-proto-form {
  margin: 2rem auto 0;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

.ap-proto-label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ap-ink);
}

.ap-proto-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.ap-proto-input {
  flex: 0 1 auto;
  width: 11rem;
  max-width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  background: var(--ap-gray);
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ap-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ap-proto-input::placeholder {
  color: #aeaeb2;
}

.ap-proto-input:focus {
  border-color: rgba(0, 113, 227, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
}

.ap-btn--dark {
  background: #1d1d1f;
  color: #f5f5f7;
  min-height: 48px;
  padding-inline: 1.4rem;
}

.ap-btn--dark:hover {
  background: #000;
}

.ap-btn--dark:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ap-proto-hint {
  margin: 0.7rem 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ap-muted);
}

.ap-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 1.5rem;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.75rem;
  font-size: 12px;
  color: var(--ap-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ap-footer__meta p {
  margin: 0;
}

.ap-footer__legal {
  margin-top: 0.25rem !important;
  opacity: 0.9;
}

.ap-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.ap-footer a:hover {
  color: var(--ap-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes ap-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ap-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ap-drift {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.08);
  }
}

@media (min-width: 834px) {
  .site-nav {
    display: flex;
  }

  .site-burger {
    display: none;
  }

  .ap-feature-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .ap-svc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ap-person {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 3rem;
  }

  .ap-person__photo {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ca-site--apple {
    scroll-behavior: auto;
  }

  .ap-hero__media img,
  .ap-hero__copy,
  .site-drawer.is-open,
  .site-reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
