/* ============================================
   BEAUTY BY JAS KAUR — Portfolio Page Styles
   portfolio.css
   ============================================ */

/* ============================================
   PAGE HERO — minimal, text only
============================================ */
.portfolio-hero {
  padding-top: 130px;
  padding-bottom: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--silk);
}

.portfolio-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.portfolio-hero__left h1 {
  color: var(--sealskin);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}

.portfolio-hero__left h1 em {
  font-style: italic;
  color: var(--espresso);
}

.portfolio-hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-bottom: 8px;
}

.portfolio-hero__right p {
  font-size: 0.88rem;
  color: var(--taupe);
  text-align: right;
  max-width: 300px;
  line-height: 1.75;
}

.portfolio-count {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 300;
  color: var(--silk);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ============================================
   FILTER TABS
============================================ */
.portfolio-filter {
  background: var(--white);
  padding: 32px 5%;
  position: sticky;
  top: 67px;
  z-index: 100;
  border-bottom: 1px solid var(--silk);
  transition: box-shadow 0.3s var(--ease);
}

.portfolio-filter.stuck {
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}

.filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  background: transparent;
  border: 1px solid var(--silk);
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.filter-btn:hover {
  border-color: var(--oat);
  color: var(--sealskin);
}

.filter-btn.active {
  background: var(--sealskin);
  color: var(--ivory);
  border-color: var(--sealskin);
}

/* ============================================
   PORTFOLIO GRID — multi-column masonry-style
============================================ */
.portfolio-grid-section {
  padding: 48px 5% 80px;
}

.portfolio-grid-inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* CSS columns — true masonry layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

/* Each image fills the item */
.portfolio-item__img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(160deg, var(--silk) 0%, var(--oat) 100%);
}

/* Hover: zoom + dark overlay */
.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 22, 0);
  transition: background 0.4s var(--ease);
  pointer-events: none;
}

.portfolio-item:hover::after {
  background: rgba(28, 24, 22, 0.28);
}

.portfolio-item:hover .portfolio-item__img {
  transform: scale(1.05);
}

/* Hover overlay: category label + expand icon */
.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}

.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item__expand {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(246, 242, 236, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  font-size: 1.1rem;
}

.portfolio-item__label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 242, 236, 0.85);
}

/* Varied aspect ratios for visual rhythm */
.portfolio-item--tall .portfolio-item__img    { aspect-ratio: 3 / 4.5; }
.portfolio-item--portrait .portfolio-item__img { aspect-ratio: 3 / 4; }
.portfolio-item--square .portfolio-item__img   { aspect-ratio: 1 / 1; }
.portfolio-item--wide .portfolio-item__img     { aspect-ratio: 4 / 3; }

/* Default ratio */
.portfolio-item .portfolio-item__img           { aspect-ratio: 2 / 3; }

