/* =========================================================
   Dólar hoje — Avenue
   CSS puro, mobile-first, BEM-like
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "AvenuePro";
  src: url("../fonts/AvenuePro/AvenuePro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AvenuePro";
  src: url("../fonts/AvenuePro/AvenuePro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AvenuePro";
  src: url("../fonts/AvenuePro/AvenuePro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AvenueProDisplay";
  src: url("../fonts/AvenuePro/AvenueProDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AvenueProDisplay";
  src: url("../fonts/AvenuePro/AvenueProDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AvenueProDisplay";
  src: url("../fonts/AvenuePro/AvenueProDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --verde-escuro: #0B2320;
  --verde-claro: #4AE07F;
  --verde-fonte: #0C2028;
  --cinza: #F1F5F8;
  --cinza-borda: #E3E9EE;
  --cinza-texto: #6B7884;
  --branco: #FFFFFF;

  --radius-card: 20px;
  --radius-input: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 24px 48px -24px rgba(12, 32, 40, 0.25);

  --container-max: 1180px;
  --container-pad: clamp(20px, 4vw, 48px);

  --font-display: "AvenueProDisplay", Georgia, "Times New Roman", serif;
  --font-body: "AvenuePro", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--verde-fonte);
  background: var(--branco);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

address {
  font-style: normal;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

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

.btn--ghost {
  color: var(--verde-fonte);
  background: transparent;
  border: 1px solid transparent;
}

.btn--ghost:hover {
  background: var(--cinza);
}

.btn--primary {
  color: var(--verde-fonte);
  background: var(--verde-claro);
  font-weight: 600;
}

.btn--primary:hover {
  background: #3fd373;
}

.btn--cta {
  padding: 6px 6px 6px 22px;
  font-size: 15px;
  align-self: flex-start;
}

.btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--verde-fonte);
}

.btn__arrow img {
  width: 20px;
  height: 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--branco);
  padding: 18px 0;
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__logo img {
  height: 22px;
  width: auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__menu {
  display: none;
  padding: 0;
}

.mobile-nav {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--verde-escuro);
  color: var(--branco);
  padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 11vw, 140px);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 440px);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero__content {
  max-width: 520px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--branco);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--branco);
  max-width: 490px;
  margin-bottom: 48px;
}

.hero__subtitle strong {
  font-weight: 500;
  color: var(--branco);
}

.hero__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
}

.hero__brand-logo {
  height: 20px;
}

.hero__brand-divider {
  border: none;
  height: 0.5px;
  background: var(--branco);
  margin: 0;
}

.hero__brand-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--branco);
}

.hero__brand-by img {
  height: 24px;
  width: auto;
  border-radius: 6px;
  padding: 2px;
}

/* ---------- Conversor Card ---------- */
.conversor {
  background: var(--branco);
  color: var(--verde-fonte);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  justify-self: end;
}

.conversor__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conversor__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--verde-fonte);
}

.conversor__label--big {
  font-size: 32px;
}

.conversor__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--cinza);
  border-radius: var(--radius-input);
  padding: 14px 18px;
}

.conversor__input,
.conversor__output {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--verde-fonte);
  padding: 0;
}

.conversor__input-wrap--readonly .conversor__output {
  color: var(--verde-fonte);
}

.conversor__input:focus-visible {
  outline: 2px solid var(--verde-claro);
  outline-offset: 4px;
  border-radius: 4px;
}

.conversor__flag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 12px;
}

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

.conversor__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--cinza-texto);
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 0;
}

.conversor__status img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.conversor__help {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--verde-fonte);
  text-decoration: underline;
  text-underline-offset: 4px;
  align-self: flex-start;
}

.conversor__help:hover {
  opacity: 0.75;
}

.conversor__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.conversor__info {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.conversor__divider {
  display: none;
  border: none;
  height: 1px;
  background: var(--cinza-borda);
  margin: 0;
}

.conversor__brand-by {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--verde-fonte);
}

.conversor__brand-by img {
  height: 24px;
  width: auto;
  border-radius: 6px;
  padding: 2px;
}

.conversor .btn--cta {
  margin-top: 6px;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.modal-overlay[hidden] {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: relative;
  background: var(--branco);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 40px);
  max-width: 520px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.3);
  transform: translateY(16px);
  transition: transform .2s ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  transition: opacity .15s ease;
}

.modal__close:hover {
  opacity: 0.75;
}

.modal__close svg {
  width: 32px;
  height: 32px;
}

.modal__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.3;
  color: var(--verde-fonte);
  margin-bottom: 24px;
  padding-right: 40px;
}

.modal__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--verde-fonte);
  margin-bottom: 28px;
}

.modal__body strong {
  font-weight: 700;
  font-size: 15px;
}

.modal__divider {
  border: none;
  height: 1px;
  background: var(--cinza-borda);
  margin: 4px 0;
}

.modal__divider ~ p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--cinza-texto);
}

.modal__divider ~ p strong {
  font-size: 12px;
  color: var(--verde-fonte);
}

