/* ==========================================================================
   MEERA DESIGN STUDIO — PROJECTS PAGE STYLESHEET
   Accents: #A72C4D | Background: #FFFFFF / #FAF8F5 | Font: Century Gothic
   ========================================================================== */

:root {
  --pj-burgundy: #A72C4D;
  --pj-burgundy-hover: #8E233C;
  --pj-burgundy-dark: #64152A;
  --pj-burgundy-subtle: rgba(167, 44, 77, 0.08);
  --pj-burgundy-overlay: rgba(167, 44, 77, 0.92);
  --pj-blush: #FBECEF;
  --pj-blush-border: #F3CCD6;
  --pj-bg-cream: #FAF8F5;
  --pj-bg-white: #FFFFFF;
  --pj-text-dark: #1A1A1A;
  --pj-text-muted: #555555;
  --pj-text-subtle: #777777;
  --pj-border-light: rgba(0, 0, 0, 0.08);
  --pj-border-soft: #E2DBD5;
  --pj-radius-sm: 6px;
  --pj-radius-card: 14px;
  --pj-radius-modal: 16px;
  --pj-radius-pill: 999px;
  --pj-font-heading: 'Century Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pj-font-body: 'Century Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

body.projects-page-body {
  margin: 0;
  padding: 0;
  background-color: var(--pj-bg-white);
  color: var(--pj-text-dark);
  font-family: var(--pj-font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.pj-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ==========================================================================
   1. NAVIGATION HEADER (BRAND & CENTURY GOTHIC)
   ========================================================================== */
.site-header.pj-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.1rem 0;
}

.pj-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pj-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.pj-brand-title {
  font-family: var(--pj-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--pj-burgundy);
  line-height: 1;
}

.pj-brand-sub {
  font-family: var(--pj-font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: #555555;
  margin-top: 0.28rem;
  text-transform: uppercase;
  font-weight: 400;
}

.pj-nav-list {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pj-nav-link {
  font-family: var(--pj-font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  position: relative;
  padding: 0.45rem 0;
  transition: color 0.25s ease;
}

.pj-nav-link:hover {
  color: var(--pj-burgundy);
}

/* Active indicator matching reference (burgundy text + solid underline) */
.pj-nav-link.active {
  color: var(--pj-burgundy);
  font-weight: 700;
}

.pj-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--pj-burgundy);
  border-radius: 2px;
}

/* Hamburger menu button with 2 horizontal lines */
.pj-menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.pj-menu-btn span {
  display: block;
  width: 100%;
  height: 2.2px;
  background-color: var(--pj-burgundy);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.pj-menu-btn:hover span {
  background-color: var(--pj-burgundy-hover);
}

/* Mobile Nav Drawer */
.pj-mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid var(--pj-border-light);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  padding: 1.25rem 2rem;
}

.pj-mobile-nav.active {
  display: block;
}

.pj-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pj-mobile-list a {
  text-decoration: none;
  color: #333333;
  font-size: 1rem;
  font-weight: 500;
}

.pj-mobile-list a.active {
  color: var(--pj-burgundy);
  font-weight: 700;
}

/* ==========================================================================
   2. HERO SECTION (MATCHING REFERENCE MOCKUP)
   ========================================================================== */
.pj-hero-section {
  position: relative;
  padding: 3rem 0 2rem;
  background: var(--pj-bg-white);
  overflow: hidden;
}

.pj-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.pj-hero-content {
  max-width: 580px;
  z-index: 2;
}

.pj-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.pj-eyebrow-text {
  font-family: var(--pj-font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--pj-burgundy);
  text-transform: uppercase;
}

.pj-eyebrow-line {
  display: inline-block;
  width: 65px;
  height: 1.5px;
  background-color: #D9AAB5;
}

.pj-hero-title {
  font-family: var(--pj-font-heading);
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--pj-text-dark);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.pj-hero-sub {
  font-family: var(--pj-font-body);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--pj-text-muted);
  margin: 0 0 2rem;
  max-width: 500px;
}

/* Right side wireframe sketch watermark */
.pj-hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}

.pj-hero-sketch {
  width: 100%;
  max-width: 520px;
  height: auto;
  opacity: 0.88;
}

/* Category Filter Tabs (Exactly 3 tabs: All, Architectural, Interior) */
.pj-filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.pj-filter-pill {
  font-family: var(--pj-font-heading);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.55rem 1.3rem;
  border-radius: var(--pj-radius-pill);
  border: 1px solid #DFD7D5;
  background: #FFFFFF;
  color: #333333;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pj-filter-pill:hover {
  border-color: var(--pj-burgundy);
  color: var(--pj-burgundy);
}

.pj-filter-pill.active {
  background-color: var(--pj-burgundy);
  border-color: var(--pj-burgundy);
  color: #FFFFFF;
  font-weight: 600;
}

.pj-filter-pill .pj-count {
  font-size: 0.82rem;
  opacity: 0.88;
}

/* ==========================================================================
   3. ASYMMETRIC MASONRY-STYLE GRID (MATCHING REFERENCE LAYOUT)
   ========================================================================== */
.pj-gallery-section {
  padding: 2.25rem 0 3rem;
}

.pj-editorial-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Base Card Styling */
.pj-card {
  position: relative;
  border-radius: var(--pj-radius-card);
  overflow: hidden;
  background-color: #EFEFEF;
  cursor: pointer;
  user-select: none;
  height: 100%;
  min-height: 0;
  min-width: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.pj-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.pj-card-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pj-card:hover .pj-card-img {
  transform: scale(1.04);
}

/* Resting Overlay on Featured Cards (Titles Visible at Rest) */
.pj-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.12) 38%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.4rem;
  box-sizing: border-box;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pj-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pj-card-tag {
  font-family: var(--pj-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
}

.pj-card-title {
  font-family: var(--pj-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Circular Arrow Icon (Matching Reference) */
.pj-card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.2px solid rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.pj-card-arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  transition: transform 0.25s ease;
}

.pj-card:hover .pj-card-arrow {
  background: #FFFFFF;
  color: var(--pj-burgundy);
  border-color: #FFFFFF;
  transform: scale(1.08);
}

.pj-card:hover .pj-card-arrow svg {
  transform: translate(1px, -1px);
}

/* REFINED BURGUNDY HOVER OVERLAY (REQ 3: "On hover, reveal a refined burgundy information overlay with project name, category, location, and an arrow icon") */
.pj-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: var(--pj-burgundy-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 5;
}

.pj-card:hover .pj-card-hover-overlay {
  opacity: 1;
  transform: translateY(0);
}

.pj-hover-category {
  font-family: var(--pj-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.pj-hover-title {
  font-family: var(--pj-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.pj-hover-location {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.pj-hover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.pj-hover-action-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pj-hover-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--pj-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* Multi-image photo badge (reveals subtly) */
.pj-multi-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--pj-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.pj-card:hover .pj-multi-badge {
  opacity: 1;
  transform: translateY(0);
}

.pj-multi-badge svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ----- ROW 1: Wide (Campus) + Tall (Dining) + Stacked 2 (Bungalow & Lounge) ----- */
.pj-row-1 {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.7fr;
  grid-template-rows: 1fr;
  gap: 16px;
  height: 380px;
}

.pj-card-campus {
  height: 100%;
  min-height: 0;
}

.pj-card-dining {
  height: 100%;
  min-height: 0;
}

.pj-col-stacked {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

/* ----- ROW 2: Tall (Staircase) + Stacked 2 (Commercial & Boardroom) + Wide (Residential Complex) ----- */
.pj-row-2 {
  display: grid;
  grid-template-columns: 0.65fr 0.65fr 1.4fr;
  grid-template-rows: 1fr;
  gap: 16px;
  height: 380px;
}

.pj-card-staircase {
  height: 100%;
  min-height: 0;
}

.pj-card-residential {
  height: 100%;
  min-height: 0;
}

/* ----- ROW 3: Wide (Luxury Living) + 3 Square/Vertical (Reception, Garden, Glass Bldg) ----- */
.pj-row-3 {
  display: grid;
  grid-template-columns: 1.15fr 0.65fr 0.45fr 0.55fr;
  grid-template-rows: 1fr;
  gap: 16px;
  height: 280px;
}

.pj-card-luxury {
  height: 100%;
  min-height: 0;
}

/* ==========================================================================
   DYNAMIC ASYMMETRIC MASONRY ROW PATTERNS (ORGANIC EDITORIAL RHYTHM)
   Some landscape, some portrait, some big, some small (stacked pairs)
   ========================================================================== */

/* Pattern 1: Stacked 2 Small (Left 0.68fr) + Tall Portrait (Center 0.62fr) + Wide Hero (Right 1.4fr) */
.pj-dyn-pattern-1 {
  display: grid;
  grid-template-columns: 0.68fr 0.62fr 1.4fr;
  grid-template-rows: 1fr;
  gap: 16px;
  height: 380px;
}

/* Pattern 2: Wide Hero (Left 1.38fr) + Tall Portrait (Center 0.62fr) + Stacked 2 Small (Right 0.7fr) */
.pj-dyn-pattern-2 {
  display: grid;
  grid-template-columns: 1.38fr 0.62fr 0.7fr;
  grid-template-rows: 1fr;
  gap: 16px;
  height: 380px;
}

/* Pattern 3: Asymmetric 4-Card Rhythm (Wide 1.15fr + Square 0.65fr + Narrow 0.45fr + Medium 0.55fr) */
.pj-dyn-pattern-3 {
  display: grid;
  grid-template-columns: 1.15fr 0.65fr 0.45fr 0.55fr;
  grid-template-rows: 1fr;
  gap: 16px;
  height: 280px;
}

/* Pattern 4: Tall Portrait (Left 0.65fr) + Wide Hero (Center 1.4fr) + Stacked 2 Small (Right 0.65fr) */
.pj-dyn-pattern-4 {
  display: grid;
  grid-template-columns: 0.65fr 1.4fr 0.65fr;
  grid-template-rows: 1fr;
  gap: 16px;
  height: 380px;
}

/* Pattern 5: Staggered Trio (Portrait 0.75fr + Wide Hero 1.35fr + Medium 0.9fr) */
.pj-dyn-pattern-5 {
  display: grid;
  grid-template-columns: 0.75fr 1.35fr 0.9fr;
  grid-template-rows: 1fr;
  gap: 16px;
  height: 340px;
}

/* Pattern Pair: 2 Cards (Wide 1.25fr + Portrait 0.75fr) */
.pj-dyn-pattern-pair {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 1fr;
  gap: 16px;
  height: 320px;
}

/* Pattern Solo: 1 Card (Wide Hero) */
.pj-dyn-pattern-solo {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  gap: 16px;
  height: 340px;
}

/* Hide non-matching filtered cards */
.pj-card.is-hidden {
  display: none !important;
}

/* ==========================================================================
   4. LOAD MORE PROJECTS CONTROLS
   ========================================================================== */
.pj-load-more-wrap {
  text-align: center;
  padding: 3rem 0 2rem;
}

.pj-btn-load-more {
  font-family: var(--pj-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pj-burgundy);
  background: #FFFFFF;
  border: 1.5px solid var(--pj-burgundy);
  border-radius: var(--pj-radius-pill);
  padding: 0.9rem 2.4rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.pj-btn-load-more:hover {
  background: var(--pj-burgundy);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(167, 44, 77, 0.2);
}

.pj-load-progress-text {
  font-size: 0.82rem;
  color: var(--pj-text-muted);
  margin-top: 0.85rem;
}

/* ==========================================================================
   5. LIGHTBOX MODAL / POPUP SYSTEM
   Supports:
   - Multiple images with carousel slider, arrows, counter, thumbnail bar
   - Rich info mode (title, typology, location, scope, description)
   - IMAGE-ONLY mode ("and if there is no info then just show image")
   - Button to view all project images in full grid
   ========================================================================== */
.pj-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 14, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.pj-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.pj-modal {
  background: #FFFFFF;
  border-radius: var(--pj-radius-modal);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: row;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pj-modal-backdrop.active .pj-modal {
  transform: scale(1) translateY(0);
}

/* Close Button */
.pj-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 100;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1A1A1A;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.pj-modal-close:hover {
  background: var(--pj-burgundy);
  color: #FFFFFF;
  border-color: var(--pj-burgundy);
  transform: rotate(90deg);
}

/* Left / Main: Image Stage */
.pj-stage {
  flex: 1.35;
  background: #0E0C0E;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 480px;
  max-height: 90vh;
}

.pj-stage-img-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0E0C0E;
  padding: 1rem;
}

.pj-modal-img {
  max-width: 100%;
  max-height: 70vh;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  transition: opacity 0.25s ease;
}

/* Navigation Arrows */
.pj-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  color: #1A1A1A;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.pj-nav-arrow:hover {
  background: var(--pj-burgundy);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}

.pj-prev {
  left: 14px;
}

.pj-next {
  right: 14px;
}

/* Photo Counter Badge */
.pj-img-counter {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--pj-radius-pill);
  letter-spacing: 0.05em;
  z-index: 10;
}

/* View All Photos Button in Modal */
.pj-view-all-photos-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--pj-radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.pj-view-all-photos-btn:hover {
  background: var(--pj-burgundy);
  border-color: var(--pj-burgundy);
}

/* Modal Thumbnails Strip */
.pj-modal-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.75);
  overflow-x: auto;
  scrollbar-width: thin;
}

.pj-thumb-btn {
  width: 60px;
  height: 44px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  transition: all 0.2s ease;
}

.pj-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pj-thumb-btn:hover {
  opacity: 0.9;
}

.pj-thumb-btn.active {
  border-color: var(--pj-burgundy);
  opacity: 1;
  transform: scale(1.04);
}

/* Right Side: Info Panel (WHEN INFO IS PRESENT) */
.pj-info-panel {
  flex: 0.85;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FFFFFF;
  overflow-y: auto;
  max-height: 90vh;
}

.pj-info-category {
  font-family: var(--pj-font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--pj-burgundy);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.pj-info-title {
  font-family: var(--pj-font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--pj-text-dark);
  line-height: 1.25;
  margin: 0 0 1.2rem;
  letter-spacing: -0.01em;
}

.pj-info-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 0;
  border-top: 1px solid #EFEAE4;
  border-bottom: 1px solid #EFEAE4;
  margin-bottom: 1.2rem;
}

.pj-meta-row {
  display: flex;
  align-items: baseline;
  font-size: 0.82rem;
  line-height: 1.4;
}

.pj-meta-label {
  width: 85px;
  font-weight: 700;
  color: #777777;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.pj-meta-val {
  color: var(--pj-text-dark);
  font-weight: 500;
}

.pj-info-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--pj-text-muted);
  margin: 0 0 1.8rem;
}

.pj-btn-inquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--pj-burgundy);
  color: #FFFFFF;
  font-family: var(--pj-font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: var(--pj-radius-sm);
  transition: all 0.25s ease;
}

.pj-btn-inquire:hover {
  background-color: var(--pj-burgundy-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   IMAGE-ONLY MODE ("and if there is no info then just show image")
   ========================================================================== */
.pj-modal.pj-image-only {
  width: min(880px, 92vw);
  max-width: 880px;
  background: #0E0C0E;
}

.pj-modal.pj-image-only .pj-info-panel {
  display: none !important;
}

.pj-modal.pj-image-only .pj-stage {
  flex: 1;
  width: 100%;
  min-height: 520px;
}

.pj-modal.pj-image-only .pj-modal-img {
  max-height: 78vh;
  max-width: 100%;
  width: auto;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.pj-footer {
  background-color: #FAF8F5;
  border-top: 1px solid #ECE7E2;
  padding: 4.5rem 0 2rem;
}

.pj-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.pj-footer-col {
  display: flex;
  flex-direction: column;
}

.pj-footer-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--pj-text-muted);
  max-width: 270px;
  margin: 1rem 0 0;
}

.pj-footer-title {
  font-family: var(--pj-font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pj-text-dark);
  margin: 0 0 1.25rem;
}

.pj-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pj-footer-link {
  font-size: 0.84rem;
  color: var(--pj-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pj-footer-link:hover {
  color: var(--pj-burgundy);
}

.pj-social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.pj-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E6D8D4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pj-burgundy);
  text-decoration: none;
  transition: all 0.25s ease;
}

.pj-social-btn:hover {
  background: var(--pj-burgundy);
  color: #FFFFFF;
  border-color: var(--pj-burgundy);
  transform: translateY(-2px);
}

.pj-newsletter-desc {
  font-size: 0.84rem;
  color: var(--pj-text-muted);
  margin: 0 0 1rem;
}

.pj-newsletter-form {
  display: flex;
  width: 100%;
}

.pj-newsletter-input {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E6D8D4;
  border-right: none;
  border-radius: var(--pj-radius-sm) 0 0 var(--pj-radius-sm);
  padding: 0.72rem 0.95rem;
  font-family: var(--pj-font-body);
  font-size: 0.82rem;
  outline: none;
}

.pj-newsletter-input:focus {
  border-color: var(--pj-burgundy);
}

.pj-newsletter-btn {
  background: var(--pj-burgundy);
  color: #FFFFFF;
  border: none;
  border-radius: 0 var(--pj-radius-sm) var(--pj-radius-sm) 0;
  padding: 0 1.15rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.pj-newsletter-btn:hover {
  background: var(--pj-burgundy-hover);
}

.pj-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #EAE0D8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pj-footer-copy {
  font-size: 0.78rem;
  color: var(--pj-text-subtle);
  margin: 0;
}

.pj-footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pj-footer-legal a {
  font-size: 0.78rem;
  color: var(--pj-text-subtle);
  text-decoration: none;
}

.pj-footer-legal a:hover {
  color: var(--pj-burgundy);
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .pj-row-1, .pj-row-2,
  .pj-dyn-pattern-1, .pj-dyn-pattern-2, .pj-dyn-pattern-4 {
    height: 340px;
  }
  .pj-row-3, .pj-dyn-pattern-3 {
    height: 250px;
  }
  .pj-dyn-pattern-5, .pj-dyn-pattern-pair, .pj-dyn-pattern-solo {
    height: 300px;
  }
  .pj-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  .pj-nav-list {
    display: none;
  }
  .pj-hero-grid {
    grid-template-columns: 1fr;
  }
  .pj-hero-visual {
    display: none;
  }
  .pj-hero-title {
    font-size: 2.75rem;
  }
  
  /* Stacked grid for mobile/tablet */
  .pj-row-1, .pj-row-2, .pj-row-3,
  .pj-dyn-pattern-1, .pj-dyn-pattern-2, .pj-dyn-pattern-3,
  .pj-dyn-pattern-4, .pj-dyn-pattern-5, .pj-dyn-pattern-pair, .pj-dyn-pattern-solo {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .pj-card {
    min-height: 260px;
  }
  .pj-col-stacked {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  /* Modal responsive */
  .pj-modal {
    flex-direction: column;
    max-height: 94vh;
  }
  .pj-stage {
    min-height: 320px;
    max-height: 48vh;
  }
  .pj-info-panel {
    padding: 1.5rem;
    max-height: 46vh;
  }
}

@media (max-width: 600px) {
  .pj-hero-title {
    font-size: 2.25rem;
  }
  .pj-filter-row {
    gap: 0.5rem;
  }
  .pj-filter-pill {
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
  }
  .pj-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pj-footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
