/* =========================================================
   Viral Mind Technologies — Cookie Consent
   Load after /styles.css
   ========================================================= */

.vmt-consent-root {
  position: relative;
  z-index: 9998;
}

.vmt-consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 9998;
  width: min(calc(100% - 32px), var(--container, 1180px));
  margin-inline: auto;
  padding: 20px;
  border: 1px solid var(--line-strong, #d8cfbf);
  border-radius: 24px;
  color: var(--text, #101216);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(25, 33, 50, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.vmt-consent-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vmt-consent-layout {
  display: grid;
  gap: 18px;
  align-items: center;
}

.vmt-consent-copy {
  max-width: 760px;
}

.vmt-consent-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  color: var(--gold, #c79a48);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.vmt-consent-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold, #c79a48);
}

.vmt-consent-title {
  margin: 0 0 9px;
  color: var(--navy, #192132);
  font-size: clamp(1.22rem, 2.5vw, 1.62rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.vmt-consent-description {
  margin: 0;
  color: var(--muted, #5d6470);
  font-size: 0.9rem;
  line-height: 1.62;
}

.vmt-consent-description a,
.vmt-consent-modal-copy a {
  color: var(--navy, #192132);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(199, 154, 72, 0.65);
  text-underline-offset: 4px;
}

.vmt-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.vmt-consent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.vmt-consent-button:hover {
  transform: translateY(-2px);
}

.vmt-consent-button:focus-visible,
.vmt-cookie-settings-button:focus-visible,
.vmt-consent-close:focus-visible,
.vmt-consent-switch input:focus-visible + .vmt-consent-slider {
  outline: 3px solid rgba(199, 154, 72, 0.55);
  outline-offset: 3px;
}

.vmt-consent-button-primary {
  color: #fff;
  background: var(--navy, #192132);
  box-shadow: 0 14px 26px rgba(25, 33, 50, 0.16);
}

.vmt-consent-button-primary:hover {
  background: var(--navy-soft, #27324a);
}

.vmt-consent-button-secondary {
  color: var(--navy, #192132);
  border-color: var(--line-strong, #d8cfbf);
  background: rgba(255, 255, 255, 0.78);
}

.vmt-consent-button-secondary:hover {
  border-color: var(--gold, #c79a48);
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(25, 33, 50, 0.06));
}

.vmt-consent-button-text {
  min-height: 40px;
  padding-inline: 10px;
  color: var(--navy, #192132);
  background: transparent;
}

.vmt-consent-button-text:hover {
  background: var(--bg-soft, #f8f5ee);
}

.vmt-cookie-settings-button {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 9996;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong, #d8cfbf);
  border-radius: 999px;
  color: var(--navy, #192132);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(25, 33, 50, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.vmt-cookie-settings-button:hover {
  transform: translateY(-2px);
  border-color: var(--gold, #c79a48);
  box-shadow: 0 16px 34px rgba(25, 33, 50, 0.16);
}

.vmt-cookie-settings-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vmt-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 16, 28, 0.56);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.vmt-consent-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.vmt-consent-modal {
  width: min(100%, 620px);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  border: 1px solid var(--line-strong, #d8cfbf);
  border-radius: 28px;
  background: radial-gradient(circle at 92% 8%, rgba(234, 215, 182, 0.48), transparent 28%), #fff;
  box-shadow: 0 34px 90px rgba(10, 16, 28, 0.28);
  transform: translateY(12px) scale(0.985);
  transition: transform 180ms ease;
}

.vmt-consent-backdrop.is-open .vmt-consent-modal {
  transform: translateY(0) scale(1);
}

.vmt-consent-modal-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 28px 22px;
  border-bottom: 1px solid var(--line, #e7e1d6);
}

.vmt-consent-modal-header h2 {
  margin: 0 0 8px;
  color: var(--navy, #192132);
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.vmt-consent-modal-copy {
  margin: 0;
  color: var(--muted, #5d6470);
  font-size: 0.9rem;
  line-height: 1.62;
}

.vmt-consent-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong, #d8cfbf);
  border-radius: 50%;
  color: var(--navy, #192132);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.vmt-consent-options {
  display: grid;
  gap: 14px;
  padding: 22px 28px;
}

.vmt-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line, #e7e1d6);
  border-radius: 18px;
  background: rgba(251, 248, 241, 0.72);
}

.vmt-consent-option h3 {
  margin: 0 0 6px;
  color: var(--navy, #192132);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.vmt-consent-option p {
  margin: 0;
  color: var(--muted, #5d6470);
  font-size: 0.84rem;
  line-height: 1.55;
}

.vmt-consent-required {
  color: #785b28;
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}

.vmt-consent-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.vmt-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.vmt-consent-slider {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong, #d8cfbf);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.vmt-consent-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted, #5d6470);
  transition: transform 180ms ease, background 180ms ease;
}

.vmt-consent-switch input:checked + .vmt-consent-slider {
  border-color: var(--navy, #192132);
  background: var(--navy, #192132);
}

.vmt-consent-switch input:checked + .vmt-consent-slider::after {
  background: #fff;
  transform: translateX(20px);
}

.vmt-consent-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 28px 28px;
}

body.vmt-consent-modal-open {
  overflow: hidden;
}

body.vmt-consent-banner-open .proof-mobile-bar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

[hidden] {
  display: none !important;
}

@media (min-width: 840px) {
  .vmt-consent-layout {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .vmt-consent-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 639px) {
  .vmt-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    padding: 18px;
    border-radius: 20px;
  }

  .vmt-consent-actions {
    display: grid;
  }

  .vmt-consent-button {
    width: 100%;
  }

  .vmt-consent-button-text {
    min-height: 38px;
  }

  .vmt-cookie-settings-button {
    bottom: 12px;
    left: 12px;
  }

  body:has(.proof-mobile-bar) .vmt-cookie-settings-button {
    bottom: 92px;
  }

  .vmt-consent-backdrop {
    align-items: end;
    padding: 10px;
  }

  .vmt-consent-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 24px;
  }

  .vmt-consent-modal-header {
    padding: 24px 20px 18px;
  }

  .vmt-consent-options {
    padding: 18px 20px;
  }

  .vmt-consent-option {
    gap: 14px;
    padding: 18px;
  }

  .vmt-consent-modal-actions {
    display: grid;
    padding: 0 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vmt-consent-banner,
  .vmt-consent-backdrop,
  .vmt-consent-modal,
  .vmt-consent-button,
  .vmt-cookie-settings-button,
  .vmt-consent-slider,
  .vmt-consent-slider::after {
    transition-duration: 0.01ms !important;
  }
}

/* Hide the persistent Cookie Settings bubble */
.vmt-cookie-settings-button {
  display: none !important;
}

/* Homepage Free Tool secondary CTA — match the About button */
.home-audit-actions .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  margin-top: 0;
  padding: 0 20px;
  border: 1px solid var(--line-strong, #d8cfbf);
  border-radius: 999px;
  color: var(--navy, #192132);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.home-audit-actions .text-link::after {
  content: none;
}

.home-audit-actions .text-link:hover {
  transform: translateY(-2px);
  border-color: var(--gold, #c79a48);
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(25, 33, 50, 0.06));
}

@media (max-width: 640px) {
  .home-audit-actions .text-link {
    width: 100%;
    text-align: center;
  }
}
