:root {
  --color-navy: #071e38;
  --color-navy-2: #0d365f;
  --color-blue: #2f7fb7;
  --color-gold: #b9934b;
  --color-gold-soft: #ead8ad;
  --color-cream: #f5f0e7;
  --color-wash: #fbf8f1;
  --color-surface: #ffffff;
  --color-ink: #142235;
  --color-muted: #627086;
  --color-border: #e5dccd;
  --color-success: #1f8a4c;
  --shadow-soft: 0 18px 48px rgba(7, 30, 56, 0.12);
  --shadow-small: 0 8px 24px rgba(7, 30, 56, 0.08);
  --shadow-card: 0 1px 3px rgba(7, 30, 56, 0.04), 0 4px 16px rgba(7, 30, 56, 0.05);
  --shadow-card-hover: 0 4px 12px rgba(7, 30, 56, 0.06), 0 12px 36px rgba(7, 30, 56, 0.08);
  --radius-card: 8px;
  --radius-control: 999px;
  --container: min(1120px, calc(100% - 32px));
  --header-height: 104px;
  --font-sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-wash);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

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

:focus-visible {
  outline: 3px solid rgba(47, 127, 183, 0.45);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 700;
  transition: transform 180ms ease;
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-alt {
  background: var(--color-cream);
}

.section-dark {
  background: var(--color-navy);
  color: #fff;
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-navy);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.hero h1,
.hero h2,
.page-hero h1 {
  color: #fff;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
  font-weight: 650;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  font-weight: 560;
}

p {
  color: var(--color-muted);
}

.section-dark p,
.hero p,
.page-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 760px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: var(--color-navy);
  color: #fff;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--color-navy-2);
  color: #fff;
  box-shadow: var(--shadow-small);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.button.light {
  background: #fff;
  color: var(--color-navy);
  border-color: rgba(7, 30, 56, 0.1);
}

.button.light:hover {
  color: var(--color-navy);
  background: var(--color-cream);
}

.button.gold {
  background: var(--color-gold);
  color: var(--color-navy);
}

.button.gold:hover {
  background: #caa65c;
  color: var(--color-navy);
}

.button.whatsapp {
  background: #2AA81A;
  color: #fff;
  box-shadow: 0 12px 24px rgba(42, 168, 26, 0.22);
}

.button.whatsapp::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  -webkit-mask: url("../icons/whatsapp.svg") center / contain no-repeat;
  mask: url("../icons/whatsapp.svg") center / contain no-repeat;
}

.button.whatsapp:hover {
  background: #249516;
  box-shadow: 0 14px 30px rgba(42, 168, 26, 0.3);
}

.button.small {
  min-height: 40px;
  padding: 10px 15px;
  font-size: 0.92rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-navy);
  font-weight: 600;
}

.link-arrow::after {
  content: "->";
  color: var(--color-gold);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  color: var(--color-navy);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(7, 30, 56, 0.1);
  transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(7, 30, 56, 0.12);
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: var(--container);
  min-height: 34px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.topbar a {
  color: var(--color-navy);
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.2;
}

.topbar-status strong {
  color: var(--color-navy);
  font-weight: 650;
}

.topbar-status strong::after {
  content: " - ";
  color: var(--color-muted);
  font-weight: 500;
}

.topbar-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(47, 127, 183, 0.12);
  color: var(--color-blue);
}

.topbar-icon::before {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("../icons/footer/relogio.svg") center / contain no-repeat;
  mask: url("../icons/footer/relogio.svg") center / contain no-repeat;
}

.topbar-status.is-open .topbar-icon {
  background: rgba(31, 138, 76, 0.12);
  color: var(--color-success);
}

.topbar-status.is-closed .topbar-icon {
  background: rgba(185, 147, 75, 0.14);
  color: var(--color-gold);
}

.nav-shell {
  width: var(--container);
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 228px;
  height: auto;
}

.site-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-menu a,
.nav-dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--color-navy);
  font-size: 0.92rem;
  font-weight: 540;
  white-space: nowrap;
  transition: color 180ms ease;
}

.site-menu > a::after,
.nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-menu a:hover,
.site-menu a[aria-current="page"],
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--color-gold);
}

.site-menu > a:hover::after,
.site-menu > a[aria-current="page"]::after,
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after,
.nav-dropdown-trigger[aria-current="page"]::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: 100%;
  height: 18px;
}

.nav-dropdown-trigger span {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 10;
  min-width: 228px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(7, 30, 56, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.nav-dropdown-menu a::after {
  content: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--color-cream);
  color: var(--color-navy);
}

.header-action {
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(7, 30, 56, 0.16);
  border-radius: 8px;
  background: rgba(7, 30, 56, 0.04);
  color: var(--color-navy);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(7, 30, 56, 0.54);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.menu-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--color-navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(7, 30, 56, 0.72), rgba(7, 30, 56, 0.26) 48%, rgba(7, 30, 56, 0.08)),
    url("../img/capahero-section.png");
  background-size: cover;
  background-position: center center;
  transform: scale(1.005);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 30, 56, 0.16), rgba(7, 30, 56, 0) 34%, rgba(7, 30, 56, 0.42)),
    linear-gradient(0deg, rgba(7, 30, 56, 0.34), rgba(7, 30, 56, 0) 48%),
    radial-gradient(circle at 14% 68%, rgba(185, 147, 75, 0.2), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-height) + 84px) 0 72px;
}

.hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  align-items: end;
  gap: 0;
}

.hero-main {
  display: grid;
  align-content: end;
  justify-items: start;
  min-height: 58svh;
}

.hero-main::before {
  content: "";
  display: block;
  width: 88px;
  height: 3px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: var(--color-gold);
}

.hero .eyebrow {
  color: var(--color-gold-soft);
}

.hero h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 5.7vw, 5.7rem);
  font-weight: 640;
  line-height: 1;
  text-wrap: balance;
}

.hero .lead {
  max-width: 790px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
}

