.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 9999;
  padding: .75rem 1rem;
  border-radius: .45rem;
  background: #fff;
  color: #7f1520;
  font-weight: 800;
  box-shadow: 0 .5rem 1.5rem rgba(35, 5, 9, .24);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }
.content-anchor { display: block; height: 0; scroll-margin-top: 6rem; }

.site-breadcrumbs {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #eee3e1;
  background: #fffdfb;
}

.site-breadcrumbs ol {
  display: flex;
  width: min(100% - 2.5rem, 77rem);
  margin: 0 auto;
  padding: .72rem 0;
  list-style: none;
  gap: .55rem;
  overflow-x: auto;
  white-space: nowrap;
}

.site-breadcrumbs li { display: flex; align-items: center; gap: .55rem; color: #73686a; font-size: .75rem; }
.site-breadcrumbs a { color: #8f1f29; text-decoration: none; }
.site-breadcrumbs a:hover { text-decoration: underline; text-underline-offset: .18rem; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #e25b65;
  outline-offset: 3px;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Estados compartilhados por todos os formulários públicos. */
.contact-form :is(input, select, textarea)[aria-invalid="true"],
.calculator-form :is(input, select, textarea)[aria-invalid="true"],
.ebook-modal__form :is(input, select, textarea)[aria-invalid="true"] {
  border-color: #b42330;
  background-color: #fff9f8;
  box-shadow: 0 0 0 3px rgba(180, 35, 48, .1);
}

.form-field-feedback,
:is(.contact-form, .calculator-form, .ebook-modal__form) .errorlist {
  width: 100%;
  margin: .1rem 0 0;
  padding: .55rem .65rem;
  border-left: 3px solid #b42330;
  border-radius: .2rem .45rem .45rem .2rem;
  background: #fff1f1;
  color: #8b1822;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}

.contact-form__privacy.field-has-error {
  padding: .7rem;
  border: 1px solid rgba(180, 35, 48, .24);
  border-radius: .55rem;
  background: #fff7f6;
}

:is(.contact-form, .calculator-form, .ebook-modal__form)[aria-busy="true"] {
  cursor: wait;
}

:is(.contact-form, .calculator-form, .ebook-modal__form) button[type="submit"].is-loading {
  min-width: 12.5rem;
  cursor: wait;
  pointer-events: none;
  transform: none;
}

.form-submit-spinner {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, .42);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: form-submit-spin .75s linear infinite;
}

.contact-form__success {
  position: relative;
  overflow: hidden;
  border-color: #b9dcc2;
  background: linear-gradient(135deg, #f7fff8, #eef9f1);
  box-shadow: 0 .65rem 1.8rem rgba(36, 83, 52, .08);
}

.contact-form__success::after {
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 5rem;
  height: 5rem;
  border: 1px solid rgba(36, 83, 52, .12);
  border-radius: 50%;
  content: "";
}

@keyframes form-submit-spin {
  to { transform: rotate(360deg); }
}

.lite-youtube { position: relative; width: 100%; height: 100%; min-height: 100%; overflow: hidden; background: #2f090e; }
.lite-youtube > img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .7; transition: opacity 220ms ease, transform 350ms ease; }
.lite-youtube > button { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .65rem; width: 100%; border: 0; background: linear-gradient(rgba(48,6,12,.1), rgba(48,6,12,.42)); color: #fff; cursor: pointer; }
.lite-youtube > button span { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border-radius: 50%; padding-left: .18rem; background: #971c28; box-shadow: 0 .8rem 2rem rgba(26,0,4,.3); }
.lite-youtube > button strong { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.lite-youtube:hover > img { opacity: .82; transform: scale(1.025); }
.lite-youtube > iframe { display: block; width: 100%; height: 100%; min-height: inherit; border: 0; aspect-ratio: 16 / 9; }

.status-page {
  display: grid;
  min-height: 66vh;
  padding: clamp(4rem, 9vw, 8rem) 1.25rem;
  place-items: center;
  background: #faf6f1;
}

.status-page__card { width: min(100%, 47rem); padding: clamp(2rem, 6vw, 4.5rem); border: 1px solid #e8d3d0; border-radius: 1.25rem; background: #fff; box-shadow: 0 1.5rem 4rem rgba(73, 17, 22, .1); }
.status-page__code { margin: 0 0 .8rem; color: #9e1f2a; font-size: .74rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.status-page h1 { margin: 0; color: #491118; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 6vw, 4.5rem); font-weight: 400; letter-spacing: -.055em; line-height: 1; }
.status-page h1 + p { max-width: 38rem; margin: 1.25rem 0 0; color: #625b5d; line-height: 1.7; }
.status-page__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.status-page__actions a { padding: .9rem 1.15rem; border: 1px solid #951f29; border-radius: .55rem; background: #951f29; color: #fff; font-weight: 800; text-decoration: none; }
.status-page__actions .status-page__secondary { background: transparent; color: #7f1520; }

.cookie-consent { position: fixed; right: 1rem; bottom: 1rem; z-index: 9998; display: grid; width: min(calc(100% - 2rem), 39rem); gap: 1rem; padding: 1.15rem; border: 1px solid #e7d0cd; border-radius: .8rem; background: #fffdfb; color: #3f3537; box-shadow: 0 1.2rem 3.5rem rgba(48, 8, 13, .22); }
.cookie-consent[hidden], .cookie-settings[hidden] { display: none; }
.cookie-consent strong { color: #68141c; }
.cookie-consent p { margin: .35rem 0 .25rem; font-size: .82rem; line-height: 1.5; }
.cookie-consent a { color: #781922; font-size: .75rem; font-weight: 750; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.cookie-consent button, .cookie-settings button { min-height: 2.6rem; border: 1px solid #8f1f29; border-radius: .45rem; padding: .6rem .85rem; background: transparent; color: #781922; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.cookie-consent button:last-child, .cookie-settings__actions button:last-child { background: #8f1f29; color: #fff; }
.site-footer__privacy-button { border: 0; padding: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }

.cookie-settings { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 1rem; }
body.cookie-settings-open { overflow: hidden; }
.cookie-settings__backdrop { position: absolute; inset: 0; background: rgba(30, 9, 12, .64); backdrop-filter: blur(3px); }
.cookie-settings__dialog { position: relative; z-index: 1; width: min(100%, 35rem); max-height: calc(100vh - 2rem); overflow-y: auto; border-radius: .9rem; padding: 1.4rem; background: #fffdfb; box-shadow: 0 1.5rem 4rem rgba(31, 5, 10, .32); }
.cookie-settings__dialog h2 { margin: .15rem 0 .5rem; color: #68141c; font-family: var(--font-display, Georgia, serif); font-size: clamp(1.65rem, 4vw, 2.2rem); }
.cookie-settings__dialog > p:not(.section-eyebrow) { margin: 0 2.5rem 1rem 0; color: #645a5c; font-size: .83rem; line-height: 1.55; }
.cookie-settings__close { position: absolute; top: .8rem; right: .8rem; min-width: 2.4rem; padding: .2rem !important; font-size: 1.35rem !important; }
.cookie-settings__option { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid #eadbda; padding: 1rem 0; }
.cookie-settings__option > div { display: grid; gap: .25rem; }
.cookie-settings__option strong { color: #4b3f42; font-size: .85rem; }
.cookie-settings__option span { color: #756a6d; font-size: .74rem; line-height: 1.45; }
.cookie-settings__required { flex: 0 0 auto; color: #287448 !important; font-weight: 800; }
.cookie-settings__option input { width: 1.25rem; height: 1.25rem; accent-color: #8f1f29; }
.cookie-settings__actions { display: flex; justify-content: flex-end; gap: .6rem; padding-top: .5rem; }

@media (max-width: 34rem) {
  .cookie-consent { right: .65rem; bottom: .65rem; width: calc(100% - 1.3rem); }
  .cookie-consent__actions, .cookie-settings__actions { display: grid; grid-template-columns: 1fr; }
  .cookie-consent button, .cookie-settings__actions button { width: 100%; }
  .cookie-settings__option { align-items: flex-start; }
}

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