/* ==========================================================================
   AUBURY & CO — PROJECT PAGE TEMPLATE (shared)
   ==========================================================================
   Canonical layout for individual project pages. Extracted 15 April 2026 from
   the northumberland-project.html page after Matt approved the structure as
   the standard for all future projects.

   Every new project page pulls this file. Per-project tweaks (e.g. a one-off
   hero aspect, bespoke image grid) go in a small <style> block on the page
   itself, NOT in here.

   Structure:
     .hero                      — big Playfair brand on sage-overlaid image
     .project-title-block       — editorial title + subtitle + meta strip (cream)
     .project-intro             — 2-3 prose paragraphs (cream)
     .room-section              — repeating per-room block (alternating cream / linen)
       .room-header             — eyebrow + title + 2-3 sentence body
       .image-pair              — side-by-side pair (tall 3:4 or wide 4:3)
       .image-full              — full-width single image, natural aspect
       .image-caption           — Playfair italic caption under any image
     .project-testimonial       — dark forest block with italic pull-quote
     .designer-credit           — cream/candle block, circular photo + bio
     .project-cta               — final "Let's create something beautiful" + button

   Each project page MUST supply these CSS custom properties in its own :root
   (they aren't set here because they're layout-scoped per project):
     --project-max:  container max-width, typical 1280px
     --text-max:     prose max-width, typical 680px
     --image-gap:    gap between paired images, typical clamp(16px, 2.5vw, 32px)
   ========================================================================== */


/* ----- HERO, matches services.html / contact.html visual language ----- */

.hero {
  position: relative;
  width: 100%;
  height: 68vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  /* Overscan the hero image so GSAP yPercent parallax (up to -15% desktop, -8% mobile)
     never exposes bare frame at the top or bottom of the hero. The -30% cushion
     each side makes the hero-bg 160% of hero height; yPercent -15 translates by
     -24% of hero, so bottom ends at 106% — comfortably covered. */
  position: absolute;
  top: -30%;
  left: 0;
  right: 0;
  bottom: -30%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(61, 87, 64, 0.55);
  z-index: 1;
}

.hero-content {
  opacity: 0;
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--light-text);
  padding: 0 clamp(24px, 5vw, 48px);
}

.hero-brand {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: var(--weight-400);
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-align: center;
  color: var(--linen);
  margin: 0;
  max-width: 18ch;
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: var(--champagne);
  margin: 1.5rem auto;
  opacity: 0.6;
}

.hero-tagline {
  font-family: var(--sans);
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(232, 226, 212, 0.9);
  margin: 0;
}

.gsap-fallback .hero-content { opacity: 1; }

/* Hero parallax support — GSAP moves .hero-bg up on scroll (see project-page JS) */
.hero-bg { will-change: transform; }


/* ----- IMAGE DIVIDER (Kinfolk-style: full-bleed photo + ghosted big word) -----
   Use between major room sections as a scroll moment. Text is purposely faint
   (~20% opacity cream) so it reads as texture, not headline. No gold, ever.
*/

.image-divider {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-divider-bg {
  /* Overscan the clip frame so the GSAP parallax (yPercent -10 to +10) never exposes bare frame.
     -25% top/bottom gives generous cushion on both axes so the image always fills. */
  position: absolute;
  top: -25%;
  left: -2%;
  right: -2%;
  bottom: -25%;
  will-change: transform;
}

.image-divider-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(21, 30, 23, 0.20) 0%,
    rgba(21, 30, 23, 0.12) 50%,
    rgba(21, 30, 23, 0.25) 100%
  );
  z-index: 1;
}

.image-divider-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 4vw, 32px);
}

.image-divider-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 13vw, 12rem);
  font-weight: 400;
  color: rgba(245, 237, 224, 0.62);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: opacity, transform;
  margin: 0;
  opacity: 0;         /* Starts invisible, scroll-triggered fade handles the reveal */
  transform: translateY(20px);
}

/* When GSAP fails to load, make sure the text still renders */
.gsap-fallback .image-divider-text {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .image-divider { height: 48vh; min-height: 320px; }
  .image-divider-text {
    font-size: clamp(2rem, 10vw, 3.5rem);
    white-space: normal;
    text-align: center;
    line-height: 1.05;
    word-break: break-word;
    hyphens: auto;
    max-width: 92vw;
  }
}


