/* Redesign demo — applies ONLY to estate-demo.md (everything scoped under .estate-demo).
   Accent family: the chrome rose-brown of the LARVOTTO logotype and the manager
   site's brand tone (#8f7c82 appears in their stylesheet). Site-wide theme in
   extra.css is untouched. */

.estate-demo {
  --ed-serif: "Playfair Display", Georgia, serif;
  --ed-bronze-dark: #57444a;   /* headings, numerals — deep end of the logotype */
  --ed-bronze-mid: #8f7c82;    /* borders — the manager site's brand tone */
  --ed-bronze-light: #c7aeb2;  /* chrome highlight */
}

/* ---------- hero ---------- */

.estate-demo .ed-hero {
  position: relative;
  height: 72vh;
  min-height: 420px;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* photo lives on ::before so it can zoom on load without disturbing the scrim.
   Uses the independent `scale`/`translate` properties so the settle zoom and the
   scroll drift compose instead of overriding each other. */
.estate-demo .ed-hero::before {
  content: "";
  position: absolute;
  inset: -12% 0;          /* headroom for the scroll drift */
  background: url("../assets/images/estate/hero-facade.jpg") center 30% / cover no-repeat;
  animation: ed-hero-settle 9s ease-out both;
}

@supports (animation-timeline: view()) {
  .estate-demo .ed-hero::before {
    animation: ed-hero-settle 9s ease-out both, ed-hero-drift linear both;
    animation-timeline: auto, view();
    animation-range: normal, exit 0% exit 100%;
  }
}

@keyframes ed-hero-drift {
  from { translate: 0 0; }
  to   { translate: 0 11%; }
}

.estate-demo .ed-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 22, 24, 0.08) 40%, rgba(30, 22, 24, 0.74) 100%);
}

@keyframes ed-hero-settle {
  from { scale: 1.08; }
  to   { scale: 1; }
}

.estate-demo .ed-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.2rem 2.6rem;
  color: #f5f2e8;
  max-width: 46rem;
}

/* hero text rises in after the photo starts settling */
.estate-demo .ed-hero-inner > * {
  animation: ed-rise 0.9s ease-out both;
}
.estate-demo .ed-hero-inner > :nth-child(1) { animation-delay: 0.15s; }
.estate-demo .ed-hero-inner > :nth-child(2) { animation-delay: 0.35s; }
.estate-demo .ed-hero-inner > :nth-child(3) { animation-delay: 0.55s; }

@keyframes ed-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.estate-demo .ed-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 0.6rem;
}

/* Chrome-lettering treatment, echoing the logotype */
.estate-demo .ed-hero h1 {
  font-family: var(--ed-serif);
  font-weight: 700;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  line-height: 1.05;
  margin: 0 0 0.7rem;
  background: linear-gradient(178deg, #f4ecea 0%, #dcc7c5 30%, #a58e91 55%, #cdb6b8 78%, #f0e6e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(20, 14, 16, 0.55));
}

.estate-demo .ed-hero .ed-sub {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  max-width: 34rem;
  opacity: 0.95;
}

/* ---------- stat strip ---------- */

.estate-demo .ed-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.6rem 0.6rem;
  border-bottom: 1px solid rgba(143, 124, 130, 0.35);
  margin-bottom: 2.2rem;
}

.estate-demo .ed-stat {
  text-align: center;
  flex: 1 1 110px;
}

.estate-demo .ed-stat .n {
  font-family: var(--ed-serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--ed-bronze-dark);
  display: block;
  line-height: 1.1;
}

.estate-demo .ed-stat .l {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-bronze-mid);
}

/* ---------- section scaffolding ---------- */

.estate-demo section {
  margin-bottom: 3.4rem;
}

/* ---------- dark tonal band (one editorial statement per page) ---------- */

.estate-demo .ed-dark {
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #45343a 0%, #573f47 55%, #684b53 100%);
  color: #efe6e4;
  text-align: center;
  padding: 4.6rem 1.4rem;
  margin-bottom: 3.4rem;
}

/* panning still layer — drifts right-to-left, then gently reverses so there is
   no loop seam. The 15% side overhang is the pan's travel room. */
.estate-demo .ed-dark::before {
  content: "";
  position: absolute;
  inset: 0 -15%;
  background: url("../assets/video/horizon-still.jpg") center 60% / cover no-repeat;
  filter: brightness(0.62) saturate(0.85);
  opacity: 0.9;
  animation: ed-pan 38s ease-in-out infinite alternate;
}

@keyframes ed-pan {
  from { transform: translateX(6%); }
  to   { transform: translateX(-6%); }
}

/* bronze veil keeps the band on-palette and the text legible */
.estate-demo .ed-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(69, 52, 58, 0.55) 0%, rgba(87, 63, 71, 0.42) 100%);
}

.estate-demo .ed-dark > p {
  position: relative;
  z-index: 2;
}

.estate-demo .ed-dark .l {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.3;
  margin: 0 auto 0.9rem;
  max-width: 34rem;
  color: #f0e7e5;
}

.estate-demo .ed-dark .s {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
  margin: 0;
}

.estate-demo h2 {
  font-family: var(--ed-serif);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--ed-bronze-dark);
  border: none;
  margin: 0 0 0.4rem;
}

