﻿/* =============================================
   SHARED GALLERY PAGES (home-decor, collection, theme)
   ============================================= */

/* When no hero is present, offset the first section for the fixed navbar */
main > .gp-gallery-section:first-child,
main > .section:first-child {
  margin-top: 90px;
}

/* Hero */
.gp-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  margin-top: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2318 0%, #1a1a1a 100%);
}
.gp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}
.gp-hero--collection::before { background-image: image-set(url('images/collection-bedroom-1.webp') type("image/webp"), url('images/collection-bedroom-1.jpg') type("image/jpeg")); }
.gp-hero--theme::before       { background-image: image-set(url('images/theme-floral-1.webp') type("image/webp"), url('images/theme-floral-1.jpg') type("image/jpeg")); }
.gp-hero--pune::before        { background-image: image-set(url('images/project-1.webp') type("image/webp"), url('images/project-1.jpg') type("image/jpeg")); }
.gp-hero:not(.gp-hero--collection):not(.gp-hero--theme):not(.gp-hero--pune)::before { background-image: image-set(url('images/decor-wallart.webp') type("image/webp"), url('images/decor-wallart.jpg') type("image/jpeg")); }

.gp-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}

.gp-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  padding: 0 6vw;
}

.gp-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}

.gp-hero-content h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
}

.gp-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

/* Gallery section */
.gp-gallery-section { background: #FAF7F2; }

.gp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.gp-card {
  overflow: hidden;
  border: 1px solid #E0D8CE;
  transition: box-shadow 0.3s;
}
.gp-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }

.gp-img-wrap {
  height: 320px;
  overflow: hidden;
  background: #d4c9b8;
}
.gp-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gp-card:hover .gp-img-wrap img { transform: scale(1.05); }

.gp-card figcaption {
  padding: 20px 20px 24px;
}

.gp-card figcaption h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.gp-card figcaption p {
  font-size: 0.87rem;
  color: #5A5048;
  line-height: 1.65;
}

/* CTA strip */
.gp-cta-section {
  background: #F2EDE6;
  text-align: center;
  padding: 72px 20px;
}

.gp-cta-section h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 500;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.gp-cta-section p {
  font-size: 0.95rem;
  color: #5A5048;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 900px) {
  .gp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .gp-grid { grid-template-columns: 1fr; }
}

/* =============================================
   HOME DECOR – CUSHION EXPANDABLE GALLERY
   ============================================= */

/* Arrow indicator on cushion card */
.hd-card-toggle .hd-expand-arrow {
  display: inline-block;
  font-size: 1.1rem;
  margin-left: 6px;
  transition: transform 0.3s ease;
  vertical-align: middle;
  color: #8B7355;
}
.hd-card-toggle[aria-expanded="true"] .hd-expand-arrow {
  transform: rotate(180deg);
}
.hd-card-toggle:hover figcaption h3 { color: #8B7355; }

/* Cushion gallery panel */
.hd-cushion-gallery {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s ease, opacity 0.4s ease, padding 0.4s ease;
  opacity: 0;
  padding: 0 0;
}
.hd-cushion-gallery.open {
  max-height: 2000px;
  opacity: 1;
  padding: 52px 0 0;
}

.hd-gallery-head {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}
.hd-gallery-head h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.hd-gallery-head p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #5A5048;
  font-style: italic;
}
.hd-gallery-close {
  position: absolute;
  top: 0; right: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: none;
  border: 1px solid #C4B5A5;
  color: #3a2e26;
  padding: 7px 16px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.hd-gallery-close:hover { background: #3a2e26; color: #fff; border-color: #3a2e26; }

/* 3-column cushion grid */
.hd-cg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
  max-width: 960px;
  margin: 0 auto;
}
.hd-cg-card {
  cursor: pointer;
}
.hd-cg-card:hover .hd-cg-img img { transform: scale(1.04); }
.hd-cg-img {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #e8e0d5;
  border-radius: 2px;
}
.hd-cg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hd-cg-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.95rem;
  color: #2C2520;
  margin-top: 10px;
  text-align: center;
}

/* Cushion lightbox */
.hd-lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,14,10,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.hd-lb-overlay.active { display: flex; }
.hd-lb-box {
  position: relative;
  max-width: 700px;
  width: 100%;
  background: #FAF7F2;
  border-radius: 2px;
  overflow: hidden;
}
.hd-lb-box img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
.hd-lb-caption {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  color: #2C2520;
  padding: 16px 20px;
  text-align: center;
}
.hd-lb-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: #fff;
  border: 1px solid #E0D8CE;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: #3a2e26;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}
.hd-lb-close:hover { background: #3a2e26; color: #fff; }

@media (max-width: 700px) {
  .hd-cg-grid { grid-template-columns: repeat(2, 1fr); }
  .hd-gallery-close { position: static; margin-top: 12px; }
}
@media (max-width: 420px) {
  .hd-cg-grid { grid-template-columns: 1fr; }
}

/* ===== COLLECTION CATEGORY BOXES ===== */
.col-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.col-cat-box {
  display: block;
  text-decoration: none;
  color: inherit;
}
.col-cat-img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.col-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.col-cat-box:hover .col-cat-img img { transform: scale(1.05); }
.col-cat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 14px;
  border-bottom: 1px solid #e0d9d0;
}
.col-cat-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2C2419;
}
.col-cat-arrow {
  font-size: 1rem;
  color: #7C5C3E;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.col-cat-box:hover .col-cat-arrow { transform: translateX(5px); }
@media (max-width: 900px) {
  .col-cats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 540px) {
  .col-cats { grid-template-columns: 1fr; gap: 24px; }
  .col-cat-img { aspect-ratio: 4/3; }
}

/* ---- Luxury city page hero h1 – keep title on one line ---- */
.lp-hero .gp-hero-content h1 {
  font-size: clamp(1rem, 1.85vw, 1.55rem);
  white-space: nowrap;
  line-height: 1.15;
}
@media (max-width: 768px) {
  .lp-hero .gp-hero-content h1 {
    white-space: normal;
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  }
  .gp-hero { margin-top: 63px; min-height: 260px; height: 42vh; }
  main > .gp-gallery-section:first-child,
  main > .section:first-child { margin-top: 63px; }
}