/* ----- EDITORIAL TITLE BLOCK (cream, sits directly under the hero image) ----- */

.project-title-block {
  padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 64px) clamp(20px, 2.5vw, 32px);
  background: var(--cream, #F5EDE0);
  text-align: center;
}

.project-title-inner {
  max-width: 840px;
  margin: 0 auto;
}

.project-title-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest, #3D5740);
  margin-bottom: 32px;
}

.project-hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  color: var(--night-forest, #151E17);
  margin-bottom: 26px;
}

.project-hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
  color: var(--forest, #3D5740);
  margin: 0 auto;
  max-width: 46ch;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid rgba(61, 87, 64, 0.22);
}

.project-meta-item {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: left;
}

/* On mobile the items stack, so centre-align label + value in each row
   so LOCATION / SCOPE / SERVICE labels sit on a consistent axis.
   Desktop 3-up row keeps its original left-aligned typographic feel. */
@media (max-width: 768px) {
  .project-meta-item { text-align: center; }
}

.project-meta-label {
  display: block;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--forest, #3D5740);
  margin-bottom: 6px;
}

.project-meta-value {
  color: var(--night-forest, #151E17);
  font-weight: 400;
}


/* ----- STORY INTRO (2-3 short paragraphs, Playfair, cream) ----- */

.project-intro {
  padding: clamp(24px, 3vw, 40px) clamp(24px, 5vw, 64px) clamp(48px, 6vw, 80px);
  background: var(--cream, #F5EDE0);
  text-align: center;
}

.project-intro-inner {
  max-width: var(--text-max);
  margin: 0 auto;
}

.project-intro-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest, #3D5740);
  margin-bottom: 32px;
}

.project-intro p {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.55;
  color: var(--night-forest, #151E17);
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}

.project-intro p:last-child { margin-bottom: 0; }

.project-intro p em {
  font-style: italic;
  color: var(--forest, #3D5740);
}


/* ----- ROOM SECTIONS (repeating, alternating cream / linen backgrounds) ----- */

.room-section {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--cream, #F5EDE0);
  /* Fixed navbar clearance so category-tile anchors don't hide under it */
  scroll-margin-top: 96px;
}

@media (max-width: 768px) {
  .room-section { scroll-margin-top: 72px; }
}

.room-section:nth-of-type(even) {
  background: var(--linen, #E8E2D4);
}

.room-section-inner {
  max-width: var(--project-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.room-header {
  max-width: 620px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: center;
}

.room-header.left-aligned {
  text-align: left;
  margin-left: 0;
}

.room-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest, #3D5740);
  margin-bottom: 22px;
  display: inline-block;
}

.room-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--night-forest, #151E17);
  margin-bottom: 28px;
}

.room-body {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.75;
  font-weight: 300;
  color: #3a3a32;
}

.room-body p { margin-bottom: 18px; }
.room-body p:last-child { margin-bottom: 0; }


/* ----- IMAGE LAYOUTS ----- */

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--image-gap);
  align-items: start;
  margin: 0 auto clamp(20px, 2.5vw, 32px);
}

.image-pair figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.image-pair img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(0.98);
}

.image-pair.tall img { aspect-ratio: 3 / 4; }
.image-pair.wide img { aspect-ratio: 4 / 3; }

/* Default: images cap at 1440px (editorial magazine width, not viewport-scale monster).
   Add class="full-bleed" on a .image-full for showstopper moments that break out. */
.image-full {
  width: 100%;
  margin: clamp(20px, 2.5vw, 32px) 0;
  text-align: center;
}

.image-full img {
  width: 100%;
  max-width: 1440px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: saturate(0.95) contrast(0.98);
}

.image-full.full-bleed img {
  max-width: 100%;
}

/* ----- DESKTOP WRAPPER WIDTH CAP -----
   Added 6 May 2026 (third iteration). Caps both .image-full and .image-pair
   wrappers at the same max-width on desktop so single images and side-by-side
   pairs share a consistent left/right edge down the page. Sibling selector
   handles left-aligned rooms automatically: when an image-block follows a
   .room-header.left-aligned, the wrapper itself sits at the left edge of
   the section. Mobile (≤768px) untouched — wrappers stay 100% width.
   This replaces the previous per-image inline max-width approach which
   created width mismatches between solo images and pairs. */

@media (min-width: 769px) {
  .image-full,
  .image-pair {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
  }

  .room-header.left-aligned ~ .image-full,
  .room-header.left-aligned ~ .image-pair {
    margin-left: 0;
  }
}

.image-caption {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--forest, #3D5740);
  text-align: center;
  margin-top: 18px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

figcaption.image-caption {
  margin-top: 14px;
  padding: 0 8px;
}

/* Optional two-column text + image split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: var(--project-max);
  margin: 0 auto;
}

.split.reverse .split-text { order: 2; }
.split.reverse .split-image { order: 1; }

.split-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.95) contrast(0.98);
}


/* ----- TESTIMONIAL (dark forest block) ----- */

.project-testimonial {
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px);
  background: var(--deep-forest, #2C3E2D);
  color: #F5EDE0;
  text-align: center;
}

.project-testimonial-inner {
  max-width: 760px;
  margin: 0 auto;
}

.project-testimonial-mark {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: var(--candle, #E8DCC8);
  opacity: 0.5;
  margin-bottom: 12px;
}

.project-testimonial-body {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.55;
  color: #F5EDE0;
  margin-bottom: 32px;
}

.project-testimonial-cite {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--candle, #E8DCC8);
}


/* ----- DESIGNER CREDIT (circular photo + bio + contact link) ----- */

.designer-credit {
  padding: clamp(56px, 7vw, 88px) clamp(24px, 5vw, 64px);
  background: var(--candle, #E8DCC8);
}

.designer-credit-inner {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.designer-credit-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--linen, #E8E2D4);
}

.designer-credit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.designer-credit-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest, #3D5740);
  margin-bottom: 14px;
}

.designer-credit-name {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--night-forest, #151E17);
  margin-bottom: 16px;
}

.designer-credit-bio {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: #3a3a32;
  margin-bottom: 20px;
}

.designer-credit-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--forest, #3D5740);
  text-decoration: none;
  border-bottom: 1px solid var(--forest, #3D5740);
  padding-bottom: 2px;
}

.designer-credit-link:hover { color: var(--night-forest, #151E17); }


/* ----- CTA BLOCK (final "Let's create something beautiful") ----- */

.project-cta {
  padding: clamp(64px, 9vw, 110px) clamp(24px, 5vw, 64px);
  background: var(--cream, #F5EDE0);
  text-align: center;
}

.project-cta-inner { max-width: 560px; margin: 0 auto; }

.project-cta-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest, #3D5740);
  margin-bottom: 24px;
}

.project-cta-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--night-forest, #151E17);
  margin-bottom: 32px;
}

.project-cta a.btn {
  display: inline-block;
  padding: 16px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F5EDE0;
  background: var(--forest, #3D5740);
  text-decoration: none;
  transition: background 0.3s ease;
}

.project-cta a.btn:hover { background: var(--night-forest, #151E17); }


/* ----- REVEAL ANIMATION STARTING STATE ----- */

.reveal { opacity: 0; transform: translateY(30px); }


/* ----- MOBILE BREAKPOINT ----- */

@media (max-width: 768px) {
  .image-pair { grid-template-columns: 1fr; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-text { order: 2; }
  .split.reverse .split-image { order: 1; }

  .designer-credit-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .designer-credit-photo { margin: 0 auto; }
}


/* ----- DESKTOP IMAGE-HEIGHT CAP -----
   Reverted 6 May 2026 (same day as introduction).
   The cap was shrinking portrait images and floating them centred with empty
   side-space, breaking the editorial layout across all 6 project pages.
   Image-pair.tall images stopped reading as side-by-side because each one
   shrank inside its grid cell. Path B agreed: revert globally, then address
   the 2-3 specific tall portrait shots Lauren named at the per-image level.
   Mobile was untouched both directions, so Lauren's "perfect on phone"
   benchmark is preserved either way. */
