/* ==========================================================================
   PAGES.CSS  —  Page-shell, page heroes, page-specific layouts
   ========================================================================== */

/* ── 1. Page shell ──────────────────────────────────────────────────────── */

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-shell main {
  flex: 1;
}


/* ── 2. Page hero (internal pages with BG image) ────────────────────────── */

.page-hero {
  position: relative;
  padding: 5rem 0 3rem;
  overflow: hidden;
}

/* With background image */
.page-hero--image {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 9, 5, 0.72) 0%,
    rgba(14, 9, 5, 0.38) 60%,
    rgba(14, 9, 5, 0.18) 100%
  );
  z-index: 0;
}

.page-hero--image .container {
  position: relative;
  z-index: 1;
}

.page-hero--split {
  padding-top: 5.5rem;
}

.page-hero__copy {
  display: grid;
  gap: var(--sp-4, 1rem);
  max-width: 700px;
}


/* ── 3. Hero badge & note ───────────────────────────────────────────────── */

.hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill, 999px);
  background: rgba(196, 122, 32, 0.12);
  color: var(--primary-strong, #8b4f0a);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-hero--image .hero-badge {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 248, 239, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-xl, 32px);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* ── 4. Hero card stack (split hero layout) ─────────────────────────────── */

.hero-card-stack {
  position: relative;
  display: grid;
  gap: var(--sp-4, 1rem);
  padding: var(--sp-5, 1.25rem);
  border-radius: var(--r-xl, 32px);
  background: rgba(255, 252, 246, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-lg);
}

.hero-card-stack__meta {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-lg, 24px);
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg, 24px);
  display: block;
}


/* ── 5. About page visual ───────────────────────────────────────────────── */

.about-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl, 32px);
  box-shadow: var(--shadow-xl);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ── 6. Catalog toolbar & filter ────────────────────────────────────────── */

.aside-filter {
  position: sticky;
  top: 6rem;
}

.catalog-toolbar {
  display: grid;
  gap: var(--sp-4, 1rem);
}

.catalog-toolbar__count {
  color: var(--text-soft, #6b5a42);
  font-weight: 600;
  font-size: 0.9rem;
}


/* ── 7. Highlight banner (litofanías feature) ───────────────────────────── */

.highlight-banner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--sp-8, 2rem);
  padding: var(--sp-8, 2rem);
  border-radius: var(--r-xl, 32px);
  background: linear-gradient(140deg,
    rgba(255, 244, 222, 0.82),
    rgba(255, 255, 255, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-lg);
  align-items: center;
}

.highlight-banner__copy {
  display: grid;
  gap: var(--sp-4, 1rem);
  align-content: center;
}

.highlight-banner__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg, 24px);
  box-shadow: var(--shadow-md);
}

.highlight-banner__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}


/* ── 8. Contact layout ──────────────────────────────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: var(--sp-6, 1.5rem);
  align-items: start;
}

/* ── 10. Process grid (steps on about/litofanias pages) ─────────────────── */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--sp-5, 1.25rem);
  counter-reset: steps;
}


/* ── 11. Trust bar ──────────────────────────────────────────────────────── */

.trust-bar {
  padding: var(--sp-5, 1.25rem) 0;
  background: linear-gradient(90deg,
    rgba(255, 245, 230, 0.5),
    rgba(255, 252, 242, 0.8),
    rgba(255, 245, 230, 0.5));
  border-top: 1px solid rgba(196, 122, 32, 0.1);
  border-bottom: 1px solid rgba(196, 122, 32, 0.1);
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-soft, #6b5a42);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.trust-bar__item svg,
.trust-bar__item .icon {
  color: var(--primary, #c47a20);
  flex-shrink: 0;
}

.trust-bar__divider {
  width: 1px;
  height: 1.25rem;
  background: rgba(196, 122, 32, 0.2);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .trust-bar__inner {
    gap: 1rem 1.5rem;
  }
  .trust-bar__divider {
    display: none;
  }
}
