/* Page layouts for roda-patio-furniture.com on top of the design system. */

/* ---------- hero: display word over the piece, thumbnail column on the right ---------- */
.hero { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: 40px; padding-bottom: 56px; overflow: hidden; }
.hero__main { grid-column: 1 / span 8; min-width: 0; display: grid; gap: 28px; }
.hero__thumbs { grid-column: 9 / span 2; display: grid; gap: 14px; align-content: center; list-style: none; margin: 0; padding: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; font: 700 14px/1.3 var(--text); color: var(--sage-deep); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero__stage { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero__piece { position: relative; z-index: 1; width: min(480px, 70%); margin-bottom: 40px; }
.hero__piece img { width: 100%; filter: drop-shadow(0 30px 30px rgba(43, 33, 28, .18)); }
.hero__stage .spots { width: min(480px, 70%); margin-bottom: 40px; }
.hero__stage .spots .hero__piece { width: 100%; margin: 0; }
.hero__word {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; pointer-events: none;
  font-size: clamp(56px, calc((100vw - var(--rail) - 260px) * 0.8 / (var(--len, 5) * 0.64)), 184px);
  color: var(--ink); white-space: nowrap;
  transition: opacity var(--t-mid) var(--ease-flat);
}
/* the display word waits for Bagel Fat One (max 1.5 s, see the head script) instead of flashing in the fallback */
.fonts-wait .hero__word { opacity: 0; }
.hero__copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-items: end; }
.hero__copy .lead { margin: 0; }
.hero__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero__meta li { padding: 8px 14px; border-radius: 999px; background: rgba(247, 248, 242, .6); font: 700 14px/1.2 var(--text); }
.thumb { display: grid; gap: 8px; text-decoration: none; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-thumb); background: var(--surface); transition: transform var(--t-slow) var(--ease); }
.thumb:hover img { transform: translateY(-6px) rotate(-1deg); }
.thumb span { font: 800 15px/1.2 var(--text); }
.thumb small { display: block; font: 600 13px/1.3 var(--text); color: var(--ink); opacity: .75; }
.hero--photo .hero__stage { place-items: stretch; }
.hero--photo .hero__stage > picture img, .hero--photo .hero__stage > .spots img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.hero--photo .hero__word { bottom: -0.12em; }
.hero--photo .hero__stage .spots { width: 100%; margin: 0; }
@media (max-width: 1199px) {
  .hero__main { grid-column: 1 / -1; }
  .hero__thumbs { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
  .hero__word { font-size: clamp(56px, calc((100vw - var(--rail) - 120px) * 0.9 / (var(--len, 5) * 0.64)), 184px); }
}
@media (max-width: 899px) {
  .hero { padding-top: 24px; padding-bottom: 32px; }
  .hero__stage { min-height: 0; padding-bottom: 20px; }
  .hero__piece, .hero__stage .spots { width: min(360px, 82%); margin-bottom: 24px; }
  .hero__word { font-size: min(72px, calc((100vw - 64px) / (var(--len, 5) * 0.64))); line-height: .9; }
  .hero__copy { grid-template-columns: 1fr; }
  .hero__actions { grid-column: 1; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__thumbs { gap: 10px; }
  .thumb span { font-size: 13px; }
  .thumb small { display: none; }
}

/* ---------- two-column blocks ---------- */
.split { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: start; }
.split__text { grid-column: 1 / span 5; min-width: 0; }
.split__media { grid-column: 7 / span 4; min-width: 0; }
.split--flip .split__text { grid-column: 6 / span 5; grid-row: 1; }
.split--flip .split__media { grid-column: 1 / span 4; grid-row: 1; }
.split__media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.split__media figcaption { margin-top: 10px; font: 600 14px/1.5 var(--text); color: var(--muted); }
.prose { max-width: var(--measure); }
.prose h2 { margin-bottom: 20px; }
.prose h3 { font: 800 22px/1.3 var(--text); margin: 28px 0 10px; }
.accent-line { font: 400 36px/1.1 var(--display); color: var(--accent-deep); margin: 36px 0 0; max-width: 20ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding: 14px 18px 14px 52px; border-radius: var(--radius-control); background: var(--bg); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 18px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--hero); box-shadow: inset 0 0 0 5px var(--sage-deep); }
.ticks strong { font-weight: 800; }
@media (max-width: 899px) {
  .split__text, .split__media, .split--flip .split__text, .split--flip .split__media { grid-column: 1 / -1; grid-row: auto; }
  .accent-line { font-size: 28px; }
}

/* ---------- pillars (lists on the home page) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.pillars li { padding: 28px; border-radius: var(--radius); background: var(--bg); }
.pillars b { display: block; font: 400 36px/1 var(--display); margin-bottom: 12px; color: var(--sage-deep); }
.pillars h3 { font: 800 20px/1.3 var(--text); margin-bottom: 8px; }
.pillars p { margin: 0; color: var(--muted); }
@media (max-width: 899px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.gallery li { grid-column: span 3; }
.gallery li:nth-child(4n+1) { grid-column: span 4; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.gallery li:nth-child(4n+1) img { aspect-ratio: auto; min-height: 100%; }
@media (max-width: 899px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px; }
  .gallery li { flex: 0 0 78%; scroll-snap-align: start; }
  .gallery li:nth-child(4n+1) img { aspect-ratio: 4 / 5; }
}

/* ---------- piece cards and finishes ---------- */
.pieces { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.finishes { display: grid; gap: 12px; }
.finish { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding: 16px 20px; border-radius: var(--radius-control); background: var(--bg); }
.finish b { font: 800 15px/1.3 var(--text); min-width: 12ch; }
.finish span { font-weight: 600; color: var(--muted); }

/* ---------- request block ---------- */
.request { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; }
.request__intro { grid-column: 1 / span 4; }
.request__form { grid-column: 5 / span 6; padding: 36px; border-radius: var(--radius); background: var(--surface); }
.panel .request__form { background: var(--bg); }
.panel .request__form .field input, .panel .request__form .field select, .panel .request__form .field textarea { background: var(--surface); }
.panel .request__form .field input:focus, .panel .request__form .field select:focus, .panel .request__form .field textarea:focus { background: #fff; }
.request__intro .ticks { margin-top: 24px; }
.request__intro .ticks li { background: var(--surface); }
.panel .request__intro .ticks li { background: var(--bg); }
@media (max-width: 1099px) { .request__intro, .request__form { grid-column: 1 / -1; } }
@media (max-width: 599px) { .request__form { padding: 20px 16px; } }

/* ---------- ready to ship list ---------- */
.updated { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--surface); font: 800 14px/1 var(--text); }
.updated::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sage-deep); }

