/* Path: /public/assets/css/pages/catalogues.css */
/* ── NAWET PRINT · MINIMAL PHOTO-FIRST CATALOGUE ── */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --cyan:   #00AEEF;
  --yellow: #EFE630;
  --pink:   #e72882;
  --white:  #ffffff;
}

/* ══════════════════════════════════════════════════════
   HERO BANNER
══════════════════════════════════════════════════════ */
.catalogues-hero {
  width: 100%;
  background: var(--white);
  padding: 36px 5% 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  overflow: hidden;
  min-height: 160px;
}
.hero-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 14px;
  flex-shrink: 0;
}
.hero-arrows span {
  width: 0; height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  display: block;
}
.hero-arrows span:nth-child(1) { border-color: transparent transparent transparent var(--pink); }
.hero-arrows span:nth-child(2) { border-color: transparent transparent transparent var(--cyan); opacity:.6; }
.hero-arrows span:nth-child(3) { border-color: transparent transparent transparent var(--pink); }

.hero-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(42px, 7vw, 72px);
  color: var(--cyan);
  line-height: 1.1;
  position: relative;
  z-index: 2;
  margin: 0;
}


/* ══════════════════════════════════════════════════════
   FLIPBOOK SCENE
══════════════════════════════════════════════════════ */
.flipbook-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 52px 20px 28px;
  background: var(--white);
  min-height: 660px;
  position: relative;
}

/* ── Arrows ── */
.flip-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--white);
  color: var(--cyan);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 16px rgba(0,174,239,.1);
  z-index: 10;
}
.flip-arrow:hover {
  background: var(--cyan);
  color: var(--white);
  transform: scale(1.06);
}
.flip-arrow:disabled { opacity: .2; cursor: not-allowed; transform: none; }

/* ── Container ── */
.flipbook-container {
  position: relative;
  box-shadow:
    0 2px 4px rgba(0,174,239,.06),
    0 8px 32px rgba(0,174,239,.14),
    0 28px 64px rgba(0,174,239,.16);
  border-radius: 1px;
}
#flipbook { width: 960px; height: 580px; }
.turn-page { background: var(--white); }

/* ══════════════════════════════════════════════════════
   PAGE BASE
══════════════════════════════════════════════════════ */
.page {
  background: var(--white);
  overflow: hidden;
  position: relative;
}

.page-num {
  position: absolute;
  bottom: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--cyan);
  opacity: 0.5;
  z-index: 10;
}
.page-left  .page-num { left: 24px; }
.page-right .page-num { right: 24px; }

/* ══════════════════════════════════════════════════════
   PHOTO HERO PAGE (left) — full bleed image + minimal label
══════════════════════════════════════════════════════ */
.photo-hero {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--cyan);
}
.photo-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.88) saturate(.95);
  transition: filter .4s;
}
.photo-hero:hover .photo-hero-img { filter: brightness(.82) saturate(1); }

/* Bottom gradient fade */
.photo-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,174,239,.9) 0%,
    rgba(0,174,239,.4) 40%,
    rgba(0,174,239,0) 70%
  );
}

/* Section label pill — top left */
.photo-hero-tag {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pink);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 10px 5px 8px;
  border-radius: 2px;
}
.photo-hero-tag i { font-size: 10px; }

/* Title block — bottom */
.photo-hero-title {
  position: absolute;
  bottom: 40px;
  left: 28px;
  right: 28px;
  z-index: 3;
}
.photo-hero-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin: 0 0 6px;
}
.photo-hero-title p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: .5px;
  margin: 0;
}

/* Cyan accent line */
.photo-hero-title::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--yellow);
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════════════════
   PHOTO GRID PAGE (right) — 4-photo mosaic + tiny specs
══════════════════════════════════════════════════════ */
.photo-grid-page {
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 4-image mosaic: 2 top + 2 bottom */
.photo-mosaic {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
}
.mosaic-cell {
  position: relative;
  overflow: hidden;
  background: var(--cyan);
}
.mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, filter .4s;
  filter: saturate(.9);
}
.mosaic-cell:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}
/* Caption on hover */
.mosaic-cell-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(231,40,130,.8));
  padding: 20px 12px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .3s;
}
.mosaic-cell:hover .mosaic-cell-caption { opacity: 1; }

/* Bottom bar: specs strip */
.photo-grid-specs {
  flex-shrink: 0;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 8px;
}
.spec-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.spec-pill strong {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--yellow);
  line-height: 1;
}
.spec-pill span {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.specs-divider-v {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.3);
  flex-shrink: 0;
}

