/* ============================================================
   CHAPTER.CSS — Maison Olivané v15
   Warm travertine editorial — product-first, seamless unfolding
   ============================================================ */

/* ── CHAPTER HERO ─────────────────────────────────────────── */
.chapter-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.chapter-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 10s ease;
  filter: brightness(0.68) saturate(0.88);
}
.chapter-hero:hover .chapter-hero-bg { transform: scale(1.01); }
.chapter-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(245,240,235,0.06) 0%,
    rgba(26,20,14,0.45) 55%,
    rgba(26,20,14,0.78) 100%
  );
}
.chapter-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 700px;
}
.chapter-hero-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #B89E82;
  margin-bottom: 1.2rem;
}
.chapter-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 300;
  color: #F5F0EB;
  line-height: 0.95;
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}
.chapter-hero-arabic {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-style: italic;
  color: rgba(245,240,235,0.42);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.chapter-hero-divider {
  width: 36px;
  height: 1px;
  background: #9B866A;
  margin: 0 auto 1rem;
  opacity: 0.55;
}
.chapter-hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.35);
}
.chapter-hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245,240,235,0.3);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: heroScroll 2.8s ease-in-out infinite;
}
.chapter-hero-scroll::after {
  content: '';
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, rgba(245,240,235,0.3), transparent);
}
@keyframes heroScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
  50% { transform: translateX(-50%) translateY(-7px); opacity: 0.55; }
}

/* ── CONTROLS BAR (origin + gold rate) ───────────────────── */
.chapter-controls {
  background: #F5F0EB;
  border-bottom: 1px solid rgba(155,134,106,0.18);
  position: sticky;
  top: 58px;
  z-index: 90;
}
.chapter-controls-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem 2rem;
  flex-wrap: wrap;
}
.diamond-origin-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.diamond-origin-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(44,44,44,0.38);
  white-space: nowrap;
}
.diamond-origin-toggle { display: flex; gap: 0.4rem; }
.origin-btn {
  background: transparent;
  border: 1px solid rgba(155,134,106,0.3);
  color: rgba(44,44,44,0.48);
  padding: 0.42rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}
.origin-btn:hover { border-color: #9B866A; color: #2C3C2C; }
.origin-btn.active { background: #9B866A; border-color: #9B866A; color: #F5F0EB; }
.origin-btn-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.origin-btn-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.diamond-origin-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(44,44,44,0.28);
  font-style: italic;
}
.gold-rate-group {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}
.gold-rate-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(44,44,44,0.32);
  white-space: nowrap;
}
.gold-rate-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #9B866A;
}
.gold-rate-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.48rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(44,44,44,0.25);
}

/* ── CHAPTER MANIFESTO ────────────────────────────────────── */
.chapter-manifesto {
  background: #F5F0EB;
  padding: 5.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(155,134,106,0.12);
}
.chapter-manifesto blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(44,44,44,0.65);
  max-width: 680px;
  margin: 0 auto 1.2rem;
  line-height: 1.78;
  letter-spacing: 0.02em;
}
.chapter-manifesto cite {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #9B866A;
}

/* ── PRODUCT FAMILIES SECTION ─────────────────────────────── */
.product-families {
  background: #F5F0EB;
  padding: 2rem 2rem 8rem;
}
.product-families-header {
  text-align: center;
  padding: 3rem 0 4rem;
  max-width: 600px;
  margin: 0 auto;
}
.product-families-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: #2C3C2C;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}
.product-families-header p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(44,44,44,0.35);
}

/* ── PRODUCT FAMILY ───────────────────────────────────────── */
.product-family {
  max-width: 1200px;
  margin: 0 auto 6rem;
}
.product-family:last-child { margin-bottom: 0; }
.product-family-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(155,134,106,0.22);
}
.product-family-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: #2C3C2C;
  margin: 0;
  letter-spacing: 0.02em;
}
.product-family-arabic {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #9B866A;
  letter-spacing: 0.05em;
}
.product-family-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(44,44,44,0.28);
  margin-left: auto;
}

