﻿/* ==============================
   MODAL - FALE COM O JAB
============================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background-color: rgba(7, 26, 40, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-overlay.is-open {
  display: flex;
}

.modal-box {
  position: relative;

  width: min(90vw, 1040px);
  min-width: 900px;
  box-sizing: border-box;

  padding: 36px;

  border-radius: 12px;
  background-color: #f2f2f2;

  box-shadow: 0 24px 60px rgba(7, 26, 40, 0.22);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;

  border: none;
  background: transparent;

  font-size: 32px;
  line-height: 1;
  color: var(--color-primary-light);

  cursor: pointer;
}

.modal-header {
  max-width: 620px;
  margin: 0 auto 24px;
  text-align: center;
}

.modal-header h2 {
  margin-bottom: 16px;

  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;

  color: var(--color-primary-light);
}

.modal-header p {
  margin: 0 auto;

  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;

  color: var(--color-text);
}

.modal-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;

  width: 100%;
}

.modal-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  height: fit-content;
  padding: 24px;

  border-radius: 12px;
  background-color: var(--color-white);

  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-icon {
  margin-bottom: 22px;

  border-radius: 50%;
  background-color: var(--color-primary-light);

  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon img {
  width: 44px;
  height: 44px;
  padding: 8px;
}

.modal-card p {
  max-width: 360px;
  margin-bottom: 18px;

  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;

  color: var(--color-text);
}

.modal-card h3 {
  margin-bottom: 12px;

  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;

  color: var(--color-text);
}

.modal-card a {
  font-size: 16px;
  font-weight: 400;

  color: var(--color-text);
}

.modal-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;

  width: 100%;
}

.copy-phone {
  border: none;
  background: transparent;
  padding: 0;

  font-family: "Spline Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;

  color: var(--color-text);

  cursor: pointer;
  white-space: nowrap;
}

/* ==============================
   MODAL - TRABALHE CONOSCO
============================== */

.modal-box-small {
  width: min(90vw, 760px);
  min-width: 0;
}

.modal-cards-single {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin: 0 auto;
}

.modal-cards-single .modal-card {
  height: 100%;
}

/* ==============================
   MODAIS - RESPONSIVO BASE
============================== */

@media (max-width: 980px) {
  .modal-box {
    width: min(100%, 720px);
    min-width: 0;
  }

  .modal-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .modal-overlay {
    padding: 16px;
  }

  .modal-box {
    width: 100%;
    min-width: 0;
    padding: 28px 20px;
  }

  .modal-phones {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==============================
   ANIMAÃ‡Ã•ES - BASE
============================== */

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-image"] {
  opacity: 0;
  transform: scale(1.035);

  transition:
    opacity 1s ease,
    transform 1.2s ease;
}

[data-animate="fade-image"].is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ==============================
   ANIMAÃ‡Ã•ES - LINHAS
============================== */

[data-animate="line-horizontal"] {
  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.75s ease;
}

[data-animate="line-horizontal"].is-visible {
  transform: scaleX(1);
}

[data-animate="line-vertical"] {
  transform: scaleY(0);
  transform-origin: top;

  transition: transform 0.75s ease;
}

[data-animate="line-vertical"].is-visible {
  transform: scaleY(1);
}

/* ==============================
   ANIMAÃ‡Ã•ES - CARDS
============================== */

[data-animate="card-up"] {
  opacity: 0;
  transform: translateY(28px) scale(0.98);

  transition:
    opacity 0.75s ease,
    transform 0.75s ease,
    box-shadow var(--transition),
    background-color var(--transition);
}

[data-animate="card-up"].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.25s;
}

.delay-3 {
  transition-delay: 0.4s;
}

/* ==============================
   CARDS - GRADIENTE HOVER
============================== */

.card-gradient {
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 100%
  );
}

.card-gradient::before {
  content: "";
  position: absolute;
  inset: 0;

  opacity: 0;

  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-light) 100%
  );

  transition: opacity 0.35s ease;
}

.card-gradient:hover::before {
  opacity: 1;
}

.card-gradient > * {
  position: relative;
  z-index: 2;
}

/* ==============================
   COOKIES / PRIVACIDADE
   MODAL SIMPLIFICADO
============================== */

.cookies-widget {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 32px;
  z-index: 3500;

  pointer-events: none;
}

