/* ==========================================================================
   Parklane — Final CTA (Private Access) + Footer
   Referral-led: the CTA is an access point, not a sales button. The footer
   is institutional and quiet.
   ========================================================================== */

/* 6. PRIVATE ACCESS ======================================================== */
/* A cinematic closing statement: the door image fills the section; copy sits
   in the dark negative space to its right. */

.access {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(36rem, 52vw, 52rem);
  padding-block: var(--section-y);
  overflow: hidden;
  background: #0d0f0e;               /* matches the image's shadows while it loads */
  color: var(--c-ivory);
}

.access__media,
.access__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.access__media {
  z-index: -2;
}

.access__media img {
  object-fit: cover;
  object-position: 30% 50%;          /* keep the door in frame at every width */
}

/* Only the text side is deepened; the lit door stays untouched */
.access__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 10, 9, 0) 38%, rgba(8, 10, 9, 0.45) 62%, rgba(8, 10, 9, 0.6) 100%),
    linear-gradient(180deg, rgba(8, 10, 9, 0.35) 0%, rgba(8, 10, 9, 0) 22%, rgba(8, 10, 9, 0) 78%, rgba(8, 10, 9, 0.45) 100%);
}

.access__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
}

.access__content {
  grid-column: 2;
  max-width: 30rem;
}

.access .eyebrow {
  color: var(--c-brass);
}

.access__title {
  margin-top: var(--s-6);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

.access__copy {
  margin-top: var(--s-5);
  max-width: 27rem;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--c-ivory-muted);
}

/* Access point: framed by brass rules above and below, like a nameplate */
.access__link {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-6);
  max-width: 22rem;
  margin-top: var(--s-7);
  padding: 1.125rem 0;
  border-top: 1px solid rgba(169, 138, 82, 0.5);
  border-bottom: 1px solid rgba(169, 138, 82, 0.5);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ivory);
}

/* On hover a brighter brass rule draws along the bottom edge */
.access__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--c-brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.access__link .btn__arrow {
  color: var(--c-brass);
  transition: transform var(--dur) var(--ease);
}

.access__link:hover::after,
.access__link:focus-visible::after {
  transform: scaleX(1);
}

.access__link:hover .btn__arrow,
.access__link:focus-visible .btn__arrow {
  transform: translateX(4px);
}

/* 7. FOOTER ================================================================= */

.site-footer {
  background: #0a0f0c;
  color: var(--c-ivory-muted);
  padding-block: clamp(4rem, 3rem + 3vw, 6rem) var(--s-6);
  font-size: var(--fs-small);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--s-7);
}

.site-footer__tagline {
  margin-top: var(--s-5);
  max-width: 19rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--c-ivory);
}

.site-footer__heading {
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid rgba(169, 138, 82, 0.3);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-brass);
}

.site-footer__list li + li {
  margin-top: var(--s-2);
}

.site-footer__list a,
.site-footer__contact a {
  transition: color var(--dur) var(--ease);
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible,
.site-footer__contact a:hover,
.site-footer__contact a:focus-visible {
  color: var(--c-ivory);
}

.site-footer__contact {
  line-height: 1.8;
}

.site-footer__contact a {
  color: var(--c-ivory-muted);
  white-space: nowrap;
}

.site-footer__base {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(169, 138, 82, 0.22);
  font-size: 0.75rem;
  color: var(--c-ivory-faint);
}

/* Responsive ---------------------------------------------------------------- */

/* Below 900px there isn't room beside the door: the image leads full-width,
   fades into the dark ground, and the invitation follows beneath it. */
@media (max-width: 899px) {
  .access {
    display: block;
    min-height: 0;
    padding-block: 0 var(--section-y);
  }

  .access__media {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .access__media img {
    object-position: 22% 50%;
  }

  .access__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 15, 14, 0) 55%, #0d0f0e 100%);
  }

  .access__shade {
    display: none;
  }

  .access__layout {
    grid-template-columns: 1fr;
    margin-top: calc(var(--s-6) * -1);
    position: relative;
  }

  .access__content {
    grid-column: 1;
    max-width: 34rem;
  }
}

@media (max-width: 640px) {
  .access__media {
    aspect-ratio: 4 / 5;
  }

  .access__media img {
    object-position: 20% 50%;
  }

  .access__link {
    max-width: none;
  }
}

@media (min-width: 900px) and (max-width: 1024px) {
  /* Image anchored left so the door clears the copy column */
  .access__media img {
    object-position: 0% 50%;
  }

  .access__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    column-gap: var(--s-6);
  }

  .access__title {
    font-size: clamp(2rem, 1.2rem + 2.4vw, 2.75rem);
  }
}

@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .site-footer__contact a {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