.hero-address {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(100%, 860px);
  padding: 11px 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-control);
  background: rgba(47, 127, 183, 0.95);
  color: #fff;
  font-size: clamp(0.86rem, 1vw, 0.98rem);
  font-weight: 640;
  line-height: 1.25;
  box-shadow: 0 18px 38px rgba(7, 30, 56, 0.28);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-address:hover {
  transform: translateY(-1px);
  background: #258bd1;
  color: #fff;
  box-shadow: 0 22px 44px rgba(7, 30, 56, 0.32);
}

.hero-address span {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background: currentColor;
  -webkit-mask: url("../icons/footer/map-pin-2.svg") center / contain no-repeat;
  mask: url("../icons/footer/map-pin-2.svg") center / contain no-repeat;
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-service-card {
  position: relative;
  align-self: end;
  display: grid;
  gap: 14px;
  max-width: 440px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 70px rgba(7, 30, 56, 0.36);
  backdrop-filter: blur(10px);
}

.hero-service-card::after {
  content: "";
  position: absolute;
  inset: auto -36px -56px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(47, 127, 183, 0.08);
}

.hero-service-icon {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 127, 183, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(47, 127, 183, 0.13), rgba(255, 255, 255, 0.78));
}

.hero-service-icon::before {
  content: "";
  width: 40px;
  height: 40px;
  background: var(--color-blue);
  -webkit-mask: url("../icons/services/file-description.svg") center / contain no-repeat;
  mask: url("../icons/services/file-description.svg") center / contain no-repeat;
}

.hero-service-card .eyebrow {
  margin-bottom: -2px;
  color: var(--color-gold);
}

.hero-service-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  font-weight: 580;
  line-height: 1.12;
}

.hero-service-card p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #2d3f58;
  font-size: 1rem;
  line-height: 1.55;
}

.hero-service-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-progress {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.hero-progress span {
  width: 52px;
  height: 7px;
  border-radius: 999px;
  background: #d5d9dd;
}

.hero-progress .is-active {
  width: 34px;
  background: var(--color-blue);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.service-card,
.quick-card,
.digital-card,
.review-card,
.contact-card,
.team-card,
.value-card {
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.quick-card:hover,
.digital-card:hover,
.contact-card:hover,
.team-card:hover,
.value-card:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 147, 75, 0.55);
  box-shadow: var(--shadow-small);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 246px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border-color: rgba(229, 220, 205, 0.88);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.service-card::before {
  content: none;
}

a.service-card::after {
  content: "";
  position: absolute;
  top: 25px;
  right: 24px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  color: var(--color-gold);
  opacity: 0.38;
  transform: translate(-5px, 5px) rotate(45deg);
  transition: opacity 220ms ease, transform 220ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-2px);
  color: inherit;
  border-color: rgba(185, 147, 75, 0.52);
  box-shadow: var(--shadow-card-hover);
}

a.service-card:hover::after,
a.service-card:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0) rotate(45deg);
}

.service-icon,
.quick-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(47, 127, 183, 0.1);
  color: var(--color-navy-2);
}

.service-card .service-icon {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border: 1px solid rgba(185, 147, 75, 0.22);
  background: rgba(185, 147, 75, 0.1);
  color: var(--color-navy);
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.service-card:hover .service-icon {
  color: var(--color-navy);
  background: rgba(185, 147, 75, 0.16);
  border-color: rgba(185, 147, 75, 0.38);
  transform: translateY(-1px);
}

.service-card .service-icon::before {
  content: "";
  width: 29px;
  height: 29px;
  background: currentColor;
  -webkit-mask: var(--service-icon) center / contain no-repeat;
  mask: var(--service-icon) center / contain no-repeat;
}

.icon-estate {
  --service-icon: url("../icons/services/building-estate.svg");
}

.icon-pencil {
  --service-icon: url("../icons/services/file-pencil.svg");
}

.icon-alert {
  --service-icon: url("../icons/services/file-alert.svg");
}

.icon-description {
  --service-icon: url("../icons/services/file-description.svg");
}

.icon-community {
  --service-icon: url("../icons/services/building-community.svg");
}

.icon-certificate {
  --service-icon: url("../icons/services/file-certificate.svg");
}

.service-icon svg,
.quick-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
}

.service-card h2,
.service-card h3,
.quick-card h3,
.digital-card h3,
.contact-card h3,
.value-card h3 {
  font-size: clamp(1.08rem, 1.35vw, 1.32rem);
  line-height: 1.22;
  font-weight: 560;
  margin-bottom: 10px;
}

.service-card p,
.quick-card p,
.digital-card p,
.contact-card p,
.value-card p {
  margin-bottom: 18px;
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.68;
}

.digital-section {
  background: #fff;
}

.digital-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.9fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.digital-copy {
  position: relative;
  max-width: 680px;
  margin-bottom: 0;
}

.digital-copy p:last-child {
  max-width: 590px;
}

.digital-links {
  display: grid;
  border-top: 1px solid rgba(185, 147, 75, 0.28);
  border-bottom: 1px solid rgba(185, 147, 75, 0.28);
}

.digital-links a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(7, 30, 56, 0.08);
  color: var(--color-navy);
  font-size: 1.04rem;
  font-weight: 830;
  transition: color 180ms ease, background 180ms ease, padding 180ms ease;
}

.digital-links a:last-child {
  border-bottom: 0;
}

.digital-links a:hover,
.digital-links a:focus-visible {
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--color-gold);
}

.digital-link-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 147, 75, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  color: var(--color-navy);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.digital-link-icon::before {
  content: "";
  width: 23px;
  height: 23px;
  background: currentColor;
  -webkit-mask: url("../icons/world-www.svg") center / contain no-repeat;
  mask: url("../icons/world-www.svg") center / contain no-repeat;
}

.digital-links a:hover .digital-link-icon,
.digital-links a:focus-visible .digital-link-icon {
  border-color: rgba(185, 147, 75, 0.58);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-gold);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: center;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
}

.media-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.institutional-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(245, 240, 231, 0.9), rgba(245, 240, 231, 0.72) 46%, rgba(251, 248, 241, 0.96) 76%),
    url("../img/institucional/sessaocartorio.png") left center / cover no-repeat;
}

