:root {
  --ink: #183338;
  --ink-soft: #315158;
  --teal: #0e5f63;
  --teal-dark: #083f43;
  --paper: #fffdf8;
  --ivory: #f7f4ee;
  --sand: #e3ddcf;
  --sage: #bdc9b8;
  --gold: #b9a06a;
  --wine: #7e4148;
  --muted: #627175;
  --line: #ddd5c7;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(17, 42, 45, 0.13);
  --radius: 8px;
  --container: 1160px;
  --header-height: 92px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --ink: #edf4f1;
  --ink-soft: #ccd9d6;
  --teal: #77c9c1;
  --teal-dark: #a6ded8;
  --paper: #132427;
  --ivory: #0a181b;
  --sand: #22373b;
  --sage: #6f877c;
  --gold: #dcc382;
  --wine: #c98187;
  --muted: #a8b8b6;
  --line: #2a464a;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-size: 16px;
  line-height: 1.65;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: inherit;
}

p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--teal-dark);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(255, 253, 248, 0.95);
  border-bottom: 1px solid rgba(221, 213, 199, 0.92);
  backdrop-filter: blur(16px);
}

:root[data-theme="dark"] .site-header {
  background: rgba(10, 24, 27, 0.94);
  border-bottom-color: rgba(220, 195, 130, 0.18);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 220px;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 76px;
  max-width: min(340px, 42vw);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--teal-dark);
  border: 1px solid rgba(193, 154, 75, 0.65);
  border-radius: var(--radius);
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portrait-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.portrait-caption {
  padding: 1rem 1.1rem;
}

.portrait-caption strong {
  display: block;
}

.portrait-caption span {
  color: var(--muted);
  font-size: 0.92rem;
}

.location-list {
  display: grid;
  gap: 1rem;
}

.location-card {
  padding: 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(24, 51, 56, 0.06);
}

.location-card h3 {
  margin-bottom: 0.65rem;
}

.location-card p {
  color: var(--muted);
}

.location-card address {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 700;
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-name {
  font-weight: 800;
}

.brand-oab {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.72rem;
  color: var(--ink-soft);
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--teal-dark);
  background: rgba(14, 95, 99, 0.09);
  outline: none;
}

:root[data-theme="dark"] .site-nav a:hover,
:root[data-theme="dark"] .site-nav a:focus-visible,
:root[data-theme="dark"] .site-nav a[aria-current="page"] {
  color: var(--gold);
  background: rgba(220, 195, 130, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--teal-dark);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--teal-dark);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
  outline: none;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.05rem;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

:root[data-theme="dark"] .btn-primary {
  color: var(--white);
  background: #0f716d;
  border-color: #0f716d;
}

:root[data-theme="dark"] .btn-primary:hover,
:root[data-theme="dark"] .btn-primary:focus-visible {
  background: #0b5c58;
  border-color: #0b5c58;
}

.btn-secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--gold);
}

.btn-light {
  color: var(--teal-dark);
  background: var(--paper);
  border-color: rgba(255, 255, 255, 0.58);
}

.btn-outline-light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero {
  position: relative;
  min-height: clamp(620px, calc(100svh - var(--header-height) - 64px), 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 38, 42, 0.92) 0%, rgba(7, 38, 42, 0.76) 42%, rgba(7, 38, 42, 0.24) 100%),
    url("../img/hero-gk-ribeiro.webp") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(180deg, rgba(7, 38, 42, 0), rgba(7, 38, 42, 0.36));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: 4.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 8vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.48rem);
}