/* ---------- designers ---------- */
.designer { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 28px; padding: 28px; border-radius: var(--radius); background: var(--bg); }
.designer + .designer { margin-top: 12px; }
.designer__photo { grid-column: 1 / span 3; }
.designer__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.designer__text { grid-column: 4 / span 7; }
.designer__text h2 { margin-bottom: 12px; }
.designer__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
@media (max-width: 899px) { .designer__photo, .designer__text { grid-column: 1 / -1; } .designer { padding: 16px; } }

/* ---------- 404 ---------- */
.lost { text-align: center; }
.lost .display-xl { color: var(--ink); }

/* compact rows in a side column */
.rows--compact .row { grid-template-columns: 52px minmax(0, 1fr) 44px; gap: 12px; }
.rows--compact .row__thumb { width: 52px; height: 52px; }
.rows--compact .row__name { font-size: 22px; }
.rows--compact .row__meta--designer, .rows--compact .row__meta--count { display: none; }
.rows--compact .row__arrow { width: 44px; height: 44px; }

/* phones: two cards per row, spec cells keep their words together */
.plates td:first-child { min-width: 130px; }
@media (max-width: 599px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .card__foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .card__name { font-size: 16px; }
  .card__sub { font-size: 13px; }
  .card .pill-btn { min-height: 40px; padding: 0 14px; }
}