.cookies-icon-button {
  position: fixed;
  left: 32px;
  bottom: 32px;

  width: 28px;
  height: 28px;

  border: none;
  padding: 0;
  background: transparent;

  opacity: 0.55;
  cursor: pointer;

  pointer-events: auto;

  transition:
    opacity var(--transition),
    transform var(--transition);
}

.cookies-icon-button:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.cookies-icon-button img {
  width: 100%;
  height: 100%;
  display: block;
}

.cookies-container {
  position: relative;
  pointer-events: none;
}

.cookies-modal {
  position: absolute;
  left: 0;
  bottom: 0;

  width: min(420px, calc(100vw - 72px));
  max-height: calc(100dvh - 64px);

  display: block;

  background-color: #f2f2f2;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(7, 26, 40, 0.22);

  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;

  pointer-events: auto;

  opacity: 0;
  visibility: hidden;

  transform: translateY(14px) scale(0.98);

  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
}

.cookies-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cookies-content {
  padding: 22px;

  text-align: left;
}

.cookies-main-message {
  margin: 0;

  overflow: visible;

  text-align: left;

  opacity: 1;
  transform: translateY(0);
}

.cookies-content h2 {
  margin: 0 0 12px;

  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;

  letter-spacing: 0;

  color: var(--color-primary-light);
  text-align: left;
}

.cookies-content p {
  max-width: none;
  margin: 0 0 14px;

  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;

  color: var(--color-text);
  text-align: left;
}

/* Bloco do checkbox essencial */

.cookies-essential-only {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  margin: 16px 0 14px;
  padding: 14px 0;

  border-top: 1px solid rgba(0, 38, 58, 0.14);
  border-bottom: 1px solid rgba(0, 38, 58, 0.14);

  text-align: left;
}

.cookies-essential-only > div {
  flex: 1 1 auto;
  min-width: 0;
}

.cookies-essential-only strong {
  display: block;

  margin: 0 0 6px;

  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;

  color: var(--color-primary-light);
  text-align: left;
}

.cookies-essential-only p {
  max-width: none;
  margin: 0;

  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;

  color: var(--color-text);
  text-align: left;
}

/* Bloco de recursos de terceiros */

.cookies-third-party-notice {
  margin: 0 0 14px;
  padding: 14px 0;

  border-bottom: 1px solid rgba(0, 38, 58, 0.14);

  text-align: left;
}

.cookies-third-party-notice strong {
  display: block;

  margin: 0 0 6px;

  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;

  color: var(--color-primary-light);
  text-align: left;
}

.cookies-third-party-notice p {
  max-width: none;
  margin: 0;

  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;

  color: var(--color-text);
  text-align: left;
}

/* Link da polÃ­tica */

.cookies-policy-link {
  display: inline-flex;
  justify-content: flex-start;

  width: fit-content;
  margin: 0 0 14px;

  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;

  color: var(--color-primary-light);
  text-align: left;

  transition: color var(--transition);
}

.cookies-policy-link:hover {
  color: var(--color-light);
}

/* AÃ§Ãµes */

.cookies-actions {
  display: flex;
  align-items: center;
  justify-content: stretch;

  width: 100%;

  gap: 8px;
}

.cookies-actions-simple {
  justify-content: stretch;
}

.cookies-buttons {
  display: flex;
  width: 100%;
  gap: 8px;
}

.cookies-actions-simple .cookies-buttons {
  width: 100%;
}

.cookies-btn {
  width: 100%;
  min-height: 38px;
  padding: 0 16px;

  border-radius: 7px;

  font-family: "Spline Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.cookies-btn:hover {
  background-color: var(--color-light);
  border-color: var(--color-light);
  color: var(--color-white);

  transform: translateY(-2px);
}

.cookies-btn-primary {
  background-color: var(--color-primary-light);

  color: var(--color-white);

  border: 1px solid var(--color-primary-light);
}

/* Switch */

.cookies-switch {
  position: relative;

  flex: 0 0 auto;

  width: 44px;
  height: 24px;
}

.cookies-switch input {
  opacity: 0;

  width: 0;
  height: 0;
}

.cookies-switch span {
  position: absolute;
  inset: 0;

  border-radius: 999px;

  background-color: var(--color-muted);

  cursor: not-allowed;

  transition:
    background-color 0.28s ease,
    box-shadow 0.28s ease;
}

.cookies-switch span::before {
  content: "";

  position: absolute;

  left: 4px;
  top: 4px;

  width: 16px;
  height: 16px;

  border-radius: 50%;

  background-color: var(--color-white);

  transition:
    transform 0.28s ease,
    background-color 0.28s ease;
}

