/* =====================================================================
   회사 선택 첫화면 (포털)
   기준 화면 : FULL HD 1920 x 1080
   글자 크기 : 50~60대 고객 기준으로 크게
   ===================================================================== */

:root {
  --navy: #041b44;
  --bg: #eef3fa;
  --text: #14213d;
  --maxw: 1360px;

  --c-dvr: #1668d0;
  --c-nvr: #12307d;
  --c-unv: #3aa347;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 19px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* ================= HEADER ================= */

.portal-header {
  background: var(--navy);
}

.portal-header-inner {
  max-width: var(--maxw);
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-brand img {
  height: 46px;
  width: auto;
}

.portal-brand span {
  color: #cfe4ff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.portal-header nav a {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
}

.portal-header nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ================= TITLE ================= */

.portal {
  flex: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: auto;
  padding: 30px 24px 36px;
}

.portal-title {
  text-align: center;
  margin-bottom: 26px;
}

.portal-title h1 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--navy);
  margin-bottom: 8px;
}

.portal-title p {
  font-size: 22px;
  color: #4a5b74;
  font-weight: 500;
}

.portal-title b {
  color: #0f56b3;
  font-weight: 900;
}

/* ================= 3개 회사 카드 ================= */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.brand-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid #dbe6f4;
  box-shadow: 0 12px 32px rgba(10, 35, 80, 0.1);
  display: flex;
  flex-direction: column;
  transition: 0.2s;
}

.brand-card:hover,
.brand-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(10, 35, 80, 0.2);
  border-color: #9dc4f0;
}

.brand-card-body {
  padding: 26px 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.brand-logo {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  max-height: 82px;
  width: auto;
  object-fit: contain;
}

/* 로고 아래 "— DVR 카메라 —" 줄 */
.brand-sub {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 16px 0 14px;
}

.brand-sub::before,
.brand-sub::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #1f2937;
}

.brand-sub span {
  font-size: 23px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
}

.brand-device {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.brand-device img {
  max-height: 132px;
  width: auto;
  object-fit: contain;
}

.brand-type {
  text-align: center;
  margin-top: auto;
}

.brand-type strong {
  display: block;
  font-size: 62px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #111827;
}

.brand-type span {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: #111827;
  margin-top: 2px;
}

.brand-card-foot {
  padding: 16px 10px;
  text-align: center;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.brand-card[data-brand="finets_dvr"] .brand-card-foot {
  background: var(--c-dvr);
}
.brand-card[data-brand="finets_nvr"] .brand-card-foot {
  background: var(--c-nvr);
}
.brand-card[data-brand="uniview_dvr"] .brand-card-foot {
  background: var(--c-unv);
}

/* ================= 안내문 ================= */

.portal-note {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
}

.note-icon {
  display: flex;
  color: #1f2937;
}

/* ================= 보조 링크 ================= */

.portal-links {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-links a {
  padding: 13px 24px;
  background: #fff;
  border: 2px solid #cfdff2;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 800;
  color: #114a92;
}

.portal-links a:hover {
  background: #114a92;
  border-color: #114a92;
  color: #fff;
}

.portal-links a.wide {
  background: #114a92;
  border-color: #114a92;
  color: #fff;
}

.portal-links a.wide:hover {
  background: #0b356b;
  border-color: #0b356b;
}

/* ================= FOOTER ================= */

.portal-footer {
  background: var(--navy);
  color: #b7d8ff;
  margin-top: 30px;
}

.portal-footer-inner {
  max-width: var(--maxw);
  margin: auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.pf-tel {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.pf-tel span {
  display: block;
  font-size: 16px;
  color: #8fb6e4;
  font-weight: 700;
}

.pf-tel strong {
  font-size: 26px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.pf-copy {
  font-size: 17px;
}

/* ================= 화면이 작을 때 ================= */

@media (max-width: 1180px) {
  .brand-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: auto;
  }

  .portal-title h1 {
    font-size: 34px;
  }

  .portal-note {
    font-size: 21px;
  }

  .portal-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
