/**
 * Homepage Design Families V2 — presentation / studio layouts (non-card-heavy).
 * Scoped under .home-pres; pairs with body.theme-pack--* and theme-composition hooks.
 */

.home-pres {
  --home-pres-gap: clamp(2.5rem, 5vw, 4.5rem);
  --home-pres-pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --home-pres-band-bg: var(--rj-surface-elevated, #f6f7f9);
  --home-pres-dark: #14181f;
  --home-pres-dark-text: #f4f5f7;
  --home-pres-accent: var(--rj-accent, #2a5ea8);
}

.site-home--presentation .site-section {
  margin-bottom: 0;
}

.home-pres__section {
  padding: var(--home-pres-gap) var(--home-pres-pad-x);
}

.home-pres__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.home-pres__section-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
}

.home-pres__link-cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Dark hero */
.home-pres__dark-hero {
  padding: 0;
  background: var(--home-pres-dark);
  color: var(--home-pres-dark-text);
}

.home-pres__dark-hero--fullbleed .home-pres__dark-hero-media {
  min-height: min(72vh, 640px);
}

.home-pres__dark-hero--compact .home-pres__dark-hero-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.home-pres__dark-hero-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-pres__dark-hero-media {
  position: relative;
  overflow: hidden;
  min-height: min(58vh, 520px);
}

.home-pres__dark-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.home-pres__dark-hero-copy {
  max-width: 42rem;
  padding: clamp(1.5rem, 4vw, 2.75rem) var(--home-pres-pad-x) clamp(2rem, 5vw, 3rem);
}

.home-pres__dark-hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
}

.home-pres__dark-hero-lede {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.88;
}

/* Split bands */
.home-pres__split {
  background: var(--home-pres-band-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.home-pres__split--lead {
  padding-top: calc(var(--home-pres-gap) * 1.1);
}

.home-pres__split-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  color: inherit;
  text-decoration: none;
}

.home-pres__split--reverse .home-pres__split-link {
  direction: rtl;
}

.home-pres__split--reverse .home-pres__split-copy,
.home-pres__split--reverse .home-pres__split-media {
  direction: ltr;
}

.home-pres__split-media {
  overflow: hidden;
  min-height: 220px;
  background: rgba(0, 0, 0, 0.04);
}

.home-pres__split-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.home-pres__split-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
}

.home-pres__split-excerpt {
  margin: 0;
  line-height: 1.55;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .home-pres__split-link {
    grid-template-columns: 1fr;
  }
  .home-pres__split--reverse .home-pres__split-link {
    direction: ltr;
  }
}

/* Services rows */
.home-pres__services {
  max-width: 72rem;
  margin: 0 auto;
}

.home-pres__services-intro {
  margin-bottom: 2rem;
}

.home-pres__service-row {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2rem 0;
}

.home-pres__service-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.home-pres__service-row--reverse .home-pres__service-link {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.home-pres__service-row--reverse .home-pres__service-media {
  order: 2;
}

.home-pres__service-media {
  min-height: 180px;
  overflow: hidden;
}

.home-pres__service-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.home-pres__service-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.home-pres__service-text {
  margin: 0;
  line-height: 1.5;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .home-pres__service-link,
  .home-pres__service-row--reverse .home-pres__service-link {
    grid-template-columns: 1fr;
  }
  .home-pres__service-row--reverse .home-pres__service-media {
    order: 0;
  }
}

/* Testimonial */
.home-pres__testimonial {
  text-align: center;
  background: var(--home-pres-band-bg);
}

.home-pres__testimonial-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0;
  border: 0;
}

.home-pres__testimonial-quote {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.45;
  font-style: italic;
}

.home-pres__testimonial-meta {
  font-size: 0.9rem;
  opacity: 0.8;
}

.home-pres__testimonial-name {
  font-style: normal;
  font-weight: 600;
}

/* Logos strip */
.home-pres__logos {
  text-align: center;
  padding-top: calc(var(--home-pres-gap) * 0.75);
  padding-bottom: calc(var(--home-pres-gap) * 0.75);
}

