/* ============================================================
   SOLID STONE — PROJECTS PAGE (v4 — bento grid)
   navy #293C48 · gold #C9A96E · Cormorant Garamond + Jost
   font-weight kept between 400–500 throughout. Mobile-first.
   ============================================================ */

.projects-section {
  width: 100%;
  max-width: 85%;
  margin: 0 auto;
  font-family: 'Jost', sans-serif;
}
.projects-section .projects-tile-name,
.projects-section .projects-closing-cta-heading,
.projects-section .projects-contact-title {
  font-family: 'Cormorant Garamond', serif;
}
@media (min-width: 1024px) {
  .projects-section { max-width: 92%; }
}

/* ---------- filters ---------- */

.projects-filters { margin-bottom: 32px; }

.projects-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 10px;
}

.projects-filter-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9A96E;
  font-weight: 500;
}

.projects-filter-btn {
  background: none;
  border: none;
  padding: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(41,60,72,0.55);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.projects-filter-btn:hover { color: #293C48; }
.projects-filter-btn.active {
  color: #293C48;
  border-bottom-color: #C9A96E;
}

.projects-count {
  font-size: 13px;
  color: #7a8f96;
  font-weight: 400;
  margin: 0;
}

/* ---------- grid layout ---------- */

.projects-grid-layout {
  display: flex;
  flex-direction: column;
}

.projects-block {
  padding: 32px 0;
}
.projects-block--dark {
  background: #293C48;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 48px 24px;
  box-sizing: border-box;
}
.projects-block--dark .projects-bento {
  max-width: 92%;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .projects-block--dark .projects-bento {
    max-width: 1400px;
  }
}

/* ---------- bento grid ---------- */

.projects-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.projects-bento--pair {
  grid-template-columns: 1fr 1fr;
}

.projects-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
}
.projects-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
@media (hover: hover) and (pointer: fine) {
  .projects-tile:hover img { transform: scale(1.05); }
}

.projects-tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,28,34,0.8) 0%, rgba(20,28,34,0.05) 55%);
  z-index: 1;
}

.projects-tile-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  z-index: 2;
  text-align: left;
}
.projects-tile-type {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C9A96E;
  font-weight: 500;
  margin-bottom: 6px;
}
.projects-tile-name {
  display: block;
  font-size: 17px;
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
}
.projects-tile-link {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
}

.projects-tile-hidden { display: none; }

/* small client-logo hover mark, centered on the tile */
.projects-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: var(--hover-logo, url('https://solidstone.com/wp-content/uploads/2026/05/2.png'));
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 150px;
  filter: brightness(0) invert(1);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .projects-tile:hover::after { opacity: 1; }
}

/* Big tile gets a bigger caption/logo on desktop only — mobile stays uniform */
.projects-tile--big {
  height: 320px;
}

@media (min-width: 768px) {
  .projects-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 220px 220px;
  }
  .projects-tile--big {
    grid-row: 1 / 3;
    grid-column: 1;
    height: 100%;
  }
  .projects-tile--wide {
    grid-column: 2 / 4;
  }
  .projects-tile--big .projects-tile-name { font-size: 26px; }
  .projects-tile--big .projects-tile-link { font-size: 12px; }
  .projects-tile--big::after {
    background-size: auto 150px;
    background-position: center;
  }
  .projects-bento--pair {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 320px;
  }
  .projects-bento--pair .projects-tile { height: 100%; }
}

/* ---------- lightbox ---------- */

.projects-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,20,28,0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.projects-lightbox.is-open { opacity: 1; pointer-events: auto; }

.projects-lightbox img {
  max-width: 90vw;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.projects-lightbox-close,
.projects-lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: #f5f4f0;
  cursor: pointer;
}
.projects-lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 26px;
  line-height: 1;
}
.projects-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  line-height: 1;
  padding: 10px 16px;
}
.projects-lightbox-prev { left: 8px; }
.projects-lightbox-next { right: 8px; }
@media (max-width: 640px) {
  .projects-lightbox-nav { display: none; }
}