.modal__body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal__body a:hover {
  opacity: 0.75;
}

.btn--outline {
  color: var(--verde-fonte);
  background: transparent;
  border: 1.5px solid var(--verde-fonte);
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}

.btn--outline:hover {
  background: var(--verde-fonte);
  color: var(--branco);
}

.modal__confirm {
  align-self: flex-start;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cinza);
  color: var(--verde-fonte);
  padding: clamp(56px, 7vw, 88px) 0 32px;
  font-size: 14px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__brand img {
  height: 22px;
  width: auto;
  margin-bottom: 16px;
}

.site-footer__address {
  font-size: 12px;
  color: var(--verde-fonte);
  line-height: 1.5;
}

.socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity .15s ease;
}

.socials a:hover {
  opacity: 1;
}

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

.site-footer__nav {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 64px 0;
  border-top: 1px solid var(--cinza-borda);
}

.site-footer__col h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
  color: var(--verde-fonte);
}

.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col a {
  font-size: 14px;
  color: var(--verde-fonte);
  transition: color .15s ease;
}

.site-footer__col a:hover {
  color: var(--cinza-texto);
}

.site-footer__download {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--cinza-borda);
  border-bottom: 1px solid var(--cinza-borda);
}

.qrcode {
  width: 84px;
  height: 84px;
  padding: 6px;
  background: var(--branco);
  border-radius: 8px;
}

.qrcode svg {
  width: 100%;
  height: 100%;
}

.site-footer__download-text h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.site-footer__download-text p {
  font-size: 13px;
  color: var(--cinza-texto);
}

.stores {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stores a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.stores img {
  width: 100%;
  height: 100%;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cinza-borda);
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.legal-links a {
  font-size: 14px;
  color: var(--verde-fonte);
}

.legal-links a:hover {
  color: var(--cinza-texto);
}

.legal-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--verde-fonte);
  text-align: right;
}

.legal-contact a {
  font-weight: 600;
}

.legal-contact small {
  font-size: 11px;
  color: var(--cinza-texto);
}

.site-footer__disclaimer {
  padding-top: 8px;
}

.disclaimer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--verde-fonte);
  padding: 8px 0;
}

.disclaimer-toggle img {
  transition: transform .25s ease;
}

.disclaimer-toggle[aria-expanded="true"] img {
  transform: rotate(180deg);
}

.disclaimer-content {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--cinza-texto);
  max-width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner {
      grid-template-columns: 1fr;
  }

  .conversor {
      justify-self: stretch;
      max-width: 520px;
  }

  .site-footer__nav {
      display: flex;
      flex-direction: column;
      border-top: 1px solid var(--cinza-borda);
      padding: 32px 0;
  }
  .site-footer__col ul {
      margin-bottom: 24px;
  }
}

@media (max-width: 720px) {
  .site-header__actions {
      display: none;
  }

  .site-header__menu {
      display: flex;
  }

  .hero {
      padding: 48px 0 64px;
  }

  .hero__subtitle {
      margin: 0;
  }

  .hero__content {
      max-width: 100%;
  }

  .hero__brand {
      display: none;
  }

  .conversor__help {
      display: none;
  }

  .conversor__info {
      display: flex;
  }

  .conversor .btn--cta {
      width: 100%;
      justify-content: center;
      padding: 16px 22px;
      align-self: stretch;
      border-radius: 8px;
  }

  .conversor .btn--cta .btn__arrow {
      display: none;
  }

  .conversor__divider {
      display: block;
  }

  .conversor__brand-by {
      display: inline-flex;
  }

  .mobile-nav {
      display: block;
      background: var(--branco);
      overflow: hidden;
      max-height: 0;
      transition: max-height .25s ease;
  }

  .mobile-nav[hidden] {
      display: block;
      max-height: 0;
  }

  .mobile-nav.is-open {
      max-height: 200px;
  }

  .mobile-nav__links {
      display: flex;
      flex-direction: column;
      gap: 0;
      padding: 8px var(--container-pad) 16px;
  }

  .mobile-nav__links a {
      display: block;
      padding: 12px 0;
      font-size: 15px;
      font-weight: 500;
      color: var(--verde-fonte);
      border-bottom: 1px solid var(--cinza-borda);
  }

  .mobile-nav__links a:last-child {
      border-bottom: none;
  }

  .site-footer__top {
      flex-direction: column;
      align-items: center;
  }

  .site-footer__download {
      grid-template-columns: auto 1fr;
      grid-template-rows: auto auto;
      gap: 16px 20px;
  }

  .stores {
      grid-column: 1 / -1;
      justify-content: flex-start;
  }

  .site-footer__legal {
      flex-direction: column;
      align-items: flex-start;
  }

  .legal-contact {
      text-align: left;
  }
}

@media (max-width: 480px) {
  .site-footer__nav {
      grid-template-columns: 1fr;
      border-top: 1px solid var(--cinza-borda);
  }

  .conversor {
      padding: 22px;
  }

  .conversor__input,
  .conversor__output {
      font-size: 17px;
  }
}
