/* ──────────────────────────────────────────────────────────────
   Alba Parkdale — Website styles
   ────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--alba-beige-light); color: var(--fg1); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* === Page chrome ============================================== */
.alba-page { position: relative; min-height: 100vh; }

/* === Header =================================================== */
.alba-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: url('./assets/nav.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--line-subtle);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-soft),
              transform var(--dur-base) var(--ease-soft);
}
.alba-header.is-revealed { opacity: 1; transform: translateY(0); pointer-events: auto; }

.alba-header__mark { display: flex; align-items: center; }
.alba-header__wordmark { height: 28px; width: auto; display: block; filter: brightness(0) sepia(1); }

.alba-header__cta {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--alba-walnut); color: var(--alba-beige-light);
  padding: 11px 18px; border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.alba-header__cta:hover { background: var(--alba-walnut-deep); }

/* === Hero (sits behind the beige curtain) ==================== */
.alba-hero {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1;
  height: 100vh;
  background: var(--alba-walnut);
  color: var(--alba-beige-light);
  overflow: hidden;
}
.alba-hero-spacer { height: 100vh; }
.alba-hero__image { position: absolute; inset: 0; }
.alba-hero__image img,
.alba-hero__image video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02);
}
.alba-hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(38,24,18,0.32) 0%, rgba(38,24,18,0) 28%, rgba(38,24,18,0) 60%, rgba(38,24,18,0.55) 100%);
}

.alba-hero__chrome {
  position: relative; z-index: 2;
  height: 100%;
  padding: 40px 48px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-right: calc(440px + 48px);
}

.alba-hero__topline {
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(245,239,227,0.8);
}
.alba-hero__topline .alba-eyebrow { color: rgba(245,239,227,0.85); }

.alba-hero__mark-row { display: flex; align-items: flex-start; gap: 18px; }
.alba-hero__wordmark {
  display: block;
  width: clamp(360px, 60vw, 880px);
  height: auto;
  filter: brightness(0) saturate(100%) invert(96%) sepia(7%) saturate(420%) hue-rotate(355deg) brightness(99%) contrast(96%);
}

.alba-hero__bottom { display: flex; flex-direction: column; gap: 24px; }
.alba-hero__mobile-cta { display: none; }
.alba-mobile-br { display: none; }

.alba-hero__lede {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.25;
  margin: 0; max-width: 520px;
  color: var(--alba-beige-light);
}

/* === Register form ============================================ */
.alba-rf__tab {
  position: fixed; top: 50%; right: 0; transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 200px;
  background: var(--alba-powder-blue);
  color: #fff;
  border: 0;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 14px;
  box-shadow: -6px 0 22px -10px rgba(61,42,31,0.30);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-soft),
              transform var(--dur-base) var(--ease-soft),
              background-color var(--dur-fast) var(--ease-out);
}
.alba-rf__tab.is-revealed { opacity: 1; pointer-events: auto; }
.alba-rf__tab svg { stroke: currentColor; }
.alba-rf__tab span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
}
.alba-rf__tab:hover { background: var(--alba-powder-blue-deep); }
.alba-rf__tab.is-hidden { transform: translate(60px, -50%); pointer-events: none; opacity: 0; }

.alba-rf {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 50;
  width: 440px; max-width: 92vw;
  background: var(--alba-powder-blue);
  color: #fff;
  transform: translateX(100%);
  box-shadow: -10px 0 40px -16px rgba(61,42,31,0);
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 800ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.alba-rf.is-open { transform: translateX(0); box-shadow: -10px 0 40px -16px rgba(61,42,31,0.35); }
.alba-rf__inner { padding: 32px 40px 40px; min-height: 100%; display: flex; flex-direction: column; gap: 22px; }

.alba-rf__head { display: flex; align-items: center; justify-content: space-between; }
.alba-rf__close {
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(255,255,255,0.4);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.alba-rf__close:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }

.alba-rf__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: 36px; line-height: 1.05; letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.alba-rf__form { display: flex; flex-direction: column; gap: 18px; }
.alba-rf__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.alba-rf__field { display: flex; flex-direction: column; gap: 6px; }
.alba-rf__label {
  font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
}
.alba-rf__field input,
.alba-rf__field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 6px 0 8px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
  letter-spacing: 0.01em;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.alba-rf__field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 16px; }
