:root {
  color-scheme: light;
  --brand: #01244a;
  --brand-hover: #143d65;
  --white: #ffffff;
  --canvas: #ffffff;
  --surface: #f3f6f9;
  --surface-strong: #e8eef4;
  --text: #172f48;
  --muted: #526579;
  --line: #d8e0e8;
  --on-brand: #ffffff;
  --on-brand-muted: #d4dfea;
  --focus: #01244a;
  --font-display: Georgia, Cambria, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-small: 0.875rem;
  --text-body: 1rem;
  --text-lead: 1.125rem;
  --text-h3: 1.5rem;
  --text-h2: clamp(2rem, 3.6vw, 3rem);
  --text-h1: clamp(2.25rem, 4.2vw, 3.5rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-space: clamp(3.5rem, 7vw, 6rem);
  --radius-small: 2px;
  --radius-button: 6px;
  --radius-panel: 8px;
  --header-height: 72px;
  --target-min: 44px;
  --duration: 160ms;
  --ease: ease-out;
  --layer-header: 20;
  --layer-contact: 10;
  --layer-menu: 30;
  --layer-skip: 40;
  --floating-clearance: calc(5rem + env(safe-area-inset-bottom, 0px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-6));
  scroll-padding-bottom: var(--floating-clearance);
}

body {
  margin: 0;
  padding-bottom: var(--floating-clearance);
  min-width: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(1 36 74 / 14%);
}

button {
  font: inherit;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
}

p {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - (2 * var(--gutter))), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: var(--layer-skip);
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-button);
  background: var(--white);
  color: var(--brand);
  font-weight: 700;
  transform: translateY(calc(-100% - var(--space-8)));
  transition: transform var(--duration) var(--ease);
}

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

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

.hero :focus-visible {
  outline-color: var(--white);
}

#inicio,
#servicos,
#informacoes,
#sobre,
#atendimento,
#localizacao,
#contato {
  scroll-margin-top: calc(var(--header-height) + var(--space-6));
}

.site-header {
  position: sticky;
  z-index: var(--layer-header);
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.header-layout {
  display: flex;
  min-width: 0;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-brand {
  display: inline-flex;
  min-width: 0;
  min-height: var(--target-min);
  align-items: center;
  gap: var(--space-3);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand img {
  flex: 0 0 44px;
  border-radius: var(--radius-small);
}

.site-brand:hover {
  color: var(--brand-hover);
}

.desktop-navigation {
  display: none;
}

.menu-toggle {
  display: grid;
  width: var(--target-min);
  height: var(--target-min);
  flex: 0 0 var(--target-min);
  place-content: center;
  gap: 5px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-button);
  background: var(--white);
  color: var(--brand);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition:
    opacity var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.menu-toggle:hover {
  background: var(--surface);
}

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

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

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

.mobile-navigation {
  position: absolute;
  z-index: var(--layer-menu);
  top: 100%;
  right: 0;
  left: 0;
  /* 100% follows the actual header height, including enlarged text. */
  max-height: calc(100vh - 100%);
  max-height: calc(100dvh - 100%);
  overflow-y: auto;
  scroll-padding-block: var(--space-2);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.mobile-navigation-inner {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-4) var(--space-6);
}

.mobile-navigation a {
  scroll-margin-block: var(--space-2);
}

.mobile-navigation a:not(.button) {
  display: flex;
  min-height: var(--target-min);
  align-items: center;
  padding-inline: var(--space-2);
  font-weight: 600;
  text-decoration: none;
}

.mobile-navigation a:not(.button):hover {
  background: var(--surface);
}

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.header-cta.button {
  display: none;
}

.button:hover {
  text-decoration: none;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--brand);
  color: var(--white);
}

.button-primary:hover {
  background: var(--brand-hover);
}

.button-on-brand {
  background: var(--white);
  color: var(--brand);
}

.button-on-brand:hover {
  background: var(--on-brand-muted);
}

.hero {
  min-height: min(46rem, calc(100dvh - var(--header-height)));
  display: grid;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 5rem);
  padding-block-start: clamp(3rem, 8vw, 4rem);
  background: var(--brand);
  color: var(--on-brand);
}

.hero-layout {
  display: grid;
  min-width: 0;
  gap: var(--space-12);
}

.hero-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: start;
  gap: var(--space-6);
}

.hero .eyebrow {
  color: var(--on-brand-muted);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 14ch;
  color: var(--white);
}

.hero-summary {
  max-width: 38ch;
  color: var(--on-brand-muted);
  font-size: var(--text-lead);
}

.hero-brand {
  display: grid;
  min-width: 0;
  place-items: center;
}

.brand-crop {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 404 / 395;
  overflow: hidden;
}

.brand-crop img {
  position: absolute;
  top: -34.9367%;
  left: -67.3267%;
  width: 506.9307%;
  max-width: none;
  height: auto;
}

.section {
  padding-block: var(--section-space);
}

.section-heading {
  display: grid;
  max-width: 42rem;
  gap: var(--space-4);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading p,
.about-copy p {
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--text-lead);
}

.services-layout {
  display: grid;
  min-width: 0;
  gap: var(--space-12);
}

