/* Agência Virtual Light — versão estática local
   Cores e padrões alinhados ao portal original */

:root {
  --font-inter: "Inter", system-ui, sans-serif;
  --cinza-light: #f8f8f8;
  --verde-light: #06a09a;
  --laranja-light: #ef7c05;
  --laranja-hover: #d4500b;
  --black-light: #272727;
  --cinza-texto: #575756;
  --color-border: #e6e6e6;
  --yellow-flag: #f2ff00;
  --icone-servico: #009a93;
  --max-width: 1280px;
  --header-height: 72px;
  --menu-height: 48px;
  --radius-card: 16px;
  --radius-pill: 55px;
  --shadow-modal: 0 0 10px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--cinza-light);
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--black-light);
  line-height: 1.4;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button,
input {
  font: inherit;
}

.limitador {
  display: flex;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 5%;
}

/* ========== Layout ========== */

.layout-agv {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.layout-agv > header {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  background-color: var(--verde-light);
}

.layout-agv > main {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 56px 0;
  min-height: calc(100vh - 120px);
}

.layout-agv > main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 338px;
  background-color: var(--verde-light);
}

.layout-agv > main > .limitador {
  position: relative;
  z-index: 1;
}

/* ========== Header top ========== */

.header-agv-top {
  display: flex;
  height: var(--header-height);
}