.institutional-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%, rgba(185, 147, 75, 0.08)),
    radial-gradient(circle at 84% 28%, rgba(47, 127, 183, 0.11), transparent 32%);
  pointer-events: none;
}

.institutional-section .container {
  position: relative;
  z-index: 1;
}

.institutional-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 54px;
}

.institutional-media {
  position: relative;
  border: 8px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 26px 60px rgba(7, 30, 56, 0.18);
}

.institutional-media::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  pointer-events: none;
}

.institutional-media img {
  aspect-ratio: 1.28 / 1;
}

.institutional-copy {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(185, 147, 75, 0.26);
  box-shadow: 0 22px 52px rgba(7, 30, 56, 0.11);
  backdrop-filter: blur(10px);
}

.institutional-copy h2 {
  max-width: 520px;
}

.surface-panel {
  padding: 30px;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--color-border);
}

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

.muted-list li {
  display: flex;
  gap: 10px;
  color: var(--color-muted);
}

.muted-list li::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--color-gold);
}

.attendance-section {
  padding: 72px 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 240, 231, 0.6)),
    var(--color-wash);
}

.attendance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
}

.attendance-copy {
  max-width: 650px;
  margin-bottom: 0;
}

.attendance-actions {
  display: grid;
  gap: 12px;
}

.attendance-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid rgba(7, 30, 56, 0.1);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-navy);
  font-weight: 820;
  box-shadow: 0 1px 0 rgba(7, 30, 56, 0.04);
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease, background 190ms ease;
}

.attendance-card:hover {
  transform: translateX(5px);
  border-color: rgba(185, 147, 75, 0.52);
  background: #fff;
  color: var(--color-navy);
  box-shadow: 0 16px 34px rgba(7, 30, 56, 0.1);
}

.attendance-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(47, 127, 183, 0.1);
  color: var(--color-navy-2);
}

.attendance-icon-image {
  background: rgba(31, 138, 76, 0.1);
}

.attendance-icon-image img {
  width: 28px;
  height: 28px;
}

.attendance-icon-mask::before {
  content: "";
  width: 27px;
  height: 27px;
  background: currentColor;
  -webkit-mask: var(--attendance-icon) center / contain no-repeat;
  mask: var(--attendance-icon) center / contain no-repeat;
}

.icon-dormitory {
  --attendance-icon: url("../icons/attendance/dormitory.svg");
}

.icon-mobile {
  --attendance-icon: url("../icons/attendance/mobile.svg");
}

.attendance-card:hover .attendance-icon-mask {
  color: var(--color-gold);
  background: rgba(7, 30, 56, 0.96);
}

.attendance-arrow {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-navy);
  font-size: 1.05rem;
  transition: background 190ms ease, color 190ms ease, transform 190ms ease;
}

.attendance-card:hover .attendance-arrow {
  transform: translateX(2px);
  background: var(--color-gold);
  color: var(--color-navy);
}

.debt-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(185, 147, 75, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 240, 231, 0.92)),
    var(--color-wash);
}

.debt-head {
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 42px;
}

.debt-badge {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 8px 18px;
  border: 1px solid rgba(47, 127, 183, 0.16);
  border-radius: 999px;
  background: rgba(47, 127, 183, 0.11);
  color: var(--color-navy-2);
  font-size: 0.92rem;
  font-weight: 760;
  letter-spacing: 0;
}

.debt-section h2 {
  font-weight: 640;
}

.debt-timeline {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 0;
  list-style: none;
  counter-reset: debt-step;
}

.debt-line {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(216, 205, 188, 0.88), rgba(216, 205, 188, 0.32));
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
}

.debt-line-progress {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--color-gold), var(--color-navy-2));
  box-shadow: 0 0 20px rgba(185, 147, 75, 0.24);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 700ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.debt-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 42px;
  margin: clamp(20px, 3vw, 30px) 0;
  counter-increment: debt-step;
}

.debt-step::after {
  content: counter(debt-step, decimal-leading-zero);
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  min-width: 42px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-navy-2), var(--color-gold));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(7, 30, 56, 0.2);
  transform: translate(-50%, -50%);
}

.debt-step:nth-of-type(odd) .debt-card {
  grid-column: 1;
  justify-self: end;
}

.debt-step:nth-of-type(even) .debt-card {
  grid-column: 2;
  justify-self: start;
}

.debt-card {
  width: min(100%, 500px);
  min-height: 154px;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: start;
  gap: 18px;
  padding: clamp(20px, 2.6vw, 26px);
  border: 1px solid rgba(216, 205, 188, 0.9);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.94);
  text-align: left;
  box-shadow: 0 16px 34px rgba(7, 30, 56, 0.07);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  will-change: transform, opacity;
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 190ms ease, box-shadow 190ms ease;
}

.debt-step:nth-of-type(odd) .debt-card {
  transform: translateX(-18px) translateY(18px);
}

.debt-step:nth-of-type(even) .debt-card {
  transform: translateX(18px) translateY(18px);
}

.debt-step.is-visible .debt-card {
  opacity: 1;
  transform: none;
}

.debt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 147, 75, 0.56);
  box-shadow: 0 24px 48px rgba(7, 30, 56, 0.12);
}

.debt-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0;
  border-radius: 8px;
  background: rgba(47, 127, 183, 0.1);
  color: var(--color-navy-2);
  animation: debtFloat 4s ease-in-out infinite;
}

.debt-step.is-visible .debt-icon {
  animation: debtPop 420ms ease-out, debtFloat 4s ease-in-out 420ms infinite;
}

.debt-icon::before {
  content: "";
  width: 31px;
  height: 31px;
  background: currentColor;
  -webkit-mask: var(--debt-icon) center / contain no-repeat;
  mask: var(--debt-icon) center / contain no-repeat;
}

.debt-icon-intimation {
  --debt-icon: url("../icons/services/file-description.svg");
}

.debt-icon-alert {
  --debt-icon: url("../icons/services/file-alert.svg");
  background: rgba(185, 147, 75, 0.14);
  color: var(--color-gold);
}