.service-feature {
  min-width: 0;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.service-feature h3 {
  max-width: 18ch;
  margin-bottom: var(--space-4);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.service-feature p {
  color: var(--muted);
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-6);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
}

.audience-list li {
  min-width: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.secondary-services {
  min-width: 0;
  border-top: 2px solid var(--brand);
}

.service-row {
  min-width: 0;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.service-row h3 {
  overflow-wrap: anywhere;
}

.service-row p {
  max-width: 62ch;
  margin-top: var(--space-3);
  color: var(--muted);
}

.service-row .audience-list {
  margin-top: var(--space-4);
}

.extra-information,
.channels-section {
  background: var(--surface);
}

.extra-info-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}

.extra-info-item {
  min-width: 0;
  padding-top: var(--space-6);
  border-top: 2px solid var(--brand);
}

.extra-info-item p {
  max-width: 62ch;
  margin-top: var(--space-3);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.extra-info-item .text-link {
  margin-top: var(--space-4);
}

.about-layout {
  display: grid;
  min-width: 0;
  gap: var(--space-12);
}

.about-copy {
  display: grid;
  align-content: center;
  gap: var(--space-6);
}

.brand-artwork {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--brand);
}

.brand-artwork img {
  width: 100%;
}

.channels-layout {
  display: grid;
  min-width: 0;
  gap: var(--space-8);
}

.channel-item {
  min-width: 0;
  padding-top: var(--space-6);
  border-top: 2px solid var(--brand);
}

.channel-item p {
  max-width: 38ch;
  margin-top: var(--space-3);
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  min-height: var(--target-min);
  align-items: center;
  margin-top: var(--space-4);
  color: var(--brand);
  font-weight: 700;
}

.text-link:hover {
  color: var(--brand-hover);
}

.location-content {
  display: grid;
  min-width: 0;
  gap: var(--space-8);
}

.location-content address {
  max-width: 38ch;
  font-style: normal;
  overflow-wrap: anywhere;
}

.location-content iframe {
  width: 100%;
  min-height: 22rem;
  border: 0;
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.contact-section {
  padding-block: var(--section-space);
  background: var(--surface);
  color: var(--text);
}

.contact-layout {
  display: grid;
  min-width: 0;
  gap: var(--space-12);
}

.contact-section h2 {
  max-width: 15ch;
  color: var(--brand);
}

.contact-section p {
  max-width: 44ch;
  margin-top: var(--space-4);
  color: var(--muted);
}

.contact-section .button-on-brand {
  background: var(--brand);
  color: var(--white);
}

.contact-section .button-on-brand:hover {
  background: var(--brand-hover);
}

.contact-actions {
  display: grid;
  min-width: 0;
  align-content: start;
  justify-items: start;
  gap: var(--space-6);
}

.contact-details,
.footer-details {
  min-width: 0;
}

.contact-detail {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
}

.contact-detail + .contact-detail {
  margin-top: var(--space-4);
}

.contact-detail dt {
  color: var(--muted);
  font-size: var(--text-small);
}

.contact-detail dd,
.contact-detail a,
.footer-details a,
.footer-details p {
  overflow-wrap: anywhere;
}

.contact-detail a,
.footer-details a {
  display: inline-flex;
  min-width: var(--target-min);
  min-height: var(--target-min);
  align-items: center;
}

.footer-details {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
}

.site-footer {
  padding-block: var(--space-12);
  border-top: 1px solid var(--line);
  background: var(--canvas);
  color: var(--muted);
}

.footer-layout {
  display: grid;
  min-width: 0;
  gap: var(--space-8);
}

.footer-brand {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--text-h3);
}

.copyright {
  font-size: var(--text-small);
}

.floating-whatsapp {
  position: fixed;
  z-index: var(--layer-contact);
  right: calc(var(--space-4) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--white);
  border-radius: var(--radius-panel);
  background: var(--brand);
  color: var(--white);
  text-decoration: none;
  transition: background-color var(--duration) var(--ease);
}

.floating-whatsapp:hover {
  background: var(--brand-hover);
}

.floating-whatsapp:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px var(--white);
}

@media (min-width: 48rem) {
  .hero-layout {
    grid-template-columns: minmax(0, 5fr) minmax(17rem, 7fr);
    align-items: center;
  }

  .hero-brand {
    justify-items: end;
  }

  .services-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
  }

  .service-feature {
    min-height: 100%;
  }

  .extra-info-list,
  .channels-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: center;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 7fr) minmax(15rem, 4fr);
    align-items: start;
  }

  .location-content.has-map {
    grid-template-columns: minmax(14rem, 1fr) minmax(0, 2fr);
    align-items: start;
  }

  .footer-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (min-width: 64rem) {
  .desktop-navigation {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.75rem);
  }

  .desktop-navigation a {
    display: inline-flex;
    min-width: var(--target-min);
    min-height: var(--target-min);
    align-items: center;
    justify-content: center;
    font-size: var(--text-small);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .desktop-navigation a:hover {
    color: var(--brand-hover);
    text-decoration: underline;
  }

  .header-cta.button {
    display: inline-flex;
    white-space: nowrap;
  }

  .menu-toggle,
  .mobile-navigation {
    display: none !important;
  }
}

@media (max-width: 30rem) {
  .site-brand span {
    font-size: 1.0625rem;
  }

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

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