/* ── PRODUCT TILE GRID ────────────────────────────────────── */
.product-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
}

/* ── PRODUCT TILE ─────────────────────────────────────────── */
.product-tile {
  display: block;
  background: #EDE8E1;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(155,134,106,0.1);
  transition: border-color 0.3s, transform 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
.product-tile:hover {
  border-color: rgba(155,134,106,0.42);
  transform: translateY(-4px);
  box-shadow: 0 18px 52px rgba(44,44,44,0.1);
}
.tile-image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #E4DDD5;
}
.tile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.65s ease;
}
.product-tile:hover .tile-image-wrap img { transform: scale(1.05); }
.tile-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #9B866A;
  color: #F5F0EB;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.48rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.26rem 0.58rem;
}
.tile-body {
  padding: 1.2rem 1.2rem 1.5rem;
  background: #EDE8E1;
}
.tile-sku {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.46rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(44,44,44,0.25);
  margin-bottom: 0.35rem;
}
.tile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #2C3C2C;
  margin: 0 0 0.3rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.tile-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(44,44,44,0.4);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.tile-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tile-price-from {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(44,44,44,0.3);
  text-transform: uppercase;
}
.tile-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #9B866A;
}
.tile-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(155,134,106,0.16);
  padding-top: 0.75rem;
}
.tile-cta-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(44,44,44,0.38);
  transition: color 0.2s;
}
.tile-cta-arrow {
  color: #9B866A;
  font-size: 0.9rem;
  transition: transform 0.2s;
}
.product-tile:hover .tile-cta-text { color: #2C3C2C; }
.product-tile:hover .tile-cta-arrow { transform: translateX(4px); }

/* ── CHAPTER NAVIGATION ───────────────────────────────────── */
.chapter-nav-section {
  background: #F5F0EB;
  border-top: 1px solid rgba(155,134,106,0.15);
  padding: 3rem 2rem;
}
.chapter-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.chapter-nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(44,44,44,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.chapter-nav-link:hover { color: #9B866A; }

/* ── COMING SOON (FALAK) ──────────────────────────────────── */
.coming-soon-section {
  background: #F5F0EB;
  padding: 4rem 2rem;
}
.coming-soon-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.coming-soon-tile {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #E4DDD5;
}
.coming-soon-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(0.2) brightness(0.72);
  transition: filter 0.4s, transform 0.55s;
}
.coming-soon-tile:hover .coming-soon-tile-img {
  filter: grayscale(0) brightness(0.85);
  transform: scale(1.04);
}
.coming-soon-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,20,14,0.88) 0%, rgba(26,20,14,0.25) 55%, transparent 100%);
}
.coming-soon-tile-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.5rem 2rem;
}
.coming-soon-pill {
  display: inline-block;
  background: rgba(155,134,106,0.12);
  border: 1px solid rgba(155,134,106,0.38);
  color: #9B866A;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.48rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  margin-bottom: 0.7rem;
}
.coming-soon-tile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: #F5F0EB;
  margin: 0 0 0.25rem;
}
.coming-soon-tile-arabic {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: #9B866A;
  margin-bottom: 0.7rem;
}
.coming-soon-tile-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(245,240,235,0.45);
  line-height: 1.6;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-tile-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (max-width: 768px) {
  .chapter-hero { height: 85vh; }
  .product-tile-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .chapter-controls-inner { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .gold-rate-group { margin-left: 0; }
  .tile-name { font-size: 1.05rem; }
  .tile-sku { display: none; }
  .product-families { padding: 1.5rem 1rem 5rem; }
  .product-family { margin-bottom: 4rem; }
}
@media (max-width: 480px) {
  .product-tile-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .tile-body { padding: 0.75rem; }
  .tile-desc { display: none; }
  .tile-price { font-size: 0.95rem; }
  .chapter-hero-title { font-size: clamp(3rem, 12vw, 5rem); }
}