.projects-lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.projects-lightbox-caption .lb-client { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #C9A96E; font-weight: 500; }
.projects-lightbox-caption .lb-type { font-size: 12px; color: rgba(245,244,240,0.6); font-weight: 400; }
.projects-lightbox-caption .lb-title { font-size: 16px; color: #f5f4f0; font-weight: 500; }

.projects-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(245,244,240,0.5);
}

.lightbox-swipe-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(245,244,240,0.4);
  margin: 0;
  display: none;
}
@media (max-width: 640px) {
  .lightbox-swipe-hint { display: block; }
  .projects-lightbox-counter { display: none; }
}

/* ---------- contact modal ---------- */

.projects-contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,28,34,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.projects-contact-overlay.is-open { opacity: 1; pointer-events: auto; }

.projects-contact-modal {
  position: relative;
  background: #293C48;
  width: 100%;
  max-width: 440px;
  padding: 40px 32px;
  box-sizing: border-box;
}

.projects-contact-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(245,244,240,0.5);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.projects-contact-close:hover { color: #fff; }

.projects-contact-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 14px;
}
.projects-contact-title {
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 26px;
  line-height: 1.2;
}

.projects-contact-row {
  display: flex;
  gap: 16px;
}
.projects-contact-row .projects-contact-field { flex: 1; }

.projects-contact-field { margin-bottom: 18px; }
.projects-contact-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,244,240,0.45);
  margin-bottom: 8px;
  font-weight: 400;
}
.projects-contact-field input,
.projects-contact-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245,244,240,0.2);
  border-radius: 0;
  padding: 8px 0;
  font-size: 14px;
  color: #f5f4f0;
  font-weight: 400;
  font-family: 'Jost', sans-serif;
  box-sizing: border-box;
}
.projects-contact-field input:focus,
.projects-contact-field textarea:focus {
  outline: none;
  border-bottom-color: #C9A96E;
}
.projects-contact-field input::placeholder,
.projects-contact-field textarea::placeholder {
  color: rgba(245,244,240,0.3);
}

.projects-contact-submit-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.projects-contact-submit-row button {
  background: transparent;
  color: #C9A96E;
  border: 1px solid #C9A96E;
  border-radius: 0;
  padding: 15px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
}
.projects-contact-submit-row button:hover { background: #C9A96E; color: #293C48; }
.projects-contact-submit-row span {
  font-size: 12px;
  color: rgba(245,244,240,0.45);
  text-align: center;
  font-weight: 400;
}

.projects-contact-success { display: none; text-align: center; padding: 20px 0; }
.projects-contact-success-title { color: #C9A96E; font-size: 17px; font-weight: 500; margin: 0 0 8px; font-family: 'Cormorant Garamond', serif; }
.projects-contact-success-sub { color: rgba(245,244,240,0.65); font-size: 13px; font-weight: 400; margin: 0; }

@media (max-width: 480px) {
  .projects-contact-row { flex-direction: column; gap: 0; }
}

/* ---------- closing CTA, matching homepage's "Ready When You Are" treatment ---------- */

.projects-closing-cta {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 420px;
  overflow: hidden;
  box-sizing: border-box;
  margin-top: 20px;
}
.projects-closing-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://solidstone.com/wp-content/uploads/2026/05/Hotel-X-1.webp');
  background-size: cover;
  background-position: center 30%;
}
.projects-closing-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20,28,34,0.85) 0%, rgba(20,28,34,0.5) 45%, rgba(20,28,34,0.15) 100%);
}
.projects-closing-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 96%;
  margin: 0 auto;
  padding: 90px 24px;
  box-sizing: border-box;
}
.projects-closing-cta-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #C9A96E;
  margin: 0 0 20px;
}
.projects-closing-cta-heading {
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 18px;
  max-width: 460px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6), 0 6px 16px rgba(0,0,0,0.5);
}
.projects-closing-cta-sub {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin: 0 0 32px;
  max-width: 380px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.45);
}
.projects-closing-cta-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #C9A96E;
  background-color: #293C48;
  border: 1px solid rgba(201,169,110,0.4);
  padding: 15px 28px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  transition: background-color 0.3s ease;
}
.projects-closing-cta-btn:hover { background-color: #3d5058; }

@media (min-width: 768px) {
  .projects-closing-cta { min-height: 520px; }
  .projects-closing-cta-inner { padding: 130px 60px; }
  .projects-closing-cta-heading { font-size: 46px; max-width: 560px; }
  .projects-closing-cta-sub { font-size: 16px; max-width: 440px; }
  .projects-closing-cta-btn { font-size: 13px; padding: 17px 34px; }
}