/* =============================================================
 The FloorHaus™. Journal index (Downloads/handoff 24, "Journal Original",
 2026-10-28)

 Original colours. Loaded after styles.css, home.css and enquiry.css: the
 header, Our Products dropdown, menu, footer, 90% zoom and the quote modal
 are the home page's (js/home.js). This file is the page's own sections,
 `jr-*`; js/journal.js renders and filters the cards. Reveals (.is-seen on
 each [data-jr-seen]) only hide anything under .hp-js.
 ============================================================= */

body.jr .hp-hdr { position: sticky; }

.jr-main { --jr-ease: cubic-bezier(.22,.61,.36,1); display: block; max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px,4vw,56px); }
.jr-main h1, .jr-main h2, .jr-main h3, .jr-cta h2 { font-family: var(--hp-display); margin: 0; }
.jr-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #6B5B3E; }
.jr-eyebrow > span { display: block; width: 32px; height: 2px; border-radius: 2px; background: #6B5B3E; }

/* Reveals */
.jr-rise { transition: opacity .9s ease var(--d, 0s), transform 1s var(--jr-ease) var(--d, 0s); }
.hp-js [data-jr-seen]:not(.is-seen) .jr-rise { opacity: 0; transform: translateY(22px); }

/* ----- 1. Journal header ----- */
.jr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 64px; padding: clamp(56px,6.5vw,96px) 0 clamp(32px,3.6vw,48px); }
.jr-head__main { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.jr-h1 { font-weight: 600; font-size: clamp(38px,4.4vw,64px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.jr-head__lede { margin: 0; max-width: 380px; font-size: 16px; line-height: 1.6; color: #666666; text-wrap: pretty; }

/* ----- 2. Featured: the newest article large, the next two beside it ----- */
.jr-feat { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
@media (min-width: 900px) { .jr-feat { grid-template-columns: minmax(0,1.62fr) minmax(0,1fr); } }
.jr-lead, .jr-sidecard { position: relative; display: block; border-radius: 24px; overflow: hidden; background: #ECE7DA; color: #FFFFFF; }
.jr-lead:hover, .jr-sidecard:hover { color: #FFFFFF; }
.jr-lead { min-height: clamp(340px,36vw,520px); }
.jr-lead img, .jr-sidecard img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.2s var(--jr-ease); }
.jr-lead:hover img { transform: scale(1.04); }
.jr-sidecard:hover img { transform: scale(1.05); }
.jr-lead__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26,26,26,.72) 0%, rgba(26,26,26,.2) 50%, rgba(26,26,26,0) 70%); pointer-events: none; }
.jr-lead__body { position: absolute; left: clamp(20px,2.4vw,32px); right: clamp(20px,2.4vw,32px); bottom: clamp(20px,2.4vw,32px); display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.jr-lead__tag { align-self: flex-start; height: 28px; padding: 0 12px; display: flex; align-items: center; border-radius: 999px; background: #FFFFFF; color: #1A1A1A; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.jr-lead__title { font-weight: 600; font-size: clamp(26px,2.8vw,40px); line-height: 1.08; letter-spacing: -.02em; max-width: 640px; text-wrap: balance; text-shadow: 0 2px 12px rgba(26,26,26,.3); }
.jr-lead__x { max-width: 560px; font-size: 15px; line-height: 1.55; color: #ECE7DA; }
.jr-lead__topic, .jr-sidecard__topic { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.jr-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.jr-sidecard { min-height: clamp(200px,17.5vw,252px); }
.jr-sidecard__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26,26,26,.7) 0%, rgba(26,26,26,0) 65%); pointer-events: none; }
.jr-sidecard__body { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.jr-sidecard__title { font-weight: 600; font-size: clamp(19px,1.7vw,24px); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; text-shadow: 0 2px 10px rgba(26,26,26,.3); }
.jr-sidecard__topic { font-size: 11px; }

/* ----- 3. More guides: topic pills over the card grid ----- */
.jr-more { padding: clamp(56px,6vw,88px) 0 clamp(72px,8vw,120px); }
.jr-more__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-bottom: 20px; border-bottom: 1.5px dashed #B8B3A6; }
.jr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.jr-pill {
 height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #B8B3A6; background: transparent; color: #1A1A1A;
 font-family: var(--f-sans); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap;
 transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.jr-pill:hover { border-color: #1A1A1A; }
.jr-pill > span { font-size: 11px; opacity: .6; }
.jr-pill.is-on { background: #1A1A1A; color: #FFFFFF; border-color: #1A1A1A; }
.jr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,320px), 1fr)); gap: clamp(36px,3.6vw,52px) clamp(18px,2vw,28px); margin-top: clamp(28px,3vw,40px); }
.jr-card, .jr-card:hover { display: flex; flex-direction: column; gap: 14px; color: #1A1A1A; }
.jr-card[hidden] { display: none; }
.jr-card__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #ECE7DA; }
.jr-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.1s var(--jr-ease); }
.jr-card:hover .jr-card__media img { transform: scale(1.05); }
.jr-card__topic { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #6B5B3E; }
.jr-card__title { margin: -4px 0 0 !important; font-weight: 600; font-size: clamp(19px,1.5vw,22px); line-height: 1.2; letter-spacing: -.015em; text-wrap: pretty; transition: color .3s ease; }
.jr-card:hover .jr-card__title { color: #6B5B3E; }
.jr-card__x { font-size: 14.5px; line-height: 1.55; color: #666666; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jr-card__more { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; }

/* ----- 4. CTA band ----- */
.jr-cta { background: #ECE7DA; color: #1A1A1A; padding: clamp(64px,7vw,104px) clamp(20px,4vw,56px); text-align: center; }
.jr-cta__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.jr-cta h2 { font-weight: 600; font-size: clamp(32px,3.6vw,52px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.jr-cta p { margin: 0; font-size: 17px; line-height: 1.6; color: #666666; }
.jr-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.jr-cta__phone, .jr-cta__phone:hover {
 height: 52px; padding: 0 26px; box-sizing: border-box; border-radius: 999px; border: 1.5px solid #1A1A1A; background: #1A1A1A; color: #FFFFFF;
 font-size: 14px; font-weight: 700; display: flex; align-items: center; transition: background .3s ease, border-color .3s ease;
}
.jr-cta__phone:hover { background: #6B5B3E; border-color: #6B5B3E; }
.jr-cta__quote {
 height: 52px; padding: 0 28px; box-sizing: border-box; border-radius: 999px; border: 1.5px solid #1A1A1A; background: transparent; color: #1A1A1A;
 font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; cursor: pointer; transition: background .3s ease, color .3s ease;
}
.jr-cta__quote:hover { background: #1A1A1A; color: #FFFFFF; }
.jr-rule { height: 1px; background: #B8B3A6; }

/* ============== ONE SCREEN EACH (desktop) ============== */
/* As on the other v2 pages (home.css's --hp-room / --hp-fitpad / --hp-fitgap, from 1024px):
   the journal header and the featured block together fit the first screen, and the CTA band
   fits one. The featured cards take the height the header leaves; the grid is a long list. */
@media (min-width: 1024px) {
 .jr-head { padding: var(--hp-fitpad) 0 var(--hp-fitgap); }
 .jr-h1 { font-size: clamp(34px, min(4.4vw, 7vh), 64px); }
 /* The header and the featured cards share the first screen: the featured block's natural
    height is the design's 520px and it gives way to 300px when the headline runs long; the
    cards fill it. */
 .jr-top { display: flex; flex-direction: column; max-height: calc(100vh / var(--hp-z) - var(--hp-hdr-h)); }
 .jr-head { flex: none; }
 .jr-feat { flex: 0 1 520px; min-height: 300px; grid-template-rows: minmax(0,1fr); }
 .jr-lead, .jr-sidecard { min-height: 0; }
 .jr-cta { padding-top: var(--hp-fitpad); padding-bottom: var(--hp-fitpad); }
}

/* ============== PHONES ============== */
/* Below 768px: the header and the featured block each fit a phone screen (the side cards
   are shorter); the pills are a sideways row. */
@media (max-width: 767px) {
 .jr-head { padding: 28px 0 22px; gap: 12px; }
 .jr-head__main { gap: 12px; }
 .jr-h1 { font-size: clamp(30px, 8.6vw, 38px); }
 .jr-head__lede { font-size: 15px; line-height: 1.55; }
 .jr-feat { gap: 12px; }
 .jr-lead { min-height: 0; height: clamp(280px, calc(100vh - 62px - 2 * 150px - 48px), 400px); border-radius: 20px; }
 .jr-lead__body { gap: 8px; }
 .jr-lead__title { font-size: 24px; }
 .jr-lead__x { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
 .jr-side { gap: 12px; }
 .jr-sidecard { min-height: 150px; border-radius: 20px; }
 .jr-sidecard__body { left: 16px; right: 16px; bottom: 14px; gap: 6px; }
 .jr-sidecard__title { font-size: 18px; }
 .jr-more { padding: 40px 0 56px; }
 .jr-more__bar { gap: 14px; }
 .jr-pills {
  flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; width: calc(100% + 40px);
  margin: 0 -20px; padding: 0 20px;
 }
 .jr-pills::-webkit-scrollbar { display: none; }
 .jr-pill { flex: none; height: 38px; padding: 0 14px; }
 .jr-grid { gap: 32px; margin-top: 24px; }
 .jr-cta { padding: 48px 20px; }
 .jr-cta p { font-size: 15.5px; }
 .jr-cta__btns { width: 100%; }
 .jr-cta__phone, .jr-cta__quote { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
 .jr-main *, .jr-cta * { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