.header-agv-top > .limitador {
  flex-direction: row;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.header-agv-top__left,
.header-agv-top__right {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.header-agv-top__left {
  flex: 2;
  gap: clamp(24px, 8vw, 100px);
}

.header-agv-top__right {
  flex: 1;
  justify-content: flex-end;
}

.header-agv-top__logo {
  width: 100px;
  flex-shrink: 0;
}

.header-agv-top__logo a {
  display: flex;
  align-items: center;
}

.bandeira-tarifada {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.bandeira-tarifada__icon {
  display: flex;
  align-items: center;
  line-height: 1;
}

.bandeira-tarifada__icon .material-icons {
  font-size: 24px;
  color: var(--yellow-flag);
}

a.bandeira-tarifada__text,
a:link.bandeira-tarifada__text {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
}

a.bandeira-tarifada__text > span {
  display: flex;
}

a.bandeira-tarifada__text > span:nth-child(2) {
  font-weight: 600;
}

a.bandeira-tarifada__text::before {
  content: attr(data-flagmsg);
  position: absolute;
  top: 50px;
  left: 0;
  z-index: 99;
  display: inline-flex;
  width: min(280px, calc(100vw - 32px));
  min-width: 0;
  max-width: calc(100vw - 32px);
  padding: 12px;
  border-radius: 6px;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  font-size: 12px;
  color: #09090b;
  text-align: left;
  box-sizing: border-box;
  pointer-events: none;
}

a.bandeira-tarifada__text::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 42px;
  left: 12px;
  display: inline-flex;
  border-bottom: 8px solid #fff;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  opacity: 0;
  visibility: hidden;
}

a.bandeira-tarifada__text:hover::before,
a.bandeira-tarifada__text:hover::after {
  z-index: 99;
  opacity: 1;
  visibility: visible;
}

.busca-geral {
  position: relative;
  display: flex;
  align-items: center;
  width: min(300px, 100%);
  height: 46px;
  padding-right: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: transparent;
}

.busca-geral input[type="search"] {
  width: 100%;
  height: 100%;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.busca-geral input[type="search"]::placeholder {
  color: #fff;
  opacity: 0.9;
}

.busca-geral__btn {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

/* ========== Menu ========== */

.header-agv-menu {
  display: flex;
  height: var(--menu-height);
  background: linear-gradient(to right, #fff 50%, var(--laranja-light) 50%);
}

.header-agv-menu > .limitador {
  height: 100%;
  padding-inline: 5%;
}

.menu-agv {
  display: flex;
  width: 100%;
  height: 100%;
}

.menu-agv__left {
  flex: 0 0 212px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--cinza-texto);
  background: #fff;
}

.menu-agv__right {
  flex: 1;
  display: inline-flex;
  align-items: stretch;
  gap: 16px;
  background-color: var(--laranja-light);
}

.menu-agv__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 100%;
  padding: 0 24px;
  color: #fff;
  font-weight: 500;
  user-select: none;
}

.menu-agv__item--link:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Serviços / Atendimento: só o nome, sem dropdown */
.menu-agv__item--label {
  cursor: default;
}

/* ========== Acesso rápido ========== */

.column-large-left {
  display: flex;
  justify-content: center;
  width: 100%;
}

.acesso-rapido {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.acesso-rapido__titulo {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--cinza-texto);
}

.acesso-rapido__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 16px;
  color: var(--cinza-texto);
}

.acesso-rapido__acoes {
  display: inline-flex;
  gap: 26px;
}

.acesso-rapido__acoes a {
  position: relative;
  font-size: 18px;
  font-weight: 700;
}

.acesso-rapido__acoes a:first-child {
  color: var(--verde-light);
}

.acesso-rapido__acoes a:last-child {
  color: var(--laranja-light);
}

.acesso-rapido__acoes a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 20px;
  height: 2px;
  transform: translateX(-50%);
  background: currentColor;
}

.acesso-rapido__conteudo {
  margin-top: 36px;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 40px;
  align-items: stretch;
}

.card-servico {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  min-height: 137px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease;
  cursor: pointer;
  text-align: left;
}

button.card-servico {
  appearance: none;
}

.card-servico:hover,
.card-servico:focus-visible {
  border-color: var(--verde-light);
  outline: none;
}

.card-servico__icon {
  width: 24px;
  height: 24px;
  color: var(--icone-servico);
}

.card-servico__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.card-servico__icon--accent {
  color: var(--laranja-light);
}

.card-servico__texto {
  font-size: 14px;
  color: var(--cinza-texto);
}

/* ========== Modal Segunda Via ========== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-shell {
  position: relative;
  width: min(560px, 100%);
  max-width: 100%;
  margin: auto;
  flex-shrink: 0;
  padding: 28px 32px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-modal);
  transition: width 0.15s ease;
}

.modal-shell.is-debitos {
  width: 100%;
  max-width: 1200px;
  padding: 32px 24px 48px;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.modal-overlay.is-debitos {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  background: #F4F4F5;
}

.modal-overlay.is-debitos .modal-shell__titulo {
  text-align: left;
}

.modal-view[hidden] {
  display: none;
}

.modal-shell__titulo {
  margin-bottom: 28px;
  font-size: 20px;
  font-weight: 700;
  color: var(--cinza-texto);
  text-align: center;
}

.modal-shell__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
  margin-inline: auto;
}

.campo__link {
  align-self: flex-end;
  font-size: 14px;
  font-weight: 600;
  color: var(--verde-light);
}

.campo__link:hover {
  text-decoration: underline;
}

.modal-shell__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--cinza-texto);
  font-size: 13px;
}

.modal-shell__divider::before,
.modal-shell__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.btn-full {
  width: 100%;
}

.modal-shell__cadastro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--cinza-texto);
  text-align: center;
}

.modal-shell__cadastro a {
  font-weight: 600;
  color: var(--verde-light);
}

.modal-shell__cadastro a:hover {
  text-decoration: underline;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campo.campo--lembrar {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.campo.campo--lembrar input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--verde-light);
  background: #fff;
  cursor: pointer;
}

.campo.campo--lembrar label {
  flex: 1 1 auto;
  margin: 0;
  font-size: 14px;
  color: var(--cinza-texto);
  cursor: pointer;
  white-space: nowrap;
}

.campo.campo--lembrar .campo__link {
  flex: 0 0 auto;
  margin-left: auto;
}

.campo__label {
  font-size: 14px;
  color: var(--cinza-texto);
}

.campo__obrigatorio {
  margin-left: 4px;
  color: #e6a700;
}

.campo__input {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  color: var(--black-light);
  outline: none;
  transition: border-color 0.2s ease;
}

.campo__input:focus {
  border-color: #FBB030;
}

.modal-login__captcha {
  display: flex;
  justify-content: center;
  width: 100%;
}

.modal-shell__acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.modal-shell__acoes .btn-padrao {
  min-width: 140px;
}

.btn-padrao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 40px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-padrao.btn-google {
  width: 100%;
  border: 1px solid #9e9e9e;
  background: #fff;
  color: var(--cinza-texto);
  font-weight: 600;
}

.btn-padrao.btn-google:hover {
  border: 1px solid #757575;
  background: #fafafa;
}

.btn-whatsapp {
  display: none;
  width: 100%;
  margin-top: 12px;
  gap: 8px;
  min-height: 42px;
  height: auto;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid #111;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-whatsapp:not([hidden]) {
  display: inline-flex;
}

.modal-shell__whatsapp {
  width: 100%;
  margin-top: 16px;
}

.modal-shell.is-debitos .modal-shell__whatsapp {
  display: none !important;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #111;
  color: #fff;
}

.btn-whatsapp__icon {
  flex-shrink: 0;
}

/* Alternativos: aparência permanente do hover do Google */
.btn-padrao.btn-google--hover {
  border: 1px solid #757575;
  background: #fafafa;
}

.btn-padrao.btn-google--hover:hover {
  border: 1px solid #616161;
  background: #f0f0f0;
}

.btn-cancelar {
  border-color: var(--verde-light);
  background: transparent;
  color: var(--verde-light);
}

.btn-cancelar:hover {
  background: var(--verde-light);
  color: #fff;
}

.btn-laranja {
  border-color: var(--laranja-light);
  background: var(--laranja-light);
  color: #fff;
}

.btn-laranja:hover {
  border-color: var(--laranja-hover);
  background: var(--laranja-hover);
}

body.modal-aberto {
  overflow: hidden;
}

/* ========== Footer mínimo ========== */

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  background: #fff;
  font-size: 13px;
  color: var(--cinza-texto);
  text-align: center;
}