/* CTA in bottom bar */
.grid-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  background: var(--yellow);
  padding: 8px 14px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .2s, color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.grid-cta:hover { background: var(--white); color: var(--pink); }

/* ══════════════════════════════════════════════════════
   WEBSITES SECTION — special two-column editorial layout
   Page 1: Large featured project (left)
   Page 2: Projects list (right)
══════════════════════════════════════════════════════ */
.web-hero-page {
  position: relative;
  height: 100%;
  background: var(--cyan);
  overflow: hidden;
}
.web-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  display: block;
}
.web-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,174,239,.5) 0%,
    rgba(0,174,239,.1) 30%,
    rgba(0,174,239,0) 50%
  );
}
.web-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 28px 40px;
  z-index: 2;
}
.web-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.web-hero-tag::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--yellow);
  display: block;
}
.web-hero-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 14px;
}
.web-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.web-meta-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.3);
  padding: 4px 10px;
  border-radius: 2px;
}
.web-visit {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap .2s;
}
.web-visit:hover { gap: 9px; }

/* Websites list page */
.web-list-page {
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.web-list-header {
  padding: 28px 28px 18px;
  border-bottom: 2px solid rgba(0,174,239,.1);
  flex-shrink: 0;
}
.web-list-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.web-list-eyebrow::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--pink);
  display: block;
}
.web-list-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  margin: 0;
}
.web-rows {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.web-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(0,174,239,.1);
  transition: background .18s;
  flex: 1;
}
.web-row:hover { background: rgba(231,40,130,.05); }
.web-row:last-child { border-bottom: none; }

.web-row-thumb {
  width: 88px;
  height: 54px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cyan);
}
.web-row-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.85);
  transition: filter .2s;
}
.web-row:hover .web-row-thumb img { filter: saturate(1); }

.web-row-info { flex: 1; }
.web-row-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 2px;
}
.web-row-type {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.web-row-link {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  text-decoration: none;
  font-size: 10px;
  transition: all .2s;
  flex-shrink: 0;
}
.web-row:hover .web-row-link {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
}

/* ══════════════════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════════════════ */
.catalogue-progress-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px 44px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.catalogue-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(0,174,239,.15);
  border-radius: 2px;
  overflow: hidden;
}
.catalogue-progress-fill {
  height: 100%;
  background: var(--pink);
  border-radius: 2px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
  width: 16.66%;
}
.catalogue-progress-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1060px) {
  #flipbook { width: 720px; height: 500px; }
  .photo-hero-title h2 { font-size: 26px; }
  .web-hero-content h2 { font-size: 24px; }
}
@media (max-width: 800px) {
  #flipbook { width: 380px; height: 530px; }
  
  .flipbook-scene { padding: 24px 15px 80px; }
  .flip-arrow { position: absolute; bottom: 20px; z-index: 20; }
  .flip-prev { left: calc(50% - 35px); transform: translateX(-50%); }
  .flip-next { left: calc(50% + 35px); transform: translateX(-50%); }

  .photo-hero-title h2 { font-size: 20px; }
  .photo-hero-title p { display: none; }
  .web-hero-content h2 { font-size: 18px; }
  .web-list-header h3 { font-size: 16px; }
  .web-row-thumb { width: 64px; height: 40px; }
  .photo-grid-specs { padding: 10px 14px; }
  .spec-pill strong { font-size: 11px; }
}
@media (max-width: 480px) {
  #flipbook { width: 320px; height: 490px; }
  .flip-arrow { width: 38px; height: 38px; font-size: 12px; }
  .catalogues-hero { padding: 24px 5% 15px; min-height: auto; }
  .hero-title { font-size: 32px; }
  
  .photo-hero-title h2 { font-size: 17px; }
  .web-hero-content { padding: 20px 18px 32px; }
  
  /* Spec grid on right pages */
  .photo-grid-specs { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px; }
  .specs-divider-v { display: none; }
  .spec-pill { flex: 1 1 40%; text-align: center; }
  .grid-cta { width: 100%; text-align: center; margin-top: 4px; }
  
  /* Web list rows */
  .web-row { padding: 8px 12px; gap: 10px; }
  .web-row-thumb { width: 54px; height: 34px; }
  .web-row-name { font-size: 12px; }
  .web-row-type { font-size: 9px; }
  .web-row-link { width: 24px; height: 24px; font-size: 9px; }
}