/* Placeholder tones (used until real photos are added) */
.ph-1  { background: linear-gradient(150deg, #e8ddd6, #cbbfaf) !important; }
.ph-2  { background: linear-gradient(150deg, #d4c8bc, #b8a99a) !important; }
.ph-3  { background: linear-gradient(150deg, #c8bdb4, #a89080) !important; }
.ph-4  { background: linear-gradient(150deg, #ddd4c8, #c4b5a6) !important; }
.ph-5  { background: linear-gradient(150deg, #cbbfaf, #8a8077) !important; }
.ph-6  { background: linear-gradient(140deg, #3d2e27, #5b4a3e) !important; }
.ph-7  { background: linear-gradient(140deg, #5b4a3e, #8a8077) !important; }
.ph-8  { background: linear-gradient(160deg, #ebded4, #cbbfaf) !important; }
.ph-9  { background: linear-gradient(150deg, #2e2b28, #5b4a3e) !important; }
.ph-10 { background: linear-gradient(150deg, #8a8077, #cbbfaf) !important; }

/* ============================================
   PER-IMAGE POSITION OVERRIDES
============================================ */

/* Row 1, col 3 — Facetune_29-01-2026: full head visible with breathing room above */
[data-index="2"] .portfolio-item__img {
  object-fit: cover;
  object-position: 45% 5%;
}

/* Row 2, col 3 — IMG_8470: full head with breathing room, forehead visible */
[data-index="6"] .portfolio-item__img {
  object-fit: cover;
  object-position: center 8%;
}

/* Filter hide/show animation */
.portfolio-item.hidden {
  display: none;
}

.portfolio-item.fade-in {
  animation: fadeIn 0.45s var(--ease) both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================
   LIGHTBOX
============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 17, 15, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  padding: 20px;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__stage {
  position: relative;
  max-width: min(900px, 92vw);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.38s var(--ease), opacity 0.38s var(--ease);
  border: none;
  user-select: none;
}

.lightbox.open .lightbox__img {
  transform: scale(1);
  opacity: 1;
}

/* Close button */
.lightbox__close {
  position: fixed;
  top: 24px;
  right: 28px;
  background: none;
  border: 1px solid rgba(246, 242, 236, 0.2);
  color: rgba(246, 242, 236, 0.7);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  z-index: 2001;
}

.lightbox__close:hover {
  background: rgba(246, 242, 236, 0.1);
  color: var(--ivory);
  border-color: rgba(246, 242, 236, 0.5);
}

/* Prev / Next nav */
.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(246, 242, 236, 0.18);
  color: rgba(246, 242, 236, 0.65);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  z-index: 2001;
}

.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(246, 242, 236, 0.1);
  color: var(--ivory);
  border-color: rgba(246, 242, 236, 0.45);
}

/* Counter */
.lightbox__counter {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 242, 236, 0.4);
  z-index: 2001;
}

/* Caption */
.lightbox__caption {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 242, 236, 0.45);
  white-space: nowrap;
  z-index: 2001;
}

/* ============================================
   BOOKING CTA
============================================ */
.booking-banner {
  background: var(--sealskin);
  padding: 110px 5%;
  position: relative;
  overflow: hidden;
}

.booking-banner::before {
  content: 'JK';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: 28vw;
  font-weight: 300;
  color: rgba(255,255,255,0.025);
  letter-spacing: 0.1em;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

.booking-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.booking-banner__inner h2 { color: var(--ivory); font-size: clamp(2.2rem, 5vw, 4rem); }
.booking-banner__inner h2 em { font-style: italic; color: var(--oat); }
.booking-banner__inner p { color: var(--taupe); font-size: 0.9rem; max-width: 400px; margin-top: 14px; line-height: 1.85; }
.booking-banner__inner .btn { margin-top: 2.6rem; }

/* ============================================
   FOOTER
============================================ */
.footer { background: var(--sealskin); color: var(--ivory); padding: 70px 5% 36px; }
.footer__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__logo-name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.footer__tagline { font-size: 0.65rem; letter-spacing: 0.22em; color: var(--oat); text-transform: uppercase; }
.footer__col-heading { font-family: var(--font-sans); font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--oat); margin-bottom: 18px; }
.footer__nav-links { display: flex; flex-direction: column; gap: 10px; }
.footer__nav-links a { font-size: 0.84rem; color: rgba(246,242,236,0.6); letter-spacing: 0.05em; transition: color 0.3s; }
.footer__nav-links a:hover { color: var(--ivory); }
.footer__contact-col a, .footer__contact-col p { font-size: 0.84rem; color: rgba(246,242,236,0.6); line-height: 2.1; display: block; transition: color 0.3s; }
.footer__contact-col a:hover { color: var(--ivory); }
.footer__bottom { max-width: 1200px; margin: 28px auto 0; display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; color: var(--taupe); letter-spacing: 0.08em; }

/* ============================================
   SCROLL REVEAL
============================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-hero__right { display: none; }
}

@media (max-width: 768px) {
  .portfolio-hero { padding-top: 100px; padding-bottom: 40px; }
  .portfolio-hero__left h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .portfolio-filter { top: 60px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__close { top: 16px; right: 16px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .filter-btn { font-size: 0.6rem; padding: 8px 16px; }
}