.debt-icon-cancel {
  --debt-icon: url("../icons/services/file-pencil.svg");
  background: rgba(7, 30, 56, 0.08);
}

.debt-icon-clean {
  --debt-icon: url("../icons/services/file-certificate.svg");
  background: rgba(42, 168, 26, 0.12);
  color: #2aa81a;
}

.debt-icon-deal {
  --debt-icon: url("../icons/services/building-community.svg");
  background: rgba(185, 147, 75, 0.13);
  color: var(--color-navy);
}

.debt-card h3 {
  max-width: 360px;
  margin-bottom: 14px;
  color: var(--color-navy);
  font-size: clamp(1.1rem, 1.55vw, 1.32rem);
  font-weight: 660;
  line-height: 1.28;
}

.debt-card p {
  max-width: 385px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.debt-card strong {
  color: var(--color-navy-2);
  font-weight: 760;
}

@keyframes debtFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes debtPop {
  0% {
    transform: scale(0.74);
  }

  72% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.reviews-wrap {
  display: grid;
  gap: 20px;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--color-navy);
  color: #fff;
}

.rating-line strong {
  color: var(--color-gold-soft);
  font-size: 1.25rem;
}

.rating-line span {
  color: rgba(255, 255, 255, 0.78);
}

.review-card p {
  margin-bottom: 12px;
  color: var(--color-ink);
}

.review-card cite {
  color: var(--color-muted);
  font-style: normal;
  font-weight: 800;
}

.iss-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.iss-summary {
  display: contents;
}

.transparency-section {
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.72), rgba(245, 240, 231, 0.95)),
    var(--color-wash);
}

.transparency-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.transparency-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.transparency-head .section-head {
  margin-bottom: 0;
}

.transparency-label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.year-select-wrap {
  position: relative;
  display: inline-flex;
  min-width: 112px;
}

.year-select-wrap::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--color-gold);
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.year-select {
  width: 100%;
  min-height: auto;
  appearance: none;
  padding: 0 28px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-navy);
  font-size: 1.32rem;
  font-weight: 850;
  cursor: pointer;
  transition: color 180ms ease;
}

.year-select:hover,
.year-select:focus-visible {
  color: var(--color-gold);
}

.transparency-status {
  justify-self: end;
  max-width: 360px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(7, 30, 56, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.transparency-status[data-tone="success"] {
  border-color: rgba(31, 138, 76, 0.24);
  color: #17633a;
}

.transparency-status[data-tone="warning"] {
  border-color: rgba(185, 147, 75, 0.34);
  color: #7a5b21;
}

.transparency-status[data-tone="error"] {
  border-color: rgba(170, 50, 50, 0.24);
  color: #8d2b2b;
}

.indicator {
  padding: 18px;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--color-border);
}

.transparency-section .indicator {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-color: rgba(185, 147, 75, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.indicator span {
  display: block;
  color: var(--color-muted);
  font-size: 0.86rem;
}

.indicator strong {
  color: var(--color-navy);
  font-size: 1.32rem;
}

.indicator.is-loading strong {
  color: var(--color-muted);
}

.transparency-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(185, 147, 75, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.transparency-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.transparency-table th,
.transparency-table td {
  padding: 20px;
  border-bottom: 1px solid rgba(7, 30, 56, 0.09);
  text-align: left;
  vertical-align: middle;
}

.transparency-table th {
  background: #f0ece4;
  color: var(--color-navy);
  font-size: 0.8rem;
  font-weight: 860;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.transparency-table tr:last-child td {
  border-bottom: 0;
}

.transparency-table tbody tr {
  transition: background 180ms ease;
}

.transparency-table tbody tr:hover {
  background: rgba(245, 240, 231, 0.36);
}

.transparency-table td:nth-child(2) {
  color: #1f2a37;
  font-weight: 520;
  white-space: nowrap;
}

.transparency-table td:nth-child(3) {
  text-align: center;
}

.receipt-month {
  display: inline-flex;
  color: #1f2a37;
  font-weight: 520;
}

.receipt-sequence {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--color-cream);
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.receipt-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-navy);
  font-size: 0.98rem;
  font-weight: 850;
  transition: color 180ms ease;
}

.receipt-link-icon {
  width: 17px;
  height: 17px;
  background: var(--color-gold);
  -webkit-mask: url("../icons/download.svg") center / contain no-repeat;
  mask: url("../icons/download.svg") center / contain no-repeat;
  transition: background 180ms ease, transform 180ms ease;
}

.receipt-link:hover {
  color: var(--color-gold);
}

.receipt-link:hover .receipt-link-icon {
  background: var(--color-navy);
  transform: translateY(1px);
}

.receipt-link-disabled {
  color: var(--color-muted);
  cursor: not-allowed;
}

.receipt-link-disabled:hover {
  color: var(--color-muted);
}

.transparency-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed rgba(7, 30, 56, 0.18);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.74);
}

.transparency-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-navy);
}

.transparency-empty p {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

th {
  background: #f2eee6;
  color: var(--color-navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tr:last-child td {
  border-bottom: 0;
}

.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 78px) 0 78px;
  overflow: hidden;
  background: var(--color-navy);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 30, 56, 0.95), rgba(7, 30, 56, 0.72)), url("../img/cartorio-frente.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.content-rich {
  max-width: 840px;
}

.content-rich p,
.content-rich li {
  color: var(--color-muted);
}

.content-rich h2,
.content-rich h3 {
  margin-top: 32px;
}

.privacy-section {
  padding-top: calc(var(--header-height) + 58px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 248, 241, 0.96) 34%, var(--color-wash)),
    var(--color-wash);
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
  min-width: 0;
}

.privacy-main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.privacy-intro {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.privacy-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  min-width: 0;
  padding-top: 6px;
}

.privacy-intro h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 560;
  line-height: 1.04;
}

.privacy-intro > p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 1.04rem;
  line-height: 1.7;
}

.privacy-meta {
  display: inline-grid;
  gap: 4px;
  width: fit-content;
  padding: 12px 16px;
  border: 1px solid rgba(229, 220, 205, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-card);
}