.cookies-switch input:checked + span {
  background-color: var(--color-primary-light);
}

.cookies-switch input:checked + span::before {
  transform: translateX(20px);
}

.cookies-switch input:disabled + span {
  opacity: 0.9;
  cursor: not-allowed;
}

/* ==============================
   COOKIES - RESPONSIVO
============================== */

@media (max-width: 560px) {
  .cookies-widget {
    left: 0;
    right: 0;
    bottom: 12px;

    width: 100%;

    pointer-events: none;
  }

  .cookies-container {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0 10px;

    position: static;

    pointer-events: none;
  }

  .cookies-icon-button {
    left: 12px;
    bottom: 12px;

    width: 24px;
    height: 24px;
  }

  .cookies-modal {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 12px;

    width: min(350px, calc(100vw - 20px));
    max-height: calc(100svh - 24px);

    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;

    transform: translate(-50%, 14px) scale(0.98);
  }

  .cookies-modal.is-open {
    transform: translate(-50%, 0) scale(1);
  }

  .cookies-content {
    padding: 16px;

    text-align: left;
  }

  .cookies-main-message,
  .cookies-content h2,
  .cookies-content p,
  .cookies-essential-only,
  .cookies-essential-only strong,
  .cookies-essential-only p,
  .cookies-third-party-notice,
  .cookies-third-party-notice strong,
  .cookies-third-party-notice p {
    text-align: left;
  }

  .cookies-content h2 {
    margin-bottom: 10px;

    font-size: 18px;
    line-height: 1.22;
  }

  .cookies-content p {
    max-width: none;
    margin: 0 0 12px;

    font-size: 12.5px;
    line-height: 1.42;
  }

  .cookies-essential-only {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin: 14px 0 12px;
    padding: 12px 0;
  }

  .cookies-essential-only strong {
    margin-bottom: 5px;

    font-size: 12px;
  }

  .cookies-essential-only p {
    font-size: 11.5px;
    line-height: 1.38;
  }

  .cookies-third-party-notice {
    margin-bottom: 12px;
    padding: 12px 0;
  }

  .cookies-third-party-notice strong {
    font-size: 12px;
  }

  .cookies-third-party-notice p {
    font-size: 11.5px;
    line-height: 1.38;
  }

  .cookies-policy-link {
    justify-content: flex-start;

    margin: 0 0 12px;

    font-size: 13px;
    text-align: left;
  }

  .cookies-buttons {
    width: 100%;
  }

  .cookies-btn {
    min-height: 36px;
    padding: 0 12px;

    font-size: 13.5px;
  }

  .cookies-switch {
    width: 42px;
    height: 23px;
  }

  .cookies-switch span::before {
    left: 4px;
    top: 4px;

    width: 15px;
    height: 15px;
  }

  .cookies-switch input:checked + span::before {
    transform: translateX(19px);
  }
}

@media (max-width: 380px) {
  .cookies-modal {
    width: min(330px, calc(100vw - 20px));
  }

  .cookies-content {
    padding: 14px;
  }

  .cookies-content h2 {
    font-size: 17px;
  }

  .cookies-content p {
    font-size: 12px;
  }

  .cookies-essential-only p,
  .cookies-third-party-notice p {
    font-size: 11px;
  }

  .cookies-policy-link,
  .cookies-btn {
    font-size: 13px;
  }

  .cookies-btn {
    min-height: 34px;
  }

  .cookies-switch {
    width: 40px;
    height: 22px;
  }

  .cookies-switch span::before {
    width: 14px;
    height: 14px;
  }

  .cookies-switch input:checked + span::before {
    transform: translateX(18px);
  }
}

/* ==============================
   RESPONSIVO REFINADO - COMPONENTES
============================== */

@media (max-width: 760px) {
.modal-overlay {
    padding: 14px;
  }

  .modal-box {
    width: 100%;
    max-height: calc(100dvh - 28px);
    padding: 26px 18px;
    overflow-y: auto;
  }

  .modal-header {
    margin-bottom: 20px;
  }

  .modal-header h2 {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .modal-header p,
  .modal-card p,
  .modal-card a,
  .copy-phone {
    font-size: 14px;
  }

  .modal-cards {
    gap: 16px;
  }

  .modal-card {
    padding: 20px 16px;
  }

  .modal-icon {
    margin-bottom: 16px;
  }

  .modal-icon img {
    width: 38px;
    height: 38px;
    padding: 7px;
  }
}