/* ========== Responsivo ========== */

@media (max-width: 960px) {
  .servicos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .menu-agv__left {
    flex: 0 0 auto;
    padding-right: 16px;
  }

  .header-agv-top__left {
    gap: 24px;
  }

  .busca-geral {
    width: 200px;
  }
}

@media (max-width: 720px) {
  .layout-agv > main {
    padding: 24px 0;
  }

  .modal-overlay {
    padding: 16px 12px;
  }

  .modal-shell {
    margin: auto;
    padding: 24px 16px;
  }

  .acesso-rapido {
    max-width: none;
    padding: 24px 16px;
  }

  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .header-agv-top {
    height: auto;
    padding: 12px 0;
  }

  .header-agv-top > .limitador {
    flex-wrap: wrap;
    height: auto;
  }

  .header-agv-top__left,
  .header-agv-top__right {
    flex: 1 1 100%;
  }

  .header-agv-top__right {
    justify-content: stretch;
  }

  .busca-geral {
    width: 100%;
  }

  .menu-agv__left {
    display: none;
  }

  .header-agv-menu {
    background: var(--laranja-light);
  }

  .menu-agv__item {
    min-width: 0;
    padding: 0 12px;
    font-size: 14px;
  }

  .modal-shell {
    padding: 24px 16px;
  }

  .modal-shell__acoes {
    flex-direction: column;
  }

  .modal-shell__acoes .btn-padrao {
    width: 100%;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-bold {
  font-weight: 700;
}

.text-primary {
  color: #06a09a;
}

.btn-padrao:disabled,
.btn-laranja:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

#view-debitos .modal-debitos {
  margin-top: 8px;
}

@media (max-width: 600px) {
  #view-debitos .modal-debitos {
    max-height: none;
    overflow: visible;
  }
}

#view-debitos .modal-shell__titulo {
  text-align: left;
  margin-bottom: 16px;
}