.privacy-meta span {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.privacy-meta strong {
  color: var(--color-navy);
  font-size: 1rem;
  font-weight: 560;
}

.privacy-nav {
  display: grid;
  gap: 2px;
  padding-left: 16px;
  border-left: 1px solid rgba(7, 30, 56, 0.14);
  min-width: 0;
}

.privacy-nav span {
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-nav a {
  position: relative;
  padding: 6px 0 6px 14px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 430;
  line-height: 1.3;
  transition: color 180ms ease;
}

.privacy-nav a::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 99px;
  background: var(--color-gold);
  transform: translateY(-50%);
  transition: height 180ms ease;
}

.privacy-nav a:hover,
.privacy-nav a.is-active {
  color: var(--color-navy);
}

.privacy-nav a:hover::before,
.privacy-nav a.is-active::before {
  height: 22px;
}

.privacy-document {
  max-width: none;
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(229, 220, 205, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.privacy-document p,
.privacy-document li {
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.86;
  overflow-wrap: anywhere;
}

.privacy-document p {
  margin-bottom: 18px;
}

.privacy-document ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 24px;
  padding-left: 22px;
}

.privacy-document h2,
.privacy-document h3 {
  scroll-margin-top: calc(var(--header-height) + 28px);
  color: var(--color-navy);
  line-height: 1.22;
}

.privacy-document h2 {
  margin: 46px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(229, 220, 205, 0.98);
  font-size: clamp(1.45rem, 2vw, 1.78rem);
  font-weight: 560;
}

.privacy-document h3 {
  margin: 34px 0 12px;
  font-size: clamp(1.12rem, 1.5vw, 1.28rem);
  font-weight: 520;
}

.privacy-document a {
  color: var(--color-navy);
  font-weight: 520;
  text-decoration: underline;
  text-decoration-color: rgba(185, 147, 75, 0.36);
  text-underline-offset: 4px;
}

.privacy-document a:hover {
  color: var(--color-gold);
  text-decoration-color: currentColor;
}

.privacy-alert {
  margin-bottom: 26px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(185, 147, 75, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 240, 231, 0.84), rgba(255, 255, 255, 0.96)),
    #fff;
}

.privacy-alert strong {
  display: block;
  margin-bottom: 10px;
  color: var(--color-navy);
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  font-weight: 560;
}

.privacy-alert p:last-child,
.privacy-document > p:last-child,
.privacy-document li:last-child {
  margin-bottom: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 36px;
  align-items: start;
}

.profile-photo {
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: #fff;
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.team-card {
  overflow: hidden;
  padding: 0;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  background: #f0ece4;
}

.team-card div {
  padding: 16px;
}

.team-card p {
  margin-bottom: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.gallery img:first-child {
  grid-row: span 2;
}

.cartorio-gallery-section {
  padding-top: calc(var(--header-height) + 72px);
  background: var(--color-wash);
}

.gallery-carousel {
  max-width: 980px;
  margin-inline: auto;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  border: 1px solid rgba(185, 147, 75, 0.22);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(7, 30, 56, 0.12);
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
}

.gallery-caption span {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 8px;
  background: rgba(7, 30, 56, 0.82);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 760;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(7, 30, 56, 0.12);
  border-radius: 50%;
  background: #fff;
  color: var(--color-navy);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(7, 30, 56, 0.08);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  transform: translateY(-1px);
  color: var(--color-gold);
  border-color: rgba(185, 147, 75, 0.5);
  box-shadow: 0 12px 24px rgba(7, 30, 56, 0.12);
}

.gallery-counter {
  min-width: 54px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 760;
  text-align: center;
}

.holder-section {
  background: #fff;
}

.holder-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  max-width: 1120px;
  margin-inline: auto;
  border: 1px solid rgba(7, 30, 56, 0.1);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 52px rgba(7, 30, 56, 0.1);
}

.holder-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: grid;
  align-items: end;
  background:
    linear-gradient(160deg, rgba(238, 243, 245, 0.94), rgba(245, 240, 231, 0.86)),
    #eef3f5;
}

.holder-shape {
  position: absolute;
  top: 42px;
  left: 42px;
  width: 118px;
  height: 118px;
  border-radius: 16px;
  background: rgba(47, 127, 183, 0.22);
}

.holder-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 34px 26px 0;
  object-fit: contain;
  object-position: center bottom;
}

.holder-copy {
  max-width: none;
  padding: clamp(28px, 4vw, 48px);
}

.holder-copy h2 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.holder-copy .role {
  margin-bottom: 26px;
  color: var(--color-gold);
  font-weight: 850;
}

.holder-copy a {
  color: var(--color-gold);
  font-weight: 800;
}

.team-carousel-section {
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.9), rgba(245, 240, 231, 0.96)),
    var(--color-wash);
}

.team-carousel {
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
}

.team-track {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  padding: 10px 44px 18px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.team-track::-webkit-scrollbar {
  display: none;
}

.team-member {
  flex: 0 0 178px;
  display: grid;
  justify-items: center;
  scroll-snap-align: center;
  text-align: center;
}

.team-avatar {
  position: relative;
  width: 148px;
  height: 148px;
  margin-bottom: 16px;
}

.team-avatar > img {
  width: 100%;
  height: 100%;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #f0ece4;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 15px 28px rgba(7, 30, 56, 0.13);
}

.instagram-link {
  position: absolute;
  right: 3px;
  bottom: 5px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 30, 56, 0.1);
  border-radius: 50%;
  background: #fff;
  color: #d62976;
  box-shadow: 0 8px 16px rgba(7, 30, 56, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.instagram-link span {
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: url("../icons/instagram.svg") center / contain no-repeat;
  mask: url("../icons/instagram.svg") center / contain no-repeat;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 10px 20px rgba(7, 30, 56, 0.18);
}

.team-member h3 {
  margin-bottom: 4px;
  color: var(--color-navy);
  font-size: 0.98rem;
}

.team-member p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.84rem;
}

.team-nav {
  position: absolute;
  top: 72px;
  z-index: 2;
}

.team-nav-prev {
  left: 0;
}

.team-nav-next {
  right: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--color-navy);
  font-weight: 760;
  font-size: 0.94rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
  padding: 12px 13px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.checkbox-row,
.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input,
.radio-row input {
  width: auto;
  margin-top: 6px;
}

.form-note,
.form-status {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef7f1;
  color: #155c35;
  border: 1px solid rgba(31, 138, 76, 0.24);
}

.form-status.is-visible {
  display: block;
}

.embed-shell {
  max-width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow-small);
}