.home-pres__logos-title {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.home-pres__logos-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-pres__logos-link {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: inherit;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.home-pres__logos-link:hover {
  opacity: 1;
}

/* CTA band */
.home-pres__cta {
  background: var(--home-pres-dark);
  color: var(--home-pres-dark-text);
  text-align: center;
}

.home-pres__cta-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.home-pres__cta-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.home-pres__cta-text {
  margin: 0 0 1.25rem;
  opacity: 0.85;
}

.home-pres__cta-button {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.home-pres__cta-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Portfolio strip */
.home-pres__portfolio-strip-head {
  max-width: 72rem;
  margin: 0 auto 1rem;
  padding: 0 var(--home-pres-pad-x);
}

.home-pres__portfolio-strip-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 var(--home-pres-pad-x) 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.home-pres__portfolio-tile {
  flex: 0 0 min(280px, 78vw);
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  color: inherit;
  background: rgba(0, 0, 0, 0.05);
}

.home-pres__portfolio-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.home-pres__portfolio-tile:hover img {
  transform: scale(1.03);
}

.home-pres__portfolio-tile-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
}

/* Latest minimal */
.home-pres__latest-minimal {
  max-width: 40rem;
  margin: 0 auto;
}

.home-pres__latest-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.home-pres__latest-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.home-pres__latest-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  color: inherit;
  text-decoration: none;
}

.home-pres__latest-link:hover .home-pres__latest-title {
  text-decoration: underline;
}

.home-pres__latest-date {
  flex-shrink: 0;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* Composer slot — flat, no card chrome */
.home-pres__composer .rj-composer-block,
.home-pres--composer .home-pres__composer-embed .rj-composer-block,
.home-pres--composer .home-pres__composer-fallback .rj-composer-block {
  max-width: 72rem;
  margin: 0 auto 1.5rem;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.home-pres__composer .rj-composer-block__title,
.home-pres--composer .home-pres__composer-embed .rj-composer-block__title,
.home-pres--composer .home-pres__composer-fallback .rj-composer-block__title {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Full composer homepage (presentation shell) */
.home-pres--composer {
  margin-left: calc(-1 * var(--site-main-pad-x, 0px));
  margin-right: calc(-1 * var(--site-main-pad-x, 0px));
  width: calc(100% + 2 * var(--site-main-pad-x, 0px));
  max-width: none;
}

.home-pres--composer .home-pres__section {
  margin-bottom: 0;
}

.home-pres__empty {
  text-align: center;
}

.home-pres__empty-text {
  margin: 0.5rem 0 0;
  opacity: 0.72;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.home-pres--composer .home-pres__composer-fallback .rj-composer-block__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 72rem;
  margin: 0 auto;
}

.home-pres--composer .home-pres__composer-fallback .rj-card {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}

.home-pres--composer .home-pres__composer-fallback .rj-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

.home-pres--composer .home-pres__composer-fallback .rj-card__media {
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.home-pres--composer .home-pres__composer-fallback .rj-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-pres--composer .home-pres__composer-fallback .rj-card__date-badge {
  display: none;
}

.home-pres--composer .home-pres__composer-embed--composite .rj-composer-composite {
  border: 0;
  box-shadow: none;
  background: transparent;
  max-width: 72rem;
  margin: 0 auto;
}

.home-pres--composer .home-pres__composer-embed--composite .rj-composer-block__grid > .rj-card {
  border: 0;
  box-shadow: none;
}

@media (max-width: 720px) {
  .home-pres--composer .home-pres__composer-fallback .rj-card__link {
    grid-template-columns: 1fr;
  }
}

/* Theme pack tuning */
body.theme-pack--studio-dark .home-pres {
  --home-pres-band-bg: rgba(255, 255, 255, 0.04);
  --home-pres-dark: #0c1018;
}

body.theme-pack--luxury-dark .home-pres {
  --home-pres-accent: var(--rj-gold, #c9a962);
}

body.theme-pack--luxury-dark .home-pres__cta-button {
  border-color: rgba(201, 169, 98, 0.45);
}

body.theme-pack--portfolio-clean .home-pres__split,
body.theme-pack--minimal-light .home-pres__split {
  background: transparent;
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.theme-pack--portfolio-clean .home-pres__logos-link {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

body.theme-pack--magazine-bold .home-pres__dark-hero-title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
