@import url("fonts.css");

:root {
  --np-primary: #2ab6b8;
  --np-primary-dark: #1195a5;
  --np-accent: #ea6018;
  --np-secondary: #264d5a;
  --np-neutral: #f2f5f8;
}

/* FIX: evita overflow (width + padding) em botões/links */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Open Sans", sans-serif;
  background: #1a343c;
  color: #ffffff;
}

.full-height {
  min-height: 100vh;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}

/* LINKS (desktop: topo direito) */
.top-right.links {
  position: absolute;
  top: 24px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-right.links a {
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.top-right.links a:hover {
  color: var(--np-accent);
}

/* CENTRALIZA O CONTEÚDO */
.content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-card {
  background: #ffffff;
  color: var(--np-secondary);
  padding: 48px 56px;
  border-radius: 20px;
  box-shadow: 0 25px 65px rgba(5, 24, 31, 0.35);
  max-width: 420px;
  width: 100%;
  overflow: hidden; /* segurança extra: nada “vaza” do card */
}

.brand-card img {
  display: block;
  max-width: 220px;
  width: 100%;
  margin: 0 auto 24px auto;
}

.brand-card h1 {
  font-size: 24px;
  margin: 0 0 32px;
  font-weight: 600;
}

.brand-card .cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.brand-card .cta-group a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: #ffffff;
  background-color: var(--np-primary);
  box-shadow: 0 12px 24px rgba(17, 149, 165, 0.35);
  max-width: 100%;
}

.brand-card .cta-group a:hover {
  background-color: var(--np-primary-dark);
  box-shadow: 0 16px 30px rgba(17, 149, 165, 0.45);
}

.brand-card .cta-group a.cta-secondary {
  background-color: var(--np-accent);
  box-shadow: 0 12px 24px rgba(234, 96, 24, 0.3);
}

.brand-card .cta-group a.cta-secondary:hover {
  background-color: #d55a14;
  box-shadow: 0 16px 30px rgba(213, 90, 20, 0.45);
}

/* MOBILE */
@media (max-width: 640px) {
  /* Links centralizados e alinhados no topo */
  .top-right.links {
    left: 0;
    right: 0;
    top: 16px;
    width: 100%;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  /* espaço para links não “encostarem” no card */
  .flex-center {
    padding-top: 80px;
  }

  .brand-card {
    padding: 40px 32px;
  }

  /* FIX principal: grupo e botões ocupam 100% do card sem estourar */
  .brand-card .cta-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .brand-card .cta-group a {
    width: 100%;
    margin: 0;
  }
}
