:root {
  --althima-navy: #08263b;
  --althima-navy-2: #0d334b;
  --althima-teal: #18aaa7;
  --althima-teal-dark: #0b7d86;
  --althima-orange: #f28a22;
  --text: #101828;
  --muted: #667085;
  --line: #d8e4e8;
  --bg: #f3f7f8;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #08263b;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #08263b;
  overflow-x: hidden;
}

/*
  Segurança:
  Garante que não existem pseudo-elementos antigos
  a colocar imagens por cima do conteúdo.
*/
html::before,
html::after,
body::before,
body::after,
.page::before,
.page::after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px 14px;

  background-color: #08263b;
  background-image:
    linear-gradient(rgba(8, 38, 59, 0.08), rgba(8, 38, 59, 0.08)),
    url("../img/fundo.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  background-attachment: fixed;
}

.phone-frame {
  position: relative;
  z-index: 10;
  width: min(100%, 405px);
  padding: 10px;
  border-radius: 38px;
  background: #050505;
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  z-index: 20;
  overflow: hidden;
  border-radius: 29px;
  background-color: #ffffff;
  background-image: url("../img/generated/card-watermark.svg");
  background-repeat: no-repeat;
  background-position: left 26px bottom 18px;
  background-size: 225px auto;
  min-height: auto;
}

.card-header {
  position: relative;
  z-index: 21;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 24px 14px;
  background: #ffffff;
}

.brand img {
  display: block;
  width: 168px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}


.top-line {
  position: relative;
  z-index: 21;
  height: 4px;
  background: linear-gradient(90deg, var(--althima-teal), var(--althima-orange));
}

.profile {
  position: relative;
  z-index: 21;
  text-align: center;
  padding: 22px 26px 12px;
}

.photo-wrap {
  width: 112px;
  height: 112px;
  margin: 0 auto 13px;
  padding: 4px;
  border-radius: 50%;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--althima-teal), var(--althima-orange)) border-box;
  border: 3px solid transparent;
}

.photo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #e7eef1;
}

h1 {
  margin: 0;
  color: var(--althima-navy);
  font-size: clamp(1.75rem, 7vw, 2.22rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.role {
  margin: 6px 0 12px;
  color: var(--althima-orange);
  font-size: 1.08rem;
  font-weight: 750;
}

.business-block {
  margin: 0 auto;
  max-width: 340px;
  padding-top: 10px;
  border-top: 1px solid #e8eef0;
}

.supplier-logos {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 auto 8px;
}

.supplier-logos.has-logos {
  display: flex;
}

.supplier-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  max-width: 190px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #ffffff;
}

.supplier-logo-link img {
  display: block;
  max-height: 40px;
  max-width: 174px;
  object-fit: contain;
}

#businessTitle {
  margin: 0;
  color: var(--althima-navy);
  font-weight: 750;
  font-size: 0.98rem;
}

#businessSubtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
  white-space: pre-line;
}

.details {
  position: relative;
  z-index: 21;
  padding: 8px 32px 13px;
  display: grid;
  gap: 10px;
}

.detail-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  color: #253044;
  font-size: 0.96rem;
  line-height: 1.25;
  word-break: break-word;
}

.detail-row:hover {
  color: var(--althima-teal-dark);
}

.icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--althima-navy);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.icon svg path {
  fill: currentColor;
}

.actions {
  position: relative;
  z-index: 21;
  padding: 4px 28px 16px;
  display: grid;
  gap: 10px;
}

.primary-action,
.secondary-action,
.linkedin-action {
  min-height: 48px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 750;
  font-size: 0.95rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.primary-action {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--althima-teal), #0b9e98);
  box-shadow: 0 10px 22px rgba(24, 170, 167, 0.22);
  cursor: pointer;
}

.primary-action:hover,
.secondary-action:hover,
.linkedin-action:hover,
.cta-card a:hover {
  transform: translateY(-1px);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.secondary-action {
  color: #1e2b3d;
  border: 2px solid #c7dadd;
  background: #ffffff;
}

.secondary-action.full {
  grid-column: 1 / -1;
}

.linkedin-action {
  justify-content: flex-start;
  padding: 0 16px;
  border: 2px solid #d2e0e3;
  background: #ffffff;
}

.linkedin-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #0a66c2;
  border-radius: 5px;
  font-weight: 900;
  font-size: 1.18rem;
}

.cta-card {
  position: relative;
  z-index: 21;
  padding: 0 28px 20px;
}

.cta-card a {
  min-height: 72px;
  display: grid;
  grid-template-columns: 46px 1fr 22px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(242, 138, 34, 0.12), transparent 36%),
    linear-gradient(135deg, var(--althima-navy), #051a2b);
  border-radius: 16px;
  box-shadow: 0 15px 34px rgba(8, 38, 59, 0.2);
  transition: transform 0.18s ease;
}

.cta-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.cta-icon svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.cta-card strong {
  display: block;
  font-size: 0.98rem;
}

.cta-card small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.3;
  font-size: 0.82rem;
}

.arrow {
  font-size: 1.45rem;
  color: var(--althima-orange);
}

.footer {
  position: relative;
  z-index: 21;
  padding: 0 24px 18px;
  text-align: center;
  color: #98a2b3;
  font-size: 0.72rem;
}

.footer p {
  margin: 0;
}

.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 430px) {
  .page {
    padding: 0;
    align-items: stretch;
    background-size: cover;
  }

  .phone-frame {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .card {
    border-radius: 0;
    min-height: 100vh;
  }

  .details,
  .actions,
  .cta-card {
    padding-left: 22px;
    padding-right: 22px;
  }

  .card-header {
    padding-left: 22px;
    padding-right: 22px;
  }

  .brand img {
    width: 158px;
  }

  .profile {
    padding-top: 18px;
  }

  .photo-wrap {
    width: 106px;
    height: 106px;
  }
}