/* Componentes — estilo flat / moderno (referência Pudu) */

:root {
  --dr-radius: 4px;
}

.drbtn {
  --_bg: var(--azure-500);
  --_fg: var(--white);
  --_bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  border: 1px solid var(--_bd);
  background: var(--_bg);
  color: var(--_fg);
  border-radius: var(--dr-radius);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.drbtn--md { height: 44px; padding: 0 22px; font-size: 15px; }
.drbtn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.drbtn--lg { height: 48px; padding: 0 28px; font-size: 16px; }
.drbtn--full { width: 100%; }

.drbtn--primary { --_bg: var(--azure-500); --_fg: var(--white); }
.drbtn--primary:hover { --_bg: var(--azure-600); }

.drbtn--deep { --_bg: var(--navy-600); --_fg: var(--white); }
.drbtn--deep:hover { --_bg: var(--navy-700); }

.drbtn--secondary { --_bg: var(--white); --_fg: var(--navy-700); --_bd: var(--border-default); }
.drbtn--secondary:hover { --_bd: var(--azure-500); --_fg: var(--azure-600); }

.drbtn--ghost { --_bg: transparent; --_fg: var(--navy-700); --_bd: transparent; }
.drbtn--ghost:hover { color: var(--azure-600); }

.drbtn:disabled,
.drbtn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.drbtn svg { width: 1.1em; height: 1.1em; }

.drcard {
  background: var(--surface-card);
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.drcard--interactive { cursor: pointer; }
.drcard--interactive:hover .dr-visual-card__media img,
.drcard--interactive:hover .dr-photo__mark { opacity: 0.92; }

.drbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: var(--dr-radius);
  border: 1px solid var(--border-subtle);
  background: var(--white);
  color: var(--ink-600);
}

.drbadge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal-500); }
.drbadge--online { background: var(--white); color: var(--ink-600); }

.drfield { display: flex; flex-direction: column; gap: 7px; font-family: var(--font-sans); }
.drfield__label { font-size: 14px; font-weight: var(--weight-semibold); color: var(--text-primary); }
.drfield__wrap { position: relative; display: flex; align-items: center; }
.drinput {
  width: 100%;
  height: 44px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface-page);
  border: 1px solid var(--border-default);
  border-radius: var(--dr-radius);
  padding: 0 14px;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.drinput::placeholder { color: var(--text-tertiary); }
.drinput:hover { border-color: var(--border-strong); }
.drinput:focus {
  outline: none;
  border-color: var(--azure-500);
}

.drinput--icon { padding-left: 40px; }
.drfield__icon { position: absolute; left: 12px; color: var(--text-tertiary); display: flex; pointer-events: none; }
.drfield__icon svg { width: 18px; height: 18px; }

.drstat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-sans);
  background: var(--ink-50);
  padding: 28px 24px;
  border-radius: var(--dr-radius);
  border: 1px solid var(--border-subtle);
}

.drstat__value {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--azure-500);
  font-size: 40px;
}

.drstat--lg .drstat__value { font-size: 48px; }
.drstat__value--phrase {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.drstat__value em { font-style: normal; color: var(--azure-500); }
.drstat__label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--weight-medium);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-secondary);
  line-height: 1.45;
}

.dricon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--dr-radius);
  border: none;
  background: transparent;
  color: var(--navy-700);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.dricon--md { width: 40px; height: 40px; }
.dricon svg { width: 20px; height: 20px; }
.dricon--ghost:hover { background: var(--ink-50); }

.dr-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.dr-eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--azure-500);
}

.dr-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: var(--weight-semibold);
  font-size: 15px;
  color: var(--azure-500);
}

.dr-link-arrow:hover { color: var(--azure-600); opacity: 1; }

.dr-photo {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
  border-radius: 0;
}

.dr-photo--light { background: #e8eef4; }
.dr-photo--deep { background: #c5d4e4; }
.dr-photo--industry { background: #d8dee8; }

.dr-photo__mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38%;
  max-width: 180px;
  height: auto;
  opacity: 0.18;
  object-fit: contain;
}

.dr-photo__label {
  display: none;
}

.dr-visual-card { display: block; }

.dr-visual-card__media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.dr-visual-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px;
  background: linear-gradient(180deg, rgba(8, 16, 32, 0.55) 0%, rgba(8, 16, 32, 0.15) 45%, rgba(8, 16, 32, 0.55) 100%);
  color: var(--white);
}

.dr-visual-card__overlay--bottom {
  justify-content: flex-end;
  background: linear-gradient(0deg, rgba(8, 16, 32, 0.72) 0%, transparent 60%);
}

.dr-visual-card__overlay h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: var(--weight-bold);
  color: var(--white);
  line-height: 1.15;
}

.dr-visual-card__overlay .dr-link-arrow {
  margin-top: 12px;
  color: var(--white);
}

.dr-visual-card__overlay .dr-link-arrow:hover { color: var(--azure-200); }

.dr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 20, 38, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.dr-modal__panel {
  background: var(--surface-card);
  border-radius: var(--dr-radius);
  padding: 32px;
  width: min(460px, 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  position: relative;
}

.dr-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 4px;
}

.dr-modal__success {
  text-align: center;
  padding: 16px 0;
  display: none;
}

.dr-modal__success.is-visible { display: block; }

.dr-success-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--dr-radius);
  background: var(--signal-100);
  color: #0a8e80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
