/*
  Lineage Estates — Photography Styles
  Images are referenced by path. Drop generated images into assets/images/
  to activate each effect. Fallbacks are solid brand colors so pages look
  correct even before images are added.

  All overlays are handled via ::before / ::after pseudo-elements so that
  text readability is always preserved.
*/

/* ━━━ 1. HOMEPAGE HERO ━━━
   hero-morning-light.jpg
   Deep Pine overlay at 72% — image glows through as warmth and texture. */
.hero {
  background-image: url('/assets/images/sections/hero-morning-light.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
/* The existing ::before grid texture and ::after gold glow remain.
   Add a base overlay layer using the hero's background-color:
   The grid/glow pseudo-elements sit above the photo. */
.hero::before {
  /* Reinforce the dark overlay so grid texture still shows */
  background: rgba(20,48,42,.72) !important;
}
/* Subtle Ken Burns drift on the background photo */
@media (prefers-reduced-motion: no-preference) {
  .hero {
    animation: heroZoom 20s ease-in-out infinite alternate;
  }
}
@keyframes heroZoom {
  from { background-size: 100%; background-position: center 40%; }
  to   { background-size: 108%; background-position: center 45%; }
}


/* ━━━ 2. HOMEPAGE "WHO WE HELP" — right panel image ━━━
   home-family-kitchen.jpg */
.section-photo-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.section-photo-panel {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  max-height: 520px;
}
.section-photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Fade the right panel into the background color on the left edge */
.section-photo-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--ivory) 0%, transparent 35%);
  pointer-events: none;
}
/* Bottom fade */
.section-photo-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ivory) 0%, transparent 25%);
  pointer-events: none;
}


/* ━━━ 3. HOMEPAGE PROCESS — left accent image ━━━
   home-process-hands.jpg */
.process-section-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.process-photo-accent {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  height: 560px;
  flex-shrink: 0;
}
.process-photo-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.process-photo-accent::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, var(--stone) 0%, transparent 40%);
  pointer-events: none;
}
.process-photo-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--stone) 0%, transparent 20%);
  pointer-events: none;
}


/* ━━━ 4. HOMEPAGE PULLQUOTE — full background ━━━
   home-pullquote-room.jpg */
.pullquote {
  background-image: url('/assets/images/sections/home-pullquote-room.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* subtle parallax */
  position: relative;
}
.pullquote::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(251,249,243,.85); /* Ivory overlay */
  pointer-events: none;
}
.pullquote > * { position: relative; z-index: 1; }


/* ━━━ 5. HOMEPAGE CTA BLOCK — background ━━━
   home-cta-new-room.jpg */
.cta-block {
  background-image: url('/assets/images/sections/home-cta-new-room.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
/* Heritage Green color overlay — image subtly glows through */
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31,61,52,.82);
  pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }


/* ━━━ 6. SERVICES PAGE HERO ━━━
   pages/services-hero-house.jpg */
.page-hero--services {
  background-image: url('/assets/images/pages/services-hero-house.jpg');
  background-size: cover;
  background-position: center 60%;
}


/* ━━━ 7. FOR FAMILIES PAGE HERO ━━━
   pages/families-hero-walk.jpg — slightly more visible (68% overlay) */
.page-hero--families {
  background-image: url('/assets/images/pages/families-hero-walk.jpg');
  background-size: cover;
  background-position: center 30%;
}
.page-hero--families::before {
  background: rgba(20,48,42,.68) !important;
}


/* ━━━ 8. FOR FAMILIES VALUE SECTION — right panel ━━━
   pages/families-window-moment.jpg */
.families-value-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
}
.families-value-photo {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  height: 580px;
  flex-shrink: 0;
}
.families-value-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.families-value-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--parchment) 0%, transparent 40%),
              linear-gradient(to top, var(--parchment) 0%, transparent 20%);
  pointer-events: none;
}


/* ━━━ 9. FOR ADVISORS PAGE HERO ━━━
   pages/advisors-hero-meeting.jpg */
.page-hero--advisors {
  background-image: url('/assets/images/pages/advisors-hero-meeting.jpg');
  background-size: cover;
  background-position: center;
}


/* ━━━ 10. CONTACT PAGE — right panel ━━━
   pages/contact-open-door.jpg */
.contact-photo-panel {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  height: 100%;
  min-height: 420px;
}
.contact-photo-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.contact-photo-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--parchment) 0%, transparent 35%),
              linear-gradient(to top, var(--parchment) 0%, transparent 20%);
  pointer-events: none;
}


/* ━━━ 11. PROCESS SORT SECTION — accent image ━━━
   sections/process-meaningful-photo.jpg */
.sort-accent-image {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  float: right;
  margin: 0 0 1.5rem 2rem;
  shape-outside: circle();
}
.sort-accent-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.sort-accent-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 80%, var(--stone) 0%, transparent 55%);
  pointer-events: none;
}


/* ━━━ 12. UNIVERSAL SECTION TEXTURE ━━━
   textures/linen-wood-warm.jpg
   Applied as a very faint texture on parchment sections. */
.section-textured {
  position: relative;
}
.section-textured::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/textures/linen-wood-warm.jpg');
  background-size: 400px 400px;
  background-repeat: repeat;
  opacity: .04;
  pointer-events: none;
  z-index: 0;
}
.section-textured > * { position: relative; z-index: 1; }


/* ━━━ PAGE HERO BASE — background shared by all inner pages ━━━ */
.page-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
/* Reinforce the overlay for all page heroes with photos */
.page-hero--services::before,
.page-hero--families::before,
.page-hero--advisors::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,48,42,.74);
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }


/* ━━━ RESPONSIVE ━━━ */
@media (max-width: 900px) {
  .section-photo-wrap     { grid-template-columns: 1fr; }
  .section-photo-panel    { max-height: 260px; }
  .process-section-inner  { grid-template-columns: 1fr; }
  .process-photo-accent   { display: none; }
  .families-value-grid    { grid-template-columns: 1fr; }
  .families-value-photo   { height: 240px; }
  .sort-accent-image      { float: none; width: 100%; height: 200px; margin: 0 0 1.5rem; }

  /* Remove parallax on mobile (performance) */
  .pullquote { background-attachment: scroll; }

  /* Disable hero Ken Burns on mobile */
  .hero { animation: none; background-size: cover; }
}
