/* ==========================================================================
   AURELLE — Inner Pages
   Shared chrome for every non-homepage page (Products, Gallery, About,
   Contact): the page hero, breadcrumb, shop toolbar/grid/pagination, the
   gallery filter/grid/lightbox, and page-specific extras.
   ========================================================================== */

/* ---------- Page hero (compact version of the homepage hero) ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(8rem, 6rem + 6vw, 11rem);
  padding-bottom: clamp(3rem, 2.4rem + 3vw, 5rem);
  background: var(--bg-secondary);
  overflow: hidden;
  text-align: center;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { margin-top: 0.75rem; font-size: var(--fs-2xl); }
.page-hero p { max-width: 560px; margin: 1.1rem auto 0; }

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.breadcrumb a:hover { color: var(--accent-deep); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .is-current { color: var(--text-primary); }

.page-hero .floaters { z-index: 1; }

/* ---------- Shop toolbar (category filter + sort) ---------- */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: clamp(2rem, 1.6rem + 1.5vw, 3rem);
  border-bottom: 1px solid var(--border-hair);
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.shop-filter {
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--border-hair);
  color: var(--text-secondary);
  border-radius: 999px;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.shop-filter:hover { border-color: var(--accent); color: var(--text-primary); }
.shop-filter.is-active { background: var(--c-black); border-color: var(--c-black); color: var(--c-ivory); }
[data-theme="dark"] .shop-filter.is-active { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-black); }

.shop-sort { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.shop-sort label { font-size: var(--fs-xs); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-secondary); }
.shop-sort select {
  background: transparent;
  border: 1px solid var(--border-hair);
  border-radius: 999px;
  padding: 0.6rem 2.2rem 0.6rem 1.1rem;
  font-size: var(--fs-xs);
  color: var(--text-primary);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23746C5F' stroke-width='1.4'%3E%3Cpolyline points='3,5 7,9 11,5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 11px;
  cursor: pointer;
}

.shop-result-count { font-size: var(--fs-sm); color: var(--text-secondary); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 1.2rem + 1vw, 2.5rem);
}

.shop-empty {
  text-align: center;
  padding: clamp(3rem, 2.4rem + 3vw, 5rem) 0;
}
.shop-empty p { max-width: 420px; margin: 1rem auto 1.75rem; }

@media (max-width: 1200px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(3rem, 2.4rem + 3vw, 5rem);
}
.pagination__arrow, .pagination__page {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hair);
  border-radius: 50%;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.pagination__arrow svg { width: 14px; height: 14px; }
.pagination__page:hover, .pagination__arrow:hover { border-color: var(--accent); color: var(--text-primary); }
.pagination__page.is-active { background: var(--c-black); border-color: var(--c-black); color: var(--c-ivory); }
[data-theme="dark"] .pagination__page.is-active { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-black); }
.pagination__arrow.is-disabled { opacity: 0.35; pointer-events: none; }
.pagination__pages { display: flex; gap: 0.5rem; }

/* ---------- Gallery filter + masonry grid ---------- */
.gallery-grid {
  columns: 4 240px;
  column-gap: clamp(1rem, 0.8rem + 1vw, 1.75rem);
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: clamp(1rem, 0.8rem + 1vw, 1.75rem);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item:nth-child(3n+1).facet-frame { aspect-ratio: 3 / 4; }
.gallery-item:nth-child(3n+2).facet-frame { aspect-ratio: 1 / 1; }
.gallery-item:nth-child(3n).facet-frame { aspect-ratio: 4 / 5; }
.gallery-item__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(0deg, rgba(14,13,12,0.75), transparent);
  color: var(--c-ivory);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
  z-index: 2;
}
.gallery-item:hover .gallery-item__caption { opacity: 1; transform: translateY(0); }
.gallery-item:hover .placeholder-mark svg { transform: scale(1.08); }
.gallery-item .placeholder-mark svg { transition: transform 0.8s var(--ease-out-soft); }

@media (max-width: 960px) { .gallery-grid { columns: 2 200px; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(14,13,12,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) ease, visibility var(--dur-base);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__frame {
  width: min(70vh, 640px);
  aspect-ratio: 4 / 5;
  position: relative;
}
.lightbox__caption {
  position: absolute;
  bottom: -2.5rem;
  left: 0;
  color: rgba(247,243,236,0.7);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}
.lightbox .modal-close { position: fixed; top: 2rem; right: 2rem; border-color: rgba(247,243,236,0.2); color: var(--c-ivory); }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(247,243,236,0.2);
  color: var(--c-ivory);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav svg { width: 16px; height: 16px; }
.lightbox-prev { left: clamp(1rem, 3vw, 3rem); }
.lightbox-next { right: clamp(1rem, 3vw, 3rem); }

/* ---------- About page ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 1.2rem + 1vw, 2.5rem); }
.value-card { padding: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); border: 1px solid var(--border-hair); }
.value-card .category-tile__icon { margin-bottom: 1.5rem; }
.value-card h3 { font-size: var(--fs-md); margin-bottom: 0.75rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.team-card { text-align: center; }
.team-card__portrait { aspect-ratio: 1 / 1; border-radius: 50%; margin-bottom: 1.25rem; max-width: 160px; margin-inline: auto; }
.team-card h4 { font-size: var(--fs-md); }
.team-card span { font-size: var(--fs-xs); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-secondary); }

@media (max-width: 960px) {
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; }
}

/* ---------- Contact page extras ---------- */
.map-panel {
  aspect-ratio: 16 / 9;
  position: relative;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}
.map-panel span { font-size: var(--fs-xs); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-secondary); }
.map-panel__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-hair) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

/* ---------- Preview-only page divider ----------
   Used solely by the single-file preview to label where each simulated
   "page" begins, since a static HTML file can't do real page navigation.
   Not referenced anywhere in the actual Blade templates. */
.page-divider {
  background: var(--c-black);
  color: var(--c-gold-light);
  padding-block: 1.1rem;
  border-top: 1px solid rgba(247,243,236,0.1);
}
.page-divider .eyebrow { color: var(--c-gold); margin-bottom: 0.3rem; }
.page-divider h4 { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-sm); letter-spacing: 0.04em; color: var(--c-ivory); }
.page-divider code { color: rgba(247,243,236,0.5); font-family: monospace; }

/* ---------- Generic page cross-link band ---------- */
.crosslink-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-hair-inverse);
}
.crosslink-band a {
  padding: clamp(2rem, 1.6rem + 1.5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-right: 1px solid var(--border-hair-inverse);
  color: var(--text-inverse);
  transition: background var(--dur-fast) ease;
}
.crosslink-band a:last-child { border-right: none; }
.crosslink-band a:hover { background: rgba(247,243,236,0.04); }
.crosslink-band a:hover svg { transform: translateX(5px); }
.crosslink-band span { display: flex; flex-direction: column; gap: 0.3rem; }
.crosslink-band .eyebrow { color: var(--c-gold-light); }
.crosslink-band strong { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 500; }
.crosslink-band svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--dur-fast) ease; }

@media (max-width: 960px) {
  .crosslink-band { grid-template-columns: 1fr; }
  .crosslink-band a { border-right: none; border-bottom: 1px solid var(--border-hair-inverse); }
  .crosslink-band a:last-child { border-bottom: none; }
}

@media (max-width: 680px) {
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
  .shop-sort { width: 100%; }
  .shop-sort select { flex: 1; }
  .lightbox__frame { width: min(85vw, 500px); }
  .lightbox-nav { width: 40px; height: 40px; }
  .page-hero h1 { font-size: var(--fs-xl); }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 440px) {
  .shop-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