.hero-copy {
  max-width: 690px;
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.trust-list span {
  padding: 0.46rem 0.72rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 650;
}

.section {
  padding-block: clamp(4.4rem, 8vw, 7rem);
  background: var(--paper);
}

.section-muted {
  padding-block: clamp(4.4rem, 8vw, 7rem);
  background: var(--ivory);
}

.section-dark {
  padding-block: clamp(4rem, 7vw, 6rem);
  color: var(--white);
  background: var(--teal-dark);
}

:root[data-theme="dark"] .section-dark,
:root[data-theme="dark"] .cta-band {
  background: #071719;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.intro-grid,
.local-grid,
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.lead + p,
p + p {
  margin-top: 1rem;
}

.feature-panel {
  padding: 1.4rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-panel strong {
  display: block;
  margin-bottom: 0.35rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.stat {
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  color: var(--teal-dark);
  font-size: 1.45rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

.card,
.service-card,
.article-card,
.step-card {
  padding: 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(24, 51, 56, 0.06);
}

.card h3,
.service-card h3,
.article-card h3,
.step-card h3 {
  margin-bottom: 0.75rem;
}

.card p,
.service-card p,
.article-card p,
.step-card p {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--teal);
  font-weight: 790;
  text-decoration: none;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--teal-dark);
  text-decoration: underline;
  outline: none;
}

.service-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.3rem;
  padding: 0;
  list-style: none;
}

.service-list li {
  margin: 0;
  padding-left: 1.15rem;
  border-left: 3px solid var(--sage);
  color: var(--ink-soft);
}

.map-frame {
  min-height: 370px;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.address-block {
  display: grid;
  gap: 0.6rem;
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.address-block a {
  color: var(--teal);
  font-weight: 720;
  text-decoration: none;
}

.address-block a:hover,
.address-block a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: steps;
}

.step-card {
  position: relative;
  padding-top: 4rem;
}

.step-card::before {
  counter-increment: steps;
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 1.2rem;
  left: 1.35rem;
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 850;
}

.page-hero {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background:
    linear-gradient(90deg, rgba(8, 63, 67, 0.95), rgba(8, 63, 67, 0.83)),
    url("../img/hero-gk-ribeiro.webp") center / cover no-repeat;
  color: var(--white);
}

.page-hero .container {
  max-width: 960px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.page-hero p {
  max-width: 780px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  gap: 1rem;
}

.sidebar-box {
  padding: 1.25rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar-box h2,
.sidebar-box h3 {
  margin-bottom: 0.8rem;
  font-size: 1.12rem;
}

.sidebar-box p,
.sidebar-box li {
  color: var(--muted);
  font-size: 0.96rem;
}

.article-body {
  max-width: 780px;
}

.article-body h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.article-body h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-body p,
.article-body li {
  color: var(--ink-soft);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.78);
}

.article-meta span {
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  color: var(--ink-soft);
  background: rgba(189, 201, 184, 0.25);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
}

.faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.faq details {
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq summary {
  color: var(--ink);
  font-weight: 780;
  cursor: pointer;
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--muted);
}

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

.contact-card {
  padding: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
}

.contact-card a {
  color: var(--teal);
  font-weight: 780;
  text-decoration: none;
  word-break: break-word;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.cta-band {
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--teal-dark);
  color: var(--white);
  border-radius: var(--radius);
}

.cta-band h2 {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
}

.cta-band p {
  max-width: 720px;
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  color: rgba(255, 255, 255, 0.83);
  background: #102c30;
}

:root[data-theme="dark"] .site-footer {
  background: #071719;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(170px, 0.6fr));
  gap: 2rem;
  padding-block: 3rem;
}

.footer-grid h2,
.footer-grid h3 {
  margin-bottom: 0.8rem;
  color: var(--white);
  font-size: 1rem;
}

.footer-grid p,
.footer-grid li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-grid ul {
  padding: 0;
  list-style: none;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  outline: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: #1f8f5f;
  border-radius: 50%;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@media (max-width: 1060px) {
  .header-actions .btn {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
  }

  .nav-toggle {
    display: inline-block;
  }
}

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

  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: auto;
    height: 58px;
    max-width: min(230px, 56vw);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-oab {
    font-size: 0.76rem;
  }

  .hero {
    min-height: 650px;
    background-position: 60% center;
  }

  .hero-content {
    padding-block: 3rem;
  }

  h1 {
    max-width: 10ch;
  }

  .intro-grid,
  .local-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .card-grid,
  .card-grid.two,
  .steps,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

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

  .btn {
    width: 100%;
  }

  .trust-list span {
    width: 100%;
  }

  .page-hero h1 {
    font-size: clamp(2.15rem, 14vw, 3.2rem);
  }
}

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