.alba-rf__field select option { color: var(--fg1); }
.alba-rf__field input::placeholder { color: rgba(255,255,255,0.55); }
.alba-rf__field input:focus,
.alba-rf__field select:focus { border-bottom-color: #fff; }

.alba-rf__submit {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  background: var(--alba-walnut); color: var(--alba-beige-light);
  border: 0; border-radius: var(--radius-sm);
  padding: 16px 24px;
  margin-top: 8px;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.alba-rf__submit:hover { background: var(--alba-walnut-deep); }

.alba-rf__legal { font-size: 11px; line-height: 1.5; color: rgba(255,255,255,0.75); margin: 0; }
.alba-rf__legal a { border-bottom: 1px solid rgba(255,255,255,0.5); padding-bottom: 1px; }

/* === Beige editorial section ================================== */
.alba-beige {
  position: relative; z-index: 2;
  background: var(--alba-beige);
  padding: 128px 48px 12vh;
  box-shadow: 0 -24px 60px -28px rgba(38, 24, 18, 0.35);
}
.alba-beige__inner { max-width: 1280px; margin: 0 auto; }
.alba-beige__head { max-width: 720px; margin-bottom: 20vh; }
.alba-beige__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(36px, 3.8vw, 54px); line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 16px 0 24px;
  color: var(--alba-walnut);
}
.alba-beige__intro {
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.6; color: var(--fg2); margin: 0;
  max-width: 460px;
}
.alba-beige__intro p { margin: 0 0 12px; }
.alba-beige__intro p:last-child { margin-bottom: 0; }

.alba-beige__moment-register {
  display: inline-flex; align-items: center; align-self: flex-start;
  margin-top: 4px;
  padding: 12px 24px;
  background: transparent;
  color: var(--alba-walnut);
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--alba-walnut); border-radius: 2px; cursor: pointer;
  transition: background 200ms var(--ease-soft), color 200ms var(--ease-soft);
}
.alba-beige__moment-register:hover {
  background: var(--alba-walnut); color: var(--alba-beige-light);
}

.alba-beige__register-cta {
  display: inline-flex; align-items: center;
  margin-top: 32px;
  padding: 14px 28px;
  background: var(--alba-walnut);
  color: var(--alba-beige-light);
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: none; border-radius: 2px; cursor: pointer;
  transition: opacity 200ms var(--ease-soft);
}
.alba-beige__register-cta:hover { opacity: 0.85; }

.alba-beige__grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 96px;
  align-items: start;
}

.alba-beige__col { display: flex; flex-direction: column; }
.alba-beige__moment {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 460px;
  min-height: 50vh;
  justify-content: center;
  opacity: 0.12;
  transition: opacity 2400ms var(--ease-soft);
}
.alba-beige__moment.is-active { opacity: 1; }
.alba-beige__moment-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--fg3); margin-bottom: 4px;
}
.alba-beige__moment-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 4px 0 8px; color: var(--alba-walnut);
}
.alba-beige__moment p {
  font-family: var(--font-sans);
  font-size: 15px; line-height: 1.6; color: var(--fg2); margin: 0;
  max-width: 460px;
}

/* Sticky image column
   Height = 100vh minus 560px (nav 64 + section top-pad 128 + bottom clearance 368).
   JS calculates `top` once on load/resize — no scroll listener, prevents jitter. */
.alba-beige__sticky {
  position: sticky; top: 128px;
  height: calc(100vh - 560px);
}
.alba-beige__stack {
  position: relative;
  width: 100%; height: 100%;
  background: var(--alba-beige-deep);
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.alba-beige__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-soft);
}
.alba-beige__img.is-active { opacity: 1; }

/* Per-moment image — mobile only */
.alba-beige__moment-img { display: none; }

/* === Yellow atmospheric section =============================== */
.alba-yellow {
  position: relative; z-index: 2;
  background: var(--alba-yellow);
  padding: 200px 48px 160px;
  overflow: hidden;
}
.alba-yellow__texture {
  position: absolute; inset: 0; pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.alba-yellow__texture img { width: 100%; height: 100%; object-fit: cover; display: block; }

.alba-yellow__inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.alba-yellow__statement {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(26px, 2.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--alba-walnut);
  margin: 32px 0 48px;
  max-width: 820px;
}

.alba-yellow__cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--alba-walnut);
  border-bottom: 1px solid var(--alba-walnut);
  padding-bottom: 6px;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.alba-yellow__cta:hover { opacity: 0.7; }

/* === Footer =================================================== */
.alba-footer {
  position: relative; z-index: 2;
  background: var(--alba-walnut-deep);
  color: var(--alba-beige-light);
  padding: 80px 48px 56px;
}
.alba-footer__inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 48px;
  align-items: end;
}
.alba-footer__brand { display: flex; flex-direction: column; gap: 8px; }
.alba-footer__mark-img { height: 52px; width: auto; display: block; }

.alba-footer__credits {
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-template-rows: auto auto;
  column-gap: 48px;
  row-gap: 20px;
  justify-content: center;
  justify-items: center;
  align-items: end;
}
.alba-footer__label { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245,239,227,0.55); }
.alba-footer__logo-link { display: flex; align-items: flex-end; }
.alba-footer__logo-link .alba-footer__logo {
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.alba-footer__logo-link:hover .alba-footer__logo {
  filter: brightness(0) invert(1) sepia(0.55) saturate(1.4);
  opacity: 0.9;
}
.alba-footer__logo { height: 16px; width: auto; display: block; filter: brightness(0) invert(1) sepia(0.25); }
.alba-footer__logo--lg { height: 42px; }
.alba-footer__logo--md { height: 22px; }

.alba-footer__legal { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,239,227,0.55); }
.alba-footer__legal a { border-bottom: 1px solid rgba(245,239,227,0.3); padding-bottom: 2px; transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.alba-footer__legal a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }

