.page-hero { --hero-image: url('https://images.pexels.com/photos/6474471/pexels-photo-6474471.jpeg?auto=compress&cs=tinysrgb&w=1800'); }

/* ── Finishing styles: responsive brochure cover grid ───────────────── */
.brochure-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(0.9rem, 1.5vw, 1.25rem);
}

.finishing-style-card {
  cursor: default;
}

.finishing-style-card.is-active {
  border-color: rgba(184, 90, 46, 0.55);
  box-shadow: 0 16px 38px rgba(64, 45, 34, 0.16);
  transform: translateY(-5px);
}

.finishing-style-trigger {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.finishing-style-trigger:focus-visible {
  outline: 3px solid rgba(184, 90, 46, 0.28);
  outline-offset: -3px;
  border-radius: var(--radius);
}

.finishing-style-heading {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-bottom: 1rem;
}

.finishing-style-toggle-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hairline);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.finishing-style-toggle-copy i {
  font-size: 1rem;
  transition: transform 220ms ease;
}

.finishing-style-card.is-active .finishing-style-toggle-copy i {
  transform: scale(1.1);
}

/* ── Shared unfolding brochure panel ─────────────────────────────────── */
.finishing-brochure {
  margin-top: 2rem;
  perspective: 1400px;
}

.finishing-brochure[hidden] {
  display: none;
}

.finishing-brochure-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(184, 90, 46, 0.2);
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
  box-shadow: 0 24px 60px rgba(42, 31, 24, 0.18);
  opacity: 0;
  transform: rotateX(-7deg) translateY(-18px) scale(0.985);
  transform-origin: top center;
  transition: opacity 260ms ease, transform 320ms cubic-bezier(.2, .75, .3, 1);
}

.finishing-brochure.is-open .finishing-brochure-shell {
  opacity: 1;
  transform: rotateX(0) translateY(0) scale(1);
}

.finishing-brochure-visual {
  position: relative;
  min-height: 440px;
  overflow: hidden;
}

.finishing-brochure-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(11, 17, 30, 0.76));
  pointer-events: none;
}

.finishing-brochure-visual img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  display: block;
}

.finishing-brochure-visual-caption {
  position: absolute;
  z-index: 1;
  right: 2rem;
  bottom: 1.75rem;
  left: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
}

.finishing-brochure-visual-caption span {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-style: italic;
}

.finishing-brochure-visual-caption strong {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finishing-brochure-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.8rem);
  border-left: 1px solid rgba(184, 90, 46, 0.14);
  background:
    linear-gradient(135deg, rgba(184, 90, 46, 0.045), transparent 42%),
    #fff;
}

.finishing-brochure-copy::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -9px;
  width: 18px;
  background: linear-gradient(90deg, transparent, rgba(38, 27, 20, 0.08), transparent);
  pointer-events: none;
}

.finishing-brochure-copy h3 {
  margin: 0.75rem 0 1rem;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
}

.finishing-brochure-description {
  margin: 0;
  color: var(--ink-3);
  font-size: 1rem;
  line-height: 1.8;
}

.finishing-brochure-scope {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--page-bg-2);
}

.finishing-brochure-scope span {
  color: var(--ink-3);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finishing-brochure-scope strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.finishing-brochure-services {
  margin-top: 0.7rem;
}

.finishing-brochure-action {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 700;
}

.finishing-brochure-close {
  position: absolute;
  z-index: 5;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.finishing-brochure-close:hover,
.finishing-brochure-close:focus-visible {
  background: var(--ink);
  color: #fff;
}

.finishing-style-services-label {
  margin: 1rem 0 0;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .brochure-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finishing-brochure-shell {
    grid-template-columns: 1fr;
  }

  .finishing-brochure-visual,
  .finishing-brochure-visual img {
    min-height: 320px;
  }

  .finishing-brochure-copy {
    border-top: 1px solid rgba(184, 90, 46, 0.14);
    border-left: 0;
  }

  .finishing-brochure-copy::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .brochure-card-grid {
    grid-template-columns: 1fr;
  }

  .finishing-style-heading {
    padding-bottom: 0.9rem;
  }
}

/* ── Interior design projects: cards ─────────────────────────────────── */
.project-card {
  cursor: pointer;
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d7d0c5;
  color: var(--ink-muted);
  font-size: 1.6rem;
}

/* ── Interior design projects: detail modal ──────────────────────────── */
body.project-modal-open {
  overflow: hidden;
}

.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.project-modal.is-open {
  display: flex;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.82);
}

.project-modal-box {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  padding: 2.25rem;
}

.project-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 15, 18, 0.06);
  color: var(--ink);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.project-modal-close:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.06);
}

.project-modal-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-modal-title {
  margin: 0 0 0.75rem;
  padding-right: 2.5rem;
}

.project-modal-desc {
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.project-gallery-viewer {
  position: relative;
  margin-bottom: 1.5rem;
}

.project-gallery-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #111318;
}

.project-gallery-main {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.project-gallery-nav,
.project-gallery-expand {
  position: absolute;
  z-index: 3;
  border: 0;
  color: #fff;
  background: rgba(11, 13, 17, 0.72);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-gallery-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.project-gallery-prev { left: 14px; }
.project-gallery-next { right: 14px; }

.project-gallery-expand {
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.project-gallery-nav:hover,
.project-gallery-nav:focus-visible,
.project-gallery-expand:hover,
.project-gallery-expand:focus-visible {
  background: var(--accent);
}

.project-gallery-nav:hover { transform: translateY(-50%) scale(1.06); }

.project-gallery-counter {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  transform: translateX(-50%);
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(11, 13, 17, 0.76);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.project-gallery-thumbs {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.75rem 0 0.25rem;
  scrollbar-width: thin;
}

.project-gallery-thumb {
  flex: 0 0 92px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #d7d0c5;
  opacity: 0.68;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.project-gallery-thumb:hover,
.project-gallery-thumb:focus-visible,
.project-gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-gallery-viewer.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 24px;
  background: rgba(5, 7, 10, 0.97);
}

.project-gallery-viewer.is-expanded .project-gallery-stage {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.project-gallery-viewer.is-expanded .project-gallery-thumbs {
  flex: 0 0 auto;
  justify-content: center;
  padding-top: 14px;
}

.project-gallery-viewer.is-expanded .project-gallery-main {
  cursor: zoom-out;
}

.project-video-label {
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.project-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0f0f12;
}

.project-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

html[dir="rtl"] .project-modal-title {
  padding-right: 0;
  padding-left: 2.5rem;
}

html[dir="rtl"] .project-modal-close {
  right: auto;
  left: 18px;
}

html[dir="rtl"] .project-gallery-expand {
  right: auto;
  left: 14px;
}

@media (max-width: 640px) {
  .project-modal-box {
    padding: 1.5rem;
    max-height: 92vh;
  }
  .project-gallery-stage {
    aspect-ratio: 4 / 3;
  }
  .project-gallery-nav {
    width: 48px;
    height: 48px;
  }
  .project-gallery-prev { left: 8px; }
  .project-gallery-next { right: 8px; }
  .project-gallery-expand {
    top: 8px;
    right: 8px;
  }
  html[dir="rtl"] .project-gallery-expand {
    right: auto;
    left: 8px;
  }
  .project-gallery-thumb {
    flex-basis: 76px;
    height: 56px;
  }
  .project-gallery-viewer.is-expanded {
    padding: 10px;
  }
  .project-gallery-viewer.is-expanded .project-gallery-stage {
    aspect-ratio: auto;
  }
}
