/* New Clients portal entry — isolated visual redesign, 2026-07-17 */

.portal-entry-page {
  width: 100%;
  max-width: none;
  min-height: 72vh;
  margin: 0;
  padding: 0 0 clamp(52px, 5vw, 82px);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 72%, rgba(201, 166, 70, 0.12), transparent 24%),
    linear-gradient(180deg, #edf3f8 0%, #f8fafc 70%, #ffffff 100%);
}

.portal-entry-hero {
  position: relative;
  min-height: clamp(500px, 48vw, 650px);
  overflow: hidden;
  isolation: isolate;
  background: url("/images/real-client/client-home-azaleas-web.jpg") center 54% / cover no-repeat;
}

.portal-entry-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
  transform: scale(1.015);
}

.portal-entry-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 21, 36, 0.96) 0%, rgba(3, 27, 49, 0.88) 43%, rgba(3, 27, 49, 0.48) 72%, rgba(3, 27, 49, 0.22) 100%),
    linear-gradient(180deg, rgba(3, 27, 49, 0.18), rgba(3, 27, 49, 0.74));
}

.portal-entry-nav,
.portal-entry-intro,
.portal-entry-page > .portal-grid {
  width: min(var(--site-wide), calc(100% - var(--site-gutter)));
  margin-right: auto;
  margin-left: auto;
}

.portal-entry-nav {
  padding-top: clamp(22px, 2.4vw, 34px);
}

.portal-return-top {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 0;
  background: rgba(3, 27, 49, 0.42);
  color: #ffffff;
  padding: 0 17px;
  font: 850 11px/1 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.portal-return-top::before {
  content: "←";
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
}

.portal-return-top:hover,
.portal-return-top:focus-visible {
  border-color: var(--gold);
  background: rgba(3, 27, 49, 0.72);
}

.portal-entry-intro {
  display: grid;
  align-content: center;
  min-height: clamp(390px, 39vw, 520px);
  padding: clamp(48px, 5vw, 76px) 0 clamp(118px, 10vw, 156px);
}

.portal-entry-page .portal-entry-intro .eyebrow {
  margin: 0 0 18px;
  color: #f0d67f;
}

.portal-entry-page .portal-entry-intro h1 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 6.2vw, 92px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
}

.portal-entry-page .portal-entry-intro > p:not(.eyebrow) {
  max-width: 700px;
  margin: 24px 0 0;
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.65;
}

.portal-entry-page > .portal-grid {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  margin-top: clamp(-108px, -7vw, -78px);
}

.portal-entry-page .portal-card {
  position: relative;
  display: grid;
  min-height: clamp(320px, 28vw, 410px);
  align-content: end;
  gap: 13px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(201, 166, 70, 0.58);
  border-radius: 0;
  padding: clamp(28px, 3.2vw, 46px);
  color: #ffffff;
  box-shadow: 0 28px 70px rgba(3, 27, 49, 0.23);
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.portal-entry-page .portal-card:nth-child(1) {
  background: url("/images/real-client/client-home-tudor-web.jpg") center 48% / cover no-repeat;
}

.portal-entry-page .portal-card:nth-child(2) {
  background: url("/images/real-client/client-home-craftsman-web.jpg") center 48% / cover no-repeat;
}

.portal-entry-page .portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 27, 49, 0.1) 8%, rgba(3, 27, 49, 0.52) 48%, rgba(3, 18, 31, 0.96) 100%),
    linear-gradient(90deg, rgba(3, 27, 49, 0.36), transparent 70%);
}

.portal-entry-page .portal-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 4px;
  z-index: 1;
  background: var(--gold);
}

.portal-entry-page .portal-card:hover,
.portal-entry-page .portal-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 34px 82px rgba(3, 27, 49, 0.32);
  transform: translateY(-5px);
}

.portal-entry-page .portal-card > svg {
  box-sizing: content-box;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(201, 166, 70, 0.56);
  background: rgba(3, 27, 49, 0.68);
  color: #f0d67f;
  padding: 11px;
}

.portal-entry-page .portal-card h3 {
  margin: 4px 0 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.2vw, 36px);
  font-weight: 400;
  line-height: 1.05;
}

.portal-entry-page .portal-card p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.56;
}

.portal-entry-page .portal-card span {
  width: max-content;
  margin-top: 8px;
  border-bottom: 1px solid rgba(201, 166, 70, 0.62);
  padding: 0 0 7px;
  color: #f0d67f;
  font-size: 12px;
}

.portal-entry-page .portal-back {
  display: flex;
  width: max-content;
  min-height: 44px;
  align-items: center;
  margin: clamp(36px, 4vw, 56px) auto 0;
  border-radius: 0;
  padding: 0 20px;
}

.portal-entry-page .portal-back::before {
  content: "←";
  margin-right: 9px;
  color: var(--gold-dark);
  font-size: 16px;
}

@media (max-width: 900px) {
  .portal-entry-hero {
    min-height: 520px;
    background-position: 64% 50%;
  }

  .portal-entry-hero::after {
    background:
      linear-gradient(90deg, rgba(3, 21, 36, 0.96) 0%, rgba(3, 27, 49, 0.86) 68%, rgba(3, 27, 49, 0.58) 100%),
      linear-gradient(180deg, rgba(3, 27, 49, 0.16), rgba(3, 27, 49, 0.78));
  }

  .portal-entry-page > .portal-grid {
    grid-template-columns: 1fr;
    margin-top: -76px;
  }

  .portal-entry-page .portal-card {
    min-height: 330px;
  }
}

@media (max-width: 640px) {
  .portal-entry-nav,
  .portal-entry-intro,
  .portal-entry-page > .portal-grid {
    width: min(100% - 28px, var(--site-wide));
  }

  .portal-entry-hero {
    min-height: 500px;
    background-position: 66% 50%;
  }

  .portal-entry-intro {
    min-height: 408px;
    padding: 36px 0 116px;
  }

  .portal-entry-page .portal-entry-intro h1 {
    font-size: clamp(50px, 15vw, 68px);
  }

  .portal-entry-page .portal-entry-intro > p:not(.eyebrow) {
    margin-top: 20px;
    font-size: 15px;
  }

  .portal-entry-page > .portal-grid {
    gap: 14px;
    margin-top: -70px;
  }

  .portal-entry-page .portal-card {
    min-height: 300px;
    padding: 26px 22px;
  }

  .portal-entry-page .portal-card:nth-child(1),
  .portal-entry-page .portal-card:nth-child(2) {
    background-position: 58% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-entry-page .portal-card,
  .portal-return-top {
    transition: none;
  }
}