/* === Legal pages (privacy-policy.html, disclaimer.html) ======= */
.alba-legal-header {
  background: var(--alba-walnut-deep);
  padding: 0 48px;
  height: 72px;
  display: flex; align-items: center;
}
.alba-legal-header__wordmark { height: 28px; width: auto; display: block; }

.alba-legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 48px 120px;
}
.alba-legal-main h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--alba-walnut);
  margin: 0 0 48px;
}
.alba-legal-main h2 {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg2);
  margin: 40px 0 12px;
}
.alba-legal-main p {
  font-family: var(--font-sans);
  font-size: 15px; line-height: 1.7; color: var(--fg2);
  margin: 0 0 20px;
}
.alba-legal-main a { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.alba-legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg2);
  margin-bottom: 56px;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.alba-legal-back:hover { color: var(--alba-walnut); }

/* === 404 page ================================================= */
.alba-404 {
  min-height: 100vh;
  background: var(--alba-walnut-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 48px;
  gap: 32px;
}
.alba-404__wordmark { height: 40px; width: auto; display: block; }
.alba-404__code {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(245,239,227,0.4);
}
.alba-404__heading {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.1;
  color: var(--alba-beige-light);
  margin: 0;
}
.alba-404__link {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--alba-beige-light);
  border-bottom: 1px solid rgba(245,239,227,0.4);
  padding-bottom: 4px;
}
.alba-404__link:hover { border-bottom-color: var(--alba-beige-light); }

/* === Responsive ============================================== */
@media (max-width: 980px) {
  .alba-hero__chrome { padding: 32px 24px 64px; justify-content: space-between; }
  .alba-hero__wordmark { width: 100%; }
  .alba-hero__mobile-cta {
    display: inline-flex; align-self: flex-start;
    font-family: var(--font-sans); font-size: 11px;
    letter-spacing: 0.22em; text-transform: uppercase;
    background: transparent;
    color: var(--alba-beige-light);
    border: 1px solid rgba(245,239,227,0.6);
    border-radius: var(--radius-sm);
    padding: 13px 20px;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  }
  .alba-hero__mobile-cta:hover { background: rgba(245,239,227,0.12); border-color: rgba(245,239,227,0.9); }
  .alba-rf { width: 100%; bottom: 0; top: auto; max-height: 80vh; transform: translateY(100%); border-radius: 16px 16px 0 0; }
  .alba-rf.is-open { transform: translateY(0); }
  .alba-rf__tab { top: auto; bottom: 0; right: 16px; transform: translateY(100%); width: auto; height: 48px; padding: 0 18px; border-radius: 4px 4px 0 0; flex-direction: row; gap: 8px; }
  .alba-rf__tab span { writing-mode: horizontal-tb; transform: none; }
  .alba-rf__tab.is-hidden { transform: translateY(0) translateY(60px); }
  .alba-beige { padding: 72px 24px 80px; }
  .alba-beige__head { margin-bottom: 56px; }
  .alba-beige__grid { grid-template-columns: 1fr; gap: 0; }
  .alba-beige__sticky { display: none; }
  .alba-beige__moment { min-height: auto; gap: 14px; }
  .alba-beige__moment-img {
    display: block;
    width: 100%; aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
  }
  .alba-beige__moment-register { display: none; }
  .alba-beige__col { gap: 56px; }
  .alba-yellow { padding: 96px 24px 56px; }
  .alba-mobile-br { display: block; }
  .alba-footer { padding: 56px 24px; }
  .alba-footer__inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .alba-footer__brand { display: none; }
  .alba-footer__credits { grid-template-columns: 1fr 1fr; row-gap: 12px; column-gap: 16px; }
  .alba-footer__credits > :nth-child(3) { grid-column: 1; grid-row: 3; }
  .alba-footer__credits > :nth-child(4) { grid-column: 2; grid-row: 3; }
  .alba-footer__credits > :nth-child(5) { grid-column: 1; grid-row: 2; }
  .alba-footer__credits > :nth-child(6) { grid-column: 2; grid-row: 2; }
  .alba-footer__credits > :nth-child(7) { grid-column: 1; grid-row: 4; }
  .alba-footer__credits > :nth-child(8) { grid-column: 2; grid-row: 4; }
  .alba-footer__logo--lg { height: 32px; }
  .alba-footer__legal { align-items: center; text-align: center; margin-top: 24px; }
  .alba-header { padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