.embed-shell iframe {
  width: 100%;
  max-width: 100%;
  min-height: 700px;
  border: 0;
  display: block;
}

.embed-page-section {
  padding-top: calc(var(--header-height) + 48px);
}

.embed-page-section .section-head {
  margin-bottom: 22px;
}

.embed-page-section h1 {
  margin-bottom: 0;
  color: var(--color-navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.booking-page-intro {
  padding: calc(var(--header-height) + 56px) 0 58px;
  background:
    radial-gradient(circle at 86% 18%, rgba(47, 127, 183, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 240, 231, 0.78)),
    var(--color-wash);
}

.booking-page-intro-compact {
  padding-bottom: 42px;
}

.light-breadcrumb {
  color: var(--color-muted);
}

.light-breadcrumb a {
  color: var(--color-navy);
}

.booking-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 34px;
  align-items: end;
}

.booking-intro-grid .section-head {
  margin-bottom: 0;
}

.booking-page-intro h1 {
  max-width: 780px;
  color: var(--color-navy);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 620;
}

.booking-intro-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(229, 220, 205, 0.96);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.booking-intro-card strong {
  color: var(--color-navy);
  font-size: 1.15rem;
  font-weight: 650;
}

.booking-intro-card p {
  margin-bottom: 0;
}

.booking-info-section {
  padding-top: 72px;
  background: #fff;
}

.online-booking-section {
  padding-top: 42px;
}

.online-booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
  gap: 28px;
  align-items: start;
}

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

.booking-info-card {
  min-height: 245px;
  padding: 24px;
  border: 1px solid rgba(229, 220, 205, 0.96);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 248, 241, 0.7)),
    #fff;
  box-shadow: var(--shadow-card);
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.booking-info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 147, 75, 0.44);
  box-shadow: var(--shadow-card-hover);
}

.booking-info-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(47, 127, 183, 0.1);
  color: var(--color-navy-2);
}

.booking-info-icon::before {
  content: "";
  width: 27px;
  height: 27px;
  background: currentColor;
  -webkit-mask: var(--booking-icon) center / contain no-repeat;
  mask: var(--booking-icon) center / contain no-repeat;
}

.booking-icon-building {
  --booking-icon: url("../icons/attendance/dormitory.svg");
}

.booking-icon-video {
  --booking-icon: url("../icons/attendance/mobile.svg");
}

.booking-icon-time {
  --booking-icon: url("../icons/footer/relogio.svg");
}

.booking-icon-docs {
  --booking-icon: url("../icons/services/file-description.svg");
}

.booking-icon-map {
  --booking-icon: url("../icons/footer/map-pin-2.svg");
}

.booking-icon-mail {
  --booking-icon: url("../icons/footer/mail.svg");
}

.booking-icon-whatsapp {
  --booking-icon: url("../icons/footer/whatsapp.svg");
  background: rgba(42, 168, 26, 0.12);
  color: #2aa81a;
}

.booking-icon-check {
  --booking-icon: url("../icons/services/file-certificate.svg");
  background: rgba(185, 147, 75, 0.13);
  color: var(--color-gold);
}

.booking-info-card h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  font-weight: 620;
}

.booking-info-card p {
  margin-bottom: 0;
}

.booking-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(7, 30, 56, 0.08);
  border-radius: var(--radius-card);
  background: var(--color-navy);
  box-shadow: var(--shadow-soft);
}

.booking-note h3 {
  margin-bottom: 8px;
  color: #fff;
  font-weight: 620;
}

.booking-note p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.78);
}

.booking-note .section-actions {
  margin-top: 18px;
}

.online-note {
  margin-top: 22px;
}

.booking-alert {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(215, 137, 15, 0.18);
  border-radius: var(--radius-card);
  background: #ffdca7;
  color: #1f1a14;
}

.booking-alert p {
  margin: 0;
  color: #1f1a14;
  font-size: 0.98rem;
  line-height: 1.55;
}

.booking-alert strong {
  color: #1f1a14;
  font-weight: 760;
}

.booking-alert-icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: #d7890f;
}

.booking-alert-icon::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: url("../icons/services/file-alert.svg") center / contain no-repeat;
  mask: url("../icons/services/file-alert.svg") center / contain no-repeat;
}

.online-instruction-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(229, 220, 205, 0.96);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 241, 0.78)),
    #fff;
  box-shadow: var(--shadow-card);
  list-style: none;
}

.online-instruction-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
  color: var(--color-ink);
  font-size: 1.02rem;
  line-height: 1.5;
}

.online-instruction-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(47, 127, 183, 0.1);
  color: var(--color-navy-2);
}

.online-instruction-icon::before {
  content: "";
  width: 21px;
  height: 21px;
  background: currentColor;
  -webkit-mask: var(--instruction-icon) center / contain no-repeat;
  mask: var(--instruction-icon) center / contain no-repeat;
}

.instruction-icon-camera {
  --instruction-icon: url("../icons/booking/camera.svg");
}

.instruction-icon-mic {
  --instruction-icon: url("../icons/booking/microphone.svg");
}

.instruction-icon-volume {
  --instruction-icon: url("../icons/booking/volume.svg");
}

.instruction-icon-phone {
  --instruction-icon: url("../icons/attendance/mobile.svg");
}

.presencial-icon-documento {
  --instruction-icon: url("../icons/booking/documento-de-texto.svg");
}

.presencial-icon-calendario {
  --instruction-icon: url("../icons/booking/calendario.svg");
}

.presencial-icon-mapa {
  --instruction-icon: url("../icons/booking/mapa.svg");
}

.presencial-icon-conversacao {
  --instruction-icon: url("../icons/booking/conversacao.svg");
}