/* chrome rule — the metallic band under each heading */
.estate-demo .ed-rule {
  width: 3.6rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ed-bronze-dark) 0%, var(--ed-bronze-light) 50%, var(--ed-bronze-dark) 100%);
  margin: 0.5rem 0 1.2rem;
}

.estate-demo .ed-lede {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 42rem;
}

/* ---------- location split ---------- */

.estate-demo .ed-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: start;
}

.estate-demo .ed-split figure {
  margin: 0;
}

.estate-demo .ed-split img,
.estate-demo .ed-photo {
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(87, 68, 74, 0.22);
  width: 100%;
}

.estate-demo figcaption {
  font-size: 0.62rem;
  color: var(--ed-bronze-mid);
  margin-top: 0.4rem;
  font-style: italic;
}

.estate-demo .ed-map {
  width: 100%;
  height: 380px;
  border: 1px solid rgba(143, 124, 130, 0.4);
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(87, 68, 74, 0.15);
}

/* ---------- facilities cards ---------- */

.estate-demo .ed-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

@media screen and (max-width: 1100px) {
  .estate-demo .ed-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 700px) {
  .estate-demo .ed-cards {
    grid-template-columns: 1fr;
  }
}

.estate-demo .ed-card {
  background: #fbf9f2;
  border: 1px solid rgba(143, 124, 130, 0.28);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.estate-demo .ed-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(87, 68, 74, 0.26);
}

.estate-demo .ed-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.estate-demo .ed-card .c {
  padding: 0.7rem 0.9rem 0.9rem;
}

.estate-demo .ed-card .t {
  font-family: var(--ed-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ed-bronze-dark);
  margin: 0 0 0.25rem;
}

.estate-demo .ed-card .d {
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
}

/* ---------- facilities fact list ---------- */

.estate-demo .ed-facts {
  columns: 2;
  column-gap: 2.4rem;
  margin-top: 1.4rem;
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.6;
}

.estate-demo .ed-facts li {
  break-inside: avoid;
}

/* ---------- video section: full-width stacked, whole frame, no crop ---------- */

.estate-demo .ed-videos {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.estate-demo .ed-clip {
  margin: 0;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(143, 124, 130, 0.28);
  box-shadow: 0 8px 28px rgba(87, 68, 74, 0.18);
  background: #2b2023;
}

.estate-demo .ed-clip video {
  width: 100%;
  height: auto;
  display: block;
}

.estate-demo .ed-clip figcaption {
  display: block;
  width: 100%;
  max-width: none;   /* overrides the theme's 24rem centered-caption rule */
  margin: 0;
  box-sizing: border-box;
  padding: 0.55rem 0.9rem;
  background: #fbf9f2;
}

.estate-demo .ed-clip figcaption p {
  margin: 0;
}

/* ---------- image banner (section intro band) ----------
   Same two-layer mute as the horizon band: dimmed photo + bronze veil. */

.estate-demo .ed-banner {
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  position: relative;
  overflow: hidden;
  height: 44vh;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f5f2e8;
  background: #45343a;
  margin-bottom: 2.2rem;
}

.estate-demo .ed-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/estate/club-banquet.jpg") center 45% / cover no-repeat;
  filter: brightness(0.62) saturate(0.85);
  opacity: 0.9;
}

.estate-demo .ed-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(69, 52, 58, 0.55) 0%, rgba(87, 63, 71, 0.42) 100%);
}

.estate-demo .ed-banner > p {
  position: relative;
  z-index: 2;
}

.estate-demo .ed-banner .l {
  font-family: var(--ed-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.25;
  max-width: 38rem;
  margin: 0 0 0.6rem;
  color: #f5f2e8;
}

.estate-demo .ed-banner .s {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0;
}

/* ---------- governance / management ---------- */

.estate-demo .ed-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.estate-demo .ed-panel {
  background: #fbf9f2;
  border-left: 3px solid var(--ed-bronze-mid);
  padding: 1rem 1.2rem;
  border-radius: 0 4px 4px 0;
}

.estate-demo .ed-panel h3 {
  font-family: var(--ed-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ed-bronze-dark);
  margin: 0 0 0.5rem;
}

.estate-demo .ed-panel p,
.estate-demo .ed-panel li {
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ---------- footer note ---------- */

.estate-demo .ed-foot {
  border-top: 1px solid rgba(143, 124, 130, 0.35);
  padding-top: 1rem;
  font-size: 0.62rem;
  color: var(--ed-bronze-mid);
  font-style: italic;
}

/* ---------- motion ---------- */

/* card image: gentle zoom completes the existing lift on hover */
.estate-demo .ed-card img {
  transition: transform 0.35s ease;
}
.estate-demo .ed-card:hover img {
  transform: scale(1.045);
}

/* fade-rise as sections enter the viewport (scroll-driven; Chromium/modern browsers).
   Where unsupported, @supports fails and everything simply renders — no hidden content. */
@keyframes ed-reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
  .estate-demo .ed-stats,
  .estate-demo section {
    animation: ed-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}

/* off-ramp */
@media (prefers-reduced-motion: reduce) {
  .estate-demo *,
  .estate-demo *::before,
  .estate-demo *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- responsive ---------- */

@media screen and (max-width: 900px) {
  .estate-demo .ed-split,
  .estate-demo .ed-two-col {
    grid-template-columns: 1fr;
  }
  .estate-demo .ed-hero h1 {
    font-size: 2.4rem;
  }
  .estate-demo .ed-facts {
    columns: 1;
  }
}