.booking-panel-sticky {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  box-shadow: 0 20px 46px rgba(7, 30, 56, 0.12);
}

.booking-calendar-section {
  padding-top: 72px;
  background:
    linear-gradient(180deg, rgba(245, 240, 231, 0.88), rgba(251, 248, 241, 0.96)),
    var(--color-wash);
}

.booking-panel-wide {
  max-width: 1120px;
  margin-inline: auto;
}

.booking-aside,
.booking-panel {
  border: 1px solid rgba(229, 220, 205, 0.96);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.booking-aside {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  padding: clamp(24px, 3vw, 34px);
}

.booking-aside h2 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  font-weight: 620;
}

.booking-checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.booking-checklist li {
  position: relative;
  padding-left: 24px;
  color: var(--color-muted);
}

.booking-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}

.booking-panel {
  overflow: hidden;
}

.booking-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(229, 220, 205, 0.96);
  background: linear-gradient(135deg, rgba(7, 30, 56, 0.96), rgba(13, 54, 95, 0.96));
  color: #fff;
}

.booking-panel-head span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 680;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.booking-panel-head strong {
  font-size: 1rem;
  font-weight: 680;
}

.cal-inline {
  width: 100%;
  min-height: 720px;
  height: min(780px, 86vh);
  overflow: auto;
  background: #fff;
}

.cal-inline-prominent {
  min-height: 690px;
  height: min(740px, 82vh);
}

.notice {
  padding: 18px 20px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(185, 147, 75, 0.35);
  background: rgba(185, 147, 75, 0.1);
  color: var(--color-ink);
}

.notice p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(185, 147, 75, 0.16), transparent 30%),
    linear-gradient(135deg, #04172b 0%, #071e38 54%, #041326 100%);
  color: #fff;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 34%, rgba(255, 255, 255, 0.035));
  opacity: 0.7;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(390px, 1.15fr) minmax(200px, 0.62fr);
  gap: clamp(38px, 5.4vw, 82px);
  align-items: center;
  padding: 52px 0 48px;
}

.footer-logo {
  width: 250px;
  max-width: 100%;
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.16));
}

.footer-name {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 680;
}

.footer-brand > p:not(.footer-name) {
  max-width: 360px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.5;
}

.footer-service-list {
  display: grid;
  gap: 6px;
  max-width: 380px;
  margin: 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.94rem;
  line-height: 1.4;
}

.footer-location {
  display: grid;
  gap: 18px;
}

.footer-contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-main h2,
.footer-main h3 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.footer-main p,
.footer-main a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

.footer-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-main .footer-service-list {
  list-style: disc;
  gap: 6px;
  padding-left: 22px;
}

.footer-main .footer-contact-list {
  gap: 12px;
  list-style: none;
  padding: 0;
}

.footer-main a:hover {
  color: #fff;
}

.footer-info {
  position: relative;
  min-height: 30px;
  padding-left: 42px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 560;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.footer-info a {
  color: rgba(255, 255, 255, 0.92);
}

.footer-info::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #31a8ff;
}

.footer-info::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 14px;
  height: 14px;
  background: #fff;
  -webkit-mask: var(--footer-icon) center / contain no-repeat;
  mask: var(--footer-icon) center / contain no-repeat;
}

.footer-info-hours {
  --footer-icon: url("../icons/footer/relogio.svg");
}

.footer-info-email {
  --footer-icon: url("../icons/footer/mail.svg");
}

.footer-info-whatsapp {
  --footer-icon: url("../icons/footer/whatsapp.svg");
}

.footer-info-address {
  --footer-icon: url("../icons/footer/map-pin-2.svg");
}

.footer-nav {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4px;
}

.footer-nav ul {
  display: grid;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li:last-child {
  margin-top: clamp(18px, 3.5vw, 42px);
}

.footer-nav a {
  color: #fff;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.38;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #acd8ff;
}

.footer-map-frame {
  overflow: hidden;
  height: 218px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.footer-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(0.92) contrast(0.96);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 0.88rem;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2AA81A;
  box-shadow: 0 12px 28px rgba(42, 168, 26, 0.34);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #249516;
  box-shadow: 0 16px 34px rgba(42, 168, 26, 0.4);
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
  display: block;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.hidden {
  display: none !important;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-20 {
  margin-bottom: 20px;
}

@media (max-width: 1080px) {
  .header-action {
    display: none;
  }

  .site-menu {
    gap: 4px;
  }

  .site-menu a {
    padding-inline: 7px;
    font-size: 0.88rem;
  }
}

@media (max-width: 940px) {
  :root {
    --header-height: 78px;
  }

  .topbar {
    display: none;
  }

  .nav-shell {
    min-height: 78px;
  }

  .brand img {
    width: 194px;
  }

  .nav-toggle {
    display: block;
  }

  .site-menu {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    max-height: calc(100svh - 96px);
    overflow: auto;
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-menu a {
    color: var(--color-ink);
    min-height: 44px;
    padding: 10px 12px;
  }

  .site-menu > a::after,
  .nav-dropdown-trigger::after {
    left: 12px;
    right: auto;
    bottom: 8px;
    width: 34px;
    transform-origin: left;
  }

  .site-menu a:hover,
  .site-menu a[aria-current="page"],
  .nav-dropdown:focus-within .nav-dropdown-trigger {
    color: var(--color-gold);
  }

  .nav-dropdown {
    display: grid;
  }

  .nav-dropdown::after {
    content: none;
  }

  .nav-dropdown-trigger {
    width: 100%;
    color: var(--color-ink);
    min-height: 44px;
    padding: 10px 12px;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin: 0 0 4px 12px;
    padding: 6px;
    border-radius: 8px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: rgba(245, 240, 231, 0.72);
  }

  .nav-dropdown-menu a {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-main {
    min-height: auto;
  }

  .hero-service-card {
    max-width: 620px;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .booking-grid,
  .booking-intro-grid,
  .booking-info-grid,
  .online-booking-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .booking-aside {
    position: static;
  }

  .booking-panel-sticky {
    position: static;
  }

  .booking-intro-card {
    max-width: 520px;
  }

  .privacy-layout {
    display: flex;
    flex-direction: column;
  }

  .privacy-main {
    display: contents;
  }

  .privacy-intro {
    order: 1;
  }

  .privacy-aside {
    order: 2;
    position: static;
    padding-top: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .privacy-document {
    order: 3;
  }

  .privacy-nav {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding: 2px 0 12px;
    border-left: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .privacy-nav span {
    display: none;
  }

  .privacy-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(229, 220, 205, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--color-navy);
    font-size: 0.86rem;
    scroll-snap-align: start;
  }

  .privacy-nav a::before {
    content: none;
  }

  .privacy-nav a.is-active {
    border-color: rgba(185, 147, 75, 0.58);
    background: var(--color-navy);
    color: #fff;
  }

  .holder-card {
    grid-template-columns: 1fr;
  }

  .holder-media {
    min-height: 440px;
  }

  .institutional-grid {
    gap: 30px;
  }

  .attendance-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .digital-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .iss-controls {
    grid-template-columns: 1fr;
  }

  .transparency-head {
    display: grid;
  }

  .transparency-status {
    justify-self: stretch;
    max-width: none;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .footer-location {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 64px 0;
  }

  .section-tight {
    padding: 44px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 76px);
    padding-bottom: 52px;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 14vw, 4.4rem);
  }

  .hero-address {
    width: 100%;
    align-items: flex-start;
    border-radius: 14px;
    padding: 12px 14px;
  }

  .hero-service-card {
    border-radius: 20px;
    padding: 22px;
  }

  .hero-service-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .institutional-section {
    background:
      linear-gradient(180deg, rgba(245, 240, 231, 0.9), rgba(251, 248, 241, 0.96)),
      url("../img/institucional/sessaocartorio.png") left top / cover no-repeat;
  }

  .attendance-section {
    padding: 58px 0;
  }

  .attendance-card {
    min-height: 66px;
    padding: 12px 14px;
  }

  .debt-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .debt-head {
    margin-bottom: 26px;
    text-align: left;
  }

  .debt-badge {
    margin-inline: 0;
  }

  .debt-timeline {
    padding-left: 12px;
  }

  .debt-line {
    left: 18px;
    top: 16px;
    bottom: 16px;
    transform: none;
  }

  .debt-step {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 18px 0;
    padding-left: 38px;
  }

  .debt-step::after {
    left: 18px;
    min-width: 36px;
    height: 28px;
    font-size: 0.7rem;
  }

  .debt-step:nth-of-type(odd) .debt-card,
  .debt-step:nth-of-type(even) .debt-card {
    grid-column: 1;
    justify-self: stretch;
    transform: translateY(16px) scale(0.98);
  }

  .debt-step.is-visible:nth-of-type(odd) .debt-card,
  .debt-step.is-visible:nth-of-type(even) .debt-card {
    transform: none;
  }

  .debt-card {
    min-height: 0;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    padding: 20px;
  }

  .debt-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
  }

  .debt-icon::before {
    width: 26px;
    height: 26px;
  }

  .institutional-media {
    border-width: 6px;
  }

  .privacy-section {
    padding-top: calc(var(--header-height) + 36px);
  }

  .privacy-document {
    padding: 22px;
  }

  .privacy-document p,
  .privacy-document li {
    font-size: 0.98rem;
    line-height: 1.78;
  }

  .gallery-stage {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }

  .gallery-caption {
    left: 12px;
    bottom: 12px;
  }

  .holder-card {
    border-radius: 10px;
  }

  .holder-media {
    min-height: 360px;
  }

  .holder-shape {
    top: 24px;
    left: 24px;
    width: 86px;
    height: 86px;
  }

  .team-track {
    gap: 24px;
    padding-inline: 14px;
  }

  .team-nav {
    display: none;
  }

  .team-member {
    flex-basis: 150px;
  }

  .team-avatar {
    width: 128px;
    height: 128px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .form-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .digital-links a {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 62px;
    gap: 13px;
    font-size: 0.98rem;
  }

  .digital-link-icon {
    width: 38px;
    height: 38px;
  }

  .digital-link-icon::before {
    width: 21px;
    height: 21px;
  }

  .transparency-section .indicator {
    min-height: 104px;
    padding: 18px;
  }

  .year-select-wrap {
    width: auto;
  }

  .transparency-table {
    min-width: 640px;
  }

  .transparency-table th,
  .transparency-table td {
    padding: 14px;
  }

  .gallery img:first-child {
    grid-row: auto;
  }

  .surface-panel,
  .service-card,
  .quick-card,
  .digital-card,
  .review-card,
  .contact-card,
  .value-card {
    padding: 20px;
  }

  .page-hero {
    padding: calc(var(--header-height) + 54px) 0 56px;
  }

  .booking-page-intro {
    padding: calc(var(--header-height) + 36px) 0 46px;
  }

  .booking-page-intro-compact {
    padding-bottom: 32px;
  }

  .booking-page-intro h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .booking-info-section,
  .booking-calendar-section {
    padding-top: 54px;
  }

  .booking-info-card {
    min-height: 0;
    padding: 20px;
  }

  .booking-note {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .online-instruction-list {
    padding: 18px;
  }

  .online-instruction-list li {
    grid-template-columns: 32px 1fr;
    gap: 12px;
    font-size: 0.98rem;
  }

  .online-instruction-icon {
    width: 32px;
    height: 32px;
  }

  .booking-info-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .booking-info-icon::before {
    width: 25px;
    height: 25px;
  }

  .booking-aside,
  .booking-panel {
    border-radius: 8px;
  }

  .booking-panel-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .cal-inline {
    min-height: 680px;
    height: 760px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 44px 0;
  }

  .footer-location {
    grid-column: auto;
  }

  .footer-logo {
    width: 230px;
  }

  .footer-nav ul {
    gap: 16px;
  }

  .footer-nav li:last-child {
    margin-top: 6px;
  }

  .footer-map-frame {
    height: 230px;
  }

  .cookie-banner {
    display: none;
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner.is-visible {
    display: flex;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}

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